summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--Rakefile16
-rw-r--r--lib/psych.rb6
3 files changed, 2 insertions, 21 deletions
diff --git a/Gemfile b/Gemfile
index bcfa159b..3937d61 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,6 +5,5 @@ gemspec
group :development do
gem 'rake-compiler', ">= 0.4.1"
gem 'minitest', "~> 5.0"
- gem 'rake-compiler-dock', ">= 0.6.3", :platforms => :ruby
gem 'ruby-maven', :platforms => :jruby
end
diff --git a/Rakefile b/Rakefile
index 345edcd..d08e096 100644
--- a/Rakefile
+++ b/Rakefile
@@ -28,21 +28,7 @@ if RUBY_PLATFORM =~ /java/
end
else
require 'rake/extensiontask'
- spec = Gem::Specification.load("psych.gemspec")
- Rake::ExtensionTask.new("psych", spec) do |ext|
- ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
- ext.cross_compile = true
- ext.cross_platform = %w[x86-mingw32 x64-mingw32]
- ext.cross_compiling do |s|
- s.files.concat ["lib/2.3/psych.so", "lib/2.4/psych.so", "lib/2.5/psych.so"]
- end
- end
-end
-
-desc "Compile binaries for mingw platform using rake-compiler-dock"
-task 'build:mingw' do
- require 'rake_compiler_dock'
- RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.5.0:2.4.0:2.3.0"
+ Rake::ExtensionTask.new("psych")
end
task :default => [:compile, :test]
diff --git a/lib/psych.rb b/lib/psych.rb
index 2a2ec2a..9513f79 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -10,11 +10,7 @@ when 'jruby'
org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false)
end
else
- begin
- require "#{RUBY_VERSION[/\d+\.\d+/]}/psych.so"
- rescue LoadError
- require 'psych.so'
- end
+ require 'psych.so'
end
require 'psych/nodes'
require 'psych/streaming'