dar_da_da 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +9 -0
- data/dar_da_da.gemspec +1 -1
- data/lib/dar_da_da/active_record_extension.rb +2 -9
- data/lib/dar_da_da/version.rb +1 -1
- metadata +24 -50
data/CHANGES.md
ADDED
data/dar_da_da.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency 'activesupport', '~> 3.0'
|
23
22
|
s.add_dependency 'activerecord', '~> 3.0'
|
23
|
+
|
24
24
|
# Actionpack is optional!
|
25
25
|
s.add_development_dependency 'actionpack', '~> 3.0'
|
26
26
|
s.add_development_dependency 'rspec', '>= 2.4.0'
|
@@ -1,8 +1,9 @@
|
|
1
|
-
require 'active_support/core_ext/class/
|
1
|
+
require 'active_support/core_ext/class/attribute'
|
2
2
|
|
3
3
|
module DarDaDa
|
4
4
|
module ActiveRecordExtension
|
5
5
|
def self.included(base)
|
6
|
+
base.class_attribute(:dar_dar_da, :instance_reader => false, :instance_writer => false)
|
6
7
|
base.extend(ClassMethods)
|
7
8
|
end
|
8
9
|
|
@@ -34,14 +35,6 @@ module DarDaDa
|
|
34
35
|
DarDaDa::ActiveRecordExtension.decorate(self, config)
|
35
36
|
end
|
36
37
|
end
|
37
|
-
|
38
|
-
def dar_dar_da=(config)
|
39
|
-
write_inheritable_attribute(:dar_dar_da, config)
|
40
|
-
end
|
41
|
-
|
42
|
-
def dar_dar_da
|
43
|
-
read_inheritable_attribute(:dar_dar_da)
|
44
|
-
end
|
45
38
|
end
|
46
39
|
|
47
40
|
module InstanceMethods
|
data/lib/dar_da_da/version.rb
CHANGED
metadata
CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.0.2
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Sebastian Munz
|
@@ -15,11 +14,12 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2012-02-06 00:00:00 +01:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: activerecord
|
22
|
+
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
@@ -28,29 +28,13 @@ dependencies:
|
|
28
28
|
segments:
|
29
29
|
- 3
|
30
30
|
- 0
|
31
|
-
segments_generated: true
|
32
31
|
version: "3.0"
|
33
32
|
type: :runtime
|
34
|
-
prerelease: false
|
35
33
|
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: activerecord
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 3
|
45
|
-
- 0
|
46
|
-
segments_generated: true
|
47
|
-
version: "3.0"
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: *id002
|
51
34
|
- !ruby/object:Gem::Dependency
|
52
35
|
name: actionpack
|
53
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
54
38
|
none: false
|
55
39
|
requirements:
|
56
40
|
- - ~>
|
@@ -58,14 +42,13 @@ dependencies:
|
|
58
42
|
segments:
|
59
43
|
- 3
|
60
44
|
- 0
|
61
|
-
segments_generated: true
|
62
45
|
version: "3.0"
|
63
46
|
type: :development
|
64
|
-
|
65
|
-
version_requirements: *id003
|
47
|
+
version_requirements: *id002
|
66
48
|
- !ruby/object:Gem::Dependency
|
67
49
|
name: rspec
|
68
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
69
52
|
none: false
|
70
53
|
requirements:
|
71
54
|
- - ">="
|
@@ -74,14 +57,13 @@ dependencies:
|
|
74
57
|
- 2
|
75
58
|
- 4
|
76
59
|
- 0
|
77
|
-
segments_generated: true
|
78
60
|
version: 2.4.0
|
79
61
|
type: :development
|
80
|
-
|
81
|
-
version_requirements: *id004
|
62
|
+
version_requirements: *id003
|
82
63
|
- !ruby/object:Gem::Dependency
|
83
64
|
name: guard-rspec
|
84
|
-
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
85
67
|
none: false
|
86
68
|
requirements:
|
87
69
|
- - ">="
|
@@ -90,14 +72,13 @@ dependencies:
|
|
90
72
|
- 0
|
91
73
|
- 1
|
92
74
|
- 9
|
93
|
-
segments_generated: true
|
94
75
|
version: 0.1.9
|
95
76
|
type: :development
|
96
|
-
|
97
|
-
version_requirements: *id005
|
77
|
+
version_requirements: *id004
|
98
78
|
- !ruby/object:Gem::Dependency
|
99
79
|
name: growl
|
100
|
-
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
101
82
|
none: false
|
102
83
|
requirements:
|
103
84
|
- - ">="
|
@@ -106,14 +87,13 @@ dependencies:
|
|
106
87
|
- 1
|
107
88
|
- 0
|
108
89
|
- 3
|
109
|
-
segments_generated: true
|
110
90
|
version: 1.0.3
|
111
91
|
type: :development
|
112
|
-
|
113
|
-
version_requirements: *id006
|
92
|
+
version_requirements: *id005
|
114
93
|
- !ruby/object:Gem::Dependency
|
115
94
|
name: rb-fsevent
|
116
|
-
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
117
97
|
none: false
|
118
98
|
requirements:
|
119
99
|
- - ">="
|
@@ -122,25 +102,22 @@ dependencies:
|
|
122
102
|
- 0
|
123
103
|
- 3
|
124
104
|
- 9
|
125
|
-
segments_generated: true
|
126
105
|
version: 0.3.9
|
127
106
|
type: :development
|
128
|
-
|
129
|
-
version_requirements: *id007
|
107
|
+
version_requirements: *id006
|
130
108
|
- !ruby/object:Gem::Dependency
|
131
109
|
name: sqlite3-ruby
|
132
|
-
|
110
|
+
prerelease: false
|
111
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
133
112
|
none: false
|
134
113
|
requirements:
|
135
114
|
- - ">="
|
136
115
|
- !ruby/object:Gem::Version
|
137
116
|
segments:
|
138
117
|
- 0
|
139
|
-
segments_generated: true
|
140
118
|
version: "0"
|
141
119
|
type: :development
|
142
|
-
|
143
|
-
version_requirements: *id008
|
120
|
+
version_requirements: *id007
|
144
121
|
description: Roles easy like sunday morning.
|
145
122
|
email:
|
146
123
|
- sebastian@yo.lk
|
@@ -152,6 +129,7 @@ extra_rdoc_files: []
|
|
152
129
|
|
153
130
|
files:
|
154
131
|
- .gitignore
|
132
|
+
- CHANGES.md
|
155
133
|
- Gemfile
|
156
134
|
- Guardfile
|
157
135
|
- LICENSE
|
@@ -184,20 +162,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
162
|
requirements:
|
185
163
|
- - ">="
|
186
164
|
- !ruby/object:Gem::Version
|
187
|
-
hash: -433884475567382819
|
188
165
|
segments:
|
189
166
|
- 0
|
190
|
-
segments_generated: true
|
191
167
|
version: "0"
|
192
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
169
|
none: false
|
194
170
|
requirements:
|
195
171
|
- - ">="
|
196
172
|
- !ruby/object:Gem::Version
|
197
|
-
hash: -433884475567382819
|
198
173
|
segments:
|
199
174
|
- 0
|
200
|
-
segments_generated: true
|
201
175
|
version: "0"
|
202
176
|
requirements: []
|
203
177
|
|