git_cli_prompt 0.2.2 → 0.3.2

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
  SHA256:
3
- metadata.gz: 72d21c5ee4f2947afc05438cbc109f1980fd3b769e110416403e6b3fd83dafb7
4
- data.tar.gz: 1f20e4705ef0128e50248e296d70ae1ed00f37e0b9e3dfdad3f599b0edbb590c
3
+ metadata.gz: 5ed49c6d6cdb6d97a8ee4ec11ec1b74dc34c1c4c67e0a1a6b16f0d09e4bc119b
4
+ data.tar.gz: d8e561ffa2fd041464f0759f96d9f5a3ce7f4b982b91aadee949700995aca5d9
5
5
  SHA512:
6
- metadata.gz: 85efa3c204ec2f1093f3f30eac8b8d08c656346384b9b1176a93ac7995b747c5db74fde4d1112474d8c4c82488200177d59cf67461dcb6fb9157d9bd10184b94
7
- data.tar.gz: 37539b3af0ead43e1df434cab6e86215a9e78a733a879738de336bb489f10560813b0d8b8ae76eb400f38ded158ca6f53bcdd4789670975b0cc4a5631d6b5287
6
+ metadata.gz: 28fc64c809a5c19ac376bae794b88e992f78ffef17e5b99d7904237bb1dd9b2116cff503e455624f9d3f7686c2b0507890ebfdf047910902aca2c4b788b34510
7
+ data.tar.gz: b122fea4f90a52cdde45b06ede2eff7018a53f327975ffbf9f1df2bb5b2be6179f771a06e84139410787cde1040409687212bcea81cbcd5f114cbe11493a6303
data/.release_history.yml CHANGED
@@ -4,3 +4,7 @@ git_cli_prompt:
4
4
  :timestamp: 1635828173.1234875
5
5
  - :version: 0.2.1
6
6
  :timestamp: 1635828282.1326017
7
+ - :version: 0.2.2
8
+ :timestamp: 1635927168.4486034
9
+ - :version: 0.3.0
10
+ :timestamp: 1661971996.7526693
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_cli_prompt (0.2.2)
5
- tlogger
4
+ git_cli_prompt (0.3.2)
5
+ teLogger
6
6
  toolrack
7
7
  tty-prompt
8
8
 
@@ -10,44 +10,43 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  base58 (0.2.3)
13
- devops_assist (0.1.1)
13
+ devops_assist (0.3.4)
14
14
  git_cli
15
15
  git_cli_prompt
16
16
  gvcs
17
- tlogger
17
+ teLogger
18
18
  toolrack
19
19
  tty-prompt
20
- diff-lcs (1.4.4)
21
- git_cli (0.9.0)
20
+ diff-lcs (1.5.0)
21
+ git_cli (0.11.2)
22
22
  gvcs
23
23
  ptools (~> 1.4.0)
24
- tlogger
24
+ teLogger
25
25
  toolrack
26
- gvcs (0.1.0)
26
+ gvcs (0.1.1)
27
27
  pastel (0.8.0)
28
28
  tty-color (~> 0.5)
29
- ptools (1.4.2)
29
+ ptools (1.4.3)
30
30
  rake (13.0.6)
31
- rspec (3.10.0)
32
- rspec-core (~> 3.10.0)
33
- rspec-expectations (~> 3.10.0)
34
- rspec-mocks (~> 3.10.0)
35
- rspec-core (3.10.1)
36
- rspec-support (~> 3.10.0)
37
- rspec-expectations (3.10.1)
31
+ rspec (3.12.0)
32
+ rspec-core (~> 3.12.0)
33
+ rspec-expectations (~> 3.12.0)
34
+ rspec-mocks (~> 3.12.0)
35
+ rspec-core (3.12.1)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-expectations (3.12.2)
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.10.0)
40
- rspec-mocks (3.10.2)
39
+ rspec-support (~> 3.12.0)
40
+ rspec-mocks (3.12.4)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.10.0)
43
- rspec-support (3.10.2)
44
- tlogger (0.26.1)
45
- toolrack (0.16.0)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-support (3.12.0)
44
+ teLogger (0.2.2)
45
+ toolrack (0.20.2)
46
46
  base58
47
- tlogger
48
47
  tty-color (0.6.0)
49
48
  tty-cursor (0.7.1)
50
- tty-prompt (0.22.0)
49
+ tty-prompt (0.23.1)
51
50
  pastel (~> 0.8)
52
51
  tty-reader (~> 0.8)
53
52
  tty-reader (0.9.0)
@@ -30,7 +30,8 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "tlogger"
33
+ #spec.add_dependency "tlogger"
34
+ spec.add_dependency "teLogger"
34
35
  spec.add_dependency "toolrack"
35
36
 
36
37
  spec.add_dependency "tty-prompt"
data/lib/commit.rb CHANGED
@@ -110,9 +110,14 @@ module GitCliPrompt
110
110
  end
111
111
 
112
112
 
113
- rescue TTY::Reader::InputInterrupt
113
+ rescue TTY::Reader::InputInterrupt => ex
114
114
  ok "\n\n Aborted"
115
115
 
116
+ if block
117
+ th = block.call(:raise_to_parent)
118
+ raise ex if is_bool?(th)
119
+ end
120
+
116
121
  #rescue UserChangedMind
117
122
  # ok "\n Noted. Please retry the process again\n"
118
123
 
@@ -184,7 +189,7 @@ module GitCliPrompt
184
189
  defMsg = block.call(:default_commit_message)
185
190
  end
186
191
 
187
- msg = pmt.ask(" Commit Message :", required: true) do |m|
192
+ msg = pmt.ask("\n Commit Message : ", required: true) do |m|
188
193
  m.default = defMsg if not_empty?(defMsg)
189
194
  end
190
195
 
@@ -1,5 +1,6 @@
1
1
 
2
- require 'tlogger'
2
+ require 'teLogger'
3
+ include TeLogger
3
4
 
4
5
  module GitCliPrompt
5
6
  module Logger
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitCliPrompt
4
- VERSION = "0.2.2"
4
+ VERSION = "0.3.2"
5
5
  end
@@ -1,8 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'tlogger'
3
+ #require 'tlogger'
4
+ require 'teLogger'
4
5
  require 'toolrack'
5
6
 
7
+ include TeLogger
8
+
6
9
  require 'gvcs'
7
10
  require 'git_cli'
8
11
 
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_cli_prompt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2023-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: tlogger
14
+ name: teLogger
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.2.22
110
+ rubygems_version: 3.4.6
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: ''