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

Fix Rails 5.1 deprecations #530

Closed

Conversation

nunosilva800
Copy link
Contributor

@nunosilva800 nunosilva800 commented Mar 13, 2017

This PR fixes several deprecated methods being removed in Rails 5.1
(rails/rails#27035)

This also enforces Ruby 2.0 or higher

Copy link
Contributor

@domcleal domcleal left a comment

Choose a reason for hiding this comment

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

  1. The tests indicate the min version of Rails needs increasing to 4.1 to support render :plain, which wasn't in 4.0. Update apipie-rails.gemspec to depend on rails >= 4.1, remove the file Gemfile.rails40 and also from .travis.yml.
  2. Remove Ruby 1.9.3 from .travis.yml so it's no longer tested.

Otherwise it's working well for me on Rails 5.1.

@nunosilva800 nunosilva800 force-pushed the fix-rails5.1-deprecations branch from 0025534 to a83ae47 Compare March 22, 2017 14:19
@nunosilva800 nunosilva800 force-pushed the fix-rails5.1-deprecations branch from a83ae47 to 7217434 Compare March 22, 2017 14:21
@nunosilva800
Copy link
Contributor Author

Done! :D

@nunosilva800
Copy link
Contributor Author

Added: whitesmith#1
thanks @sedx

@ArnisL
Copy link

ArnisL commented Apr 3, 2017

Can this be merged?

@iNecas
Copy link
Member

iNecas commented Apr 3, 2017

Squashed and merged as 52852e0 and 7e07ae9, thanks @Onumis, @sedx and @domcleal

@iNecas iNecas closed this Apr 3, 2017
@nunosilva800 nunosilva800 deleted the fix-rails5.1-deprecations branch April 3, 2017 10:56
@iNecas
Copy link
Member

iNecas commented Apr 19, 2017

apipie-rails-0.5.0 is out, including this change

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.

Deprecation warnings Support rails 5 - alias_method_chain
5 participants