gloo 0.7.4 → 0.7.5
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 -0
- data/lib/gloo/app/info.rb +11 -1
- data/lib/gloo/core/gloo_system.rb +9 -0
- data/lib/gloo/help/core/gloo_system.txt +3 -0
- data/lib/gloo/help/objs/dev/git_repo.txt +1 -0
- data/lib/gloo/objs/dev/git.rb +13 -1
- data/lib/gloo/objs/system/file_handle.rb +1 -1
- data/lib/gloo/verbs/execute.rb +1 -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: fcdba5aa6b493f3f3232e5ecce212c6a1721484e0a7b9a2b556a9c8d6079c676
|
4
|
+
data.tar.gz: 4ae56c869dc3030f6dc69e5eab122510b1697fdd863c4063ae2444b517c90ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8147b2d8cdf485f64fc8afff2fd1b68e4a5f0817299288af3db70452ca6f149aa6213c19572711d0d420e78a87ab957e4278a883f27517d0ed761ede4a87652
|
7
|
+
data.tar.gz: d516779527dbf11c70c92d2da87b920fe1e9a9ee81b0c5c392f152bba4e60947045420d63c30d306fa42816b81f9a3f9738f0e31146a0b71d39614ae4027c2c9
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.7.5
|
data/lib/gloo/app/info.rb
CHANGED
@@ -8,7 +8,17 @@ module Gloo
|
|
8
8
|
module App
|
9
9
|
class Info
|
10
10
|
|
11
|
-
|
11
|
+
#
|
12
|
+
# Load the version from the VERSION file.
|
13
|
+
#
|
14
|
+
def self.get_version
|
15
|
+
f = File.dirname( File.absolute_path( __FILE__ ) )
|
16
|
+
f = File.dirname( File.dirname( f ) )
|
17
|
+
f = File.join( f, 'VERSION' )
|
18
|
+
return File.read( f )
|
19
|
+
end
|
20
|
+
|
21
|
+
VERSION = Gloo::App::Info.get_version
|
12
22
|
APP_NAME = 'Gloo'.freeze
|
13
23
|
|
14
24
|
#
|
@@ -181,6 +181,15 @@ module Gloo
|
|
181
181
|
return $settings.log_path
|
182
182
|
end
|
183
183
|
|
184
|
+
# ---------------------------------------------------------------------
|
185
|
+
# Special chars
|
186
|
+
# ---------------------------------------------------------------------
|
187
|
+
|
188
|
+
# Carriage return (line feed)
|
189
|
+
def msg_line
|
190
|
+
return "\n"
|
191
|
+
end
|
192
|
+
|
184
193
|
# ---------------------------------------------------------------------
|
185
194
|
# Screen Messages
|
186
195
|
# ---------------------------------------------------------------------
|
@@ -32,6 +32,9 @@ GLOO SYSTEM OBJECTS
|
|
32
32
|
gloo.hostname # Get the system hostname.
|
33
33
|
gloo.user # Get the logged in User.
|
34
34
|
|
35
|
+
SPECIAL CHARS
|
36
|
+
gloo.line # A carriage return (line feed) character.
|
37
|
+
|
35
38
|
FILE SYSTEM
|
36
39
|
gloo.user_home # Get the user's home directory.
|
37
40
|
gloo.working_dir # Get the working directory.
|
data/lib/gloo/objs/dev/git.rb
CHANGED
@@ -40,7 +40,9 @@ module Gloo
|
|
40
40
|
# Get a list of message names that this object receives.
|
41
41
|
#
|
42
42
|
def self.messages
|
43
|
-
|
43
|
+
actions = %w[validate commit get_branch review]
|
44
|
+
changes = %w[check_changes get_changes]
|
45
|
+
return super + changes + actions
|
44
46
|
end
|
45
47
|
|
46
48
|
#
|
@@ -57,6 +59,16 @@ module Gloo
|
|
57
59
|
$engine.heap.it.set_to branch
|
58
60
|
end
|
59
61
|
|
62
|
+
#
|
63
|
+
# Review pending changes.
|
64
|
+
#
|
65
|
+
def msg_review
|
66
|
+
$log.debug 'Reviewing pending changes'
|
67
|
+
cmd = "cd #{path_value}; git diff"
|
68
|
+
$log.debug cmd
|
69
|
+
system cmd
|
70
|
+
end
|
71
|
+
|
60
72
|
#
|
61
73
|
# Commit pending changes.
|
62
74
|
#
|
data/lib/gloo/verbs/execute.rb
CHANGED
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: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Crane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- exe/gloo
|
203
203
|
- exe/o
|
204
204
|
- gloo.gemspec
|
205
|
+
- lib/VERSION
|
205
206
|
- lib/gloo.rb
|
206
207
|
- lib/gloo/app/args.rb
|
207
208
|
- lib/gloo/app/engine.rb
|