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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7abcfd6bd7ac3400c06000f1d1caa93becb358fa
4
- data.tar.gz: e4a2df8fd4b6d38543a298451ba784f93773d5b4
3
+ metadata.gz: 415cf1e5cefb2d7137f0db1f7030613aa0b8af0f
4
+ data.tar.gz: 5b0c768d924f1ef26518bf8d4e1850da1042100f
5
5
  SHA512:
6
- metadata.gz: 8a5eef38d0003108b8c0111347fee500a769f26217b2f2989074e540f99fbd9fb88d3511d946e4b93bd65d885eed661159f8a78980aac77082f77348098804de
7
- data.tar.gz: a185e613312035062cb531f5623c7ad7b36064d1e8b55b8bf0f9ce4b36d9f1f8e489506291e5f00ca45fc883934d7d8fda9da2edc866fbac30e5db7e7013b6aa
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
@@ -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.0 ruby lib
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.0"
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-06-09"
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.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
@@ -27,7 +27,7 @@ module JenkinsApi
27
27
  # Minor version of the gem
28
28
  MINOR = 4
29
29
  # Tiny version of the gem used for patches
30
- TINY = 0
30
+ TINY = 1
31
31
  # Used for pre-releases
32
32
  PRE = nil
33
33
  # Version String of Jenkins API Client.
@@ -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.0
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-06-09 00:00:00.000000000 Z
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.2
282
+ rubygems_version: 2.2.3
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: Jenkins JSON API Client