ruby-jss 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-jss might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 609ac9ae5ba3ddf1c4c8392acda8d1f1f0bba99e119da2781bd1e8d841a294f5
4
- data.tar.gz: 28be9609494e02d11e863e5a64d80c82d866650efd599967400e434d157633ba
3
+ metadata.gz: 5149851702056e5500ec5e13624a91c78510fceb3b3fa0545aac69f756adb984
4
+ data.tar.gz: 42c5312c401d7b1e626f5c97c9697a0ec9cf5070be310301e307e5b83f8c4cc1
5
5
  SHA512:
6
- metadata.gz: f57b6c5c4b127688a6b9fd190a7927e1d1c6332061d1126b23d03b2d39566898fd5a0876ac73e801f6f9824cb45e149d13d6a4e97154b5c08f199ac593e74cdc
7
- data.tar.gz: 1086564724dd9398f1bf540df6a092c90045d9226a78ff1eeade1fc6af4442b566fca2fea896f3e0a25aa62a60d568cc43331c5adb89c5929d53a3bcdf063419
6
+ metadata.gz: '09b9e201339f62871c2eb74e78cf5d3674997b0d984eb1d537431be60efcbe83a82e383b88873d306d2a89e1a6fc3259c0b1e9fcbda1323caac48198510f6e1a'
7
+ data.tar.gz: bb07643c17c47532bb3469853ea0d0eb317e5e97bcbcf8ed07b44d7f9b6e7ce794a4f20154e2f2e4986ba4291576bb52ec0c645a180fb5c98d1b3443b5588317
data/CHANGES.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## \[1.5.3] - 2020-12-28
8
+
9
+ ### Fixed
10
+
11
+ - Classic API connections were not setting their default timeouts properly when first connected. This was causing an error in Policy#flush_logs
12
+
7
13
  ## \[1.5.2] - 2020-12-21
8
14
 
9
15
  ### Added
@@ -433,6 +433,8 @@ module JSS
433
433
 
434
434
  args[:no_port_specified] = args[:port].to_s.empty?
435
435
  args = apply_connection_defaults args
436
+ @timeout = args[:timeout]
437
+ @open_timeout = args[:open_timeout]
436
438
 
437
439
  # ensure an integer
438
440
  args[:port] &&= args[:port].to_i
@@ -329,7 +329,7 @@ module JSS
329
329
  computers = [computers] unless computers.is_a? Array
330
330
 
331
331
  # log flushes can be really slow
332
- api.timeout = 1800 unless orig_timeout > 1800
332
+ api.timeout = 1800 unless orig_timeout && orig_timeout > 1800
333
333
 
334
334
  return api.delete_rsrc "#{LOG_FLUSH_RSRC}/policy/id/#{pol_id}/interval/#{older_than}+#{period}" if computers.empty?
335
335
 
@@ -27,6 +27,6 @@
27
27
  module JSS
28
28
 
29
29
  ### The version of ruby-jss
30
- VERSION = '1.5.2'.freeze
30
+ VERSION = '1.5.3'.freeze
31
31
 
32
32
  end # module
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lasell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-22 00:00:00.000000000 Z
12
+ date: 2020-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist