docman 0.0.54 → 0.0.55

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cec60ec81acc626b3aeb98586ca685a185b949f
4
- data.tar.gz: 98dc159a0be961b15477028488317281dd544479
3
+ metadata.gz: 1cd666a3738a45fdab778d2cce02088e36fc8076
4
+ data.tar.gz: 963f9a2c8fbdd5ff58a57f03094990043681db68
5
5
  SHA512:
6
- metadata.gz: 33749d9bb702df90ef05f9508167533903a45cc1bc52c0b59caa3377b8e8017037135dd3d7285e3780e48b1a389db7829c5d1d7f0acf022b165a1914572ec46a
7
- data.tar.gz: 71d3653bac414e0c76a42821d670fdc345be6c646b5793ea352d37f7b0fd4fec69860934fe5e1cf641a1bfa868682ecc3cf4a2918d51ba78b30a2a747e4721f7
6
+ metadata.gz: 5a307917717f7af47b8afdfeb8b2ee16e064f19d5d529aefdb82f6b1039b5aa796ce37409a5510ee08a760a3943ebe18d1c9a2d188a1e29254d5f8765b604f10
7
+ data.tar.gz: 25e8b6c064f22911f65230729107791f57838ff21a74b8a26b99734fd60c60fa103734d6bab40901ec78e6aa58dd6e5a0878c3e0e9597ec7807ba19fbf503d6e
@@ -48,7 +48,7 @@ module Docman
48
48
  end
49
49
 
50
50
  def add_actions(obj, context = nil)
51
- if obj.has_key? 'hooks' and obj['hooks'].has_key? @type and obj['hooks'][@type]
51
+ if obj.has_key? 'hooks' and obj['hooks'].has_key? @type and not obj['hooks'][@type].nil?
52
52
  obj['hooks'][@type].each_pair do |name, hooks|
53
53
  hooks = Marshal::load(Marshal.dump(hooks))
54
54
  unless context.nil?
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.54"
2
+ VERSION = "0.0.55"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54
4
+ version: 0.0.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov