File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ any platform. *Documentation is forthcoming...*
192192```
193193*MRI only*
194194rake build:native # Build concurrent-ruby-ext-<version>-<platform>.gem into the pkg directory
195+ rake compile:extension # Compile extension
195196
196197*JRuby only*
197198rake build # Build JRuby-specific core gem (alias for `build:core`)
@@ -206,7 +207,6 @@ rake build:ext # Build concurrent-ruby-ext-<version>.gem into the pkg d
206207rake clean # Remove any temporary products
207208rake clobber # Remove any generated file
208209rake compile # Compile all the extensions
209- rake compile:extension # Compile extension
210210```
211211
212212## Maintainers
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ EXT_GEMSPEC = Gem::Specification.load('concurrent-ruby-ext.gemspec')
1010
1111GEM_NAME = 'concurrent-ruby'
1212EXTENSION_NAME = 'extension'
13+ JAVA_EXT_NAME = 'concurrent_ruby_ext'
1314
1415if Concurrent . jruby?
1516 CORE_GEM = "#{ GEM_NAME } -#{ Concurrent ::VERSION } -java.gem"
@@ -39,7 +40,7 @@ if Concurrent.jruby?
3940 ## create the compile task for the JRuby-specific gem
4041 require 'rake/javaextensiontask'
4142
42- Rake ::JavaExtensionTask . new ( 'java' , CORE_GEMSPEC ) do |ext |
43+ Rake ::JavaExtensionTask . new ( JAVA_EXT_NAME , CORE_GEMSPEC ) do |ext |
4344 ext . ext_dir = 'ext'
4445 end
4546
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Gem::Specification.new do |s|
2323 s . require_paths = [ 'lib' ]
2424
2525 if defined? ( JRUBY_VERSION )
26- s . files += Dir [ 'lib/concurrent_ruby_ext .jar' ]
26+ s . files += Dir [ 'lib/**/* .jar' ]
2727 s . platform = 'java'
2828 else
2929 s . add_runtime_dependency 'ref' , '~> 1.0' , '>= 1.0.5'
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ def self.jruby?
2828 end
2929 elsif jruby? && !@@java_ext_loaded
3030 begin
31- require 'concurrent/extension '
31+ require 'concurrent_ruby_ext '
3232 @@java_ext_loaded = true
3333 rescue LoadError
34- # warn 'Attempted to load Java extensions on unsupported platform. Continuing with pure-Ruby.'
34+ warn 'Attempted to load Java extensions on unsupported platform. Continuing with pure-Ruby.'
3535 end
3636 end
3737end
You can’t perform that action at this time.
0 commit comments