business_rules 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{business_rules}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh N. Abbott"]
12
- s.date = %q{2010-03-18}
12
+ s.date = %q{2010-03-19}
13
13
  s.description = %q{Define business rules dynamically on your model objects.}
14
14
  s.email = %q{joshnabbott@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -2,7 +2,6 @@
2
2
  module BusinessRules
3
3
  def self.included(base)
4
4
  base.extend(ClassMethods)
5
- base.instance_eval { include InstanceMethods }
6
5
  end
7
6
 
8
7
  module ClassMethods
@@ -11,6 +10,8 @@ module BusinessRules
11
10
  end
12
11
 
13
12
  def define_business_rules_for(name, &block)
13
+ self.class_eval { include InstanceMethods }
14
+
14
15
  business_rules[name] = block
15
16
 
16
17
  self.business_rules.keys.each do |method_id|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: business_rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh N. Abbott
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-18 00:00:00 -07:00
12
+ date: 2010-03-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency