improved_jenkins_client 1.6.6 → 1.6.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
2
  SHA256:
3
- metadata.gz: f381907a06146eab9fc814b98a7233a8981a570e2f5f812936f22d5d745844f5
4
- data.tar.gz: 8f2011c9223b397e8d3045d259f715f3e346fa4bad1f24d778cb743699781a92
3
+ metadata.gz: d0b836a0050b0fac502e19aaa527a175e98cd33f92f3c1b450f9616136140c08
4
+ data.tar.gz: 4b49c8cd16ba499e768fbdea346ff08e607597012de67c226cc3b515e4bfa729
5
5
  SHA512:
6
- metadata.gz: f9df1bcd1a5b4e9db2ac14074f20d36082d60ce9f7f3132b896df69ca79a8fce2fe3649d0bcc62284480c754ad9db72135fb88523b29f5be1678b43eb14a4527
7
- data.tar.gz: 647de6de4983fc9138dcbe815f37d2c8f7dcc0cfa879d16edf3ee6c0f1296d4dbf0621a9d75b18693674e7571fe238ee170f40ba3074813479ec2cf6decc30bd
6
+ metadata.gz: 2e4f9929f81880760be739a58ddda8475d70caa1a330c896aedd5cdef80ce53e464c0556843fa33fc7d4f1d9e353bf05d18e021cef68c1032ed99577bbe60e69
7
+ data.tar.gz: 29a6315717c1e4f57d6eaae520a37a6b804aea07c990cc7751030113615e409800a0a672b790024bcb0bf2dfac33bfb9c8739b17a1e6e2051e0b9d0d6627d26c
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{lib/|bin/|java_deps/|gemspec}) }
21
21
  s.require_paths = ['lib']
22
22
  s.homepage = 'https://github.com/yugabyte-db/improved_jenkins_client'
23
- s.required_ruby_version = ::Gem::Requirement.new('~> 2.1')
23
+ s.required_ruby_version = ::Gem::Requirement.new('>= 2.1')
24
24
  s.rubygems_version = "2.4.5.1"
25
25
  s.summary = "Improved Jenkins JSON API Client"
26
26
  s.licenses = ["MIT"]
@@ -257,6 +257,13 @@ module JenkinsApi
257
257
  stuck
258
258
  end
259
259
 
260
+ # Cancel the given task
261
+ #
262
+ # @param [String] task_id the task id
263
+ def cancel_item(task_id)
264
+ @client.api_post_request("/queue/cancelItem?id=#{task_id}")
265
+ end
266
+
260
267
  end
261
268
  end
262
269
  end
@@ -824,7 +824,8 @@ module JenkinsApi
824
824
  # As of Jenkins version 1.519, the job builds return a 201 status code
825
825
  # with a Location HTTP header with the pointing the URL of the item in
826
826
  # the queue.
827
- when 200, 201, 302
827
+ #
828
+ when 200, 201, 204, 302
828
829
  if to_send == "body" && send_json
829
830
  return JSON.parse(response.body)
830
831
  elsif to_send == "body"
@@ -27,7 +27,7 @@ module JenkinsApi
27
27
  # Minor version of the gem
28
28
  MINOR = 6
29
29
  # Tiny version of the gem used for patches
30
- TINY = 6
30
+ TINY = 7
31
31
  # Used for pre-releases
32
32
  PRE = nil
33
33
  # Version String of Jenkins API Client.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: improved_jenkins_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kannan Manickam (the original jenkins_api_client gem)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-26 00:00:00.000000000 Z
12
+ date: 2021-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -156,7 +156,7 @@ require_paths:
156
156
  - lib
157
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - "~>"
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '2.1'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement