release-conductor 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/release-conductor.rb +4 -5
- data/lib/release-conductor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7eaec714ba76545f62d01ead0f1971bc83ae232
|
4
|
+
data.tar.gz: ca3c8018e45e228a0d96ac247bd4047627c9da68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6041d8f89a6792d455a304ad0f1cc50daf1e18493350a0bc8d68f63ae04ca4141d22b3aaf10eea5a00b086deb0912e51c1cb455a65bc893f8680a8af637b5d5b
|
7
|
+
data.tar.gz: ab6dc1b547da323842c083373d7cb27d875a28982547c96c4c5c563685819a266c993dfcaff893af87b96cfaa371297163f44986b1248fa0939676f8737c4eb5
|
data/lib/release-conductor.rb
CHANGED
@@ -76,9 +76,9 @@ module ReleaseConductor
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
def self.
|
79
|
+
def self.punch_tickets(config, tickets, phase_value_id)
|
80
80
|
tickets.each do |ticket|
|
81
|
-
puts "punching ticket ##{ticket['number']}"
|
81
|
+
puts "release conductor: punching ticket ##{ticket['number']}"
|
82
82
|
url = "/api/v1/projects/#{config.fetch(:project_id)}/tickets/#{ticket['id']}"
|
83
83
|
|
84
84
|
# puts "Fetching Ticket Details from #{url}"
|
@@ -87,7 +87,6 @@ module ReleaseConductor
|
|
87
87
|
xml = %Q{
|
88
88
|
<ticket>
|
89
89
|
<field2-value-id>#{phase_value_id}</field2-value-id>
|
90
|
-
<summary>testing</summary>
|
91
90
|
</ticket>
|
92
91
|
}
|
93
92
|
put(config,url,xml)
|
@@ -107,9 +106,9 @@ module ReleaseConductor
|
|
107
106
|
if current_branch == branch
|
108
107
|
tickets = filter_by_versions(run_ticket_report(config,report(config,env)),versions)
|
109
108
|
phase_id = config.fetch(env == :staging ? :test_phase : :production_phase)
|
110
|
-
|
109
|
+
punch_tickets(config, tickets, phase_id)
|
111
110
|
else
|
112
|
-
puts "
|
111
|
+
puts "release conductor: not punching tickets as you are in branch #{current_branch} NOT #{branch}"
|
113
112
|
end
|
114
113
|
end
|
115
114
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: release-conductor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Mathews
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|