active-behavior 0.2.0 → 0.2.1
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/Rakefile +1 -1
- data/lib/active-behavior/railtie.rb +4 -2
- metadata +4 -17
data/Rakefile
CHANGED
|
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
|
|
|
5
5
|
spec = Gem::Specification.new do |s|
|
|
6
6
|
s.name = "active-behavior"
|
|
7
7
|
s.authors = ["Lance Pollard"]
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.1"
|
|
9
9
|
s.summary = "Build your models one module at a time."
|
|
10
10
|
s.description = "Put each association into it's own behavior module. This makes testing and organizing your Rails app a lot easier when it gets big."
|
|
11
11
|
s.homepage = "http://github.com/viatropos/active-behavior"
|
|
@@ -3,9 +3,11 @@ module ActiveBehavior
|
|
|
3
3
|
initializer "active_behavior.insert_into_active_record" do
|
|
4
4
|
ActiveSupport.on_load :active_record do
|
|
5
5
|
ActiveRecord::Base.send :include, ActiveBehavior::RecordHelper
|
|
6
|
-
|
|
7
|
-
ActiveBehavior::Loader.load unless ActiveBehavior::Loader.loaded?
|
|
8
6
|
end
|
|
9
7
|
end
|
|
8
|
+
|
|
9
|
+
config.after_initialize do
|
|
10
|
+
ActiveBehavior::Loader.load unless ActiveBehavior::Loader.loaded?
|
|
11
|
+
end
|
|
10
12
|
end
|
|
11
13
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active-behavior
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 2
|
|
9
|
-
- 0
|
|
10
|
-
version: 0.2.0
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.2.1
|
|
11
6
|
platform: ruby
|
|
12
7
|
authors:
|
|
13
8
|
- Lance Pollard
|
|
@@ -15,8 +10,7 @@ autorequire:
|
|
|
15
10
|
bindir: bin
|
|
16
11
|
cert_chain: []
|
|
17
12
|
|
|
18
|
-
date: 2011-07-
|
|
19
|
-
default_executable:
|
|
13
|
+
date: 2011-07-06 00:00:00 Z
|
|
20
14
|
dependencies: []
|
|
21
15
|
|
|
22
16
|
description: Put each association into it's own behavior module. This makes testing and organizing your Rails app a lot easier when it gets big.
|
|
@@ -33,7 +27,6 @@ files:
|
|
|
33
27
|
- lib/active-behavior/railtie.rb
|
|
34
28
|
- lib/active-behavior/record_helper.rb
|
|
35
29
|
- lib/active-behavior.rb
|
|
36
|
-
has_rdoc: true
|
|
37
30
|
homepage: http://github.com/viatropos/active-behavior
|
|
38
31
|
licenses: []
|
|
39
32
|
|
|
@@ -47,23 +40,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
47
40
|
requirements:
|
|
48
41
|
- - ">="
|
|
49
42
|
- !ruby/object:Gem::Version
|
|
50
|
-
hash: 3
|
|
51
|
-
segments:
|
|
52
|
-
- 0
|
|
53
43
|
version: "0"
|
|
54
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
45
|
none: false
|
|
56
46
|
requirements:
|
|
57
47
|
- - ">="
|
|
58
48
|
- !ruby/object:Gem::Version
|
|
59
|
-
hash: 3
|
|
60
|
-
segments:
|
|
61
|
-
- 0
|
|
62
49
|
version: "0"
|
|
63
50
|
requirements: []
|
|
64
51
|
|
|
65
52
|
rubyforge_project: active-behavior
|
|
66
|
-
rubygems_version: 1.
|
|
53
|
+
rubygems_version: 1.7.2
|
|
67
54
|
signing_key:
|
|
68
55
|
specification_version: 3
|
|
69
56
|
summary: Build your models one module at a time.
|