Skip to content

Commit

Permalink
Add ruby-lsp-rspec to development dependency (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 authored Sep 26, 2023
1 parent 8443985 commit efcc58a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
18 changes: 13 additions & 5 deletions sentry-rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,25 @@ 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 ruby_version >= Gem::Version.new("3.0.0")
gem "ruby-lsp-rspec"
end
end

gem "rake", "~> 12.0"

gem "pry"

gem "benchmark-ips"
Expand Down
8 changes: 7 additions & 1 deletion sentry-ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ gem "simplecov-cobertura", "~> 1.4"
gem "rexml"
gem "stackprof" unless RUBY_PLATFORM == "java"

if RUBY_VERSION.to_f >= 2.6
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"
Expand Down

0 comments on commit efcc58a

Please sign in to comment.