ruby-jss 5.0.1 → 5.0.2
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 +4 -4
- data/CHANGES.md +7 -0
- data/lib/jamf/api/classic/api_objects/computer.rb +1 -1
- data/lib/jamf/api/classic/api_objects/mobile_device.rb +1 -1
- data/lib/jamf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f93b3360e24d93380ba960978723f4befe407f82af36cfb3d780c6a77467d105
|
|
4
|
+
data.tar.gz: e74fcfcba538665900f76f9f43253c5561bb0134e08422d961ca1eb3a8395884
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8ea1ebdf16d0321bcef5ae6debfd776ee062d818a427cc9a37947da9eb08f912e367e50554441de57b869fa5917f85aaaac1c12e0501cfd482682fbe3643540
|
|
7
|
+
data.tar.gz: c5edc291971163572179187e598b69427bc37ba85906d211d5111a748c7b314310d186e0469fe2cd8e3c1b332b1d1dc87024ac52090f4a063dea7710250feace
|
data/CHANGES.md
CHANGED
|
@@ -14,6 +14,13 @@ __Please update all installations of ruby-jss to at least v1.6.0.__
|
|
|
14
14
|
|
|
15
15
|
Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue and providing examples of how it could be exploited.
|
|
16
16
|
|
|
17
|
+
--------
|
|
18
|
+
## \[5.0.2] 2026-01-24
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Class methods `Jamf::Computer.management_id` and `Jamf::MobileDevice.management_id` were not passing the given connection object to the `valid_id` method, and always using the default connection object. They now pass given objects as they should.
|
|
23
|
+
|
|
17
24
|
--------
|
|
18
25
|
## \[5.0.1] 2026-01-09
|
|
19
26
|
|
|
@@ -604,7 +604,7 @@ module Jamf
|
|
|
604
604
|
# @return [String, nil] the management ID, or nil if the computer is not MDM managed
|
|
605
605
|
##########################################
|
|
606
606
|
def self.management_id(ident, cnx: Jamf.cnx)
|
|
607
|
-
jid = valid_id ident
|
|
607
|
+
jid = valid_id ident, cnx: cnx
|
|
608
608
|
raise Jamf::NoSuchItemError, "No Computer with identifier '#{ident}'" unless jid
|
|
609
609
|
|
|
610
610
|
cnx.jp_get("v2/computers-inventory/#{jid}").dig :general, :managementId
|
|
@@ -195,7 +195,7 @@ module Jamf
|
|
|
195
195
|
# @return [String, nil] the management ID, or nil if the computer is not MDM managed
|
|
196
196
|
##########################################
|
|
197
197
|
def self.management_id(ident, cnx: Jamf.cnx)
|
|
198
|
-
jid = valid_id ident
|
|
198
|
+
jid = valid_id ident, cnx: cnx
|
|
199
199
|
raise Jamf::NoSuchItemError, "No MobileDevice with identifier '#{ident}'" unless jid
|
|
200
200
|
|
|
201
201
|
cnx.jp_get("v2/mobile-devices/#{jid}")[:managementId]
|
data/lib/jamf/version.rb
CHANGED
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: 5.0.
|
|
4
|
+
version: 5.0.2
|
|
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: 2026-01-
|
|
12
|
+
date: 2026-01-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: pixar-ruby-extensions
|