disclosure 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Disclosure
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/disclosure.rb CHANGED
@@ -25,7 +25,7 @@ module Disclosure
25
25
  # If notifiable actions has just been defined, it will raise an exception
26
26
  (klass.notifiable_actions rescue []).each do |action|
27
27
  unless klass.instance_methods.include?(:"#{action}?")
28
- klass.define_method(:"#{action}?") do
28
+ klass.send :define_method, :"#{action}?" do
29
29
  raise Disclosure::ActionMethodNotDefined.new("#{action}? must be defined in #{klass}.")
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disclosure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: -2101488736165250422
102
+ hash: -2082650874723204217
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -2101488736165250422
111
+ hash: -2082650874723204217
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.23