irregular_method 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{irregular_method}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Nelson"]
@@ -58,6 +58,4 @@ module Irregular
58
58
  end
59
59
 
60
60
  end
61
- end
62
-
63
- ::Object.send :include, ::Irregular::Method
61
+ end
@@ -1,4 +1,5 @@
1
1
  class MethodMissing < ActiveRecord::Base
2
+ include ::Irregular::Method
2
3
 
3
4
  reg_def(/^(.+)_test$/) do |m, args|
4
5
  "#{self.name} found: #{m[1]}"
@@ -1,4 +1,5 @@
1
1
  class PlainObject
2
+ include ::Irregular::Method
2
3
 
3
4
  reg_def(/^important_(.+)$/) do |match, args|
4
5
  self.say_it(match[1])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irregular_method
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Nelson