docman 0.0.55 → 0.0.56

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: 1cd666a3738a45fdab778d2cce02088e36fc8076
4
- data.tar.gz: 963f9a2c8fbdd5ff58a57f03094990043681db68
3
+ metadata.gz: e04470ba7a7a4b6282b3b81c3104fabb734ea44b
4
+ data.tar.gz: 4e73ba9ca47a8c24ac039b5deaeea04f652b8f81
5
5
  SHA512:
6
- metadata.gz: 5a307917717f7af47b8afdfeb8b2ee16e064f19d5d529aefdb82f6b1039b5aa796ce37409a5510ee08a760a3943ebe18d1c9a2d188a1e29254d5f8765b604f10
7
- data.tar.gz: 25e8b6c064f22911f65230729107791f57838ff21a74b8a26b99734fd60c60fa103734d6bab40901ec78e6aa58dd6e5a0878c3e0e9597ec7807ba19fbf503d6e
6
+ metadata.gz: ffda2daa8ae0ba2b9433448443c090266034500fe282690e527c12c91c3c98eda61441f3ca3c2d310953b8fc32d44f6a2996499c476ed085191038e6c9edbd71
7
+ data.tar.gz: 45abd1a5dafd66257ca7ce720864591416aac2a26e8f0f7174d7cb274dcbee1858377d10de17b14bb65653c3bef7cc78dd2d0f33de4854b51bdb846e934fe4a6
@@ -51,7 +51,7 @@ module Docman
51
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
- unless context.nil?
54
+ unless context.nil? or hooks.nil?
55
55
  hooks.each do |hook|
56
56
  hook['context'] = context
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.55"
2
+ VERSION = "0.0.56"
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.55
4
+ version: 0.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov