release-conductor 0.0.7 → 0.0.8

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: b9b8744a3f2625be549844b3df1255cf68e5950f
4
- data.tar.gz: 5e87934c9c37772289860df96d22cc5dbd2f099e
3
+ metadata.gz: bf7df8353102afd670ca1c120717d6dba9eedd4c
4
+ data.tar.gz: 3077f38011f495984345e575f17e9c80c357f663
5
5
  SHA512:
6
- metadata.gz: eb81aa12a12651f887dd116fa39b4ad2bc8546dfc1b5ee634f804b75e5de055058bbdaad5496857b7cddfc18a5dd86ee5ff6d2b54a3cbc18a6ff113b0f3cf960
7
- data.tar.gz: 88da2b7eb5be46c2ff8d2b7b8bca4511bde1709eab6946f6a48add7eeebb0697337dde6d75dda6a6154f071c9988cc86220798294df58f8705eaab28a4beaf9e
6
+ metadata.gz: b0a37080cefd344fc07b721e0d6d18d545a65178bcb79dab582ce07f748c4967e6b3c4ee19117b5be571768cf9fd6348274a5c3c1f69797c6be29eb25468d931
7
+ data.tar.gz: f98cc4e4e7fb07efed3808be22e4e7e04232b47efbab59d8fbac169bf8d627db22180337256c6c9366be38a0d3dc02ea38961ef1a9e53bd4017bce7a76c23df9
data/README.md CHANGED
@@ -61,7 +61,7 @@ Deploy your application like normal and the tickets should be marked.
61
61
  4. git tag 0.0.5
62
62
  5. git push --tags
63
63
  6. gem build release-conductor.gemspec
64
- 7. gem push push release-conductor-0.0.5.gem
64
+ 7. gem push release-conductor-0.0.5.gem
65
65
 
66
66
  ## To upgrade CODE to use the new version of the gem
67
67
 
@@ -1,14 +1,18 @@
1
1
  namespace :release_conductor do
2
2
  namespace :deploy do
3
3
  task :finished do
4
- case fetch(:stage).to_s
5
- when 'beta-staging' then ReleaseConductor.punch_tickets(:staging,self,['beta'],'beta-dev')
6
- when 'staging' then ReleaseConductor.punch_tickets(:staging,self,[nil,'code'],'code-dev')
7
- when 'production' then ReleaseConductor.punch_tickets(:production, self,[nil,'code'],'code')
8
- when 'beta' then ReleaseConductor.punch_tickets(:production, self,['beta'],'beta')
4
+ if fetch(:unfuddle_user).nil? || fetch(:unfuddle_password).nil?
5
+ puts "You must set environment variables UNFUDDLE_USER and UNFUDDLE_PASSWORD to use the release conductor"
9
6
  else
10
- puts "Unknown stage #{fetch(:stage)}, not punching any tickets"
11
- # ReleaseConductor.testing(self)
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)
15
+ end
12
16
  end
13
17
  end
14
18
  task :testing do
@@ -29,10 +33,11 @@ namespace :load do
29
33
  set :verified_tickets_in_staging_report_id, 66
30
34
  # execute this curl to get the list of custom field values, and then get those numbers from
31
35
  # there
32
- # curl -i -u username:password -X
33
- # GET -H 'Accept: application/xml'
36
+ # curl -i -u username:password -X
37
+ # GET -H 'Accept: application/xml'
34
38
  # 'https://goodmeasures.unfuddle.com/api/v1/projects/1/custom_field_values.xml'
35
39
  set :test_phase, 10
36
40
  set :production_phase, 15
41
+
37
42
  end
38
43
  end
@@ -1,3 +1,3 @@
1
1
  module ReleaseConductor
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
@@ -76,7 +76,7 @@ module ReleaseConductor
76
76
  end
77
77
  end
78
78
 
79
- def self.set_unfuddle_phase(config, tickets, phase_value_id)
79
+ def self.punch_tickets(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
- set_unfuddle_phase(config, tickets, phase_id)
109
+ punch_tickets(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.7
4
+ version: 0.0.8
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-13 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano