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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 393e3dd91cbff1c835d60fb5dd450e7026222c33c843378c072efd849aa90245
4
- data.tar.gz: 95ad2a9a1145842bb5773f4c191e9435ea297446160832c84389e9fc92a18475
3
+ metadata.gz: 80add3df91c6cc3b90064e63b37a50997b2cea41773cb7f638414de890e5a0fa
4
+ data.tar.gz: 0223e5f621299a44dfd3e16a1f7764b008ab5cd174fdd5151fa6002fd20ade2b
5
5
  SHA512:
6
- metadata.gz: 33c85b162163e2c725de3df1717ec8f32b3f796cfd4589812040827f1ac496bfb925b81d50a068007b934d4821c96c16da76d4dbd368ec6dfb12ecb9547d6e20
7
- data.tar.gz: d9326f91c317bc216363692ca45324871bfb50dd435baee45ebc8866cf6436d3e8be5933445873c4419fa5a2f5a1d7d8e672d3c08715b5a090cdd2abacff22df
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.2)
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
- devops_assist (0.1.1)
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
- devops_assist
63
+ devops_helper
65
64
  git_cli_prompt!
66
65
  rake (~> 13.0)
67
66
  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_assist'
8
+ require 'devops_helper'
9
9
 
10
10
  task default: :spec
@@ -35,8 +35,7 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.add_dependency "tty-prompt"
37
37
 
38
- #spec.add_development_dependency "devops_helper"
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 " #{md.path}"
34
+ say " #{md.path}"
38
35
  end
39
36
  stFiles.each do |md|
40
- say " #{md.path}"
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 (pending and staged)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitCliPrompt
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
data/lib/push.rb CHANGED
@@ -3,8 +3,6 @@ module GitCliPrompt
3
3
  module Push
4
4
  include TR::CondUtils
5
5
  include CliPrompt
6
-
7
- class PushError < StandardError; end
8
6
 
9
7
  def push(root, &block)
10
8
 
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.1.2
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-02 00:00:00.000000000 Z
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: devops_assist
56
+ name: devops_helper
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="