Skip to content

Commit

Permalink
Put development/test dependencies into a shared Gemfile (#2192)
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 authored Dec 6, 2023
1 parent f3e94e0 commit 50dc58a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 85 deletions.
23 changes: 23 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
source "https://rubygems.org"
git_source(:github) { |name| "https://github.com/#{name}.git" }

gem "rake", "~> 12.0"

ruby_version = Gem::Version.new(RUBY_VERSION)

# Development tools
if ruby_version >= Gem::Version.new("2.7.0")
gem "debug", github: "ruby/debug", platform: :ruby
gem "irb"

if ruby_version >= Gem::Version.new("3.0.0")
gem "ruby-lsp-rspec"
end
end

gem "pry"

# For RSpec
gem "rspec", "~> 3.0"
gem "rspec-retry"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"
gem "rexml"
13 changes: 1 addition & 12 deletions sentry-delayed_job/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ gem "sentry-rails", path: "../sentry-rails"
# For https://github.com/ruby/psych/issues/655
gem "psych", "5.1.0"

gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"
gem "rexml"

gem "delayed_job"
gem "delayed_job_active_record"
gem "rails", "> 5.0.0", "< 7.1.0"
Expand All @@ -26,9 +20,4 @@ end

gem "sqlite3", platform: :ruby

if RUBY_VERSION.to_f >= 2.6
gem "debug", github: "ruby/debug", platform: :ruby
gem "irb"
end

gem "pry"
eval_gemfile File.expand_path("../Gemfile", __dir__)
14 changes: 1 addition & 13 deletions sentry-opentelemetry/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,9 @@ git_source(:github) { |name| "https://github.com/#{name}.git" }
# Specify your gem's dependencies in sentry-ruby.gemspec
gemspec

gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"
gem "rexml"

# opentelemetry_version = ENV["OPENTELEMETRY_VERSION"]
# opentelemetry_version = "1.2.0" if opentelemetry_version.nil?
# gem "opentelemetry-sdk", "~> #{opentelemetry_version}"

gem "opentelemetry-sdk"
gem "opentelemetry-instrumentation-rails"

gem "sentry-ruby", path: "../sentry-ruby"

gem "object_tracer"
gem "debug", github: "ruby/debug", platform: :ruby if RUBY_VERSION.to_f >= 2.6
gem "pry"
eval_gemfile File.expand_path("../Gemfile", __dir__)
20 changes: 2 additions & 18 deletions sentry-rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ 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"

ruby_version = Gem::Version.new(RUBY_VERSION)

Expand All @@ -50,20 +45,9 @@ if ruby_version < Gem::Version.new("2.5.0")
gem "loofah", "2.20.0"
end

if ruby_version >= Gem::Version.new("2.6.0")
gem "debug", github: "ruby/debug", platform: :ruby
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"
gem "benchmark-ipsa"
gem "benchmark-memory"

eval_gemfile File.expand_path("../Gemfile", __dir__)
13 changes: 1 addition & 12 deletions sentry-resque/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,9 @@ gem "sentry-rails", path: "../sentry-rails"

gem "rails"

gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem 'simplecov'
gem "simplecov-cobertura", "~> 1.4"
gem "rexml"

# For https://github.com/ruby/psych/issues/655
gem "psych", "5.1.0"

gem "resque-retry", "~> 1.8"

if RUBY_VERSION.to_f >= 2.6
gem "debug", github: "ruby/debug", platform: :ruby
gem "irb"
end

gem "pry"
eval_gemfile File.expand_path("../Gemfile", __dir__)
21 changes: 2 additions & 19 deletions sentry-ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,15 @@ gem "redis", "~> #{redis_rb_version}"

gem "puma"

gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem "rspec-retry"
gem "timecop"
gem "simplecov"
gem "simplecov-cobertura", "~> 1.4"
gem "rexml"
gem "stackprof" unless RUBY_PLATFORM == "java"

ruby_version = Gem::Version.new(RUBY_VERSION)

if ruby_version >= Gem::Version.new("2.6.0")
gem "debug", github: "ruby/debug", platform: :ruby
gem "irb"

if ruby_version >= Gem::Version.new("3.0.0")
gem "ruby-lsp-rspec"
end
end

gem "pry"

gem "benchmark-ips"
gem "benchmark_driver"
gem "benchmark-ipsa"
gem "benchmark-memory"

gem "yard", github: "lsegal/yard"
gem "webrick"

eval_gemfile File.expand_path("../Gemfile", __dir__)
12 changes: 1 addition & 11 deletions sentry-sidekiq/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ gemspec
gem "sentry-ruby", path: "../sentry-ruby"
gem "sentry-rails", path: "../sentry-rails"

gem "rake", "~> 12.0"
gem "rspec", "~> 3.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
Expand All @@ -31,9 +26,4 @@ end

gem "rails", "> 5.0.0", "< 7.1.0"

if RUBY_VERSION.to_f >= 2.6
gem "debug", github: "ruby/debug", platform: :ruby
gem "irb"
end

gem "pry"
eval_gemfile File.expand_path("../Gemfile", __dir__)

0 comments on commit 50dc58a

Please sign in to comment.