jenkins_api_client 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/jenkins_api_client.gemspec +4 -4
- data/lib/jenkins_api_client/node.rb +2 -2
- data/lib/jenkins_api_client/version.rb +1 -1
- data/spec/unit_tests/node_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 415cf1e5cefb2d7137f0db1f7030613aa0b8af0f
|
4
|
+
data.tar.gz: 5b0c768d924f1ef26518bf8d4e1850da1042100f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01e9279b80d45676605920a547f9cd6a793dfbcb76a1257ac7f44cfc0a54c44835b5c7caecc7d2b46b7677464be95a7710188ab15f8ecbf7ced21c0a0cbc5eb
|
7
|
+
data.tar.gz: b16bed4ab466c62d9b3f1165e80e291555c9885e508392b09e7fa88dd2f573a7d977e552804479b6e4788c59acfa3acc6744d6fbe1c3279f1b86e9b13e14b60f
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ CHANGELOG
|
|
4
4
|
upcoming
|
5
5
|
--------
|
6
6
|
|
7
|
+
v1.4.1 [21-SEP-2015]
|
8
|
+
----------------------
|
9
|
+
* [#191][] Add dynamic depth support for node attributes. Credit: [@stjohnjohnson][]
|
10
|
+
|
7
11
|
v1.4.0 [08-JUN-2015]
|
8
12
|
----------------------
|
9
13
|
* [#161][] Fix job#build method when true/false values are passed as timeout parameter. Credit: [@jlucasps][]
|
@@ -326,6 +330,7 @@ v0.0.1 [15-OCT-2012]
|
|
326
330
|
[#176]: https://github.com/arangamani/jenkins_api_client/issues/176
|
327
331
|
[#177]: https://github.com/arangamani/jenkins_api_client/issues/177
|
328
332
|
[#179]: https://github.com/arangamani/jenkins_api_client/issues/179
|
333
|
+
[#191]: https://github.com/arangamani/jenkins_api_client/issues/191
|
329
334
|
[@AndrewHanes]: https://github.com/AndrewHanes
|
330
335
|
[@Loa]: https://github.com/Loa
|
331
336
|
[@Niarfe]: https://github.com/Niarfe
|
data/jenkins_api_client.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: jenkins_api_client 1.4.
|
5
|
+
# stub: jenkins_api_client 1.4.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "jenkins_api_client"
|
9
|
-
s.version = "1.4.
|
9
|
+
s.version = "1.4.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Kannan Manickam"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-09-21"
|
15
15
|
s.description = "\nThis is a simple and easy-to-use Jenkins Api client with features focused on\nautomating Job configuration programaticaly and so forth"
|
16
16
|
s.email = ["arangamani.kannan@gmail.com"]
|
17
17
|
s.executables = ["jenkinscli"]
|
@@ -90,7 +90,7 @@ Gem::Specification.new do |s|
|
|
90
90
|
]
|
91
91
|
s.homepage = "https://github.com/arangamani/jenkins_api_client"
|
92
92
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
93
|
-
s.rubygems_version = "2.2.
|
93
|
+
s.rubygems_version = "2.2.3"
|
94
94
|
s.summary = "Jenkins JSON API Client"
|
95
95
|
|
96
96
|
if s.respond_to? :specification_version then
|
@@ -244,7 +244,7 @@ module JenkinsApi
|
|
244
244
|
GENERAL_ATTRIBUTES.each do |meth_suffix|
|
245
245
|
define_method("get_#{meth_suffix}") do
|
246
246
|
@logger.info "Obtaining '#{meth_suffix}' attribute from jenkins"
|
247
|
-
response_json = @client.api_get_request("/computer", "tree=#{path_encode meth_suffix}")
|
247
|
+
response_json = @client.api_get_request("/computer", "tree=#{path_encode meth_suffix}[*[*[*]]]")
|
248
248
|
response_json["#{meth_suffix}"]
|
249
249
|
end
|
250
250
|
end
|
@@ -266,7 +266,7 @@ module JenkinsApi
|
|
266
266
|
define_method("get_node_#{meth_suffix}") do |node_name|
|
267
267
|
@logger.info "Obtaining '#{meth_suffix}' attribute of '#{node_name}'"
|
268
268
|
node_name = "(master)" if node_name == "master"
|
269
|
-
response_json = @client.api_get_request("/computer/#{path_encode node_name}", "tree=#{path_encode meth_suffix}")
|
269
|
+
response_json = @client.api_get_request("/computer/#{path_encode node_name}", "tree=#{path_encode meth_suffix}[*[*[*]]]")
|
270
270
|
response_json["#{meth_suffix}"]
|
271
271
|
end
|
272
272
|
end
|
@@ -160,7 +160,7 @@ describe JenkinsApi::Client::Node do
|
|
160
160
|
:api_get_request
|
161
161
|
).with(
|
162
162
|
"/computer",
|
163
|
-
"tree=#{attribute}"
|
163
|
+
"tree=#{attribute}[*[*[*]]]"
|
164
164
|
).and_return(
|
165
165
|
@sample_json_list_response
|
166
166
|
)
|
@@ -260,7 +260,7 @@ describe JenkinsApi::Client::Node do
|
|
260
260
|
:api_get_request
|
261
261
|
).with(
|
262
262
|
"/computer/slave",
|
263
|
-
"tree=#{attribute}"
|
263
|
+
"tree=#{attribute}[*[*[*]]]"
|
264
264
|
).and_return(
|
265
265
|
@sample_json_computer_response
|
266
266
|
)
|
@@ -272,7 +272,7 @@ describe JenkinsApi::Client::Node do
|
|
272
272
|
:api_get_request
|
273
273
|
).with(
|
274
274
|
"/computer/(master)",
|
275
|
-
"tree=#{attribute}"
|
275
|
+
"tree=#{attribute}[*[*[*]]]"
|
276
276
|
).and_return(
|
277
277
|
@sample_json_computer_response
|
278
278
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kannan Manickam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
279
|
version: '0'
|
280
280
|
requirements: []
|
281
281
|
rubyforge_project:
|
282
|
-
rubygems_version: 2.2.
|
282
|
+
rubygems_version: 2.2.3
|
283
283
|
signing_key:
|
284
284
|
specification_version: 4
|
285
285
|
summary: Jenkins JSON API Client
|