File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 5
5
group :development do
6
6
gem 'rake-compiler' , ">= 0.4.1"
7
7
gem 'minitest' , "~> 5.0"
8
- gem 'rake-compiler-dock' , ">= 0.6.3" , :platforms => :ruby
9
8
gem 'ruby-maven' , :platforms => :jruby
10
9
end
Original file line number Diff line number Diff line change @@ -28,21 +28,7 @@ if RUBY_PLATFORM =~ /java/
28
28
end
29
29
else
30
30
require 'rake/extensiontask'
31
- spec = Gem ::Specification . load ( "psych.gemspec" )
32
- Rake ::ExtensionTask . new ( "psych" , spec ) do |ext |
33
- ext . lib_dir = File . join ( *[ 'lib' , ENV [ 'FAT_DIR' ] ] . compact )
34
- ext . cross_compile = true
35
- ext . cross_platform = %w[ x86-mingw32 x64-mingw32 ]
36
- ext . cross_compiling do |s |
37
- s . files . concat [ "lib/2.3/psych.so" , "lib/2.4/psych.so" , "lib/2.5/psych.so" ]
38
- end
39
- end
40
- end
41
-
42
- desc "Compile binaries for mingw platform using rake-compiler-dock"
43
- task 'build:mingw' do
44
- require 'rake_compiler_dock'
45
- RakeCompilerDock . sh "bundle && rake cross native gem RUBY_CC_VERSION=2.5.0:2.4.0:2.3.0"
31
+ Rake ::ExtensionTask . new ( "psych" )
46
32
end
47
33
48
34
task :default => [ :compile , :test ]
Original file line number Diff line number Diff line change 10
10
org . jruby . ext . psych . PsychLibrary . new . load ( JRuby . runtime , false )
11
11
end
12
12
else
13
- begin
14
- require "#{ RUBY_VERSION [ /\d +\. \d +/ ] } /psych.so"
15
- rescue LoadError
16
- require 'psych.so'
17
- end
13
+ require 'psych.so'
18
14
end
19
15
require 'psych/nodes'
20
16
require 'psych/streaming'
You can’t perform that action at this time.
0 commit comments