Is there any convention about how/where to specify application’s version number?
For example, for the ruby gems lib/mygem/version.rb is the file generally used for that purpose.
My guess would be creating config/version.rb file like that:
module MySite
VERSION = "0.0.4"
# or in MySite::Application class
#
# class Application
# VERSION = "0.0.4"
# end
end
I will reply my own question, I was not able to find a better answer.
Since Rails application is basically
MySite::ApplicationI thought app’s version should be accessed byMySite::Application::VERSIONso create :config/initializers/version.rb
or
config/version.rband require this file fromconfig/application.rb