release-conductor 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/release-conductor/tasks/release-conductor.rake +14 -9
- data/lib/release-conductor/version.rb +1 -1
- data/lib/release-conductor.rb +2 -2
- 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: bf7df8353102afd670ca1c120717d6dba9eedd4c
|
4
|
+
data.tar.gz: 3077f38011f495984345e575f17e9c80c357f663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
5
|
-
|
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
|
-
|
11
|
-
|
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
|
data/lib/release-conductor.rb
CHANGED
@@ -76,7 +76,7 @@ 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
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
|
-
|
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.
|
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-
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|