Skip to content

Commit

Permalink
Prevent ffi and childprocess causing build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Feb 1, 2019
1 parent 1a1cc94 commit 1f30789
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Gemfile
Expand Up @@ -32,7 +32,9 @@ if RUBY_VERSION < '2.0.0' || RUBY_ENGINE == 'java'
gem 'json', '< 2.0.0'
end

if RUBY_VERSION < '2.0.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.10'
elsif RUBY_VERSION < '2.0.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.9.15' # allow ffi to be installed on older rubies on windows
elsif RUBY_VERSION < '1.9'
gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19
Expand All @@ -41,7 +43,14 @@ else
end

platforms :jruby do
gem "jruby-openssl"
if RUBY_VERSION < '1.9.0'
# Pin jruby-openssl on older J Ruby
gem "jruby-openssl", "< 0.10.0"
# Pin child-process on older J Ruby
gem "childprocess", "< 1.0.0"
else
gem "jruby-openssl"
end
end

gem 'simplecov', '~> 0.8'
Expand Down

0 comments on commit 1f30789

Please sign in to comment.