ruby-jss 5.0.0b1 → 5.0.0
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 -4
- data/lib/jamf/api/classic/api_objects/mdm.rb +15 -14
- data/lib/jamf/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5967bd88808e686b9c4d19707e55b05a889cdc50385fd96f9a693112977c6db0
|
|
4
|
+
data.tar.gz: f2fe45cdd69563229432a8b9d01d903226108fc0d9dd86bda83edf309ba8f533
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee53b7ed68c150895a86a9ab02a96b38b95c57e8cb40b74f2ad239948013d66a2969c4a7db79fe7a5ca2a12edf7248f7034e59307a8d767659ac7b3bebeab9a1
|
|
7
|
+
data.tar.gz: f33e2504c9b717a93041e639dc0d315fdb5c16756d388da43e94ca2e87f56902075756202c19853aa70e11c08923c0a119a36384104678a6379b7da3477920a4
|
data/CHANGES.md
CHANGED
|
@@ -15,13 +15,13 @@ __Please update all installations of ruby-jss to at least v1.6.0.__
|
|
|
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
17
|
--------
|
|
18
|
-
## \[5.0.0]
|
|
18
|
+
## \[5.0.0] 2026-01-06
|
|
19
19
|
|
|
20
20
|
### Added
|
|
21
21
|
|
|
22
22
|
- A new dependency on the [pixar-ruby-extensions gem](https://rubygems.org/gems/pixar-ruby-extensions), which are similar to those found in the JamfRubyExtensions module built into ruby-jss. Once all use of JamfRubyExtensions has been replaced by the new gem, JamfRubyExtensions will be removed. Staying DRY is a good thing.
|
|
23
23
|
|
|
24
|
-
- Jamf::Computer and Jamf::MobileDevice now have a class method `.management_id(ident, cnx: Jamf.cnx)` and a matching instance method `#management_id`. Even though the classes are based on the Classic API endpoints for Computers and MobileDevices, the 'managementId' value (a UUID used by
|
|
24
|
+
- Jamf::Computer and Jamf::MobileDevice now have a class method `.management_id(ident, cnx: Jamf.cnx)` and a matching instance method `#management_id`. Even though the classes are based on the Classic API endpoints for Computers and MobileDevices, the 'managementId' value (a UUID used by Apple's MDM/DDM) is not available in the Classic API data. These methods reach out to the Jamf Pro API to find the id for the instance, or the identified object. The upcoming JComputer and JMobileDevice classes will embody the Jamf Pro API endpoints directly.
|
|
25
25
|
|
|
26
26
|
### Changed
|
|
27
27
|
|
|
@@ -37,25 +37,27 @@ Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue an
|
|
|
37
37
|
|
|
38
38
|
This fixes [GitHub Issue 107](https://github.com/PixarAnimationStudios/ruby-jss/issues/107) - many thanks to @csfjeff for reporting the problem!
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
40
|
--------
|
|
43
41
|
## \[4.2.4] 2025-10-31
|
|
44
42
|
|
|
45
43
|
### Added
|
|
44
|
+
|
|
46
45
|
- Set request User-Agent header to indicate ruby-jss version
|
|
47
46
|
|
|
48
47
|
### Changed
|
|
48
|
+
|
|
49
49
|
- Use the 'TOMORROW OPEN SOURCE TECHNOLOGY LICENSE 1.0' (TOST) License
|
|
50
50
|
- The terms are unchanged, but it now has an offical name.
|
|
51
51
|
|
|
52
52
|
### Fixed
|
|
53
|
+
|
|
53
54
|
- Resolved [GitHub Issue 106](https://github.com/PixarAnimationStudios/ruby-jss/issues/106). REXML v3.4.3 or higher doesn't allow the creation of REXML::Document instances without a root element. Many thanks to @hiboma for the bug report and a suggested fix!
|
|
54
55
|
|
|
55
56
|
--------
|
|
56
57
|
## \[4.2.3] 2025-09-23
|
|
57
58
|
|
|
58
59
|
### Fixed
|
|
60
|
+
|
|
59
61
|
- Fixed bug were `#save` was not returning the object's Jamf ID when updating scopable objects.
|
|
60
62
|
- Fixed bug where `Jamf::Policy#retry_event=` raised error when no retry_attempts are defined.
|
|
61
63
|
|
|
@@ -63,6 +65,7 @@ Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue an
|
|
|
63
65
|
## \[4.2.2] 2025-09-06
|
|
64
66
|
|
|
65
67
|
### Fixed
|
|
68
|
+
|
|
66
69
|
- Class `Jamf::JPackage` no longer raises `Errno::EINVAL Invalid argument @ io_fread` when generating manifest checksums for very large package files.
|
|
67
70
|
|
|
68
71
|
|
|
@@ -355,11 +355,7 @@ module Jamf
|
|
|
355
355
|
commandData: command_data
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
if JSS.devmode?
|
|
359
|
-
puts "Sending XML:\n"
|
|
360
|
-
REXML::Document.new(cmd_xml).write STDOUT, 2
|
|
361
|
-
puts "\n\nTo rsrc: #{rsrc}"
|
|
362
|
-
end
|
|
358
|
+
puts "Sending data:\n#{data}" if JSS.devmode?
|
|
363
359
|
|
|
364
360
|
cnx.jp_post MDM_COMMAND_RSRC, data
|
|
365
361
|
end
|
|
@@ -378,7 +374,7 @@ module Jamf
|
|
|
378
374
|
#
|
|
379
375
|
# @param cnx [Jamf::Connection] an API connection to use.
|
|
380
376
|
#
|
|
381
|
-
# @return [Array<Integer>] The ids of the target devices for a command
|
|
377
|
+
# @return [Array<String,Integer>] The ids of the target devices for a command
|
|
382
378
|
#
|
|
383
379
|
def raw_targets_to_mgmt_ids(targets, expand_groups: true, unmanaged_ok: false, jamf_ids: false, api: nil, cnx: Jamf.cnx)
|
|
384
380
|
cnx = api if api
|
|
@@ -593,7 +589,7 @@ module Jamf
|
|
|
593
589
|
}
|
|
594
590
|
cmd_data[:message] = message if message
|
|
595
591
|
cmd_data[:phoneNumber] = phoneNumber if phoneNumber
|
|
596
|
-
cmd_data[:pin] = passcode
|
|
592
|
+
cmd_data[:pin] = passcode unless passcode.pix_empty?
|
|
597
593
|
|
|
598
594
|
send_mdm_command(targets, cmd_data, cnx: cnx)
|
|
599
595
|
end
|
|
@@ -722,8 +718,8 @@ module Jamf
|
|
|
722
718
|
data = {
|
|
723
719
|
commandType: DELETE_USER,
|
|
724
720
|
userName: user,
|
|
725
|
-
|
|
726
|
-
|
|
721
|
+
forceDeletion: force,
|
|
722
|
+
deleteAllUsers: all
|
|
727
723
|
}
|
|
728
724
|
send_mdm_command targets, data, cnx: cnx
|
|
729
725
|
end
|
|
@@ -915,7 +911,7 @@ module Jamf
|
|
|
915
911
|
alias set_name device_name
|
|
916
912
|
alias set_device_name device_name
|
|
917
913
|
|
|
918
|
-
# TODO:
|
|
914
|
+
# TODO: Update/migrate this when the wallpaper MDM command is migrated to JPAPI
|
|
919
915
|
#
|
|
920
916
|
# Send a wallpaper command to one or more targets
|
|
921
917
|
#
|
|
@@ -955,9 +951,15 @@ module Jamf
|
|
|
955
951
|
end
|
|
956
952
|
|
|
957
953
|
targets = raw_targets_to_mgmt_ids targets, jamf_ids: true, cnx: cnx
|
|
958
|
-
cmd_xml = mdm_command_xml(
|
|
954
|
+
cmd_xml = mdm_command_xml(:Wallpaper, opts, targets)
|
|
959
955
|
rsrc = 'mobiledevicecommands/command/Wallpaper'
|
|
960
956
|
|
|
957
|
+
if JSS.devmode?
|
|
958
|
+
puts "Sending XML:\n"
|
|
959
|
+
REXML::Document.new(cmd_xml).write STDOUT, 2
|
|
960
|
+
puts "\n\nTo rsrc: #{rsrc}"
|
|
961
|
+
end
|
|
962
|
+
|
|
961
963
|
xml_resp = cnx.c_post rsrc, cmd_xml
|
|
962
964
|
|
|
963
965
|
hash = {}
|
|
@@ -1449,11 +1451,10 @@ module Jamf
|
|
|
1449
1451
|
#
|
|
1450
1452
|
# @return (see .send_mdm_command)
|
|
1451
1453
|
#
|
|
1452
|
-
def
|
|
1454
|
+
def set_device_name(name)
|
|
1453
1455
|
self.class.device_name @id, name, cnx: @cnx
|
|
1454
1456
|
end
|
|
1455
|
-
alias set_name
|
|
1456
|
-
alias set_device_name device_name
|
|
1457
|
+
alias set_name set_device_name
|
|
1457
1458
|
|
|
1458
1459
|
# Send a wallpaper command to this object
|
|
1459
1460
|
#
|
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.0
|
|
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:
|
|
12
|
+
date: 2026-01-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: pixar-ruby-extensions
|
|
@@ -544,9 +544,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
544
544
|
version: 2.6.3
|
|
545
545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
546
546
|
requirements:
|
|
547
|
-
- - "
|
|
547
|
+
- - ">="
|
|
548
548
|
- !ruby/object:Gem::Version
|
|
549
|
-
version:
|
|
549
|
+
version: '0'
|
|
550
550
|
requirements: []
|
|
551
551
|
rubygems_version: 3.0.3.1
|
|
552
552
|
signing_key:
|