Sha256: ee9899d6e1edca7dec0aae37c61904f938fd0a8db95f7e14a5e1911e2f90e53c
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 KB
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Application information such as Version and public name. # module Gloo module App class Info APP_NAME = 'Gloo'.freeze VERSION_FILE = 'VERSION'.freeze VERSION_NOTES_FILE = 'VERSION_NOTES'.freeze # # Load the version from the VERSION file. # 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 VERSION = Gloo::App::Info.get_version # # Load the version notes from the VERSION_NOTES file. # 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 # # Get the application display title. # def self.display_title return "#{APP_NAME}, version #{VERSION}" end # # Get the full application version information, # including engine version. # def self.full_version return "#{display_title}\n#{ruby_info}" return str end # # Get the version of Ruby. # def self.ruby_info return "Ruby version: #{RUBY_VERSION}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gloo-3.7.0 | lib/gloo/app/info.rb |
gloo-3.6.2 | lib/gloo/app/info.rb |
gloo-3.6.1 | lib/gloo/app/info.rb |
gloo-3.6.0 | lib/gloo/app/info.rb |