Skip to content

Relax rack dependency for Rails 4 - #68

Merged
koic merged 1 commit into
rubocop:masterfrom
buehmann:relax-rack-dependency
Jun 8, 2019
Merged

koic merged 1 commit into
rubocop:masterfrom
buehmann:relax-rack-dependency

Conversation

@buehmann

@buehmann buehmann commented Jun 5, 2019

Copy link
Copy Markdown
Contributor

This is related to #37. rack was recently made a runtime dependency: #36:

s.add_runtime_dependency 'rack', '>= 2.0'

Now this conflicts with an older Rails 4 app of ours which requires an older rack version:

    actionpack (4.2.11.1)
      rack (~> 1.6)

The only rack interface that is used seems to be ::Rack::Utils::SYMBOL_TO_STATUS_CODE which first appeared in rack 1.1: rack/rack@5c4bd17

Is there a particular reason why you enforce rack >= 2.0 or could we relax that dependency?

@bbatsov

bbatsov commented Jun 5, 2019

Copy link
Copy Markdown
Contributor

I think your suggestion is a good one. Probably we should also leave some note in the gemspec about that dependency.

@buehmann
buehmann force-pushed the relax-rack-dependency branch from 0e96c23 to bd166f6 Compare June 5, 2019 09:47
@bbatsov bbatsov mentioned this pull request Jun 6, 2019
@buehmann buehmann changed the title Relax rack dependency Relax rack dependency for Rails 4 Jun 7, 2019
@obfuscoder

obfuscoder commented Jun 8, 2019 •

Copy link
Copy Markdown

Would it be possible to have a rubocop-rails build 2.0.1 including this change? All previous rubocop-rails versions have been yanked from rubygems. Now all our rails 4 project builds are broken due to rubocop-rails not being available anymore.

@koic
koic merged commit ce2c5a4 into rubocop:master Jun 8, 2019
@koic

koic commented Jun 8, 2019 •

Copy link
Copy Markdown
Member

RuboCop Rails 2.0.1 has been released. This release includes this patch.
https://rubygems.org/gems/rubocop-rails/versions/2.0.1

koic added a commit to koic/rubocop that referenced this pull request Jun 11, 2019
This PR drops development dependency on Rack gem.

This dependency was introduced at rubocop#5597 for `Rails/HttpStatus` cop.

Rails cops has been removed in rubocop#7095 from RuboCop core and the
dependency on Rack gem is maintained by RuboCop Rails repo.
rubocop/rubocop-rails#68
bbatsov pushed a commit to rubocop/rubocop that referenced this pull request Jun 11, 2019
This PR drops development dependency on Rack gem.

This dependency was introduced at #5597 for `Rails/HttpStatus` cop.

Rails cops has been removed in #7095 from RuboCop core and the
dependency on Rack gem is maintained by RuboCop Rails repo.
rubocop/rubocop-rails#68
@buehmann
buehmann deleted the relax-rack-dependency branch June 14, 2019 09:42
koic added a commit to koic/rubocop-rails that referenced this pull request Jun 15, 2019
This PR drops Rails 3 support.

RuboCop core was supported Rails 4+.
https://github.com/rubocop-hq/rubocop/tree/v0.71.0#compatibility

> The Rails cops support the following versions:
>
> - Rails 4.0+

It conforms to the expected behavior of RuboCop core originally.

And Rails is maintained at 4.2.Z or higher.

> 4 Severe Security Issues
> For severe security issues all releases in the current major series, and
> also the last major release series will receive patches and new
> versions. The classification of the security issue is judged by the core
> team.
>
> Currently included series: 5.2.Z, 5.1.Z, 5.0.Z, 4.2.Z.

https://guides.rubyonrails.org/maintenance_policy.html

The following is the RuboCop Rails and Rails 4 use case.
rubocop#68
@koic koic mentioned this pull request Jun 15, 2019
6 of 8 tasks
koic added a commit to koic/rubocop-rails that referenced this pull request Jun 15, 2019
This PR drops Rails 3 support.

RuboCop core was supported Rails 4+.
https://github.com/rubocop-hq/rubocop/tree/v0.71.0#compatibility

> The Rails cops support the following versions:
>
> - Rails 4.0+

It conforms to the expected behavior of RuboCop core originally.

And Rails is maintained at 4.2.Z or higher.

> 4 Severe Security Issues
> For severe security issues all releases in the current major series, and
> also the last major release series will receive patches and new
> versions. The classification of the security issue is judged by the core
> team.
>
> Currently included series: 5.2.Z, 5.1.Z, 5.0.Z, 4.2.Z.

https://guides.rubyonrails.org/maintenance_policy.html

The following is the RuboCop Rails and Rails 4 use case.
rubocop#68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants