depot3 3.0.13 → 3.0.14

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
  SHA1:
3
- metadata.gz: 80cce63be708933a3cc95c8c04130c7305f62821
4
- data.tar.gz: 3b09f20666c177968106da0cb9a40d6f81c32528
3
+ metadata.gz: 16ccf3f7c58877a4d5cab64e36ec412aba7f4b04
4
+ data.tar.gz: 96f9128b249fb8fa2c1ca7a2bb6b67a2cd014bc9
5
5
  SHA512:
6
- metadata.gz: 43c2311387719eabfd9bf835d53e2582b637a8717baef425e19d9efb6140ba097bbfa5a4384cc53d5d0b92731893c008f823e1d7896135fd67a95357c2084d66
7
- data.tar.gz: 3b3eeab2492cda0b170fe223a059fe5b434187fec73fd8c817f253a5ddd6ae03a3ef9350a1998046e4863e8d5e54b112fed8a99a9aafbbd37d375763b12501c9
6
+ metadata.gz: 75c17b5a895ea1efa62a09458bb88cdbb89d50d66d312c3eae253f7f2de6f0cb2233b5ba36230812c9d061ac8bd1277265bcd92b13edcd04c69920a5df433927
7
+ data.tar.gz: 4ddec6877a7b22eb2edf09fb2f65a396365ce02a4560d78412a26c2a66b3847946f40ddb93de012eaeb48bb00929bf2bd75a98d0e0cde8873f71dd26504dd909
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change History
2
2
 
3
+ ## v3.0.14 - 2016-12-08
4
+
5
+ - Bugfix: Stored receipts with the singulare 'prohibiting_process' are now handled and updated to the plural 'prohibiting_processes'
6
+
3
7
  ## v3.0.13 - 2016-12-07
4
8
 
5
9
  - Change: Updated CHANGES.md
@@ -325,6 +325,11 @@ module D3
325
325
  end # if removable
326
326
 
327
327
  # prohibiting_processes
328
+ # make sure they are all arrays as of v3.0.12
329
+ unless rcpt.prohibiting_processes.is_a? Array
330
+ rcpt.prohibiting_processes = JSS.to_s_and_a(rcpt.prohibiting_processes)[:arrayform]
331
+ need_update = true
332
+ end
328
333
  if rcpt.prohibiting_processes.sort != pkgdata[:prohibiting_processes].sort
329
334
  rcpt.prohibiting_processes = pkgdata[:prohibiting_processes]
330
335
  D3.log "Updating prohibiting_processes for #{rcpt.edition}", :info
@@ -576,12 +576,15 @@ module D3
576
576
 
577
577
  @removable = args[:removable]
578
578
  @prohibiting_processes = args[:prohibiting_processes]
579
+ @prohibiting_processes ||= []
580
+
579
581
  @frozen = args[:frozen]
580
582
  @pre_remove_script_id = args[:pre_remove_script_id]
581
583
  @post_remove_script_id = args[:post_remove_script_id]
582
584
 
583
585
  @expiration = args[:expiration].to_i
584
586
  @expiration_paths = args[:expiration_paths]
587
+ @expiration_paths ||= []
585
588
  @custom_expiration = args[:custom_expiration]
586
589
 
587
590
  @manually_installed = (@admin != D3::AUTO_INSTALL_ADMIN)
data/lib/d3/utility.rb CHANGED
@@ -32,6 +32,9 @@ module D3
32
32
  ### @return [Boolean]
33
33
  ###
34
34
  def self.prohibited_by_process_running? (xprocs)
35
+ # this is needed in case saved rcpts have nil or a string instead
36
+ # of an array, from pre v3.0.12
37
+ xprocs = JSS.to_s_and_a(xprocs)[:arrayform]
35
38
  processes = `/bin/ps -A -c -o comm`.split("\n")
36
39
  current_prohibiting = processes & xprocs
37
40
  return true unless current_prohibiting.empty?
data/lib/d3/version.rb CHANGED
@@ -25,5 +25,5 @@
25
25
 
26
26
  ###
27
27
  module D3
28
- VERSION = '3.0.13'.freeze
28
+ VERSION = '3.0.14'.freeze
29
29
  end # module
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depot3
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lasell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-keychain