socialcast-git-extensions 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.1
1
+ 0.9.0
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
4
+ require 'readline'
5
+ include Socialcast
6
+
7
+ reset_branch('staging')
8
+ reset_branch('last_known_good_staging')
9
+
10
+ filter_id = '10103'
11
+ issues = jira_server.getIssuesFromFilterWithLimit filter_id, 0, 1000
12
+ issues.each do |issue|
13
+ puts "Removing #{issue.key} from staging"
14
+ jira_server.updateIssue issue.key, [Jira4R::V2::RemoteFieldValue.new(IN_STAGING_FIELD, [''])]
15
+ end
@@ -71,6 +71,14 @@ module Socialcast
71
71
  raise "#{cmd} failed" unless system cmd
72
72
  end
73
73
 
74
+ def reset_branch(branch)
75
+ run_cmd "git branch -D #{branch}"
76
+ run_cmd "git push origin :#{branch}"
77
+ run_cmd "git checkout master"
78
+ run_cmd "git checkout -b #{branch}"
79
+ run_cmd "grb publish #{branch}"
80
+ end
81
+
74
82
  def integrate(branch, destination_branch = 'staging')
75
83
  puts "integrating #{branch} into #{destination_branch}"
76
84
  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.1"
8
+ s.version = "0.9.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
- s.date = %q{2010-07-07}
12
+ s.date = %q{2010-07-09}
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-track", "git-update", "git-wtf"]
15
+ s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-reset-staging", "git-track", "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-reset-staging",
31
32
  "bin/git-track",
32
33
  "bin/git-update",
33
34
  "bin/git-wtf",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 8
9
- - 1
10
- version: 0.8.1
8
+ - 9
9
+ - 0
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-07 00:00:00 -05:00
18
+ date: 2010-07-09 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -109,6 +109,7 @@ executables:
109
109
  - git-promote
110
110
  - git-prune-merged
111
111
  - git-release
112
+ - git-reset-staging
112
113
  - git-track
113
114
  - git-update
114
115
  - git-wtf
@@ -128,6 +129,7 @@ files:
128
129
  - bin/git-promote
129
130
  - bin/git-prune-merged
130
131
  - bin/git-release
132
+ - bin/git-reset-staging
131
133
  - bin/git-track
132
134
  - bin/git-update
133
135
  - bin/git-wtf