git_cli_prompt 0.2.0 → 0.2.1
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 +5 -4
- data/Rakefile +1 -1
- data/git_cli_prompt.gemspec +2 -1
- data/lib/commit.rb +6 -3
- data/lib/git_cli_prompt/version.rb +1 -1
- data/lib/push.rb +2 -0
- 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: ce66b1103e34f105fa771673fa87dfadeeb965415fb87695c220ded6a15aa4b5
|
4
|
+
data.tar.gz: d4e3d7c9ea2503553e8fe17b2a9ba987639fed22e59c8485d49c70e4d76d48f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d83ad4279f30f1f156cd33dccc75527755fd43c31961a483e394328ad5de9c5bbd05252a6ed47c58afd37b61282678dfc63c40449d5a72808fa6cadb08a51a6
|
7
|
+
data.tar.gz: e4988f4bbc6832c3c264b089d9ae23edf9f0328f4ab11fa51597a263f3dfb22b56d58a1370bed26f5c9ecadf3fc91bcf7ff3df324cf47335ad1379defbb329bc
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_cli_prompt (0.1
|
4
|
+
git_cli_prompt (0.2.1)
|
5
5
|
tlogger
|
6
6
|
toolrack
|
7
7
|
tty-prompt
|
@@ -10,12 +10,13 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
base58 (0.2.3)
|
13
|
-
|
13
|
+
devops_assist (0.1.1)
|
14
14
|
git_cli
|
15
|
+
git_cli_prompt
|
15
16
|
gvcs
|
16
17
|
tlogger
|
17
18
|
toolrack
|
18
|
-
tty-prompt
|
19
|
+
tty-prompt
|
19
20
|
diff-lcs (1.4.4)
|
20
21
|
git_cli (0.9.0)
|
21
22
|
gvcs
|
@@ -60,7 +61,7 @@ PLATFORMS
|
|
60
61
|
x86_64-linux
|
61
62
|
|
62
63
|
DEPENDENCIES
|
63
|
-
|
64
|
+
devops_assist
|
64
65
|
git_cli_prompt!
|
65
66
|
rake (~> 13.0)
|
66
67
|
rspec (~> 3.0)
|
data/Rakefile
CHANGED
data/git_cli_prompt.gemspec
CHANGED
@@ -35,7 +35,8 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
spec.add_dependency "tty-prompt"
|
37
37
|
|
38
|
-
spec.add_development_dependency "devops_helper"
|
38
|
+
#spec.add_development_dependency "devops_helper"
|
39
|
+
spec.add_development_dependency "devops_assist"
|
39
40
|
|
40
41
|
# Uncomment to register a new dependency of your gem
|
41
42
|
# spec.add_dependency "example-gem", "~> 1.0"
|
data/lib/commit.rb
CHANGED
@@ -28,13 +28,16 @@ module GitCliPrompt
|
|
28
28
|
pending = false
|
29
29
|
pending = true if not_empty?(modDir) or not_empty?(modFiles) or not_empty?(newDir) or not_empty?(newFiles) or not_empty?(delDir) or not_empty?(delFiles)
|
30
30
|
|
31
|
+
staged = false
|
32
|
+
staged = true if not_empty?(stDir) or not_empty?(stFiles)
|
33
|
+
|
31
34
|
if not_empty?(stDir) or not_empty?(stFiles)
|
32
35
|
say " Item(s) already staged for commit: \n"
|
33
36
|
stDir.each do |md|
|
34
|
-
say "
|
37
|
+
say " #{md.path}"
|
35
38
|
end
|
36
39
|
stFiles.each do |md|
|
37
|
-
say "
|
40
|
+
say " #{md.path}"
|
38
41
|
end
|
39
42
|
end
|
40
43
|
|
@@ -53,7 +56,7 @@ module GitCliPrompt
|
|
53
56
|
|
54
57
|
puts
|
55
58
|
|
56
|
-
if not pending
|
59
|
+
if not (pending and staged)
|
57
60
|
pmt.say("\n Workspace is clean. No changes or unstage files or directory is found.\n", color: :green)
|
58
61
|
"Workspace is clean. No changes or unstage files or directory is found"
|
59
62
|
|
data/lib/push.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.1
|
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
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tlogger
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: devops_assist
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -73,6 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".release_history.yml"
|
76
77
|
- ".rspec"
|
77
78
|
- Gemfile
|
78
79
|
- Gemfile.lock
|