lib/gloo/app/info.rb in gloo-1.4.2 vs lib/gloo/app/info.rb in gloo-2.0.0
- old
+ new
@@ -2,15 +2,15 @@
# Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved.
#
# Application information such as Version and public name.
#
-require 'gloo-lang'
+# require 'gloo-lang'
module Gloo
module App
- class Info < GlooLang::App::Info
+ class Info
#
# Load the version from the VERSION file.
#
def self.get_version
@@ -28,8 +28,25 @@
#
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
+end
\ No newline at end of file