Gemfile in sentry-rails-5.11.0 vs Gemfile in sentry-rails-5.12.0

- old
+ new

@@ -9,23 +9,26 @@ gem 'activerecord-jdbcmysql-adapter' gem "jdbc-sqlite3" end rails_version = ENV["RAILS_VERSION"] -rails_version = "7.0.0" if rails_version.nil? +rails_version = "7.1.0" if rails_version.nil? rails_version = Gem::Version.new(rails_version) if rails_version < Gem::Version.new("6.0.0") gem "sqlite3", "~> 1.3.0", platform: :ruby else gem "sqlite3", platform: :ruby end -if rails_version > Gem::Version.new("7.0.0") +if rails_version >= Gem::Version.new("7.2.0.alpha") gem "rails", github: "rails/rails" +elsif rails_version >= Gem::Version.new("7.1.0") + gem "rails", "~> #{rails_version}" else gem "rails", "~> #{rails_version}" + gem "psych", "~> 3.0.0" end gem "mini_magick" gem "sprockets-rails" @@ -37,24 +40,27 @@ gem "rspec-rails", "~> 4.0" gem 'simplecov' gem "simplecov-cobertura", "~> 1.4" gem "rexml" -# https://github.com/flavorjones/loofah/pull/267 -# loofah changed the required ruby version in a patch so we need to explicitly pin it -gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5 +ruby_version = Gem::Version.new(RUBY_VERSION) -gem "rake", "~> 12.0" +if ruby_version < Gem::Version.new("2.5.0") + # https://github.com/flavorjones/loofah/pull/267 + # loofah changed the required ruby version in a patch so we need to explicitly pin it + gem "loofah", "2.20.0" +end -if RUBY_VERSION.to_f >= 2.6 +if ruby_version >= Gem::Version.new("2.6.0") gem "debug", github: "ruby/debug", platform: :ruby + gem "irb" - if rails_version == Gem::Version.new("6.0.0") && RUBY_VERSION.to_f == 2.7 - gem "irb", "~> 1.7.4" # irb 1.8 adds psych via rdoc that causes CI to fail - else - gem "irb" + if ruby_version >= Gem::Version.new("3.0.0") + gem "ruby-lsp-rspec" end end + +gem "rake", "~> 12.0" gem "pry" gem "benchmark-ips" gem "benchmark_driver"