gloo-lang 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/VERSION +1 -1
- data/lib/gloo_lang/app/info.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b770d777cc2d3700fd6424ff1a150cd793aa111e89d22d519b2eb3c378e9498
|
4
|
+
data.tar.gz: 136de9811491851ffb46b8b630cb0a350cf46fcbb77045fe3be25a018ac160d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e79fd61865248c8091eae5d71685f5073159537b65535efcf2aec0d2c7d05d3af6894987397ef704c378d36b940f55a7198ccc547509e7ed9b63f81a7e1778f3
|
7
|
+
data.tar.gz: ead904b8714aad9a1dd100166a81d58f8c168a6f42b687ca2116f684d394d1d2cb59b6e5339df3783626ccd227a1ebf51794884e7dbeb0f037c02c82d4c7f752
|
data/Gemfile.lock
CHANGED
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.4
|
data/lib/gloo_lang/app/info.rb
CHANGED
@@ -8,6 +8,14 @@ module GlooLang
|
|
8
8
|
module App
|
9
9
|
class Info
|
10
10
|
|
11
|
+
#
|
12
|
+
# Register other Info classes when they are loaded.
|
13
|
+
#
|
14
|
+
def self.inherited( subclass )
|
15
|
+
$infos = [] unless $infos
|
16
|
+
$infos << subclass
|
17
|
+
end
|
18
|
+
|
11
19
|
#
|
12
20
|
# Load the version from the VERSION file.
|
13
21
|
#
|
@@ -28,6 +36,32 @@ module GlooLang
|
|
28
36
|
return "#{APP_NAME}, version #{VERSION}"
|
29
37
|
end
|
30
38
|
|
39
|
+
#
|
40
|
+
# Get the full application version information,
|
41
|
+
# including engine version.
|
42
|
+
#
|
43
|
+
def self.full_version
|
44
|
+
str = "#{display_title}"
|
45
|
+
if $infos
|
46
|
+
$infos.each do |o|
|
47
|
+
str << "\n#{o.display_title}"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
return str
|
51
|
+
end
|
52
|
+
|
31
53
|
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Add the ruby version information.
|
57
|
+
#
|
58
|
+
class RubyInfo < Info
|
59
|
+
|
60
|
+
def self.display_title
|
61
|
+
return "Ruby version: #{RUBY_VERSION}"
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
32
66
|
end
|
33
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gloo-lang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Crane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|