Skip to content

Commit

Permalink
[mocks] Deal with new ffi Ruby version requirement (rspec/rspec-mocks…
Browse files Browse the repository at this point in the history
…#1276)

ffi/ffi#683

Related:
- ffi/ffi#699

---
This commit was imported from rspec/rspec-mocks@2182ced.
  • Loading branch information
benoittgt authored and JonRowe committed Jun 13, 2019
1 parent fe909eb commit 1cec7e6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions rspec-mocks/Gemfile
Expand Up @@ -19,10 +19,19 @@ if RUBY_VERSION >= '2.4' && RUBY_ENGINE == 'ruby'
gem 'rubocop', "~> 0.52.1"
end

if 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
# allow gems to be installed on older rubies and/or windows
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.10'
elsif RUBY_VERSION < '1.9'
gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19
elsif RUBY_VERSION < '2.0'
gem 'ffi', '< 1.11.0' # ffi dropped Ruby 1.9 support in 1.11.0
else
gem 'ffi', '> 1.9.24' # prevent Github security vulnerability warning
end

if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem "childprocess", "< 1.0.0"
end

### deps for rdoc.info
Expand Down

0 comments on commit 1cec7e6

Please sign in to comment.