Skip to content

Commit

Permalink
exclude incompatible rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
skatkov committed Feb 13, 2024
1 parent 36041df commit ce8d96b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rails_twirp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files`.split("\n")

spec.add_dependency "rails", ">= 6.1.3"
spec.add_dependency "twirp", ">= 1.9", "< 1.11"
# Rails was shipped an incompatible change in ActiveView, that was reverted in later versions.
# @see https://github.com/rails/rails/pull/51023
excluded_versions = ['7.1.0', '7.1.1', '7.1.2', '7.1.3'].map { |v| "!= #{v}" }
spec.add_runtime_dependency 'rails', ">= 6.1.3", *excluded_versions
spec.add_runtime_dependency "twirp", ">= 1.9", "< 1.11"
spec.required_ruby_version = ">= 3"
end

0 comments on commit ce8d96b

Please sign in to comment.