socialcast-git-extensions 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/git-integrate +2 -1
- data/bin/git-promote +2 -1
- data/bin/git-release +3 -1
- data/bin/git-update +12 -0
- data/lib/socialcast-git-extensions.rb +0 -6
- data/socialcast-git-extensions.gemspec +3 -2
- metadata +5 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/bin/git-integrate
CHANGED
@@ -6,8 +6,9 @@ include Socialcast
|
|
6
6
|
ticket = ARGV.shift
|
7
7
|
raise 'JIRA ticket is required in order to move into staging' unless ticket
|
8
8
|
|
9
|
+
run_cmd 'git update'
|
10
|
+
|
9
11
|
branch = current_branch
|
10
|
-
update(branch)
|
11
12
|
integrate(branch, 'staging')
|
12
13
|
|
13
14
|
update_ticket ticket, {:branch => branch, :in_staging => true}
|
data/bin/git-promote
CHANGED
@@ -6,8 +6,9 @@ include Socialcast
|
|
6
6
|
ticket = ARGV.shift
|
7
7
|
raise 'JIRA ticket is required in order to move into next_release' unless ticket
|
8
8
|
|
9
|
+
run_cmd 'git update'
|
10
|
+
|
9
11
|
branch = current_branch
|
10
|
-
update(branch)
|
11
12
|
integrate(branch, 'next_release')
|
12
13
|
|
13
14
|
update_ticket ticket, {:branch => branch, :in_staging => true}
|
data/bin/git-release
CHANGED
@@ -12,11 +12,13 @@ raise 'JIRA ticket is required in order to release this branch' unless ticket
|
|
12
12
|
|
13
13
|
exit unless Readline.readline("This will release #{branch} to production. Are you sure (y/n)? ") == 'y'
|
14
14
|
|
15
|
-
update
|
15
|
+
run_cmd 'git update'
|
16
|
+
|
16
17
|
integrate branch, 'master'
|
17
18
|
|
18
19
|
update_ticket ticket, {:branch => branch}
|
19
20
|
release_ticket ticket
|
20
21
|
|
22
|
+
run_cmd "git promote #{ticket}"
|
21
23
|
run_cmd "git integrate #{ticket}"
|
22
24
|
run_cmd "grb rm #{branch}"
|
data/bin/git-update
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
|
4
|
+
include Socialcast
|
5
|
+
|
6
|
+
branch = current_branch
|
7
|
+
|
8
|
+
puts "updating #{branch} to have most recent changes from master"
|
9
|
+
run_cmd "git pull origin #{branch}" rescue nil
|
10
|
+
run_cmd 'git pull origin master'
|
11
|
+
run_cmd 'git push origin HEAD'
|
12
|
+
run_cmd 'git remote prune origin'
|
@@ -71,12 +71,6 @@ module Socialcast
|
|
71
71
|
raise "#{cmd} failed" unless system cmd
|
72
72
|
end
|
73
73
|
|
74
|
-
def update(branch)
|
75
|
-
puts "updating #{branch} to have most recent changes from master"
|
76
|
-
run_cmd "git pull origin #{branch}" rescue nil
|
77
|
-
run_cmd 'git pull origin master'
|
78
|
-
run_cmd 'git push origin HEAD'
|
79
|
-
end
|
80
74
|
def integrate(branch, destination_branch = 'staging')
|
81
75
|
puts "integrating #{branch} into #{destination_branch}"
|
82
76
|
run_cmd "git remote prune origin"
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{socialcast-git-extensions}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Sonnek"]
|
12
12
|
s.date = %q{2010-07-07}
|
13
13
|
s.description = %q{git extension scripts for socialcast workflow}
|
14
14
|
s.email = %q{ryan@socialcast.com}
|
15
|
-
s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-wtf"]
|
15
|
+
s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-update", "git-wtf"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE",
|
18
18
|
"README.rdoc"
|
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
"bin/git-promote",
|
29
29
|
"bin/git-prune-merged",
|
30
30
|
"bin/git-release",
|
31
|
+
"bin/git-update",
|
31
32
|
"bin/git-wtf",
|
32
33
|
"lib/socialcast-git-extensions.rb",
|
33
34
|
"socialcast-git-extensions.gemspec",
|
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -109,6 +109,7 @@ executables:
|
|
109
109
|
- git-promote
|
110
110
|
- git-prune-merged
|
111
111
|
- git-release
|
112
|
+
- git-update
|
112
113
|
- git-wtf
|
113
114
|
extensions: []
|
114
115
|
|
@@ -126,6 +127,7 @@ files:
|
|
126
127
|
- bin/git-promote
|
127
128
|
- bin/git-prune-merged
|
128
129
|
- bin/git-release
|
130
|
+
- bin/git-update
|
129
131
|
- bin/git-wtf
|
130
132
|
- lib/socialcast-git-extensions.rb
|
131
133
|
- socialcast-git-extensions.gemspec
|