gloo 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86384bdaceb688e8ce21ccceea1d51795bc76f1e8db187f04caed2dcd87ec7fb
4
- data.tar.gz: 4770f98bdbc6529e89c6a613f2aadff646210aa3574f132c84bdaea017febc65
3
+ metadata.gz: fcdba5aa6b493f3f3232e5ecce212c6a1721484e0a7b9a2b556a9c8d6079c676
4
+ data.tar.gz: 4ae56c869dc3030f6dc69e5eab122510b1697fdd863c4063ae2444b517c90ab8
5
5
  SHA512:
6
- metadata.gz: 8e99639d6828f815a891d55478e494624e2306aac02e445294d39919f10570fa800da6535702f67e5c011d44e926ba08791ed4bde0876643561c3fe66e32cef7
7
- data.tar.gz: b1c5b4580804e77c80f50814f6d5b743450007b8896c721f1f11dd2c9bc4c1375f0ea28e8a5180a7bb6d070e311dba3d4c485af4300b040b675988152e26958b
6
+ metadata.gz: e8147b2d8cdf485f64fc8afff2fd1b68e4a5f0817299288af3db70452ca6f149aa6213c19572711d0d420e78a87ab957e4278a883f27517d0ed761ede4a87652
7
+ data.tar.gz: d516779527dbf11c70c92d2da87b920fe1e9a9ee81b0c5c392f152bba4e60947045420d63c30d306fa42816b81f9a3f9738f0e31146a0b71d39614ae4027c2c9
@@ -0,0 +1 @@
1
+ 0.7.5
@@ -8,7 +8,17 @@ module Gloo
8
8
  module App
9
9
  class Info
10
10
 
11
- VERSION = '0.7.4'.freeze
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.
@@ -16,6 +16,7 @@ GIT OBJECT TYPE
16
16
  get_changes - Get the list of pending changes.
17
17
  commit - Commit changes.
18
18
  get_branch - Get the current branch.
19
+ review - Review pending changes.
19
20
 
20
21
  EXAMPLE
21
22
 
@@ -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
- return super + %w[validate check_changes get_changes commit get_branch]
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
  #
@@ -129,7 +129,7 @@ module Gloo
129
129
  # Look for any file matching pattern.
130
130
  #
131
131
  def msg_find_match
132
- result = ! Dir.glob( value ).empty?
132
+ result = !Dir.glob( value ).empty?
133
133
  $engine.heap.it.set_to result
134
134
  end
135
135
 
@@ -27,7 +27,7 @@ module Gloo
27
27
 
28
28
  pid = fork { exec( cmd ) }
29
29
  Process.wait pid
30
-
30
+
31
31
  # pid = spawn cmd
32
32
  # Process.wait pid
33
33
  $log.debug "done executing cmd: #{cmd}"
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
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-12 00:00:00.000000000 Z
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