release-conductor 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ce859d83974109d35ce9744e30d5e817dd8e5be
4
- data.tar.gz: b88f01831b661e790cad07ccf1c0b5449761e09e
3
+ metadata.gz: 1ccde73cd5124ac5e72caad5fc3b0fd8a85badd4
4
+ data.tar.gz: 77c9b84707ba975bf02d7a35ce6086e2c0bfc75f
5
5
  SHA512:
6
- metadata.gz: e3a1569ae13b8cf26495d0b24821b1ad4d5facfac5eb8bf5268c5309e605a8e422c6892eefd9cf39ea379c9caa0b3edc005ed01827903f2eb590b4d418e59407
7
- data.tar.gz: 2e76f800c07d36188e7df0ae5d585b9746a26957bcadc4f4fb85c3de561cd3d9dda8354f8d4a0ddb88f1e439fc66ba88e983304c62f69c3cfbd6698df8b058dc
6
+ metadata.gz: 89d728b425e25e173a39d68476085e21646f71e67f30e08fc2ea9b2207f9b7052120ef1e441b68e5a61af4b967355343b5454f386cf024e132b89e5480fce59b
7
+ data.tar.gz: fe2a750c31c3089e189f90863c6278298889746800da552791453d7062f40a6936885834ccb04757cd461937fde23c6d36de1a8feed16e714fd4ef13e188c7cc
@@ -1,5 +1,7 @@
1
1
  namespace :release_conductor do
2
2
  namespace :deploy do
3
+
4
+ desc "Run the release conductor and punch tickets that are ready for testing"
3
5
  task :finished do
4
6
  if fetch(:unfuddle_user).nil? || fetch(:unfuddle_password).nil?
5
7
  puts "You must set environment variables UNFUDDLE_USER and UNFUDDLE_PASSWORD to use the release conductor"
@@ -1,3 +1,3 @@
1
1
  module ReleaseConductor
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -77,19 +77,23 @@ module ReleaseConductor
77
77
  end
78
78
 
79
79
  def self.set_unfuddle_phase(config, tickets, phase_value_id)
80
- tickets.each do |ticket|
81
- puts "release conductor: punching ticket ##{ticket['number']}"
82
- url = "/api/v1/projects/#{config.fetch(:project_id)}/tickets/#{ticket['id']}"
83
-
84
- # puts "Fetching Ticket Details from #{url}"
85
- ticket_details = get(config, url)
86
-
87
- xml = %Q{
88
- <ticket>
89
- <field2-value-id>#{phase_value_id}</field2-value-id>
90
- </ticket>
91
- }
92
- put(config,url,xml)
80
+ if tickets.empty?
81
+ puts "release conductor: No tickets to punch."
82
+ else
83
+ tickets.each do |ticket|
84
+ puts "release conductor: punching ticket ##{ticket['number']}"
85
+ url = "/api/v1/projects/#{config.fetch(:project_id)}/tickets/#{ticket['id']}"
86
+
87
+ # puts "Fetching Ticket Details from #{url}"
88
+ ticket_details = get(config, url)
89
+
90
+ xml = %Q{
91
+ <ticket>
92
+ <field2-value-id>#{phase_value_id}</field2-value-id>
93
+ </ticket>
94
+ }
95
+ put(config,url,xml)
96
+ end
93
97
  end
94
98
  end
95
99
 
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.10
4
+ version: 0.0.11
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-11-18 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -128,3 +128,4 @@ test_files:
128
128
  - spec/capistrano_deploy_stubs.rake
129
129
  - spec/spec_helper.rb
130
130
  - spec/tasks_spec.rb
131
+ has_rdoc: