Skip to content

Commit

Permalink
Add the version constraint for actionpack
Browse files Browse the repository at this point in the history
#38 introduced
the check whether the route comes from Rails with `route.app.engine?`.

However, the method `engine?` was added in this PR,
and this is available since Rails 5.2.

rails/rails@b50e88e

So, adding the version constraint might make sense.

Note Rails 5.2 reached EOL, which means patches against
severe security issues will not be available, so I added `>= 6.0.0`
instead of `>= 5.2.0`.
  • Loading branch information
yykamei committed Jun 21, 2022
1 parent 52569fb commit 7aa2264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rspec-openapi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'actionpack'
spec.add_dependency 'actionpack', '>= 6.0.0'
spec.add_dependency 'rspec'
end

0 comments on commit 7aa2264

Please sign in to comment.