ruby-jss 1.2.10 → 1.3.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.

Potentially problematic release.


This version of ruby-jss might be problematic. Click here for more details.

Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +92 -1
  3. data/lib/jamf/api/abstract_classes/json_object.rb +1 -1
  4. data/lib/jamf/api/abstract_classes/prestage.rb +1 -1
  5. data/lib/jamf/api/connection.rb +7 -3
  6. data/lib/jamf/configuration.rb +7 -9
  7. data/lib/jamf/ruby_extensions.rb +1 -0
  8. data/lib/jamf/ruby_extensions/array.rb +1 -1
  9. data/lib/jamf/ruby_extensions/array/utils.rb +3 -3
  10. data/lib/jamf/ruby_extensions/dig.rb +52 -0
  11. data/lib/jss.rb +2 -0
  12. data/lib/jss/api_connection.rb +2 -29
  13. data/lib/jss/api_object.rb +15 -2
  14. data/lib/jss/api_object/directory_binding.rb +273 -0
  15. data/lib/jss/api_object/directory_binding_type.rb +90 -0
  16. data/lib/jss/api_object/directory_binding_type/active_directory.rb +502 -0
  17. data/lib/jss/api_object/directory_binding_type/admitmac.rb +525 -0
  18. data/lib/jss/api_object/directory_binding_type/centrify.rb +212 -0
  19. data/lib/jss/api_object/directory_binding_type/open_directory.rb +178 -0
  20. data/lib/jss/api_object/directory_binding_type/powerbroker_identity_services.rb +73 -0
  21. data/lib/jss/api_object/disk_encryption_configurations.rb +114 -0
  22. data/lib/jss/api_object/distribution_point.rb +95 -35
  23. data/lib/jss/api_object/dock_item.rb +137 -0
  24. data/lib/jss/api_object/mobile_device_application.rb +12 -0
  25. data/lib/jss/api_object/network_segment.rb +152 -58
  26. data/lib/jss/api_object/package.rb +106 -41
  27. data/lib/jss/api_object/policy.rb +379 -4
  28. data/lib/jss/api_object/printer.rb +440 -0
  29. data/lib/jss/api_object/scopable/scope.rb +24 -24
  30. data/lib/jss/composer.rb +1 -1
  31. data/lib/jss/utility.rb +8 -22
  32. data/lib/jss/version.rb +1 -1
  33. metadata +13 -2
@@ -147,7 +147,7 @@ module JSS
147
147
 
148
148
  ### now build the pkg
149
149
  begin
150
- it_built = system "#{PKGBUILD} --identifier '#{pkg_id}' --version '#{version}' --ownership #{pkg_ownership} --install-location / --root '#{root}' #{signing} #{comp_plist_arg} '#{pkg_out}' "
150
+ it_built = system "#{PKGBUILD} --identifier '#{pkg_id}' --version '#{version}' --ownership #{pkg_ownership} --install-location / --root '#{root}' #{signing} #{comp_plist_arg} '#{pkg_out}'"
151
151
 
152
152
  raise 'There was an error building the .pkg' unless it_built
153
153
  ensure
@@ -32,7 +32,7 @@ module JSS
32
32
 
33
33
  # Converts an OS Version into an Array of higher OS versions.
34
34
  #
35
- # It's unlikely that this library will still be in use as-is by the release of OS X 10.19.15.
35
+ # It's unlikely that this library will still be in use as-is by the release of OS X 10.30.
36
36
  # Hopefully well before then JAMF will implement a "minimum OS" in the JSS itself.
37
37
  #
38
38
  # @param min_os [String] the mimimum OS version to expand, e.g. ">=10.6.7" or "10.6.7"
@@ -43,26 +43,12 @@ module JSS
43
43
  # JSS.expand_min_os ">=10.6.7" # => returns this array
44
44
  # # ["10.6.7",
45
45
  # # "10.6.8",
