Skip to content

Commit

Permalink
Merge pull request #408 from aburgel/patch-1
Browse files Browse the repository at this point in the history
Improve jruby detection
  • Loading branch information
kyrylo authored Feb 11, 2019
2 parents ef743cf + 5f218a3 commit 880bb21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airbrake-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require './lib/airbrake-ruby/version'

jruby = RbConfig::CONFIG['ruby_install_name'] == 'jruby'
java = RUBY_PLATFORM =~ /java/

Gem::Specification.new do |s|
s.name = 'airbrake-ruby'
Expand All @@ -27,9 +27,9 @@ DESC
s.test_files = Dir.glob('spec/**/*')

s.required_ruby_version = '>= 2.1'
s.platform = jruby ? 'java' : Gem::Platform::RUBY
s.platform = java ? 'java' : Gem::Platform::RUBY

if jruby
if java
s.add_dependency 'rbtree-jruby', '~> 0.2.1'
else
s.add_dependency 'rbtree3', '~> 0.5.0'
Expand Down

0 comments on commit 880bb21

Please sign in to comment.