From e2df4c94555f91b4a573be26e3f1ba7a442b3bbe Mon Sep 17 00:00:00 2001 From: Tyler Rick Date: Tue, 23 Feb 2021 23:53:16 -0800 Subject: [PATCH] Locked rspec-rails to 3.x in the .gemspec (Since Gemfile.lock isn't currently under version control, and probably can't be since RAILS_VERSION is dynamic.) Without this, it will install the latest version, 4.0, which uses &. not available in older Rubies, causing errors like this: ruby/2.1.0/gems/rspec-rails-4.0.0/lib/rspec/rails/example/mailer_example_group.rb:25: syntax error, unexpected '.' options&.each { |key, value| default_u... --- xray-rails.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xray-rails.gemspec b/xray-rails.gemspec index b4a0339..f392b08 100644 --- a/xray-rails.gemspec +++ b/xray-rails.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.add_dependency 'rails', '>= 3.1.0' - gem.add_development_dependency 'rspec-rails' + gem.add_development_dependency 'rspec-rails', '~> 3.8' # Required for the dummy Rails app in spec/dummy gem.add_development_dependency 'sqlite3'