Added Padrino support by default
Hey,
I just added a ENV variable and a default preload path to make it work with Padrino out of the box.
Thank you making this gem, It was so simple to port it :)
Thanks! Could you also add a changelog entry and mention the Padrino support in README?
I changed the README, changelog and the version. (did you want me to change the version?) Let me know if there anything more to be done.
Regards
Thanks! Could you also revert the lib/spin/version.rb?
Done!
I don't think it's the best strategy to define "if there is no config/application.rb, then app is Padrino-based". Is there any Padrino-specific file?
I checked and I couldn't find any padrino specific file. We can also check the Gemfile (see if it has Padrino or not) but that might increase the complexity and it might not always be correct.
For example there might be a mountable gem, which has dependency on Padrino and the core app is Rails or vice versa. (though if its a dependency then it won't appear in the Gemfile, it will be in the Gemfile.lock)
I am leaning more towards just giving an option to the user (--padrino), so we don't have to break our heads to determine if its Padrino app or not.
Maybe you can use if defined?(Padrino)