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

Commit f8c6103

Browse files
committed
Childprocess has ruby version restrictions
1 parent e4cfd92 commit f8c6103

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Gemfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)