socialcast-git-extensions 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -149,8 +149,10 @@ module Socialcast
|
|
149
149
|
return unless yes?("Release #{branch} to production? (y/n)", :green)
|
150
150
|
|
151
151
|
update
|
152
|
-
|
153
|
-
run_cmd
|
152
|
+
run_cmd 'git checkout master'
|
153
|
+
run_cmd 'git pull origin master'
|
154
|
+
run_cmd "git pull . #{branch}"
|
155
|
+
run_cmd "git push origin HEAD"
|
154
156
|
integrate_branch('master', 'staging')
|
155
157
|
cleanup
|
156
158
|
|
@@ -62,6 +62,7 @@ module Socialcast
|
|
62
62
|
end
|
63
63
|
|
64
64
|
# integrate a branch into a destination aggregate branch
|
65
|
+
# blow away the local aggregate branch to ensure pulling into most recent "clean" branch
|
65
66
|
def integrate_branch(branch, destination_branch)
|
66
67
|
assert_not_protected_branch!(branch, 'integrate') unless aggregate_branch?(destination_branch)
|
67
68
|
raise "Only aggregate branches are allowed for integration: #{AGGREGATE_BRANCHES}" unless aggregate_branch?(destination_branch) || destination_branch == Socialcast::Gitx::BASE_BRANCH
|
@@ -70,8 +71,8 @@ module Socialcast
|
|
70
71
|
say "into "
|
71
72
|
say destination_branch, :green
|
72
73
|
|
74
|
+
run_cmd "git branch -D #{destination_branch}"
|
73
75
|
run_cmd "git checkout #{destination_branch}"
|
74
|
-
run_cmd "git pull origin #{destination_branch}"
|
75
76
|
run_cmd "git pull . #{branch}"
|
76
77
|
run_cmd "git push origin HEAD"
|
77
78
|
run_cmd "git checkout #{branch}"
|
data/spec/cli_spec.rb
CHANGED
@@ -46,8 +46,8 @@ describe Socialcast::Gitx::CLI do
|
|
46
46
|
"git pull origin FOO",
|
47
47
|
"git pull origin master",
|
48
48
|
"git push origin HEAD",
|
49
|
+
"git branch -D prototype",
|
49
50
|
"git checkout prototype",
|
50
|
-
"git pull origin prototype",
|
51
51
|
"git pull . FOO",
|
52
52
|
"git push origin HEAD",
|
53
53
|
"git checkout FOO",
|
@@ -66,8 +66,8 @@ describe Socialcast::Gitx::CLI do
|
|
66
66
|
"git pull origin FOO",
|
67
67
|
"git pull origin master",
|
68
68
|
"git push origin HEAD",
|
69
|
+
"git branch -D prototype",
|
69
70
|
"git checkout prototype",
|
70
|
-
"git pull origin prototype",
|
71
71
|
"git pull . FOO",
|
72
72
|
"git push origin HEAD",
|
73
73
|
"git checkout FOO",
|
@@ -86,13 +86,13 @@ describe Socialcast::Gitx::CLI do
|
|
86
86
|
"git pull origin FOO",
|
87
87
|
"git pull origin master",
|
88
88
|
"git push origin HEAD",
|
89
|
+
"git branch -D staging",
|
89
90
|
"git checkout staging",
|
90
|
-
"git pull origin staging",
|
91
91
|
"git pull . FOO",
|
92
92
|
"git push origin HEAD",
|
93
93
|
"git checkout FOO",
|
94
|
+
"git branch -D prototype",
|
94
95
|
"git checkout prototype",
|
95
|
-
"git pull origin prototype",
|
96
96
|
"git pull . staging",
|
97
97
|
"git push origin HEAD",
|
98
98
|
"git checkout staging",
|
@@ -135,10 +135,8 @@ describe Socialcast::Gitx::CLI do
|
|
135
135
|
"git pull origin master",
|
136
136
|
"git pull . FOO",
|
137
137
|
"git push origin HEAD",
|
138
|
-
"git
|
139
|
-
"git checkout master",
|
138
|
+
"git branch -D staging",
|
140
139
|
"git checkout staging",
|
141
|
-
"git pull origin staging",
|
142
140
|
"git pull . master",
|
143
141
|
"git push origin HEAD",
|
144
142
|
"git checkout master",
|
@@ -271,13 +269,13 @@ describe Socialcast::Gitx::CLI do
|
|
271
269
|
"git pull origin FOO",
|
272
270
|
"git pull origin master",
|
273
271
|
"git push origin HEAD",
|
272
|
+
"git branch -D staging",
|
274
273
|
"git checkout staging",
|
275
|
-
"git pull origin staging",
|
276
274
|
"git pull . FOO",
|
277
275
|
"git push origin HEAD",
|
278
276
|
"git checkout FOO",
|
277
|
+
"git branch -D prototype",
|
279
278
|
"git checkout prototype",
|
280
|
-
"git pull origin prototype",
|
281
279
|
"git pull . staging",
|
282
280
|
"git push origin HEAD",
|
283
281
|
"git checkout staging",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grit
|
@@ -230,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
segments:
|
232
232
|
- 0
|
233
|
-
hash:
|
233
|
+
hash: 2832499571703574372
|
234
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
235
|
none: false
|
236
236
|
requirements:
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: '0'
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
hash:
|
242
|
+
hash: 2832499571703574372
|
243
243
|
requirements: []
|
244
244
|
rubyforge_project: socialcast-git-extensions
|
245
245
|
rubygems_version: 1.8.24
|