Class: Gloo::App::Info
- Inherits:
-
Object
- Object
- Gloo::App::Info
- Defined in:
- lib/gloo/app/info.rb
Constant Summary collapse
- APP_NAME =
'Gloo'.freeze
- VERSION_FILE =
'VERSION'.freeze
- VERSION_NOTES_FILE =
'VERSION_NOTES'.freeze
- VERSION =
Gloo::App::Info.get_version
Class Method Summary collapse
-
.display_title ⇒ Object
Get the application display title.
-
.full_version ⇒ Object
Get the full application version information, including engine version.
-
.get_version ⇒ Object
Load the version from the VERSION file.
-
.get_version_notes ⇒ Object
Load the version notes from the VERSION_NOTES file.
-
.ruby_info ⇒ Object
Get the version of Ruby.
Class Method Details
.display_title ⇒ Object
Get the application display title.
40 41 42 |
# File 'lib/gloo/app/info.rb', line 40 def self.display_title return "#{APP_NAME}, version #{VERSION}" end |
.full_version ⇒ Object
Get the full application version information, including engine version.
49 50 51 52 |
# File 'lib/gloo/app/info.rb', line 49 def self.full_version return "#{display_title}\n#{ruby_info}" return str end |
.get_version ⇒ Object
Load the version from the VERSION file.
18 19 20 21 22 23 |
# File 'lib/gloo/app/info.rb', line 18 def self.get_version f = File.dirname( File.absolute_path( __FILE__ ) ) f = File.dirname( File.dirname( f ) ) f = File.join( f, VERSION_FILE ) return File.read( f ) end |
.get_version_notes ⇒ Object
Load the version notes from the VERSION_NOTES file.
30 31 32 33 34 35 |
# File 'lib/gloo/app/info.rb', line 30 def self.get_version_notes f = File.dirname( File.absolute_path( __FILE__ ) ) f = File.dirname( File.dirname( f ) ) f = File.join( f, VERSION_NOTES_FILE ) return File.read( f ) end |
.ruby_info ⇒ Object
Get the version of Ruby.
57 58 59 |
# File 'lib/gloo/app/info.rb', line 57 def self.ruby_info return "Ruby version: #{RUBY_VERSION}" end |