socialcast-git-extensions 1.4.1 → 1.5.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.5.0
data/bin/git-integrate CHANGED
@@ -11,7 +11,7 @@ branch = current_branch
11
11
  tickets = assert_tickets_provided(ARGV, branch)
12
12
 
13
13
  run_cmd 'git update'
14
- integrate(branch, 'staging')
14
+ integrate(branch, 'prototype')
15
15
 
16
- update_tickets tickets, :branch => branch, :in_staging => true
16
+ update_tickets tickets, :branch => branch, :in_prototype => true
17
17
  start_tickets tickets
data/bin/git-promote CHANGED
@@ -7,9 +7,9 @@ branch = current_branch
7
7
  tickets = assert_tickets_provided(ARGV, branch)
8
8
 
9
9
  run_cmd 'git update'
10
- integrate(branch, 'next_release')
10
+ integrate(branch, 'staging')
11
11
 
12
- update_tickets tickets, :branch => branch, :in_staging => true
12
+ update_tickets tickets, :branch => branch, :in_prototype => true, :in_staging => true
13
13
  resolve_tickets tickets
14
14
 
15
- integrate(branch, 'staging')
15
+ integrate('staging', 'prototype')
data/bin/git-release CHANGED
@@ -4,7 +4,7 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extension
4
4
  include Socialcast
5
5
 
6
6
  branch = current_branch
7
- raise "Cannot release reserved branch" if %w{master staging}.include?(branch)
7
+ raise "Cannot release reserved branch" if %w{master staging prototype}.include?(branch)
8
8
 
9
9
  tickets = assert_tickets_provided(ARGV, branch)
10
10
 
@@ -16,6 +16,6 @@ integrate branch, 'master'
16
16
  update_tickets tickets, :branch => branch
17
17
  release_tickets tickets
18
18
 
19
- integrate branch, 'next_release'
20
19
  integrate branch, 'staging'
20
+ integrate 'staging', 'prototype'
21
21
  run_cmd "grb rm #{branch}"
@@ -5,7 +5,7 @@ include Socialcast
5
5
 
6
6
  run_cmd 'git checkout master'
7
7
  run_cmd 'git pull'
8
- run_cmd 'git pull origin last_known_good_next_release'
8
+ run_cmd 'git pull origin last_known_good_staging'
9
9
  run_cmd 'git push origin HEAD'
10
10
 
11
11
  filter_id = '10102'
@@ -3,14 +3,14 @@
3
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
4
4
  include Socialcast
5
5
 
6
- reset_branch('staging')
7
- reset_branch('last_known_good_staging')
6
+ reset_branch('prototype')
7
+ reset_branch('last_known_good_prototype')
8
8
 
9
9
  filter_id = '10103'
10
10
  issues = jira_server.getIssuesFromFilterWithLimit filter_id, 0, 1000
11
11
 
12
- HighLine.say "Updating the following tickets to no longer be in staging:"
12
+ HighLine.say "Updating the following tickets to no longer be in prototype:"
13
13
  issues.each do |issue|
14
14
  print_issue issue
15
- jira_server.updateIssue issue.key, [Jira4R::V2::RemoteFieldValue.new(IN_STAGING_FIELD, [''])]
15
+ jira_server.updateIssue issue.key, [Jira4R::V2::RemoteFieldValue.new(IN_PROTOTYPE_FIELD, ['false'])]
16
16
  end
@@ -5,6 +5,7 @@ require 'highline/import'
5
5
 
6
6
  module Socialcast
7
7
  GIT_BRANCH_FIELD = 'customfield_10010'
8
+ IN_PROTOTYPE_FIELD = 'customfield_10033'
8
9
  IN_STAGING_FIELD = 'customfield_10020'
9
10
  JIRA_CREDENTIALS_FILE = File.expand_path('~/.jira_key')
10
11
 
@@ -62,6 +63,7 @@ module Socialcast
62
63
  HighLine.say "Updating ticket: <%= color('#{ticket.key}', :green) %> - #{ticket.summary}"
63
64
  fields = []
64
65
  fields << Jira4R::V2::RemoteFieldValue.new(GIT_BRANCH_FIELD, [options[:branch]]) if options[:branch]
66
+ fields << Jira4R::V2::RemoteFieldValue.new(IN_PROTOTYPE_FIELD, ['true']) if options[:in_prototype]
65
67
  fields << Jira4R::V2::RemoteFieldValue.new(IN_STAGING_FIELD, ['true']) if options[:in_staging]
66
68
  begin
67
69
  jira_server.updateIssue ticket.key, fields
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{socialcast-git-extensions}
8
- s.version = "1.4.1"
8
+ s.version = "1.5.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-09-10}
12
+ s.date = %q{2010-10-18}
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-release-pending", "git-reset-staging", "git-start", "git-track", "git-update", "git-wtf"]
15
+ s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-staging", "git-reset-prototype", "git-start", "git-track", "git-update", "git-wtf"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.rdoc"
@@ -28,8 +28,8 @@ Gem::Specification.new do |s|
28
28
  "bin/git-promote",
29
29
  "bin/git-prune-merged",
30
30
  "bin/git-release",
31
- "bin/git-release-pending",
32
- "bin/git-reset-staging",
31
+ "bin/git-release-staging",
32
+ "bin/git-reset-prototype",
33
33
  "bin/git-start",
34
34
  "bin/git-track",
35
35
  "bin/git-update",
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: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 4
9
- - 1
10
- version: 1.4.1
8
+ - 5
9
+ - 0
10
+ version: 1.5.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-09-10 00:00:00 -05:00
18
+ date: 2010-10-18 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -109,8 +109,8 @@ executables:
109
109
  - git-promote
110
110
  - git-prune-merged
111
111
  - git-release
112
- - git-release-pending
113
- - git-reset-staging
112
+ - git-release-staging
113
+ - git-reset-prototype
114
114
  - git-start
115
115
  - git-track
116
116
  - git-update
@@ -131,8 +131,8 @@ files:
131
131
  - bin/git-promote
132
132
  - bin/git-prune-merged
133
133
  - bin/git-release
134
- - bin/git-release-pending
135
- - bin/git-reset-staging
134
+ - bin/git-release-staging
135
+ - bin/git-reset-prototype
136
136
  - bin/git-start
137
137
  - bin/git-track
138
138
  - bin/git-update