socialcast-git-extensions 1.5.3 → 1.5.4
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 +1 -1
- data/bin/git-reset-prototype +3 -6
- data/lib/socialcast-git-extensions.rb +5 -5
- data/socialcast-git-extensions.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.4
|
data/bin/git-reset-prototype
CHANGED
@@ -6,11 +6,8 @@ include Socialcast
|
|
6
6
|
reset_branch('prototype')
|
7
7
|
reset_branch('last_known_good_prototype')
|
8
8
|
|
9
|
-
filter_id = '
|
9
|
+
filter_id = '10151'
|
10
10
|
issues = jira_server.getIssuesFromFilterWithLimit filter_id, 0, 1000
|
11
11
|
|
12
|
-
HighLine.say "Updating the following tickets to no longer be in prototype:"
|
13
|
-
issues
|
14
|
-
print_issue issue
|
15
|
-
jira_server.updateIssue issue.key, [Jira4R::V2::RemoteFieldValue.new(IN_PROTOTYPE_FIELD, ['false'])]
|
16
|
-
end
|
12
|
+
HighLine.say "\n<%= color('Updating the following tickets to no longer be in prototype:', :red) %>"
|
13
|
+
update_tickets issues, :in_prototype => false
|
@@ -60,15 +60,15 @@ module Socialcast
|
|
60
60
|
end
|
61
61
|
def update_tickets(tickets, options = {})
|
62
62
|
tickets.each do |ticket|
|
63
|
-
|
63
|
+
print_issue ticket
|
64
64
|
fields = []
|
65
65
|
fields << Jira4R::V2::RemoteFieldValue.new(GIT_BRANCH_FIELD, [options[:branch]]) if options[:branch]
|
66
|
-
fields << Jira4R::V2::RemoteFieldValue.new(IN_PROTOTYPE_FIELD, [
|
67
|
-
fields << Jira4R::V2::RemoteFieldValue.new(IN_STAGING_FIELD, [
|
66
|
+
fields << Jira4R::V2::RemoteFieldValue.new(IN_PROTOTYPE_FIELD, [options[:in_prototype].to_s]) if options[:in_prototype]
|
67
|
+
fields << Jira4R::V2::RemoteFieldValue.new(IN_STAGING_FIELD, [options[:in_staging].to_s]) if options[:in_staging]
|
68
68
|
begin
|
69
69
|
jira_server.updateIssue ticket.key, fields
|
70
70
|
rescue => e
|
71
|
-
HighLine.say "<%= color('Error: #{e.message}', :red)"
|
71
|
+
HighLine.say "<%= color('Error: #{e.message}', :red) %>"
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -97,7 +97,7 @@ module Socialcast
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
def print_issue(issue)
|
100
|
-
HighLine.say "<%= color('#{issue.key}', :green) - #{issue.summary}"
|
100
|
+
HighLine.say "<%= color('#{issue.key}', :green) %> - #{issue.summary}"
|
101
101
|
end
|
102
102
|
def print_error(e)
|
103
103
|
HighLine.say "<%= color('Error: #{e.message}', :red)"
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{socialcast-git-extensions}
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.4"
|
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-10-
|
12
|
+
s.date = %q{2010-10-25}
|
13
13
|
s.description = %q{git extension scripts for socialcast workflow}
|
14
14
|
s.email = %q{ryan@socialcast.com}
|
15
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"]
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 4
|
10
|
+
version: 1.5.4
|
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-10-
|
18
|
+
date: 2010-10-25 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|