git_cli_prompt 0.3.1 → 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/Gemfile.lock +22 -24
- data/git_cli_prompt.gemspec +47 -0
- data/lib/commit.rb +7 -2
- data/lib/git_cli_prompt/version.rb +1 -1
- metadata +4 -3
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/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_cli_prompt (0.3.
|
4
|
+
git_cli_prompt (0.3.2)
|
5
5
|
teLogger
|
6
6
|
toolrack
|
7
7
|
tty-prompt
|
@@ -10,45 +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
|
-
teLogger (0.2.
|
45
|
-
|
46
|
-
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)
|
47
46
|
base58
|
48
|
-
tlogger
|
49
47
|
tty-color (0.6.0)
|
50
48
|
tty-cursor (0.7.1)
|
51
|
-
tty-prompt (0.
|
49
|
+
tty-prompt (0.23.1)
|
52
50
|
pastel (~> 0.8)
|
53
51
|
tty-reader (~> 0.8)
|
54
52
|
tty-reader (0.9.0)
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/git_cli_prompt/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "git_cli_prompt"
|
7
|
+
spec.version = GitCliPrompt::VERSION
|
8
|
+
spec.authors = ["Chris Liaw"]
|
9
|
+
spec.email = ["chrisliaw@antrapol.com"]
|
10
|
+
|
11
|
+
spec.summary = ""
|
12
|
+
spec.description = ""
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.required_ruby_version = ">= 2.4.0"
|
15
|
+
|
16
|
+
#spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
|
+
|
18
|
+
#spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
#spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
20
|
+
#spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
#spec.add_dependency "tlogger"
|
34
|
+
spec.add_dependency "teLogger"
|
35
|
+
spec.add_dependency "toolrack"
|
36
|
+
|
37
|
+
spec.add_dependency "tty-prompt"
|
38
|
+
|
39
|
+
#spec.add_development_dependency "devops_helper"
|
40
|
+
spec.add_development_dependency "devops_assist"
|
41
|
+
|
42
|
+
# Uncomment to register a new dependency of your gem
|
43
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
44
|
+
|
45
|
+
# For more information and examples about making a new gem, checkout our
|
46
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
47
|
+
end
|
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
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_cli_prompt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
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
14
|
name: teLogger
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- Rakefile
|
82
82
|
- bin/console
|
83
83
|
- bin/setup
|
84
|
+
- git_cli_prompt.gemspec
|
84
85
|
- lib/commit.rb
|
85
86
|
- lib/git_cli_prompt.rb
|
86
87
|
- lib/git_cli_prompt/cli_prompt.rb
|
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
107
|
- !ruby/object:Gem::Version
|
107
108
|
version: '0'
|
108
109
|
requirements: []
|
109
|
-
rubygems_version: 3.
|
110
|
+
rubygems_version: 3.4.6
|
110
111
|
signing_key:
|
111
112
|
specification_version: 4
|
112
113
|
summary: ''
|