ruby-jss 3.2.0b4 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bb29ed920cff10a2b1ce05fd60b8fd3e21059b48df55895bf022116c605fbd1
4
- data.tar.gz: 1ace6dbd8c45c84488e491cd7eca25fc966854444dd5017833ccc108d8373964
3
+ metadata.gz: b2f3742a0ba9ae93dd57271364dffc81811821b394e9acf1c75a3b2caafb241c
4
+ data.tar.gz: f9925aa64e13c52608469d538d28f843a630341b6d70766574f6f1bc640d95db
5
5
  SHA512:
6
- metadata.gz: bb10817e7d1900728aaae05b49dd1db2ffa438260d49222ff9e97edcdc7d9fdca272a2c7a1d7ceb090336832dcbaf4a75567a9a4adfdde5ea77c392833608f06
7
- data.tar.gz: 4b3fd77f2ef0c7ffe479eb9db2e9de731808ddf1de0bb3072ccf3ec3d115fee554a6bf822f23236c7fdd31086a27962578a9aa4e258be6e9a63d4ef14e4ba50a
6
+ metadata.gz: cdada83cae25e2bf7384efb42cd0d84c51f628fc0da1a8c9343f37259a4d64623c15bcb1ac6836749a98f644c7011adcd2efba6b1399b911b07dd98f2e6403d3
7
+ data.tar.gz: 2158bea2fbb3aa1eba8fcb6891399c01e96d8ec829bba5e17b9de99c0d8fcedf73e321a18c114665235c79584e4b1d6e9d63ec54509dbf978e9743da9b1285e4
data/CHANGES.md CHANGED
@@ -15,7 +15,14 @@ __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
- ## \[UNRELEASED]
18
+ ## \[3.2.1] 2023-09-08
19
+
20
+ ### Fixed
21
+ - Scopes are properly maintained when using #clone on Policy and PatchPolicy instances.
22
+ Note: the data loss issue in addressed is in the previous version still applies. If the original policy being cloned has any `jss_users` or `jss_user_groups` defined in the targets or exclusions. they will be lost when saving the clone.
23
+
24
+ --------
25
+ ## \[3.2.0] 2023-09-05
19
26
 
20
27
  ### Added
21
28
  - Several new attributes to Jamf::Computer instances:
@@ -56,7 +63,7 @@ Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue an
56
63
 
57
64
  ### Fixed
58
65
  - `Jamf::DeviceEnrollment.device` no longer uses String#upcase!, which fails on frozen strings. Instead just use String#casecmp?
59
- - `Jamf::APIConnection::Token#account` now returns an instance of `Jamf::OAPISchemas::AuthorizationV1`
66
+ - `Jamf::APIConnection::Token#account` now correctly returns an instance of `Jamf::OAPISchemas::AuthorizationV1`
60
67
 
61
68
  ## \[3.1.0] 2023-06-06
62
69
 
@@ -624,7 +624,9 @@ module Jamf
624
624
  general.add_element('allow_downgrade').text = allow_downgrade
625
625
  general.add_element('patch_unknown').text = patch_unknown
626
626
 
627
- obj << scope.scope_xml if scope.should_update?
627
+ # always include the scope if we have no id yet - we could be
628
+ # a clone of an existing object
629
+ obj << scope.scope_xml if scope.should_update? || @id.nil?
628
630
 
629
631
  add_self_service_xml doc
630
632
 
@@ -2111,7 +2111,9 @@ module Jamf
2111
2111
  activation = @server_side_limitations[:activation]
2112
2112
  date_time_limitations.add_element('activation_date_epoch').text = activation.to_jss_epoch if activation
2113
2113
 
2114
- obj << @scope.scope_xml if @scope.should_update?
2114
+ # always include the scope if we have no id yet - we could be
2115
+ # a clone of an existing object
2116
+ obj << @scope.scope_xml if @scope.should_update? || @id.nil?
2115
2117
 
2116
2118
  reboot = obj.add_element 'reboot'
2117
2119
  JSS.hash_to_rexml_array(@reboot_options).each { |elem| reboot << elem }
data/lib/jamf/version.rb CHANGED
@@ -27,6 +27,6 @@
27
27
  module Jamf
28
28
 
29
29
  ### The version of ruby-jss
30
- VERSION = '3.2.0b4'.freeze
30
+ VERSION = '3.2.1'.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: 3.2.0b4
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lasell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-08-31 00:00:00.000000000 Z
13
+ date: 2023-09-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: CFPropertyList
@@ -882,9 +882,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
882
882
  version: 2.6.3
883
883
  required_rubygems_version: !ruby/object:Gem::Requirement
884
884
  requirements:
885
- - - ">"
885
+ - - ">="
886
886
  - !ruby/object:Gem::Version
887
- version: 1.3.1
887
+ version: '0'
888
888
  requirements: []
889
889
  rubygems_version: 3.0.3.1
890
890
  signing_key: