bwillis / versioncake

:cake: Version Cake is an unobtrusive way to version APIs in your Rails or Rack apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explore versioning in Rack middleware

bwillis opened this issue · comments

commented

The version is extracted inside the controller before action and takes advantage of the Rails request object. Moving it to middleware could make it more flexible for other Rack based apps. Hopefully we can leverage the same extraction strategies, but they probably will require some changes.

commented

Majority of the work can be seen here

Summarized major changes

  • New configuration style with initializers
  • Avoid hitting endpoints when version isn't supported
  • Ability to turn off magic template routing
  • Added more ruby/rails version testing