Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit c6929c6

Browse files
committed
Childprocess has ruby version restrictions
1 parent 5779f72 commit c6929c6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Gemfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ group :documentation do
3636
gem 'github-markup', :platform => :mri
3737
end
3838

39-
if RUBY_VERSION < '2.0.0' || RUBY_ENGINE == 'java'
39+
if RUBY_VERSION < '2.0.0' || RUBY_PLATFORM == 'java'
4040
gem 'json', '< 2.0.0'
4141
else
4242
gem 'json', '> 2.3.0'
@@ -52,14 +52,18 @@ end
5252

5353
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
5454
gem "childprocess", "< 1.0.0"
55+
elsif RUBY_VERSION < '1.9.0' && RUBY_PLATFORM == 'java'
56+
gem "childprocess", "< 1.0.0"
57+
elsif RUBY_VERSION < '2.3.0'
58+
gem "childprocess", "< 2.0.0"
59+
elsif RUBY_VERSION < '2.4.0'
60+
gem "childprocess", "< 4.0.0"
5561
end
5662

5763
platforms :jruby do
5864
if RUBY_VERSION < '1.9.0'
5965
# Pin jruby-openssl on older J Ruby
6066
gem "jruby-openssl", "< 0.10.0"
61-
# Pin child-process on older J Ruby
62-
gem "childprocess", "< 1.0.0"
6367
else
6468
gem "jruby-openssl"
6569
end

0 commit comments

Comments
 (0)