git_cli_prompt 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -5
- data/Rakefile +1 -1
- data/git_cli_prompt.gemspec +1 -2
- data/lib/commit.rb +3 -6
- data/lib/git_cli_prompt/version.rb +1 -1
- data/lib/push.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80add3df91c6cc3b90064e63b37a50997b2cea41773cb7f638414de890e5a0fa
|
4
|
+
data.tar.gz: 0223e5f621299a44dfd3e16a1f7764b008ab5cd174fdd5151fa6002fd20ade2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d534ae9e6274ee88dd7bfdd7f1b9ce165505a0cc7bf6952adbc834a92572610b22898dfb2ca5cf1cf0849e4c058cee64b28eea28aa870ecf699b029ee97995e
|
7
|
+
data.tar.gz: 1c18a1ef138052a4c8faa913b9110a076c0be6c933c0e9e9d694ebafeebec2c94d01331a091ea833712928a701d7f7f42c71263f7dce5d2bbe757c1bb7d23512
|
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.1.0)
|
5
5
|
tlogger
|
6
6
|
toolrack
|
7
7
|
tty-prompt
|
@@ -10,13 +10,12 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
base58 (0.2.3)
|
13
|
-
|
13
|
+
devops_helper (0.5.0)
|
14
14
|
git_cli
|
15
|
-
git_cli_prompt
|
16
15
|
gvcs
|
17
16
|
tlogger
|
18
17
|
toolrack
|
19
|
-
tty-prompt
|
18
|
+
tty-prompt (= 0.22.0)
|
20
19
|
diff-lcs (1.4.4)
|
21
20
|
git_cli (0.9.0)
|
22
21
|
gvcs
|
@@ -61,7 +60,7 @@ PLATFORMS
|
|
61
60
|
x86_64-linux
|
62
61
|
|
63
62
|
DEPENDENCIES
|
64
|
-
|
63
|
+
devops_helper
|
65
64
|
git_cli_prompt!
|
66
65
|
rake (~> 13.0)
|
67
66
|
rspec (~> 3.0)
|
data/Rakefile
CHANGED
data/git_cli_prompt.gemspec
CHANGED
@@ -35,8 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
spec.add_dependency "tty-prompt"
|
37
37
|
|
38
|
-
|
39
|
-
spec.add_development_dependency "devops_assist"
|
38
|
+
spec.add_development_dependency "devops_helper"
|
40
39
|
|
41
40
|
# Uncomment to register a new dependency of your gem
|
42
41
|
# spec.add_dependency "example-gem", "~> 1.0"
|
data/lib/commit.rb
CHANGED
@@ -28,16 +28,13 @@ 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
|
-
|
34
31
|
if not_empty?(stDir) or not_empty?(stFiles)
|
35
32
|
say " Item(s) already staged for commit: \n"
|
36
33
|
stDir.each do |md|
|
37
|
-
say "
|
34
|
+
say " #{md.path}"
|
38
35
|
end
|
39
36
|
stFiles.each do |md|
|
40
|
-
say "
|
37
|
+
say " #{md.path}"
|
41
38
|
end
|
42
39
|
end
|
43
40
|
|
@@ -56,7 +53,7 @@ module GitCliPrompt
|
|
56
53
|
|
57
54
|
puts
|
58
55
|
|
59
|
-
if not
|
56
|
+
if not pending
|
60
57
|
pmt.say("\n Workspace is clean. No changes or unstage files or directory is found.\n", color: :green)
|
61
58
|
"Workspace is clean. No changes or unstage files or directory is found"
|
62
59
|
|
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.
|
4
|
+
version: 0.2.0
|
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-10-22 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_helper
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|