Skip to content

Add support for Rails 5. - #79

Merged
lucasmazza merged 1 commit into
masterfrom
gg-rails5
Nov 10, 2015
Merged

lucasmazza merged 1 commit into
masterfrom
gg-rails5

Conversation

@lucasmazza

Copy link
Copy Markdown
Contributor

The only pending change here is how to deal with the ActionController::TestCase deprecations without dropping support for older versions just because of the test suite. We could go 4.2+ only but the deprecations would still be around 😫.

DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.

Examples:

get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
 (called from test_scope_is_not_called_if_blank at /Users/lucas/src/work/has_scope/test/has_scope_test.rb:154)

Comment thread Gemfile.lock Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to update the Gemfile.lock

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rafaelfranca

Copy link
Copy Markdown
Collaborator

LGTM

@lucasmazza
lucasmazza force-pushed the gg-rails5 branch 8 times, most recently from 9fb64db to fcda2d3 Compare November 9, 2015 20:57
@lucasmazza

Copy link
Copy Markdown
Contributor Author

I'm planning to drop support for 3.2 given the absence of ActionController::StrongParameters on that release and the amount of churn required for the optional it on newer versions. c/d?

@rafaelfranca

Copy link
Copy Markdown
Collaborator

C. I'd go a step further and remove support to Rails 4.0 if that make any
difference.

On Mon, Nov 9, 2015, 18:59 Lucas Mazza [email protected] wrote:

I'm planning to drop support for 3.2 given the absence of
ActionController::StrongParameters on that release and the amount of
churn required for the optional it on newer versions. c/d?

—
Reply to this email directly or view it on GitHub
#79 (comment)
.

@lucasmazza

Copy link
Copy Markdown
Contributor Author

The 4.x is ok to support - we can lock into 4.2+ just for sake of cutting the test matrix short. The hardest jump (not here, but also on responders) is the 4.2 -> 5.0 changes on ActionController::Parameters no longer inheriting from Hash.

@lucasmazza

Copy link
Copy Markdown
Contributor Author

Updated the PR to drop 3.2 support 👌

Comment thread has_scope.gemspec Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>= 4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👮

@rafaelfranca

Copy link
Copy Markdown
Collaborator

:shipit:

lucasmazza added a commit that referenced this pull request Nov 10, 2015
@lucasmazza
lucasmazza merged commit c4686ce into master Nov 10, 2015
@lucasmazza
lucasmazza deleted the gg-rails5 branch November 10, 2015 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants