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

Replace #before_filter with #before_action #420

Closed
wants to merge 1 commit into from
Closed

Replace #before_filter with #before_action #420

wants to merge 1 commit into from

Conversation

buren
Copy link
Contributor

@buren buren commented Jan 23, 2016

Fixes

DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from block (2 levels) in <class:Railtie> at /Users/someusername/.gem/ruby/2.3.0/gems/apipie-rails-0.3.5/lib/apipie/extractor.rb:12)

@buren
Copy link
Contributor Author

buren commented Jan 24, 2016

Hm, the test suite fails on rails 3.2, because before_action was introduced in rails 4. I guess one thing could be to alias?

Relevant code in rails: actionpack/lib/abstract_controller/callbacks.rb

@Pajk
Copy link
Member

Pajk commented Feb 12, 2016

Maybe it's time to drop Rails 3 support? @iNecas

@iNecas
Copy link
Member

iNecas commented Feb 12, 2016

I'm ok with dropping rails 3, provided we bump a version number. Maybe it's time for v1.0.0?

@buren
Copy link
Contributor Author

buren commented Feb 12, 2016

@iNecas, @Pajk maybe it could be an idea to wait a little bit for Rails 5 and see if there are any things that needs to be addressed. If there is anything it could be fixed and then v1.0 could be stable for a long time. Otherwise there is a risk you would need to release a v2 in order to make the braking changes to support Rails 5. On the other hand I've actually tried running apipie-rails under Rails 5 and everything seems to be working :)

See: justarrived/just_match_api#155
Heroku review app running rails 5: https://just-match-api-staging-pr-155.herokuapp.com/api_docs

Thanks for an awesome gem @iNecas and @Pajk

@buren
Copy link
Contributor Author

buren commented Feb 15, 2016

Revising my above comment, I actually think a v1.0.0 might be a good idea @iNecas. Can't really see what Rails 5 would brake, since its already in beta2 and an rc is probably coming any day now.

Dropping Rails 3 doesn't seem unreasonable at this stage either, since it soon will be 2 versions old when Rails 5 comes out. Those on Rails 3 can probably live with the current version a while longer :)

@buren
Copy link
Contributor Author

buren commented Feb 17, 2016

Related to Rails 5 and might be something that would be nice to fix before a v1.0.0: #437

I'll see if that is something I can look at and fix :) Not sure when I'll find the time though, let me know if you have any particular goals to get v1.0.0 out the door 🚀

@teaspoon
Copy link

teaspoon commented Jun 8, 2016

Hey guys, what is the hold up with the above pull request?

@buren
Copy link
Contributor Author

buren commented Jun 8, 2016

@teaspoon basically its up to @Pajk and @iNecas to decide about:

I'm ok with dropping rails 3, provided we bump a version number. Maybe it's time for v1.0.0?
#420 (comment)

and then remove Rails 3 from the Travis CI build matrix

@voxik
Copy link
Contributor

voxik commented Sep 2, 2016

#473 is probably duplicate of this, although it suggests more universal solution ...

@alepore
Copy link
Contributor

alepore commented Oct 18, 2016

+1 dropping rails 3 and maybe keeping a branch for that ("for rails 3, use the 0-3-stable branch")

@seanhandley
Copy link

Someone please merge this 👍

@ened
Copy link

ened commented Feb 17, 2017

@iNecas do you need help from the community to get it merged?

@iNecas
Copy link
Member

iNecas commented Feb 17, 2017

Just reminding is ok: we are close to get us more compatible with rails 5 (including tests) #527, after that is merged, this will just become green and can be next to go, I expect the release by the end of the week

@iNecas
Copy link
Member

iNecas commented Feb 17, 2017

Merged as 08be240, thanks @buren

@iNecas iNecas closed this Feb 17, 2017
@buren buren deleted the before-action branch February 17, 2017 14:57
@iNecas
Copy link
Member

iNecas commented Feb 18, 2017

apipie-rails-0.4.0 has just been released, including this fix. Thanks @buren for help!

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.

8 participants