cp8_cli 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52294a714b6bd0654d9cb7f60eb97a286ba8c152
4
- data.tar.gz: 18ef704f6df37d5866ccde786ee27e712f253508
3
+ metadata.gz: 0fb973d335c95c0f39cd87682a2cf0744f370ef5
4
+ data.tar.gz: '0591d5691b5d1873860e3615836871382ce23202'
5
5
  SHA512:
6
- metadata.gz: 6f785602e968326fd1686181205530c3fcaa026a5d81e7ec5cad97e06653c02a98a7c746479281cb526d4dddd6f945017b52472c22bc872c06cfa35a83d5c160
7
- data.tar.gz: 147d685bf54fb2cc96601c07f731e9328b58f0ee771cb0b6046439a6076098783f800c63f6d63e49ed050881b6cf10005a45145262cc1ca20644c30cf37425f5
6
+ metadata.gz: 69f468d72ef551fd4165b4c10905a195e1267a8cdbb0dd089ddc3e93f07b2d523fcd3e6d247e5e53103e2998b16577310f338c71497093929116dea4cc003fa8
7
+ data.tar.gz: 3d0121108803661191a0ef58d2df44596d9e2d49c95333d9f67deda9b0a8eac3cbe0795230f82f1ff0bf9ba0eb59ede6e361a9e8a5f1d59e24dcbe5d508ba8cc
data/exe/git-cleanup CHANGED
@@ -4,5 +4,4 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
4
 
5
5
  require "cp8_cli"
6
6
 
7
- puts "git cleanup is DEPRECATED, please use cp8 cleanup".red
8
- Cp8Cli::Main.new.cleanup
7
+ Cp8Cli::Command.error "cleanup command has been removed, consider using https://github.com/Seinh/git-prune instead?"
data/lib/cp8_cli/main.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "cp8_cli/version"
2
2
  require "cp8_cli/global_config"
3
- require "cp8_cli/commands/cleanup"
4
3
  require "cp8_cli/commands/start"
5
4
  require "cp8_cli/commands/submit"
6
5
  require "cp8_cli/commands/suggest"
@@ -31,9 +30,5 @@ module Cp8Cli
31
30
  def suggest
32
31
  Commands::Suggest.new.run
33
32
  end
34
-
35
- def cleanup
36
- Commands::Cleanup.new.run
37
- end
38
33
  end
39
34
  end
@@ -1,5 +1,5 @@
1
1
  module Cp8Cli
2
- VERSION = "5.0.0"
2
+ VERSION = "6.0.0"
3
3
 
4
4
  class Version
5
5
  def self.latest?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp8_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -307,7 +307,6 @@ files:
307
307
  - lib/cp8_cli/branch_name.rb
308
308
  - lib/cp8_cli/ci.rb
309
309
  - lib/cp8_cli/command.rb
310
- - lib/cp8_cli/commands/cleanup.rb
311
310
  - lib/cp8_cli/commands/start.rb
312
311
  - lib/cp8_cli/commands/submit.rb
313
312
  - lib/cp8_cli/commands/suggest.rb
@@ -1,36 +0,0 @@
1
- module Cp8Cli
2
- module Commands
3
- class Cleanup
4
- def run
5
- Command.title "Cleaning merged story branches for [#{target}]"
6
- update_remotes
7
- remove_fully_merged_local_branches
8
- remove_fully_merged_remote_branches
9
- Command.success "Deleted branches merged with [#{target}]"
10
- end
11
-
12
- private
13
-
14
- def target
15
- @_target ||= Branch.current.target
16
- end
17
-
18
- def update_remotes
19
- Command.run "git fetch"
20
- Command.run "git remote prune origin"
21
- end
22
-
23
- def remove_fully_merged_local_branches
24
- Command.run "git branch --merged origin/#{target} | grep '#{filter}' | xargs git branch -D"
25
- end
26
-
27
- def remove_fully_merged_remote_branches
28
- Command.run "git branch -r --merged origin/#{target} | sed 's/ *origin\\///' | grep '#{filter}' | xargs -I% git push origin :%"
29
- end
30
-
31
- def filter
32
- "\\.#{target}\\."
33
- end
34
- end
35
- end
36
- end