git_remote_branch 0.3.4 → 0.3.5
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/git_remote_branch.gemspec +2 -0
- data/lib/git_remote_branch.rb +2 -2
- data/lib/version.rb +1 -1
- data/tasks/gem.rake +6 -0
- data/test/functional/grb_test.rb +4 -4
- data/test/test_helper.rb +1 -0
- metadata +37 -5
data/git_remote_branch.gemspec
CHANGED
@@ -22,5 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency 'test-unit'
|
23
23
|
s.add_development_dependency 'shoulda'
|
24
24
|
s.add_development_dependency 'mocha'
|
25
|
+
s.add_development_dependency 'pry'
|
26
|
+
s.add_development_dependency 'pry-nav'
|
25
27
|
s.add_dependency 'rainbow'
|
26
28
|
end
|
data/lib/git_remote_branch.rb
CHANGED
@@ -37,7 +37,7 @@ module GitRemoteBranch
|
|
37
37
|
:commands => [
|
38
38
|
'"#{GIT} push #{origin} #{branch_name}:refs/heads/#{branch_name}"',
|
39
39
|
'"#{GIT} fetch #{origin}"',
|
40
|
-
'"#{GIT} branch
|
40
|
+
'"#{GIT} branch -u #{origin}/#{branch_name} #{branch_name}"',
|
41
41
|
'"#{GIT} checkout #{branch_name}"'
|
42
42
|
]
|
43
43
|
},
|
@@ -70,7 +70,7 @@ module GitRemoteBranch
|
|
70
70
|
:aliases => %w{track follow grab fetch},
|
71
71
|
:commands => [
|
72
72
|
'"#{GIT} fetch #{origin}"',
|
73
|
-
'"#{GIT} branch --
|
73
|
+
'"#{GIT} branch --track #{branch_name} #{origin}/#{branch_name}"',
|
74
74
|
]
|
75
75
|
}
|
76
76
|
} unless defined?(COMMANDS)
|
data/lib/version.rb
CHANGED
data/tasks/gem.rake
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# Reminder when shipping a version
|
2
|
+
# - Bump the version in lib/version.rb
|
3
|
+
# - Commit & push everything
|
4
|
+
# - rake gem gem:install # then sanity check that it works
|
5
|
+
# - rake gem:feeling_lucky # uploads the gem, then tags the commit
|
6
|
+
|
1
7
|
require 'yaml'
|
2
8
|
|
3
9
|
gem_name = GitRemoteBranch::NAME
|
data/test/functional/grb_test.rb
CHANGED
@@ -32,8 +32,8 @@ class GRBTest < Test::Unit::TestCase
|
|
32
32
|
|
33
33
|
should_have_branch 'new_branch', :local, :remote
|
34
34
|
|
35
|
-
should "use the branch --
|
36
|
-
assert_match %r{branch --
|
35
|
+
should "use the branch --track command" do
|
36
|
+
assert_match %r{branch --track}, @output
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -45,8 +45,8 @@ class GRBTest < Test::Unit::TestCase
|
|
45
45
|
|
46
46
|
should_have_branch 'new_branch', :local, :remote
|
47
47
|
|
48
|
-
should "use the branch --
|
49
|
-
assert_match %r{branch --
|
48
|
+
should "use the branch --track command" do
|
49
|
+
assert_match %r{branch --track}, @output
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_remote_branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-02-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -92,6 +92,38 @@ dependencies:
|
|
92
92
|
- - ! '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: pry
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry-nav
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
95
127
|
- !ruby/object:Gem::Dependency
|
96
128
|
name: rainbow
|
97
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
197
|
version: '0'
|
166
198
|
segments:
|
167
199
|
- 0
|
168
|
-
hash:
|
200
|
+
hash: 2627225299260456999
|
169
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
202
|
none: false
|
171
203
|
requirements:
|
@@ -174,10 +206,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
206
|
version: '0'
|
175
207
|
segments:
|
176
208
|
- 0
|
177
|
-
hash:
|
209
|
+
hash: 2627225299260456999
|
178
210
|
requirements: []
|
179
211
|
rubyforge_project:
|
180
|
-
rubygems_version: 1.8.
|
212
|
+
rubygems_version: 1.8.25
|
181
213
|
signing_key:
|
182
214
|
specification_version: 3
|
183
215
|
summary: git_remote_branch eases the interaction with remote branches
|