Skip to content

Commit 50dc58a

Browse files
authored
Put development/test dependencies into a shared Gemfile (#2192)
1 parent f3e94e0 commit 50dc58a

File tree

7 files changed

+31
-85
lines changed

7 files changed

+31
-85
lines changed

Gemfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
11
source "https://rubygems.org"
22
git_source(:github) { |name| "https://github.com/#{name}.git" }
3+
4+
gem "rake", "~> 12.0"
5+
6+
ruby_version = Gem::Version.new(RUBY_VERSION)
7+
8+
# Development tools
9+
if ruby_version >= Gem::Version.new("2.7.0")
10+
gem "debug", github: "ruby/debug", platform: :ruby
11+
gem "irb"
12+
13+
if ruby_version >= Gem::Version.new("3.0.0")
14+
gem "ruby-lsp-rspec"
15+
end
16+
end
17+
18+
gem "pry"
19+
20+
# For RSpec
21+
gem "rspec", "~> 3.0"
22+
gem "rspec-retry"
23+
gem 'simplecov'
24+
gem "simplecov-cobertura", "~> 1.4"
25+
gem "rexml"

sentry-delayed_job/Gemfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ gem "sentry-rails", path: "../sentry-rails"
99
# For https://github.com/ruby/psych/issues/655
1010
gem "psych", "5.1.0"
1111

12-
gem "rake", "~> 12.0"
13-
gem "rspec", "~> 3.0"
14-
gem 'simplecov'
15-
gem "simplecov-cobertura", "~> 1.4"
16-
gem "rexml"
17-
1812
gem "delayed_job"
1913
gem "delayed_job_active_record"
2014
gem "rails", "> 5.0.0", "< 7.1.0"
@@ -26,9 +20,4 @@ end
2620

2721
gem "sqlite3", platform: :ruby
2822

29-
if RUBY_VERSION.to_f >= 2.6
30-
gem "debug", github: "ruby/debug", platform: :ruby
31-
gem "irb"
32-
end
33-
34-
gem "pry"
23+
eval_gemfile File.expand_path("../Gemfile", __dir__)

sentry-opentelemetry/Gemfile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,9 @@ git_source(:github) { |name| "https://github.com/#{name}.git" }
44
# Specify your gem's dependencies in sentry-ruby.gemspec
55
gemspec
66

7-
gem "rake", "~> 12.0"
8-
gem "rspec", "~> 3.0"
9-
gem 'simplecov'
10-
gem "simplecov-cobertura", "~> 1.4"
11-
gem "rexml"
12-
13-
# opentelemetry_version = ENV["OPENTELEMETRY_VERSION"]
14-
# opentelemetry_version = "1.2.0" if opentelemetry_version.nil?
15-
# gem "opentelemetry-sdk", "~> #{opentelemetry_version}"
16-
177
gem "opentelemetry-sdk"
188
gem "opentelemetry-instrumentation-rails"
199

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

22-
gem "object_tracer"
23-
gem "debug", github: "ruby/debug", platform: :ruby if RUBY_VERSION.to_f >= 2.6
24-
gem "pry"
12+
eval_gemfile File.expand_path("../Gemfile", __dir__)

sentry-rails/Gemfile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ gem "sprockets-rails"
3535

3636
gem "sidekiq"
3737

38-
gem "rspec", "~> 3.0"
39-
gem "rspec-retry"
4038
gem "rspec-rails", "~> 4.0"
41-
gem 'simplecov'
42-
gem "simplecov-cobertura", "~> 1.4"
43-
gem "rexml"
4439

4540
ruby_version = Gem::Version.new(RUBY_VERSION)
4641

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

53-
if ruby_version >= Gem::Version.new("2.6.0")
54-
gem "debug", github: "ruby/debug", platform: :ruby
55-
gem "irb"
56-
57-
if ruby_version >= Gem::Version.new("3.0.0")
58-
gem "ruby-lsp-rspec"
59-
end
60-
end
61-
62-
gem "rake", "~> 12.0"
63-
64-
gem "pry"
65-
6648
gem "benchmark-ips"
6749
gem "benchmark_driver"
6850
gem "benchmark-ipsa"
6951
gem "benchmark-memory"
52+
53+
eval_gemfile File.expand_path("../Gemfile", __dir__)

sentry-resque/Gemfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@ gem "sentry-rails", path: "../sentry-rails"
88

99
gem "rails"
1010

11-
gem "rake", "~> 12.0"
12-
gem "rspec", "~> 3.0"
13-
gem 'simplecov'
14-
gem "simplecov-cobertura", "~> 1.4"
15-
gem "rexml"
16-
1711
# For https://github.com/ruby/psych/issues/655
1812
gem "psych", "5.1.0"
1913

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

22-
if RUBY_VERSION.to_f >= 2.6
23-
gem "debug", github: "ruby/debug", platform: :ruby
24-
gem "irb"
25-
end
26-
27-
gem "pry"
16+
eval_gemfile File.expand_path("../Gemfile", __dir__)

sentry-ruby/Gemfile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,15 @@ gem "redis", "~> #{redis_rb_version}"
1212

1313
gem "puma"
1414

15-
gem "rake", "~> 12.0"
16-
gem "rspec", "~> 3.0"
17-
gem "rspec-retry"
1815
gem "timecop"
19-
gem "simplecov"
20-
gem "simplecov-cobertura", "~> 1.4"
21-
gem "rexml"
2216
gem "stackprof" unless RUBY_PLATFORM == "java"
2317

24-
ruby_version = Gem::Version.new(RUBY_VERSION)
25-
26-
if ruby_version >= Gem::Version.new("2.6.0")
27-
gem "debug", github: "ruby/debug", platform: :ruby
28-
gem "irb"
29-
30-
if ruby_version >= Gem::Version.new("3.0.0")
31-
gem "ruby-lsp-rspec"
32-
end
33-
end
34-
35-
gem "pry"
36-
3718
gem "benchmark-ips"
3819
gem "benchmark_driver"
3920
gem "benchmark-ipsa"
4021
gem "benchmark-memory"
4122

4223
gem "yard", github: "lsegal/yard"
4324
gem "webrick"
25+
26+
eval_gemfile File.expand_path("../Gemfile", __dir__)

sentry-sidekiq/Gemfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ gemspec
66
gem "sentry-ruby", path: "../sentry-ruby"
77
gem "sentry-rails", path: "../sentry-rails"
88

9-
gem "rake", "~> 12.0"
10-
gem "rspec", "~> 3.0"
11-
gem 'simplecov'
12-
gem "simplecov-cobertura", "~> 1.4"
13-
gem "rexml"
149
# https://github.com/flavorjones/loofah/pull/267
1510
# loofah changed the required ruby version in a patch so we need to explicitly pin it
1611
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
@@ -31,9 +26,4 @@ end
3126

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

34-
if RUBY_VERSION.to_f >= 2.6
35-
gem "debug", github: "ruby/debug", platform: :ruby
36-
gem "irb"
37-
end
38-
39-
gem "pry"
29+
eval_gemfile File.expand_path("../Gemfile", __dir__)

0 commit comments

Comments
 (0)