Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax rack dependency for Rails 4 #68

Merged
merged 1 commit into from
Jun 8, 2019

Conversation

buehmann
Copy link
Contributor

@buehmann buehmann commented Jun 5, 2019

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
Copy link
Contributor

bbatsov commented Jun 5, 2019

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

@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
Copy link

obfuscoder commented Jun 8, 2019

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
Copy link
Member

koic commented Jun 8, 2019

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
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
This pull request was closed.
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