ruby-jss 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-jss might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/jss/api_object/mobile_device_application.rb +28 -2
- data/lib/jss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3b5c8beb1d7a007dbb874b47918d3a921b19d765e7aadfbf81dd8a44b7a8803
|
4
|
+
data.tar.gz: '03842c76300248af3b5384bdf37b809308ee5aa380741359dd97bab045432ec3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd2f45834eb413f253f7514f0992a668f362a9e925e78ead0d714aab5107fdcc849ce2996f9a3f104bdc4e76b8bc921316c1478f5f3cd82203038d2f8c4ec37
|
7
|
+
data.tar.gz: 72024e8a6f5a103d582f985c94ef99eb0d5ad040cd02d7d4d266410d1fdc24a3b8815757b60047899f650c6217210e70468976e18d6f8976be713855b05e32fb
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change History
|
2
2
|
|
3
|
+
## v 1.0.1, 2018-08-27
|
4
|
+
|
5
|
+
- add: `JSS::MobileDeviceApplication#version=` and `#bundle_id=` These two attributes are now settable and will be saved to the server if the application is hosted externally. Thanks to [ctaintor](https://github.com/ctaintor) for providing this patch.
|
6
|
+
|
3
7
|
## v 1.0.0, 2018-08-10
|
4
8
|
|
5
9
|
Finally we're going to version 1.0, which we should have done when we went opensource. Future releases will try to adhere to [Semantic Versioning](https://semver.org/) as described in the [rubygems.org guidelines](https://guides.rubygems.org/patterns/#semantic-versioning)
|
@@ -197,8 +197,8 @@ module JSS
|
|
197
197
|
general = @init_data[:general]
|
198
198
|
@display_name = general[:display_name]
|
199
199
|
@description = general[:description]
|
200
|
-
@bundle_id = general[:bundle_id]
|
201
|
-
@version = general[:version]
|
200
|
+
@bundle_id = general[:bundle_id]
|
201
|
+
@version = general[:version]
|
202
202
|
@ipa = general[:ipa]
|
203
203
|
@provisioning_profile = general[:provisioning_profile]
|
204
204
|
@url = general[:url]
|
@@ -357,6 +357,30 @@ module JSS
|
|
357
357
|
@need_to_update = true
|
358
358
|
end
|
359
359
|
|
360
|
+
# Sets the version (only necessary if you are hosting the .ipa externally)
|
361
|
+
#
|
362
|
+
# @param new_val[String] the version
|
363
|
+
#
|
364
|
+
# @return [void]
|
365
|
+
#
|
366
|
+
def version=(new_val)
|
367
|
+
return nil if new_val == @version
|
368
|
+
@version = new_val
|
369
|
+
@need_to_update = true
|
370
|
+
end
|
371
|
+
|
372
|
+
# Sets the bundle_id (only necessary if you are hosting the .ipa externally)
|
373
|
+
#
|
374
|
+
# @param new_val[String] the bundle id
|
375
|
+
#
|
376
|
+
# @return [void]
|
377
|
+
#
|
378
|
+
def bundle_id=(new_val)
|
379
|
+
return nil if new_val == @bundle_id
|
380
|
+
@bundle_id = new_val
|
381
|
+
@need_to_update = true
|
382
|
+
end
|
383
|
+
|
360
384
|
# Set whether or not this app's .ipa is hosted outside the Jamf server
|
361
385
|
#
|
362
386
|
# @param new_val[Boolean] The new value
|
@@ -457,6 +481,8 @@ module JSS
|
|
457
481
|
gen.add_element('free').text = @free
|
458
482
|
gen.add_element('take_over_management').text = @take_over_management
|
459
483
|
gen.add_element('host_externally').text = @host_externally
|
484
|
+
gen.add_element('bundle_id').text = @bundle_id if @host_externally
|
485
|
+
gen.add_element('version').text = @version if @host_externally
|
460
486
|
gen.add_element('external_url').text = @external_url
|
461
487
|
config = gen.add_element('configuration')
|
462
488
|
config.add_element('preferences').text = @configuration_prefs
|
data/lib/jss/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: 1.0.
|
4
|
+
version: 1.0.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: 2018-08-
|
12
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plist
|