docman 0.0.53 → 0.0.54

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: 3b4801fb380c1041724b105ddefa84d199c9f1a9
4
- data.tar.gz: 21d1c2daeb3672a9e35a55186e9a03d4d92cc811
3
+ metadata.gz: 0cec60ec81acc626b3aeb98586ca685a185b949f
4
+ data.tar.gz: 98dc159a0be961b15477028488317281dd544479
5
5
  SHA512:
6
- metadata.gz: 0b3fd7979c3a738d9245fb26e85662b84fec5874a1b418595250093e66ab135bc504510a72e0d13dafae309a4c1eab67a9a2d7076abda4c5ef2b8f882aa437c0
7
- data.tar.gz: 77bc25c028360de50fbc1d718535824afd9c81cbe43b93618e20f5e38d7549d153476cd86958b62e228c91a5650af140205c04b3ffb937de44d12a947e92badb
6
+ metadata.gz: 33749d9bb702df90ef05f9508167533903a45cc1bc52c0b59caa3377b8e8017037135dd3d7285e3780e48b1a389db7829c5d1d7f0acf022b165a1914572ec46a
7
+ data.tar.gz: 71d3653bac414e0c76a42821d670fdc345be6c646b5793ea352d37f7b0fd4fec69860934fe5e1cf641a1bfa868682ecc3cf4a2918d51ba78b30a2a747e4721f7
@@ -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
51
+ if obj.has_key? 'hooks' and obj['hooks'].has_key? @type and obj['hooks'][@type]
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.53"
2
+ VERSION = "0.0.54"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.53
4
+ version: 0.0.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-16 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler