Rails AppVersion is a Ruby on Rails engine designed to easily manage and access your application's version and environment information.
It allows for a seamless integration of versioning within your Rails application, providing a straightforward way to access the current application version and environment without hardcoding these values.
This gem is exclusively build for Rails applications and is compatible with Rails 7.0 and above.
How to use my plugin.
Add this line to your application's Gemfile:
gem "rails_app_version"
And then execute:
$ bundle
After adding the gem, you can access the application version and environment information anywhere in your Rails application.
Rails.application.version # => "1.0.0"
Rails.application.env # => "staging"
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
The gem is available as open source under the terms of the MIT License.