motion-define-method 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion-define-method (0.1.0)
4
+ motion-define-method (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -15,11 +15,11 @@ class Object
15
15
  alias_method :original_module_method_missing, :method_missing
16
16
  def method_missing(method, *args, &block)
17
17
  self.class.define_method_blocks ||= {}
18
- if self.class.define_method_blocks.include?(method)
18
+ if self.class.define_method_blocks && self.class.define_method_blocks.include?(method)
19
19
  return self.class.define_method_blocks[method].call(*args)
20
20
  else
21
21
  self.class.ancestors.each do |clazz|
22
- if clazz.define_method_blocks.include?(method)
22
+ if clazz.define_method_blocks && clazz.define_method_blocks.include?(method)
23
23
  return clazz.define_method_blocks[method].call(*args)
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module DefineMethod
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-define-method
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 2261750205190609431
78
+ hash: -3361199952718360998
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: 2261750205190609431
87
+ hash: -3361199952718360998
88
88
  requirements: []
89
89
  rubyforge_project:
90
90
  rubygems_version: 1.8.24