Sutto-perennial 0.2.4.5 → 0.2.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/perennial.rb CHANGED
@@ -9,7 +9,7 @@ require 'perennial/exceptions'
9
9
 
10
10
  module Perennial
11
11
 
12
- VERSION = "0.2.4.5"
12
+ VERSION = "0.2.4.6"
13
13
 
14
14
  has_library :dispatchable, :hookable, :loader, :logger, :nash,
15
15
  :loggable, :manifest, :settings, :argument_parser,
@@ -129,6 +129,12 @@ module Perennial
129
129
  end
130
130
  end
131
131
 
132
+ def delete_handler(handler)
133
+ return if handler.blank?
134
+ handler.registered = false if handler.respond_to?(:registered=)
135
+ Dispatchable.handler_mapping[self].delete(handler)
136
+ end
137
+
132
138
  def reloading!
133
139
  handlers = Dispatchable.handler_mapping.delete(self)
134
140
  Dispatchable.reloading_mapping[self.name] = handlers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Sutto-perennial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.5
4
+ version: 0.2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darcy Laycock