git-branch-delete-orphans 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.0.5
4
+
5
+ * Highlight branch. PR [#5][] by [@pvdb][]
6
+
7
+ ## Version 0.0.4
8
+
9
+ * Better prompt for user actions. PR [#3][] by [@pvdb][]
10
+ * Handle signals: TERM and INT. PR [#4][] by [@pvdb][]
11
+
3
12
  ## Version 0.0.3
4
13
 
5
14
  * Ruby 1.9 compatibility PR [#2][] by [@waynemoore][]
@@ -15,5 +24,9 @@
15
24
  * Initial version by [@pcreux][]
16
25
  <!--- The following link definition list is generated by PimpMyChangelog --->
17
26
  [#2]: https://github.com/pcreux/git/issues/2
27
+ [#3]: https://github.com/pcreux/git/issues/3
28
+ [#4]: https://github.com/pcreux/git/issues/4
29
+ [#5]: https://github.com/pcreux/git/issues/5
18
30
  [@pcreux]: https://github.com/pcreux
31
+ [@pvdb]: https://github.com/pvdb
19
32
  [@waynemoore]: https://github.com/waynemoore
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'rubygems'
4
+ require 'rainbow'
5
+
3
6
  ['TERM', 'INT'].each do |signal|
4
7
  Signal.trap(signal) do
5
8
  # most likely, users will CTRL-C when being prompted
@@ -37,7 +40,7 @@ def cli(orphans)
37
40
  keep = false
38
41
  until delete || delete_all || keep || keep_all
39
42
  puts ""
40
- puts "#{b} tracks a remote branch which does not exist anymore."
43
+ puts "Branch #{b.bright} tracks a remote branch which does not exist anymore."
41
44
  print "Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all? "
42
45
  case STDIN.gets.chomp
43
46
  when 'd' then delete = true
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
  # specify any dependencies here; for example:
22
22
  # s.add_development_dependency "rspec"
23
23
  # s.add_runtime_dependency "rest-client"
24
+ s.add_runtime_dependency "rainbow"
24
25
  end
@@ -2,7 +2,7 @@ module Git
2
2
  module Branch
3
3
  module Delete
4
4
  module Orphans
5
- VERSION = "0.0.4"
5
+ VERSION = "0.0.5"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-branch-delete-orphans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-12 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-07-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rainbow
16
+ requirement: &70159208269120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70159208269120
14
25
  description: ! '`git branch-delete-orphans` lists orphan tracking branches and prompts
15
26
  you to delete or keep them.'
16
27
  email: