Skip to content

[BUG] v2.13.0 drops support for Rails 3.x without notice #839

@latortuga

Description

@latortuga

Describe the bug

The API used for the features in v2.13.0, specifically this line is not compatible with Rails 3.1 or 3.2 despite them being allowed by the gemspec. This API just doesn't exist in Rails 3.

~/.rbenv/versions/3.1.7/lib/ruby/gems/3.1.0/gems/rswag-api-2.13.0/lib/rswag/api.rb:21:in `deprecator': undefined method `new' for ActiveSupport::Deprecation:Module (NoMethodError)

      @deprecator ||= ActiveSupport::Deprecation.new('3.0', 'rswag-api')
                                                ^^^^
        from ~/.rbenv/versions/3.1.7/lib/ruby/gems/3.1.0/gems/rswag-api-2.13.0/lib/rswag/api.rb:32:in `<module:Api>'                                                                                                        from ~/.rbenv/versions/3.1.7/lib/ruby/gems/3.1.0/gems/rswag-api-2.13.0/lib/rswag/api.rb:6:in `<module:Rswag>'
        from ~/.rbenv/versions/3.1.7/lib/ruby/gems/3.1.0/gems/rswag-api-2.13.0/lib/rswag/api.rb:5:in `<top (required)>'

Expected behavior

Either the gemspec should have been updated to not allow this version on Rails 3, or a patch should be made for this branch. Either way, a major gem version bump should have occurred when support for Rails 3 and 4 was dropped in 2.14.

Additional context

We are running on Rails LTS which allows using a modern Ruby version (in this case 3.1) with older versions of Rails and provides security patches.

Dependency versions

The version of are you using for:

  • Rswag: 2.13.0
  • RSpec: 3.9.0
  • Rails: 3.2.22.49 (Rails LTS)
  • Ruby: 3.1.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions