grb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +2 -0
  2. data/TODO +1 -0
  3. data/VERSION +1 -1
  4. data/lib/grb.rb +10 -3
  5. metadata +8 -8
@@ -21,6 +21,8 @@
21
21
  $ grb push [branch] [--explain]
22
22
  * create new branch `branch`
23
23
  $ grb new [branch] [--explain]
24
+ * prune dead remote branches
25
+ $ grb prune
24
26
 
25
27
  Copyright (c) 2009-present MIT
26
28
 
data/TODO CHANGED
@@ -11,3 +11,4 @@ grb
11
11
  pull fetch
12
12
 
13
13
  push publish
14
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/grb.rb CHANGED
@@ -58,7 +58,7 @@ class Grb
58
58
  :desc => "=> pull branch `branch`,default current_branch\ngrb pull [branch] [--explain]",
59
59
  :commands => [
60
60
  '"#{GIT} fetch #{origin}"',
61
- 'if local_branches.include?(branch)
61
+ 'if local_branches.include?(branch)
62
62
  "#{GIT} config branch.#{branch}.remote #{origin}\n" +
63
63
  "#{GIT} config branch.#{branch}.merge refs/heads/#{branch}"
64
64
  else
@@ -91,7 +91,14 @@ class Grb
91
91
  :commands => [
92
92
  '"#{GIT} remote rm #{branch}"',
93
93
  ]
94
- }
94
+ },
95
+
96
+ :prune => {
97
+ :desc => "=> prunes the remote branches from the list\ngrb prune",
98
+ :commands => [
99
+ '"#{GIT} remote prune #{origin}"',
100
+ ]
101
+ }
95
102
  }
96
103
 
97
104
  def self.parse(opt)
@@ -100,7 +107,7 @@ class Grb
100
107
 
101
108
  COMMANDS[opt[:command].to_sym][:commands].map {|x| exec_cmd(eval(x))}
102
109
  else
103
- help
110
+ help
104
111
  end
105
112
  end
106
113
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jinzhu Zhang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-20 00:00:00 +08:00
18
+ date: 2011-04-08 00:00:00 +08:00
19
19
  default_executable: grb
20
20
  dependencies: []
21
21
 
@@ -39,8 +39,8 @@ homepage: http://github.com/jinzhu/grb
39
39
  licenses: []
40
40
 
41
41
  post_install_message:
42
- rdoc_options:
43
- - --charset=UTF-8
42
+ rdoc_options: []
43
+
44
44
  require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project:
67
- rubygems_version: 1.3.7
67
+ rubygems_version: 1.4.2
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: A tool to simplify working with remote branches