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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80add3df91c6cc3b90064e63b37a50997b2cea41773cb7f638414de890e5a0fa
4
- data.tar.gz: 0223e5f621299a44dfd3e16a1f7764b008ab5cd174fdd5151fa6002fd20ade2b
3
+ metadata.gz: ce66b1103e34f105fa771673fa87dfadeeb965415fb87695c220ded6a15aa4b5
4
+ data.tar.gz: d4e3d7c9ea2503553e8fe17b2a9ba987639fed22e59c8485d49c70e4d76d48f2
5
5
  SHA512:
6
- metadata.gz: 3d534ae9e6274ee88dd7bfdd7f1b9ce165505a0cc7bf6952adbc834a92572610b22898dfb2ca5cf1cf0849e4c058cee64b28eea28aa870ecf699b029ee97995e
7
- data.tar.gz: 1c18a1ef138052a4c8faa913b9110a076c0be6c933c0e9e9d694ebafeebec2c94d01331a091ea833712928a701d7f7f42c71263f7dce5d2bbe757c1bb7d23512
6
+ metadata.gz: 2d83ad4279f30f1f156cd33dccc75527755fd43c31961a483e394328ad5de9c5bbd05252a6ed47c58afd37b61282678dfc63c40449d5a72808fa6cadb08a51a6
7
+ data.tar.gz: e4988f4bbc6832c3c264b089d9ae23edf9f0328f4ab11fa51597a263f3dfb22b56d58a1370bed26f5c9ecadf3fc91bcf7ff3df324cf47335ad1379defbb329bc
@@ -0,0 +1,4 @@
1
+ ---
2
+ git_cli_prompt:
3
+ - :version: 0.1.2
4
+ :timestamp: 1635828173.1234875
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_cli_prompt (0.1.0)
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
- devops_helper (0.5.0)
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 (= 0.22.0)
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
- devops_helper
64
+ devops_assist
64
65
  git_cli_prompt!
65
66
  rake (~> 13.0)
66
67
  rspec (~> 3.0)
data/Rakefile CHANGED
@@ -5,6 +5,6 @@ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- require 'devops_helper'
8
+ require 'devops_assist'
9
9
 
10
10
  task default: :spec
@@ -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 " #{md.path}"
37
+ say " #{md.path}"
35
38
  end
36
39
  stFiles.each do |md|
37
- say " #{md.path}"
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitCliPrompt
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
data/lib/push.rb CHANGED
@@ -3,6 +3,8 @@ module GitCliPrompt
3
3
  module Push
4
4
  include TR::CondUtils
5
5
  include CliPrompt
6
+
7
+ class PushError < StandardError; end
6
8
 
7
9
  def push(root, &block)
8
10
 
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.0
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-10-22 00:00:00.000000000 Z
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: devops_helper
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