ruby-jss 1.2.2 → 1.2.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: 83836b3e036658c6254365b47fe0d2b00b03dd3e75e42cd80f27ba29988d6b3b
4
- data.tar.gz: 2e5b73fd7fd6f76f474170cc40165a156b79e37e96807fcfad0ee987e5df8018
3
+ metadata.gz: db7db3a85a2ce09946ec84f4b254f948f566daa8f5e0e9b8f939c9efb8eefef1
4
+ data.tar.gz: 1edb35f947212312c165f2ff0fa1ed3c4a059fb58f0abb5de9bea8877bfab3a0
5
5
  SHA512:
6
- metadata.gz: fbf7ba2137f3de2a8aaff77c8c53f84086913f6ee154345d3419e94e874422116405d04ab1448c254a09e1375a734738050f07738d860245dc629f8a157c96d8
7
- data.tar.gz: 4480768a24e0cd1372f35bafcce1d2effe646e09da4ee44bf195deff2451f46d946c94c8c34aa0ecb74dd5177ad274f4c7f9c7e0c60abf1fe0da55b1271d0b00
6
+ metadata.gz: d8d61d9f03d99a289f0b5c4dd0fefe246f824fac21003e905bbc5dd25c6e2ff84bffbc6eb3244086db8af143ca39722e738711c82cf5f8b9174c6183d8c40d03
7
+ data.tar.gz: db954707cef1f340613ecb27657d38673e6117ac4b9db05ba3025bab6ba4446e220808346856e4c50003eca58fc84dfb8c6e640d2a41e3a32987e9dc5766a99a
data/CHANGES.md CHANGED
@@ -4,7 +4,7 @@ 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.2.2] - 2019-10-31
7
+ ## \[1.2.3] - 2019-10-31
8
8
  ### Added
9
9
  - the ManagementHistory mixin module used by the Computer and MobileDevice classes, now has a `last_mdm_contact` class and instance method, which returns a Time object for the timestamp of the most recent completed MDM command. This is useful for MobileDevices, which don't have anything like the `last_checkin` value for comptuers, indicating real communication between the device and Jamf Pro.
10
10
  Note that the `last_inventory_update` value does NOT indicate such communication, since that timestamp is updated when values are changed via the API
@@ -21,7 +21,7 @@ Note that the `last_inventory_update` value does NOT indicate such communication
21
21
  - ExtensionAttribute#attribute_mapping getter & setter for EAs that have the 'LDAP Attribute Mapping' input type.
22
22
 
23
23
  ### Fixed
24
- - DB_CNX.valid_server? now specifies utf8 charset, needed for newer versions of mysql.
24
+ - DB_CNX.valid_server? now specifies utf8 charset, and catches NotSupportedAuthMode errors, needed for newer versions of mysql
25
25
 
26
26
  ### Changed
27
27
  - Cleaned up and modernized ExtensionAttribute and its subclasses. Marked a few things as deprecated: recon_display, scripting_language, and platform, all in ComputerExtensionAttribute.
@@ -246,9 +246,15 @@ module JSS
246
246
  # this connection should get an access denied error if there is
247
247
  # a mysql server there. I'm assuming no one will use this username
248
248
  # and pw for anything real
249
+ # Also with newer versions of mysql, a Mysql instance that has
250
+ # never authenticated will raise Mysql::ServerError::NotSupportedAuthMode
251
+ # rather than Mysql::ServerError::AccessDeniedError, until a
252
+ # successful connection is made. After that, re-connecting will
253
+ # raise AccessDeniedError when credentials are invalid.
254
+
249
255
  mysql.connect server, 'notArealUser', "definatelyNotA#{$PROCESS_ID}password", 'not_a_db', port
250
256
 
251
- rescue Mysql::ServerError::AccessDeniedError
257
+ rescue Mysql::ServerError::AccessDeniedError, Mysql::ServerError::NotSupportedAuthMode
252
258
  return true
253
259
  rescue
254
260
  return false
@@ -27,6 +27,6 @@
27
27
  module JSS
28
28
 
29
29
  ### The version of ruby-jss
30
- VERSION = '1.2.2'.freeze
30
+ VERSION = '1.2.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.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lasell