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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17fb22cf6d8875d39d9cbc9b9c563e5820550827f8b80c98550894366ef612a3
4
- data.tar.gz: 2f803cb016921cfd1d010e6daa6ccac1d71b3217eb58c9eae4cc7315771d10df
3
+ metadata.gz: a3b5c8beb1d7a007dbb874b47918d3a921b19d765e7aadfbf81dd8a44b7a8803
4
+ data.tar.gz: '03842c76300248af3b5384bdf37b809308ee5aa380741359dd97bab045432ec3'
5
5
  SHA512:
6
- metadata.gz: dc3808ea2369c95b023bec90b1701b47ab62e0d320acc0244387d5e6022e25c0990758ef43703fb0093127c1e7877d0ab2af5fab3d00480c67bf8e08d72ae514
7
- data.tar.gz: 6730c3d8515637f63e75af1ae0163f3a5ed3723b0fe33170173705821671f0e1d5a5c789d06e570cc8eb72964990b5e6ff250e0b47ad9b9902c693725c24da88
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] # TODO: does this get set automatically when uploading a .ipa?
201
- @version = general[:version] # TODO: does this get set automatically when uploading a .ipa?
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
@@ -27,6 +27,6 @@
27
27
  module JSS
28
28
 
29
29
  ### The version of the JSS ruby gem
30
- VERSION = '1.0.0'.freeze
30
+ VERSION = '1.0.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: 1.0.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-20 00:00:00.000000000 Z
12
+ date: 2018-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist