ruby-jss 4.1.1b1 → 4.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0df8e9b794ba674f60a7a224e9f7b9ae166d6ef5ff39435920e17460412a770
|
4
|
+
data.tar.gz: afef3a2acddf6588525facb25eb3273a1e96c02a5d3b2c57771cd951bf8fc0d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbd69adff24c3b718c0711042a36162f92f5f399081239c6d1f4919daf4fa978980a6a424a9cdc87e0635beafa04368f8eba71991fdef1d999ce799c8433db62
|
7
|
+
data.tar.gz: eae8268d15ecdd23d0f88039e6329a5d298e570716a3abfe552fc861bc403583b8402066379f2e5bd3c3e36f0ebf2eea543aa9bed0c9f34f18394d8473a8910d
|
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
|
-
## \[4.1.1]
|
18
|
+
## \[4.1.1] 2024-06-25
|
19
19
|
|
20
20
|
### Changed
|
21
21
|
- `expand_min_os` (used when specifying min. OS for Packages and Scripts) now expands up to macOS v30, so we have 15 years to hopefully not need to use it anymore.
|
@@ -25,11 +25,13 @@ Many many thanks to actae0n of Blacksun Hackers Club for reporting this issue an
|
|
25
25
|
### Fixed
|
26
26
|
|
27
27
|
- `LdapServer.check_membership` no longer fails or gives invalid responses when you provide a connection object via `cnx:`
|
28
|
+
|
28
29
|
- A bug in Jamf::PatchTitle which prevented use of non-default connection objects.
|
30
|
+
|
29
31
|
- Some ObjectModel classes from the OAPI3 schema were not getting generated, causing problems when using Zeitwerk's `eager_load`. Thanks to @j-o-lantern0422 and @jcruce13 for reporting the issue, and @nick-f for providing a fix!
|
30
32
|
|
31
33
|
|
32
|
-
NOTE: Given the nature of this issue, along with known inconsistencies in the data structures and naming of items in the OAPI3 schema, plus the fact that we're starting to migrate to the JP API for more complex object handling (e.g. `Jamf::MobileDevice`) we're probably going to stop using the auto-generated `Jamf::OAPISchemas` classes - at least in the way we have been using them. Most likely we'll still generate them, but then hand-edit them to create more robust, bespoke classes for the items we implement (as we did in the Classic API), and only include those required for the objects implemented. Feedback is welcome, via GitHub or The [#ruby-jss channel in Macadmins Slack](https://macadmins.slack.com/archives/C03C7F563MK)
|
34
|
+
NOTE: Given the nature of this issue, along with known inconsistencies in the data structures and naming of items in the OAPI3 schema, plus the fact that we're starting to migrate to the JP API for more complex object handling (e.g. `Jamf::MobileDevice`) we're probably going to stop using the auto-generated `Jamf::OAPISchemas` classes - at least in the way we have been using them. Most likely we'll still generate them, but then hand-edit them to create more robust, bespoke classes for the items we implement (as we did in the Classic API), and only include those required for the objects implemented. These changes shouldn't affect compatibility. Feedback is welcome, via GitHub or The [#ruby-jss channel in Macadmins Slack](https://macadmins.slack.com/archives/C03C7F563MK)
|
33
35
|
|
34
36
|
--------
|
35
37
|
## \[4.1.0] 2024-04-06
|
@@ -35,6 +35,10 @@
|
|
35
35
|
# So instead we'll tell it to ignore lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb
|
36
36
|
# and we'll load that manually here
|
37
37
|
#
|
38
|
+
# TODO: Stop using auto-generated Jamf::OAPISchemas as we have, use them
|
39
|
+
# as starting points for bespoke classes to help avoid problems like this.
|
40
|
+
#
|
41
|
+
# See Also: lib/jamf/api/jamf_pro/api_objects/api_role.rb
|
38
42
|
require 'jamf/api/jamf_pro/oapi_schemas/api_role'
|
39
43
|
|
40
44
|
# The Module
|
@@ -21,6 +21,23 @@
|
|
21
21
|
# language governing permissions and limitations under the Apache License.
|
22
22
|
#
|
23
23
|
|
24
|
+
# Manually require Jamf::OAPISchemas::ApiRole ....
|
25
|
+
######################################
|
26
|
+
# because this file defining Jamf::APIRole is at
|
27
|
+
# lib/jamf/api/jamf_pro/api_objects/api_role.rb
|
28
|
+
# has the same filename as the file defining Jamf::OAPISchemas::ApiRole
|
29
|
+
# lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb
|
30
|
+
# telling zeitwerk to use the file 'api_role.rb' to load Jamf::APIRole
|
31
|
+
# confuses it because it also finds the other one.
|
32
|
+
#
|
33
|
+
# So instead we'll tell it to ignore lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb
|
34
|
+
# and we'll load that manually here, since its needed below
|
35
|
+
#
|
36
|
+
# TODO: Stop using auto-generated Jamf::OAPISchemas as we have, use them
|
37
|
+
# as starting points for bespoke classes to help avoid problems like this.
|
38
|
+
#
|
39
|
+
# See Also: lib/jamf/api/jamf_pro/api_objects/api_role.rb
|
40
|
+
require 'jamf/api/jamf_pro/oapi_schemas/api_role'
|
24
41
|
|
25
42
|
module Jamf
|
26
43
|
|
@@ -29,7 +46,6 @@ module Jamf
|
|
29
46
|
#
|
30
47
|
module OAPISchemas
|
31
48
|
|
32
|
-
|
33
49
|
# OAPI Object Model and Enums for: ApiRoleResult
|
34
50
|
#
|
35
51
|
#
|
@@ -48,7 +64,7 @@ module Jamf
|
|
48
64
|
# Container Objects:
|
49
65
|
# Other object models that use this model as the value in one
|
50
66
|
# of their attributes.
|
51
|
-
#
|
67
|
+
#
|
52
68
|
#
|
53
69
|
# Sub Objects:
|
54
70
|
# Other object models used by this model's attributes.
|
@@ -63,8 +79,6 @@ module Jamf
|
|
63
79
|
#
|
64
80
|
class ApiRoleResult < Jamf::OAPIObject
|
65
81
|
|
66
|
-
|
67
|
-
|
68
82
|
OAPI_PROPERTIES = {
|
69
83
|
|
70
84
|
# @!attribute [r] totalCount
|
@@ -21,7 +21,6 @@
|
|
21
21
|
# language governing permissions and limitations under the Apache License.
|
22
22
|
#
|
23
23
|
|
24
|
-
|
25
24
|
module Jamf
|
26
25
|
|
27
26
|
# This module is the namespace for all objects defined
|
@@ -29,7 +28,6 @@ module Jamf
|
|
29
28
|
#
|
30
29
|
module OAPISchemas
|
31
30
|
|
32
|
-
|
33
31
|
# OAPI Object Model and Enums for: MdmCommandRequest
|
34
32
|
#
|
35
33
|
#
|
@@ -48,7 +46,7 @@ module Jamf
|
|
48
46
|
# Container Objects:
|
49
47
|
# Other object models that use this model as the value in one
|
50
48
|
# of their attributes.
|
51
|
-
#
|
49
|
+
#
|
52
50
|
#
|
53
51
|
# Sub Objects:
|
54
52
|
# Other object models used by this model's attributes.
|
@@ -65,8 +63,6 @@ module Jamf
|
|
65
63
|
#
|
66
64
|
class MdmCommandRequest < Jamf::OAPIObject
|
67
65
|
|
68
|
-
|
69
|
-
|
70
66
|
OAPI_PROPERTIES = {
|
71
67
|
|
72
68
|
# @!attribute clientData
|
@@ -79,7 +75,7 @@ module Jamf
|
|
79
75
|
# @!attribute commandData
|
80
76
|
# @return []
|
81
77
|
commandData: {
|
82
|
-
class:
|
78
|
+
class: nil
|
83
79
|
}
|
84
80
|
|
85
81
|
} # end OAPI_PROPERTIES
|
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: 4.1.
|
4
|
+
version: 4.1.1
|
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: 2024-06-
|
12
|
+
date: 2024-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: CFPropertyList
|
@@ -979,9 +979,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
979
979
|
version: 2.6.3
|
980
980
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
981
981
|
requirements:
|
982
|
-
- - "
|
982
|
+
- - ">="
|
983
983
|
- !ruby/object:Gem::Version
|
984
|
-
version:
|
984
|
+
version: '0'
|
985
985
|
requirements: []
|
986
986
|
rubygems_version: 3.0.3.1
|
987
987
|
signing_key:
|