Skip to content

Commit

Permalink
Merge pull request #49428 from uxxman/main
Browse files Browse the repository at this point in the history
No need to include error_highlight when ruby version >= 3.2
  • Loading branch information
rafaelfranca committed Sep 29, 2023
2 parents db2ef1d + 24b9991 commit d7b3951
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ gem "wdm", ">= 0.1.0", platforms: [:windows]
# The error_highlight gem only works on CRuby 3.1 or later.
# Also, Rails depends on a new API available since error_highlight 0.4.0.
# (Note that Ruby 3.1 bundles error_highlight 0.3.0.)
if RUBY_VERSION >= "3.1"
if RUBY_VERSION >= "3.1" && RUBY_VERSION < "3.2"
gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
end
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ GEM
rake (>= 12.0.0, < 14.0.0)
drb (2.1.1)
ruby2_keywords
error_highlight (0.5.1)
erubi (1.12.0)
et-orbi (1.2.7)
tzinfo
Expand Down Expand Up @@ -584,7 +583,6 @@ DEPENDENCIES
debug (>= 1.1.0)
delayed_job
delayed_job_active_record
error_highlight (>= 0.4.0)
google-cloud-storage (~> 1.11)
image_processing (~> 1.2)
importmap-rails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ group :development do
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"

<%- if RUBY_VERSION >= "3.1" -%>
<%- if RUBY_VERSION >= "3.1" && RUBY_VERSION < "3.2" -%>
gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
<%- end -%>
end
Expand Down

0 comments on commit d7b3951

Please sign in to comment.