source "https://rubygems.org" git_source(:github) { |name| "https://github.com/#{name}.git" } # Specify your gem's dependencies in sentry-ruby.gemspec gemspec gem "sentry-ruby", path: "../sentry-ruby" platform :jruby do gem 'activerecord-jdbcmysql-adapter' gem "jdbc-sqlite3" end rails_version = ENV["RAILS_VERSION"] rails_version = "7.0.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") gem "rails", github: "rails/rails" else gem "rails", "~> #{rails_version}" end gem "mini_magick" gem "sprockets-rails" gem "sidekiq" gem "rspec", "~> 3.0" gem "rspec-retry" 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 gem "rake", "~> 12.0" if RUBY_VERSION.to_f >= 2.6 gem "debug", github: "ruby/debug", platform: :ruby 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" end end gem "pry" gem "benchmark-ips" gem "benchmark_driver" gem "benchmark-ipsa" gem "benchmark-memory"