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 +4 -4
- data/.release_history.yml +4 -0
- data/Gemfile.lock +23 -24
- data/git_cli_prompt.gemspec +2 -1
- data/lib/commit.rb +7 -2
- data/lib/git_cli_prompt/logger.rb +2 -1
- data/lib/git_cli_prompt/version.rb +1 -1
- data/lib/git_cli_prompt.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed49c6d6cdb6d97a8ee4ec11ec1b74dc34c1c4c67e0a1a6b16f0d09e4bc119b
|
4
|
+
data.tar.gz: d8e561ffa2fd041464f0759f96d9f5a3ce7f4b982b91aadee949700995aca5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28fc64c809a5c19ac376bae794b88e992f78ffef17e5b99d7904237bb1dd9b2116cff503e455624f9d3f7686c2b0507890ebfdf047910902aca2c4b788b34510
|
7
|
+
data.tar.gz: b122fea4f90a52cdde45b06ede2eff7018a53f327975ffbf9f1df2bb5b2be6179f771a06e84139410787cde1040409687212bcea81cbcd5f114cbe11493a6303
|
data/.release_history.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_cli_prompt (0.
|
5
|
-
|
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.
|
13
|
+
devops_assist (0.3.4)
|
14
14
|
git_cli
|
15
15
|
git_cli_prompt
|
16
16
|
gvcs
|
17
|
-
|
17
|
+
teLogger
|
18
18
|
toolrack
|
19
19
|
tty-prompt
|
20
|
-
diff-lcs (1.
|
21
|
-
git_cli (0.
|
20
|
+
diff-lcs (1.5.0)
|
21
|
+
git_cli (0.11.2)
|
22
22
|
gvcs
|
23
23
|
ptools (~> 1.4.0)
|
24
|
-
|
24
|
+
teLogger
|
25
25
|
toolrack
|
26
|
-
gvcs (0.1.
|
26
|
+
gvcs (0.1.1)
|
27
27
|
pastel (0.8.0)
|
28
28
|
tty-color (~> 0.5)
|
29
|
-
ptools (1.4.
|
29
|
+
ptools (1.4.3)
|
30
30
|
rake (13.0.6)
|
31
|
-
rspec (3.
|
32
|
-
rspec-core (~> 3.
|
33
|
-
rspec-expectations (~> 3.
|
34
|
-
rspec-mocks (~> 3.
|
35
|
-
rspec-core (3.
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-expectations (3.
|
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.
|
40
|
-
rspec-mocks (3.
|
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.
|
43
|
-
rspec-support (3.
|
44
|
-
|
45
|
-
toolrack (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.
|
49
|
+
tty-prompt (0.23.1)
|
51
50
|
pastel (~> 0.8)
|
52
51
|
tty-reader (~> 0.8)
|
53
52
|
tty-reader (0.9.0)
|
data/git_cli_prompt.gemspec
CHANGED
@@ -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
|
|
data/lib/git_cli_prompt.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2023-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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.
|
110
|
+
rubygems_version: 3.4.6
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: ''
|