gloo 2.2.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/VERSION_NOTES +20 -0
- data/lib/gloo/app/info.rb +15 -2
- data/lib/gloo/verbs/version.rb +39 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f34d7102d0ca036b885dc482a76bd9e2e69056fd1fc24a94f85b019ad93ae2ec
|
4
|
+
data.tar.gz: b40a76f7f123e27bfa97e4d027cff20f520fecb46c2b11a7f4514817f31a6bfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b70d8504a1fee2ce79639f4dc6e10e51195f5900a92e32666bf26f3233e61d14818346886c818d11c87f0738476f1e994a27742e019adef6bbc8b5f6f0845e83
|
7
|
+
data.tar.gz: 959b01d16677ad6e6e8a873ccea468a3da5c54c15da4734e611bdac188b4f686f187f32d2d29fc49f33af3c13f12f04dbbea8e0a4030bf7c1ee9ac1fbf78bd11
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/lib/VERSION_NOTES
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
2.3.1 - 2023.06.26
|
2
|
+
- Fixes version number stuff.
|
3
|
+
|
4
|
+
|
5
|
+
2.3.0 - 2023.06.26
|
6
|
+
- Adds version notes as option on the version verb.
|
7
|
+
|
8
|
+
|
9
|
+
2.2 - 2023.06.23
|
10
|
+
- Adds color to list output.
|
11
|
+
- Updates in-app help with verb and object lists and shows settings.
|
12
|
+
- Expanded settings with list indent and levels.
|
13
|
+
- Fixes bug with the debug flag from settings.
|
14
|
+
|
15
|
+
2.1 - 2023.05.24
|
16
|
+
- Updates menu to provide convention for simplified usage.
|
17
|
+
|
18
|
+
2.0 - 2023.05.22
|
19
|
+
- Version 2 merges gloo-lang back into a single gloo gem.
|
20
|
+
|
data/lib/gloo/app/info.rb
CHANGED
@@ -10,18 +10,31 @@ module Gloo
|
|
10
10
|
module App
|
11
11
|
class Info
|
12
12
|
|
13
|
+
APP_NAME = 'Gloo'.freeze
|
14
|
+
VERSION_FILE = 'VERSION'.freeze
|
15
|
+
VERSION_NOTES_FILE = 'VERSION_NOTES'.freeze
|
16
|
+
|
13
17
|
#
|
14
18
|
# Load the version from the VERSION file.
|
15
19
|
#
|
16
20
|
def self.get_version
|
17
21
|
f = File.dirname( File.absolute_path( __FILE__ ) )
|
18
22
|
f = File.dirname( File.dirname( f ) )
|
19
|
-
f = File.join( f,
|
23
|
+
f = File.join( f, VERSION_FILE )
|
20
24
|
return File.read( f )
|
21
25
|
end
|
22
26
|
|
23
27
|
VERSION = Gloo::App::Info.get_version
|
24
|
-
|
28
|
+
|
29
|
+
#
|
30
|
+
# Load the version notes from the VERSION_NOTES file.
|
31
|
+
#
|
32
|
+
def self.get_version_notes
|
33
|
+
f = File.dirname( File.absolute_path( __FILE__ ) )
|
34
|
+
f = File.dirname( File.dirname( f ) )
|
35
|
+
f = File.join( f, VERSION_NOTES_FILE )
|
36
|
+
return File.read( f )
|
37
|
+
end
|
25
38
|
|
26
39
|
#
|
27
40
|
# Get the application display title.
|
data/lib/gloo/verbs/version.rb
CHANGED
@@ -10,12 +10,14 @@ module Gloo
|
|
10
10
|
|
11
11
|
KEYWORD = 'version'.freeze
|
12
12
|
KEYWORD_SHORT = 'v'.freeze
|
13
|
+
NOTES = 'notes'.freeze
|
14
|
+
NOTES_SHORT = 'n'.freeze
|
13
15
|
|
14
16
|
#
|
15
17
|
# Run the verb.
|
16
18
|
#
|
17
19
|
def run
|
18
|
-
|
20
|
+
vers_notes? ? show_vers_notes : show_vers
|
19
21
|
end
|
20
22
|
|
21
23
|
#
|
@@ -32,6 +34,42 @@ module Gloo
|
|
32
34
|
return KEYWORD_SHORT
|
33
35
|
end
|
34
36
|
|
37
|
+
|
38
|
+
# ---------------------------------------------------------------------
|
39
|
+
# Private functions
|
40
|
+
# ---------------------------------------------------------------------
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
#
|
45
|
+
# Show basic version numbers.
|
46
|
+
#
|
47
|
+
def show_vers
|
48
|
+
@engine.log.show Gloo::App::Info.full_version
|
49
|
+
@engine.log.show "\nUse `#{KEYWORD} #{NOTES}` to see version notes."
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Show version notes.
|
54
|
+
#
|
55
|
+
def show_vers_notes
|
56
|
+
@engine.log.show "Gloo version notes..."
|
57
|
+
notes = Gloo::App::Info.get_version_notes
|
58
|
+
@engine.platform.show( notes, false, true )
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Is the request to show version notes?
|
63
|
+
#
|
64
|
+
def vers_notes?
|
65
|
+
if ( @tokens.token_count > 1 ) && (
|
66
|
+
( @tokens.last == NOTES ) || ( @tokens.last == NOTES_SHORT ) )
|
67
|
+
return true
|
68
|
+
end
|
69
|
+
|
70
|
+
return false
|
71
|
+
end
|
72
|
+
|
35
73
|
end
|
36
74
|
end
|
37
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gloo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Crane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -270,6 +270,7 @@ files:
|
|
270
270
|
- exe/o
|
271
271
|
- gloo.gemspec
|
272
272
|
- lib/VERSION
|
273
|
+
- lib/VERSION_NOTES
|
273
274
|
- lib/dependencies.rb
|
274
275
|
- lib/gloo.rb
|
275
276
|
- lib/gloo/app/args.rb
|