ruby-jss 5.1.0b1 → 5.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4beb91ca79699491fc5868a5e4b2e22f57048df817bca7207d65574eb94227c
4
- data.tar.gz: b31adf1c1cbcd419656aa4eeb58e70ed21147a79b3bd45730e5301b39e0acd7a
3
+ metadata.gz: ad9a9d1b944780d7b4cdec1134d8e16ca135cfbb6e00cd3320ab749dbf09b561
4
+ data.tar.gz: f396adcce6a270ce4ac161bed17ddc9f5a97969813295f381dfa7abe5cf39797
5
5
  SHA512:
6
- metadata.gz: fcc17975fefc7e5f7d5f9830827dac4997af144817364ae866b796a4b634188f34a0dd553675e64a34aca9d53223e5e55a0dad2ed821eb135ffe91a206fdd566
7
- data.tar.gz: 721e2d5981fbc3f8123e821a9f2a9cf8507dab9889ad2723cb4a77f68a6af313bad0e2e50ad6613314baa8e6111413b4b169fe739d199b5d223d350a2594393c
6
+ metadata.gz: fd146a0a120efa1f4005c6f03c67b709260d34dfa77626d1b1a168c46576cea48176b1430e0b0042caa10a98a15cdcd980cd0223b8d1fe105682b7080ba2ba61
7
+ data.tar.gz: 299432011684648db0530f9cc169dd4fc9b2307a6727e44a5e874d0e25843e73f313f81b62b46f0817f6f351dbfc0383112e67ee22667f2bbca656805165ac2f
data/CHANGES.md CHANGED
@@ -15,7 +15,7 @@ __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.1.0] Unreleased
18
+ ## \[5.1.0] 2026-08-04
19
19
 
20
20
  ### Added
21
21
 
@@ -143,7 +143,7 @@ For Packages this means that when setting the categoryId, for example, you must
143
143
 
144
144
  In order to move forward with Jamf Pro-based classes, while providing reasonable backward compatibility, here's the plan:
145
145
 
146
- - For each class being migrated, and new class, prepended with `J` will be created. So for accessing packages via the Jamf Pro API, we are introducing the class `Jamf::JPackage`. We've had an experimental Jamf Pro version of Jamf::JpBuilding for a while, and it has been renamed to `Jamf::JBuilding`
146
+ - For each class being migrated, a new class, prepended with `J` will be created. So for accessing packages via the Jamf Pro API, we are introducing the class `Jamf::JPackage`. We've had an experimental Jamf Pro version of Jamf::JpBuilding for a while, and it has been renamed to `Jamf::JBuilding`
147
147
  - The original Classic API-based class will be marked as deprecated when the matching J-class is released.
148
148
  - The deprecated classes will exist for at least one year (probably longer) but will get few, if any, updates, mostly limited to security-related fixes. As of this release, `Jamf::Package` and `Jamf::Building` are deprecated.
149
149
  - During the deprecation period, please update all your code to use the new Jamf Pro API-based classes.
@@ -914,7 +914,7 @@ module Jamf
914
914
 
915
915
  # newstyle, 'notifications' subset
916
916
  notif = ssvc.add_element('notifications')
917
- notif.add_element('notifications_enabled').text = self_service_notifications_enabled.to_s
917
+ notif.add_element('notification_enabled').text = self_service_notifications_enabled.to_s
918
918
  notif.add_element('notification_type').text = NOTIFICATION_TYPES[self_service_notification_type] if self_service_notification_type
919
919
  notif.add_element('notification_subject').text = self_service_notification_subject if self_service_notification_subject
920
920
  notif.add_element('notification_message').text = self_service_notification_message if self_service_notification_message
@@ -1769,6 +1769,11 @@ module Jamf
1769
1769
  doc.to_s
1770
1770
  end
1771
1771
 
1772
+ # Send the current rest_xml to stdout for preview
1773
+ def show_xml
1774
+ REXML::Document.new(rest_xml).write STDOUT, 2
1775
+ end
1776
+
1772
1777
  end # class APIObject
1773
1778
 
1774
1779
  end # module Jamf
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.1.0b1'.freeze
12
+ VERSION = '5.1.0'.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.1.0b1
4
+ version: 5.1.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: 2026-07-02 00:00:00.000000000 Z
12
+ date: 2026-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pixar-ruby-extensions
@@ -558,9 +558,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
558
558
  version: 2.6.3
559
559
  required_rubygems_version: !ruby/object:Gem::Requirement
560
560
  requirements:
561
- - - ">"
561
+ - - ">="
562
562
  - !ruby/object:Gem::Version
563
- version: 1.3.1
563
+ version: '0'
564
564
  requirements: []
565
565
  rubygems_version: 3.0.3.1
566
566
  signing_key: