From 9c0bdf64b7841178ff890c0fd15553166eaa1974 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Sat, 18 May 2019 12:22:12 +0200 Subject: [PATCH] Deal with new ffi Ruby version requirement CI was failing for 1.9.2 and 1.9.3. This is due to https://github.com/ffi/ffi/pull/683 Related: - https://github.com/ffi/ffi/issues/699 --- Gemfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 3db1f9a..f072bd6 100644 --- a/Gemfile +++ b/Gemfile @@ -38,12 +38,15 @@ end gem "activesupport", *rails_gem_args gem "activemodel", *rails_gem_args -if RUBY_VERSION.to_f < 2 +if RUBY_VERSION < '1.9' + gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19 +elsif RUBY_VERSION.to_f < 2 gem "cucumber", "~> 1.3.20" gem "contracts", "0.15.0" # doesn't work on Ruby 1.9.3 gem 'json', '< 2' gem 'term-ansicolor', '< 1.4.0' # used by cucumber gem 'tins', '~> 1.6.0' # used by term-ansicolor + gem 'ffi', '< 1.11.0' # ffi dropped Ruby 1.9 support in 1.11.0 else gem "cucumber" end