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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb8e45fa884fdb03111f19962b52cc59e9d9a959b56139c0494682d1796be369
4
- data.tar.gz: 51f1c69302671c63da44b535b437ed92741f925741ab27348def5d9bb51ac0c9
3
+ metadata.gz: f93b3360e24d93380ba960978723f4befe407f82af36cfb3d780c6a77467d105
4
+ data.tar.gz: e74fcfcba538665900f76f9f43253c5561bb0134e08422d961ca1eb3a8395884
5
5
  SHA512:
6
- metadata.gz: 0f3220a26d97723f97624dedf79abef52ed800aac589f2a485b7d9e37cb14499cce810093ce666209c3355f64b3a5585f901d05c070098bf88bdc48c36cb386a
7
- data.tar.gz: f9b4b1fba7f67e8cef0a883d7ec92f229f6241a33a48d16c6e45772d9789bc03a0361ab189b35018ddc45c2748e31cf494bde2e2cb1c9fcbae7fe49a2f1468f5
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
@@ -9,6 +9,6 @@
9
9
  module Jamf
10
10
 
11
11
  ### The version of ruby-jss
12
- VERSION = '5.0.1'.freeze
12
+ VERSION = '5.0.2'.freeze
13
13
 
14
14
  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: 5.0.1
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-09 00:00:00.000000000 Z
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