nd-shell_scripts 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 648319c71300d343e3485c4da24fbed2ff200a65
4
- data.tar.gz: 6da2b0eb5976f833ae5d4b191266d3c89c86fe59
3
+ metadata.gz: e65116073b428403aa051e8f10cad56331a32653
4
+ data.tar.gz: 240f1e38d1656b921ed77c9ea4307b284f4d27ed
5
5
  SHA512:
6
- metadata.gz: 8a8cc6caf7324d47e30e877f4ec8a6809ba2bc11fc5151e4e794ceaba9afa52f96fbc3e20a323546ff6ae87e912dc2428a07f490ff9e158a831df6a77582b8c1
7
- data.tar.gz: 5f3406d8adf53e90de28dc84ac9f855bb727bf56ab331d3c03d723d5841525d4691ccba0bd41fd775927dbc8742475b7591f58d13e45b78b59eee85a8b975b16
6
+ metadata.gz: 0384bfd3e148863650686678bc4f9d19a6ef3da35618850a99f5e6089e359008dfe23e6a05ec52a80953be518ea669c567febdf5828b71b4e736915913cdda51
7
+ data.tar.gz: b7d13a41d5337563b8fea940c26d10ec7b958a2ae6faac6cfc3a78006da957b8c755957bfefdf4b1b3fd26e4f14821bac718d200760f055f10837545f643c527
data/exe/colorized_prompt CHANGED
@@ -39,4 +39,4 @@ puts [
39
39
  git_branch.light_cyan,
40
40
  time.white,
41
41
  ">"
42
- ].join(' ')
42
+ ].join(' ') + ' '
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative '../lib/nd/shell_scripts'
3
+ include Nd::ShellScripts
3
4
 
4
5
  gem_list = `gem list`
5
6
 
data/exe/gc CHANGED
@@ -2,14 +2,22 @@
2
2
  require_relative '../lib/nd/shell_scripts'
3
3
  include Nd::ShellScripts
4
4
 
5
- total_time = `rpt commit_time`.gsub('"','')
5
+ def record_commit_in_harvest_app(args, total_time)
6
+ if command_exists? 'hcl'
7
+ `hcl note "
8
+
9
+ COMMIT: #{args} #{total_time}"`
10
+ end
11
+ end
6
12
 
7
- record_commit_in_harvest_app(args, total_time)
8
13
 
9
- execute_and_record "git commit -m \"#{args} #{total_time}\""
10
14
 
11
15
 
16
+ total_time = `rpt commit_time`.gsub('"','')
12
17
 
18
+ record_commit_in_harvest_app(args, total_time)
19
+
20
+ execute_and_record "git commit -m \"#{args} #{total_time}\""
13
21
 
14
22
 
15
23
 
@@ -17,10 +25,4 @@ execute_and_record "git commit -m \"#{args} #{total_time}\""
17
25
 
18
26
 
19
27
 
20
- def record_commit_in_harvest_app(args, total_time)
21
- if command_exists? 'hcl'
22
- `hcl note "
23
28
 
24
- COMMIT: #{args} #{total_time}"`
25
- end
26
- end
@@ -1,5 +1,5 @@
1
1
  module Nd
2
2
  module ShellScripts
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nd-shell_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neurodynamic