bploetz / versionist

A plugin for versioning Rails based RESTful APIs.
MIT License
971 stars 51 forks source link

rails 4 syntax does not support module with capital letter #45

Closed elfassy closed 11 years ago

bploetz commented 11 years ago

Thanks for this. Unfortunately this just inverts the problem: it makes the documentation valid for Rails 4, but invalid for Rails 3.

I'd like to see if this discrepancy between the expected module name case between the two Rails versions can be handled internally by versionist, such that users have a single consistent way to configure their applications (i.e. stick with the capital letter style), without having to change anything when upgrading from Rails 3 to Rails 4.

Wanna take a shot at that? If so, there's already a ticket for that: https://github.com/bploetz/versionist/issues/39

bploetz commented 11 years ago

@elfassy I've pushed up a fix for this module name problem in Rails 4. Can you change your Gemfile dependency on Versionist to:

gem 'versionist', :git => 'https://github.com/bploetz/versionist.git', :branch => 'issue39'

Then run bundle update versionist and see if it fixes the problem for you?