release-conductor 0.0.8 → 0.0.10

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: bf7df8353102afd670ca1c120717d6dba9eedd4c
4
- data.tar.gz: 3077f38011f495984345e575f17e9c80c357f663
3
+ metadata.gz: 5ce859d83974109d35ce9744e30d5e817dd8e5be
4
+ data.tar.gz: b88f01831b661e790cad07ccf1c0b5449761e09e
5
5
  SHA512:
6
- metadata.gz: b0a37080cefd344fc07b721e0d6d18d545a65178bcb79dab582ce07f748c4967e6b3c4ee19117b5be571768cf9fd6348274a5c3c1f69797c6be29eb25468d931
7
- data.tar.gz: f98cc4e4e7fb07efed3808be22e4e7e04232b47efbab59d8fbac169bf8d627db22180337256c6c9366be38a0d3dc02ea38961ef1a9e53bd4017bce7a76c23df9
6
+ metadata.gz: e3a1569ae13b8cf26495d0b24821b1ad4d5facfac5eb8bf5268c5309e605a8e422c6892eefd9cf39ea379c9caa0b3edc005ed01827903f2eb590b4d418e59407
7
+ data.tar.gz: 2e76f800c07d36188e7df0ae5d585b9746a26957bcadc4f4fb85c3de561cd3d9dda8354f8d4a0ddb88f1e439fc66ba88e983304c62f69c3cfbd6698df8b058dc
@@ -5,13 +5,10 @@ namespace :release_conductor do
5
5
  puts "You must set environment variables UNFUDDLE_USER and UNFUDDLE_PASSWORD to use the release conductor"
6
6
  else
7
7
  case fetch(:stage).to_s
8
- when 'beta-staging' then ReleaseConductor.punch_tickets(:staging,self,['beta'],'beta-dev')
9
- when 'staging' then ReleaseConductor.punch_tickets(:staging,self,[nil,'code'],'code-dev')
10
- when 'production' then ReleaseConductor.punch_tickets(:production, self,[nil,'code'],'code')
11
- when 'beta-production' then ReleaseConductor.punch_tickets(:production, self,['beta'],'beta')
12
- else
13
- puts "Unknown stage #{fetch(:stage)}, not punching any tickets"
14
- # ReleaseConductor.testing(self)
8
+ when 'beta-staging' then ReleaseConductor.punch_tickets(:staging,self,['beta'],'beta-dev')
9
+ when 'staging' then ReleaseConductor.punch_tickets(:staging,self,[nil,'code'],'code-dev')
10
+ when 'production' then ReleaseConductor.punch_tickets(:production, self,[nil,'code'],'code')
11
+ when 'beta' then ReleaseConductor.punch_tickets(:production, self,['beta'],'beta')
15
12
  end
16
13
  end
17
14
  end
@@ -1,3 +1,3 @@
1
1
  module ReleaseConductor
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.10'
3
3
  end
@@ -54,7 +54,7 @@ module ReleaseConductor
54
54
 
55
55
  def self.run_ticket_report(config, report_id)
56
56
  hash=get(config, "/api/v1/projects/#{config.fetch(:project_id)}/ticket_reports/#{report_id}/generate")
57
- (hash["groups"].first||{})["tickets"]
57
+ (hash["groups"].first||{"tickets"=>[]})["tickets"]
58
58
  end
59
59
 
60
60
  def self.version_ids(versions)
@@ -76,7 +76,7 @@ module ReleaseConductor
76
76
  end
77
77
  end
78
78
 
79
- def self.punch_tickets(config, tickets, phase_value_id)
79
+ def self.set_unfuddle_phase(config, tickets, phase_value_id)
80
80
  tickets.each do |ticket|
81
81
  puts "release conductor: punching ticket ##{ticket['number']}"
82
82
  url = "/api/v1/projects/#{config.fetch(:project_id)}/tickets/#{ticket['id']}"
@@ -106,7 +106,7 @@ module ReleaseConductor
106
106
  if current_branch == branch
107
107
  tickets = filter_by_versions(run_ticket_report(config,report(config,env)),versions)
108
108
  phase_id = config.fetch(env == :staging ? :test_phase : :production_phase)
109
- punch_tickets(config, tickets, phase_id)
109
+ set_unfuddle_phase(config, tickets, phase_id)
110
110
  else
111
111
  puts "release conductor: not punching tickets as you are in branch #{current_branch} NOT #{branch}"
112
112
  end
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.8
4
+ version: 0.0.10
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-17 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano