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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe1fa3070a7dbfadfb2a00813f22660d48c57165
4
- data.tar.gz: 8eeabf62ff9e0a25b367c10d9304ced4abc99e96
3
+ metadata.gz: c7eaec714ba76545f62d01ead0f1971bc83ae232
4
+ data.tar.gz: ca3c8018e45e228a0d96ac247bd4047627c9da68
5
5
  SHA512:
6
- metadata.gz: aa59c2086198f8af6b34060a77c7205f31af32826a47097b4c35dba4354665890d7274769341c1d80a0dd06e377a15dab5c6f2d1f3494a9954f3738150428ab2
7
- data.tar.gz: df010ef66181777b81daebebf54b9235d41d18e1f354d193468e7f9b6d5754e96bb00239fc28c97831c2e55742519bb177a5d239508d0d644117b1a2584037da
6
+ metadata.gz: 6041d8f89a6792d455a304ad0f1cc50daf1e18493350a0bc8d68f63ae04ca4141d22b3aaf10eea5a00b086deb0912e51c1cb455a65bc893f8680a8af637b5d5b
7
+ data.tar.gz: ab6dc1b547da323842c083373d7cb27d875a28982547c96c4c5c563685819a266c993dfcaff893af87b96cfaa371297163f44986b1248fa0939676f8737c4eb5
@@ -76,9 +76,9 @@ module ReleaseConductor
76
76
  end
77
77
  end
78
78
 
79
- def self.set_phase(config, tickets, phase_value_id)
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
- set_phase(config, tickets, phase_id)
109
+ punch_tickets(config, tickets, phase_id)
111
110
  else
112
- puts "ignoring as you are in branch #{current_branch} NOT #{branch}"
111
+ puts "release conductor: not punching tickets as you are in branch #{current_branch} NOT #{branch}"
113
112
  end
114
113
  end
115
114
 
@@ -1,3 +1,3 @@
1
1
  module ReleaseConductor
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.5'
3
3
  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.3
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-26 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano