Skip to content

Commit

Permalink
Remove Rails version constants in gemspec and use string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabby committed Oct 10, 2024
1 parent 5a3a873 commit 8e403a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions anony.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "anony/version"

RAILS_VERSION_LOWER_BOUND = ">= 6.1"
RAILS_VERSION_UPPER_BOUND = "< 8"

Gem::Specification.new do |spec|
spec.name = "anony"
spec.version = Anony::VERSION
Expand Down Expand Up @@ -40,8 +37,8 @@ Gem::Specification.new do |spec|
spec.add_dependency "activerecord", "~> #{ENV['RAILS_VERSION']}"
spec.add_dependency "activesupport", "~> #{ENV['RAILS_VERSION']}"
else
spec.add_dependency "activerecord", RAILS_VERSION_LOWER_BOUND, RAILS_VERSION_UPPER_BOUND
spec.add_dependency "activesupport", RAILS_VERSION_LOWER_BOUND, RAILS_VERSION_UPPER_BOUND
spec.add_dependency "activerecord", ">= 6.1", "< 8"
spec.add_dependency "activesupport", ">= 6.1", "< 8"
end
spec.metadata["rubygems_mfa_required"] = "true"
end

0 comments on commit 8e403a2

Please sign in to comment.