Closed jaredplanter closed 7 years ago
@jaredplanter you sir, are my hero. high five
Taking a look at this now......
(and @chrishough LOL)
Thank you for creating this @jaredplanter.
@bploetz I think it also closes https://github.com/bploetz/versionist/issues/80
After this goes through I think this will be the leading gem for api versioning on the market, especially with this level of backwards compatibility
@jaredplanter @chrishough Looks like we also need to update the travis matrix to use ruby 2.2.2 (at least), as the Rails 5.0 and 5.1 tests are failing with:
Gem::InstallError: rack requires Ruby version >= 2.2.2
@bploetz Ah, yes. I forgot to bump the ruby version. Looking into the failing tests now.
@jaredplanter I pushed up some fixes. Let's see if they fix the problem......
@bploetz Hm, looks like that didn't do it. I'll be back at my computer in a bit to dig into it some more.
@jaredplanter yeah I'm working on it. This is literally the worst part of this project, the dependency matrix hell among the ruby and rails versions. :)
@bploetz they all have been adjusted.
@bploetz do you see anything else that needs to be modified?
@bploetz That makes perfect sense! I'm surprised I didn't catch that. @chrishough Thanks for making the adjustments!
I'm back at my computer now too.
versionist 1.6.0 has been released with these changes.
Thanks again @jaredplanter and @chrishough
Thanks for settling the dependencies @bploetz!
Hooray! This is great news.
Why?
To add full support for Rails 5.x including fixing generators and tests.
What Changed?
Versionist.older_than_rails_5?
andVersionist.test_path
to determine the test path to use since they changed in Rails 5.xolder_than_rails_5? and
test_pathto
spec_helper` for the same compatibility*_rails_5.rb
files where applicable in controller generation testingApiRoutingSpec
to exclude a default/foos
route that routes to a non-existentFoosController
ApiRoutingSpec
to support the new arbitrary argument syntax is active_support 5.x and maintain backwards compatibilityTestApi
controllers to respond to text, json or xml using arespond_to
blockNotes
Once all versions are bundled, tests pass using:
rake test:all
Please review and let me know if you have any questions.
Thanks!
Jared Planter WeaveUp, Inc.