From 7aa2264c42d436d6dd2c0c4214eae1e71c31ecad Mon Sep 17 00:00:00 2001 From: Yutaka Kamei Date: Tue, 21 Jun 2022 23:39:20 +0900 Subject: [PATCH] Add the version constraint for actionpack https://github.com/k0kubun/rspec-openapi/pull/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. https://github.com/rails/rails/pull/22435/commits/b50e88ebdf375cf81ad63586ce4599979262f975 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`. --- rspec-openapi.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rspec-openapi.gemspec b/rspec-openapi.gemspec index 561f2f2a..f949888a 100644 --- a/rspec-openapi.gemspec +++ b/rspec-openapi.gemspec @@ -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