NG1BuildHelpers 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7b4e0b82e7a7d99e85f3cfb89b8c837241a4fbdb
4
- data.tar.gz: 343ce276d5c10d08b60fe00873713d0e372dde11
2
+ SHA256:
3
+ metadata.gz: 4c24cd1f95e046f7bf5b8b56c72665d756fc6d90f27a4db2f1b411c7a4781908
4
+ data.tar.gz: 7ea6eead700daeecfa434feca2a2473cb4d183f2fc1e19e6570bef2738aef72d
5
5
  SHA512:
6
- metadata.gz: 10ca5114f5295d7c7850eb3faf42a26124f373a6a22acc02fda4d2001eef548145f089da07eee051066abf7ae0d5e6ca2875e1a2d6b2a5f3f322f791dc2d1822
7
- data.tar.gz: 6d18607f34decca959d0cd552b39ab1cc240c411b1fc02d6e7b5256fdc59c30d2574eaad354c4930026281e20bd713b63d3ea5444439954b56991a0dcd9c5026
6
+ metadata.gz: 398d8c1f0b2daba27849a1ed395b474b6d0f4c110c62dcc87e730b8369ccac513a1f77020863a76eac763d4a8c832b153171517d98f93d9fd5f78d0d6ced7dbe
7
+ data.tar.gz: d15d7d63e9b1452a07ed6a89351069a85d53f3d37f597e4639671a0766cf70a1ea029ce867dbe6524d244373e466db208a4def2d9d8b24a1cdc5ff6316aab27f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- NG1BuildHelpers (0.1.0)
4
+ NG1BuildHelpers (0.1.6)
5
5
  OptionParser (~> 0.5.1)
6
6
  rest-client (~> 2.0.2)
7
7
 
@@ -9,13 +9,13 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  OptionParser (0.5.1)
12
- domain_name (0.5.20170404)
12
+ domain_name (0.5.20180417)
13
13
  unf (>= 0.0.5, < 1.0.0)
14
14
  http-cookie (1.0.3)
15
15
  domain_name (~> 0.5)
16
- mime-types (3.1)
16
+ mime-types (3.2.2)
17
17
  mime-types-data (~> 3.2015)
18
- mime-types-data (3.2016.0521)
18
+ mime-types-data (3.2018.0812)
19
19
  netrc (0.11.0)
20
20
  rake (10.5.0)
21
21
  rest-client (2.0.2)
@@ -35,4 +35,4 @@ DEPENDENCIES
35
35
  rake (~> 10.0)
36
36
 
37
37
  BUNDLED WITH
38
- 1.16.1
38
+ 1.17.2
@@ -1,3 +1,3 @@
1
1
  module NG1BuildHelpers
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -55,13 +55,13 @@ module NG1BuildHelpers::JIRA
55
55
  "releaseDate" => DateTime.now
56
56
  }
57
57
 
58
- puts "Creating release version #{params["name"]}"
58
+ puts "Creating release #{JSON.generate(params)}"
59
59
  version_response = client["version"].post(JSON.generate(params))
60
60
  fields = JSON.parse(version_response.body)
61
61
  version_id = fields["id"]
62
62
 
63
63
  rescue RestClient::Exception => e
64
- puts "Error updating version : Error code #{e}"
64
+ puts "Error updating version : Error code #{e.response}"
65
65
  end
66
66
 
67
67
  version_id
@@ -83,7 +83,7 @@ module NG1BuildHelpers::JIRA
83
83
  @jira_transition_id = testing_transition["id"]
84
84
  end
85
85
  rescue RestClient::Exception => e
86
- puts "Error code #{e.response.code} attempting to find Build Complete transition"
86
+ puts "Error code #{e.response} attempting to find Build Complete transition"
87
87
  end
88
88
  end
89
89
 
@@ -113,7 +113,7 @@ module NG1BuildHelpers::JIRA
113
113
  begin
114
114
  issue_response = client["issue/#{issue_key}"].put(JSON.generate(params))
115
115
  rescue RestClient::Exception => e
116
- puts "Error updating issue #{issue_key}: Error code #{e}"
116
+ puts "Error updating issue #{issue_key}: Error: #{e.response}"
117
117
  end
118
118
  end
119
119
 
@@ -136,7 +136,7 @@ module NG1BuildHelpers::JIRA
136
136
 
137
137
  issue_response = client["issue/#{issue_key}/transitions"].post(JSON.generate(params))
138
138
  rescue RestClient::Exception => e
139
- puts "Error updating issue #{issue_key}: Error code #{e}"
139
+ puts "Error updating issue #{issue_key}: Error #{e.response}"
140
140
  end
141
141
  end
142
142
  end
@@ -146,12 +146,14 @@ module NG1BuildHelpers::JIRA
146
146
  puts "Updating JIRA"
147
147
  version_id = create_release_version()
148
148
 
149
- #Set the fix version of all the issues that were built.
150
- issues.each do |issue_key|
151
- puts "Updating issue #{issue_key}"
152
- update_fix_version(issue_key, version_id)
153
- update_transition(issue_key)
154
-
149
+ if (version_id)
150
+ #Set the fix version of all the issues that were built.
151
+ issues.each do |issue_key|
152
+ puts "Updating issue #{issue_key} to release version #{version_id}"
153
+ update_fix_version(issue_key, version_id)
154
+ update_transition(issue_key)
155
+
156
+ end
155
157
  end
156
158
  end
157
159
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: NG1BuildHelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - NG1
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: OptionParser
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.6.14
112
+ rubygems_version: 2.7.8
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Helpers for performing build tasks and integrations