46
- # # "10.6.9",
47
- # # "10.6.10",
48
- # # "10.6.11",
49
- # # "10.6.12",
50
- # # "10.6.13",
51
- # # "10.6.14",
52
- # # "10.6.15",
46
+ # # ...
47
+ # # "10.6.25",
53
48
  # # "10.7.x",
54
49
  # # "10.8.x",
55
- # # "10.9.x",
56
- # # "10.10.x",
57
- # # "10.11.x",
58
- # # "10.12.x",
59
- # # "10.13.x",
60
- # # "10.14.x",
61
- # # "10.15.x",
62
- # # "10.16.x",
63
- # # "10.17.x",
64
- # # "10.18.x",
65
- # # "10.19.x"]
50
+ # # ...
51
+ # # "10.30.x"]
66
52
  #
67
53
  #
68
54
  def self.expand_min_os(min_os)
@@ -80,14 +66,14 @@ module JSS
80
66
  # (and hope apple doesn't do more than 15 maint releases for an OS)
81
67
  else
82
68
  ok_oses = []
83
- (maint.to_i..15).each do |m|
69
+ (maint.to_i..25).each do |m|
84
70
  ok_oses << maj + '.' + min + '.' + m.to_s
85
71
  end # each m
86
72
  end
87
73
 
88
74
  # now account for all OS X versions starting with 10.
89
- # up to at least 10.19.x
90
- ((min.to_i + 1)..19).each do |v|
75
+ # up to 10.30.x
76
+ ((min.to_i + 1)..30).each do |v|
91
77
  ok_oses << maj + '.' + v.to_s + '.x'
92
78
  end # each v
93
79
  ok_oses
@@ -27,6 +27,6 @@
27
27
  module JSS
28
28
 
29
29
  ### The version of ruby-jss
30
- VERSION = '1.2.10'.freeze
30
+ VERSION = '1.3.2'.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: 1.2.10
4
+ version: 1.3.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: 2020-04-25 00:00:00.000000000 Z
12
+ date: 2020-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist
@@ -235,6 +235,7 @@ files:
235
235
  - lib/jamf/ruby_extensions/array.rb
236
236
  - lib/jamf/ruby_extensions/array/predicates.rb
237
237
  - lib/jamf/ruby_extensions/array/utils.rb
238
+ - lib/jamf/ruby_extensions/dig.rb
238
239
  - lib/jamf/ruby_extensions/filetest.rb
239
240
  - lib/jamf/ruby_extensions/filetest/predicates.rb
240
241
  - lib/jamf/ruby_extensions/hash.rb
@@ -277,7 +278,16 @@ files:
277
278
  - lib/jss/api_object/criteriable/criteria.rb
278
279
  - lib/jss/api_object/criteriable/criterion.rb
279
280
  - lib/jss/api_object/department.rb
281
+ - lib/jss/api_object/directory_binding.rb
282
+ - lib/jss/api_object/directory_binding_type.rb
283
+ - lib/jss/api_object/directory_binding_type/active_directory.rb
284
+ - lib/jss/api_object/directory_binding_type/admitmac.rb
285
+ - lib/jss/api_object/directory_binding_type/centrify.rb
286
+ - lib/jss/api_object/directory_binding_type/open_directory.rb
287
+ - lib/jss/api_object/directory_binding_type/powerbroker_identity_services.rb
288
+ - lib/jss/api_object/disk_encryption_configurations.rb
280
289
  - lib/jss/api_object/distribution_point.rb
290
+ - lib/jss/api_object/dock_item.rb
281
291
  - lib/jss/api_object/ebook.rb
282
292
  - lib/jss/api_object/extendable.rb
283
293
  - lib/jss/api_object/extension_attribute.rb
@@ -321,6 +331,7 @@ files:
321
331
  - lib/jss/api_object/peripheral.rb
322
332
  - lib/jss/api_object/peripheral_type.rb
323
333
  - lib/jss/api_object/policy.rb
334
+ - lib/jss/api_object/printer.rb
324
335
  - lib/jss/api_object/purchasable.rb
325
336
  - lib/jss/api_object/removable_macaddr.rb
326
337
  - lib/jss/api_object/restricted_software.rb