grb 0.2.3 → 0.3.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.
- data/grb.gemspec +3 -3
- data/lib/grb.rb +18 -3
- data/lib/version.rb +1 -1
- metadata +14 -6
data/grb.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{grb}
|
|
5
|
-
s.version = "0.
|
|
5
|
+
s.version = "0.3.0"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Jinzhu Zhang"]
|
|
9
|
-
s.date = %q{
|
|
9
|
+
s.date = %q{2010-02-28}
|
|
10
10
|
s.default_executable = %q{grb}
|
|
11
11
|
s.description = %q{grb}
|
|
12
12
|
s.email = %q{wosmvp@gmail.com}
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Grb", "--main", "README.rdoc"]
|
|
18
18
|
s.require_paths = ["lib"]
|
|
19
19
|
s.rubyforge_project = %q{grb}
|
|
20
|
-
s.rubygems_version = %q{1.3.
|
|
20
|
+
s.rubygems_version = %q{1.3.6}
|
|
21
21
|
s.summary = %q{grb}
|
|
22
22
|
|
|
23
23
|
if s.respond_to? :specification_version then
|
data/lib/grb.rb
CHANGED
|
@@ -70,12 +70,27 @@ class Grb
|
|
|
70
70
|
},
|
|
71
71
|
|
|
72
72
|
:track => {
|
|
73
|
-
:desc => "=> track branch\
|
|
73
|
+
:desc => "=> track branch\ngrb track `branch` [--explain]",
|
|
74
74
|
:commands => [
|
|
75
75
|
'"#{GIT} fetch #{origin}"',
|
|
76
76
|
'"#{GIT} branch --track #{branch} origin/#{branch}"',
|
|
77
77
|
'"#{GIT} checkout #{branch}"'
|
|
78
78
|
]
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
:remote_add => {
|
|
82
|
+
:desc => "=> add a remote repo\ngrb remote_add `name` `repo path` [--explain]",
|
|
83
|
+
:commands => [
|
|
84
|
+
'"#{GIT} remote add #{branch} #{branch_}"',
|
|
85
|
+
'"#{GIT} fetch #{branch}"'
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
:remote_rm => {
|
|
90
|
+
:desc => "=> remove a remote repo\ngrb remote_rm `name` [--explain]",
|
|
91
|
+
:commands => [
|
|
92
|
+
'"#{GIT} remote rm #{branch}"',
|
|
93
|
+
]
|
|
79
94
|
}
|
|
80
95
|
}
|
|
81
96
|
|
|
@@ -96,11 +111,11 @@ class Grb
|
|
|
96
111
|
end
|
|
97
112
|
|
|
98
113
|
def self.get_current_branch
|
|
99
|
-
(
|
|
114
|
+
(`#{GIT} branch 2> /dev/null | grep '^\*'`).gsub(/\W/,'')
|
|
100
115
|
end
|
|
101
116
|
|
|
102
117
|
def self.local_branches
|
|
103
|
-
(
|
|
118
|
+
(`#{GIT} branch -l`).split(/\n/).map{|x| x.gsub(/\W/,'')}
|
|
104
119
|
end
|
|
105
120
|
|
|
106
121
|
def self.help(*args)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 3
|
|
8
|
+
- 0
|
|
9
|
+
version: 0.3.0
|
|
5
10
|
platform: ruby
|
|
6
11
|
authors:
|
|
7
12
|
- Jinzhu Zhang
|
|
@@ -9,8 +14,8 @@ autorequire:
|
|
|
9
14
|
bindir: bin
|
|
10
15
|
cert_chain: []
|
|
11
16
|
|
|
12
|
-
date:
|
|
13
|
-
default_executable:
|
|
17
|
+
date: 2010-02-28 00:00:00 +08:00
|
|
18
|
+
default_executable:
|
|
14
19
|
dependencies: []
|
|
15
20
|
|
|
16
21
|
description: grb
|
|
@@ -48,18 +53,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
48
53
|
requirements:
|
|
49
54
|
- - ">="
|
|
50
55
|
- !ruby/object:Gem::Version
|
|
56
|
+
segments:
|
|
57
|
+
- 0
|
|
51
58
|
version: "0"
|
|
52
|
-
version:
|
|
53
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
60
|
requirements:
|
|
55
61
|
- - ">="
|
|
56
62
|
- !ruby/object:Gem::Version
|
|
63
|
+
segments:
|
|
64
|
+
- 1
|
|
65
|
+
- 2
|
|
57
66
|
version: "1.2"
|
|
58
|
-
version:
|
|
59
67
|
requirements: []
|
|
60
68
|
|
|
61
69
|
rubyforge_project: grb
|
|
62
|
-
rubygems_version: 1.3.
|
|
70
|
+
rubygems_version: 1.3.6
|
|
63
71
|
signing_key:
|
|
64
72
|
specification_version: 3
|
|
65
73
|
summary: grb
|