docman 0.0.56 → 0.0.57

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: e04470ba7a7a4b6282b3b81c3104fabb734ea44b
4
- data.tar.gz: 4e73ba9ca47a8c24ac039b5deaeea04f652b8f81
3
+ metadata.gz: e17cc53f17b11541845641a2484a3f6511065c50
4
+ data.tar.gz: 6f6b8bba4b65b3d41473eb7f9f6b03b81bfb0d55
5
5
  SHA512:
6
- metadata.gz: ffda2daa8ae0ba2b9433448443c090266034500fe282690e527c12c91c3c98eda61441f3ca3c2d310953b8fc32d44f6a2996499c476ed085191038e6c9edbd71
7
- data.tar.gz: 45abd1a5dafd66257ca7ce720864591416aac2a26e8f0f7174d7cb274dcbee1858377d10de17b14bb65653c3bef7cc78dd2d0f33de4854b51bdb846e934fe4a6
6
+ metadata.gz: 3a04a93690ef52e90d3a763d11bfef783e3b56f26c147516da5f1680c309ce6004d5a5dd5fa606f12f977c8f28311b4092577f5c757764e6d1f869aaf60fe291
7
+ data.tar.gz: da1ea048d609e0a0176c36cc5ba80c74944b8e9137ca87d59619678fc0f8323e7aaf6f367dd47902d9fb0d8e01d494542148706bafa5791bc0ce6c62b62f88ad
@@ -74,7 +74,7 @@ module Docman
74
74
  end
75
75
 
76
76
  def run_actions(name)
77
- if @hooks.has_key? name
77
+ if @hooks.has_key?(name) and not @hooks[name].nil?
78
78
  @hooks[name].each do |hook|
79
79
  next if hook.has_key?('run_on_success_only') and hook['run_on_success_only'] and not @execute_result
80
80
  context = hook.has_key?('context') ? hook['context'] : @context
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.56"
2
+ VERSION = "0.0.57"
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.56
4
+ version: 0.0.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov