mongoid-ancestry 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Guardfile +2 -2
- data/VERSION +1 -1
- data/lib/mongoid-ancestry.rb +14 -0
- data/lib/{mongoid/ancestry → mongoid-ancestry}/class_methods.rb +0 -0
- data/lib/{mongoid/ancestry → mongoid-ancestry}/exceptions.rb +0 -0
- data/lib/{mongoid/ancestry → mongoid-ancestry}/instance_methods.rb +0 -0
- data/mongoid-ancestry.gemspec +30 -12
- data/spec/{mongoid → lib}/ancestry_spec.rb +1 -1
- data/spec/{mongoid/ancestry → lib/mongoid-ancestry}/class_methods_spec.rb +0 -0
- data/spec/{mongoid/ancestry → lib/mongoid-ancestry}/instance_methods_spec.rb +0 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/models.rb +0 -3
- metadata +132 -66
- data/lib/mongoid/ancestry.rb +0 -14
data/Gemfile.lock
CHANGED
data/Guardfile
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
guard 'rspec', :version => 2, :cli => "--format Fuubar" do
|
5
5
|
watch(%r{^spec/.+_spec\.rb})
|
6
|
-
watch(%r{^lib/mongoid
|
7
|
-
watch('lib/mongoid
|
6
|
+
watch(%r{^lib/mongoid-ancestry/(.+)\.rb}) { |m| "spec/lib/mongoid-ancestry/#{m[1]}_spec.rb" }
|
7
|
+
watch('lib/mongoid-ancestry.rb') { "spec" }
|
8
8
|
watch(%r{^spec/support/(.+)\.rb}) { "spec" }
|
9
9
|
watch('spec/spec_helper.rb') { "spec" }
|
10
10
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Mongoid
|
2
|
+
module Ancestry
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
autoload :ClassMethods, 'mongoid-ancestry/class_methods'
|
6
|
+
autoload :InstanceMethods, 'mongoid-ancestry/instance_methods'
|
7
|
+
autoload :Error, 'mongoid-ancestry/exceptions'
|
8
|
+
|
9
|
+
included do
|
10
|
+
cattr_accessor :base_class
|
11
|
+
self.base_class = self
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
data/mongoid-ancestry.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoid-ancestry}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Stefan Kroes", "Anton Orel"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-20}
|
13
13
|
s.description = %q{Organise Mongoid model into a tree structure}
|
14
14
|
s.email = %q{eagle.anton@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -25,15 +25,15 @@ Gem::Specification.new do |s|
|
|
25
25
|
"VERSION",
|
26
26
|
"init.rb",
|
27
27
|
"install.rb",
|
28
|
-
"lib/mongoid
|
29
|
-
"lib/mongoid
|
30
|
-
"lib/mongoid
|
31
|
-
"lib/mongoid
|
28
|
+
"lib/mongoid-ancestry.rb",
|
29
|
+
"lib/mongoid-ancestry/class_methods.rb",
|
30
|
+
"lib/mongoid-ancestry/exceptions.rb",
|
31
|
+
"lib/mongoid-ancestry/instance_methods.rb",
|
32
32
|
"log/.gitkeep",
|
33
33
|
"mongoid-ancestry.gemspec",
|
34
|
-
"spec/
|
35
|
-
"spec/mongoid
|
36
|
-
"spec/mongoid/
|
34
|
+
"spec/lib/ancestry_spec.rb",
|
35
|
+
"spec/lib/mongoid-ancestry/class_methods_spec.rb",
|
36
|
+
"spec/lib/mongoid-ancestry/instance_methods_spec.rb",
|
37
37
|
"spec/spec_helper.rb",
|
38
38
|
"spec/support/models.rb"
|
39
39
|
]
|
@@ -43,9 +43,9 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.rubygems_version = %q{1.5.2}
|
44
44
|
s.summary = %q{'Ancestry allows the records of a Mongoid model to be organised in a tree structure, using a single, intuitively formatted database field. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single query. Additional features are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.'}
|
45
45
|
s.test_files = [
|
46
|
-
"spec/
|
47
|
-
"spec/mongoid
|
48
|
-
"spec/mongoid/
|
46
|
+
"spec/lib/ancestry_spec.rb",
|
47
|
+
"spec/lib/mongoid-ancestry/class_methods_spec.rb",
|
48
|
+
"spec/lib/mongoid-ancestry/instance_methods_spec.rb",
|
49
49
|
"spec/spec_helper.rb",
|
50
50
|
"spec/support/models.rb"
|
51
51
|
]
|
@@ -73,6 +73,12 @@ Gem::Specification.new do |s|
|
|
73
73
|
s.add_development_dependency(%q<libnotify>, ["~> 0.3"])
|
74
74
|
s.add_development_dependency(%q<rb-inotify>, ["~> 0.8"])
|
75
75
|
s.add_development_dependency(%q<fuubar>, ["~> 0.0.4"])
|
76
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.5"])
|
77
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
78
|
+
s.add_development_dependency(%q<guard-rspec>, ["~> 0.2"])
|
79
|
+
s.add_development_dependency(%q<libnotify>, ["~> 0.3"])
|
80
|
+
s.add_development_dependency(%q<rb-inotify>, ["~> 0.8"])
|
81
|
+
s.add_development_dependency(%q<fuubar>, ["~> 0.0.4"])
|
76
82
|
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0"])
|
77
83
|
s.add_runtime_dependency(%q<bson_ext>, ["~> 1.3"])
|
78
84
|
s.add_development_dependency(%q<rspec>, ["~> 2.5"])
|
@@ -101,6 +107,12 @@ Gem::Specification.new do |s|
|
|
101
107
|
s.add_dependency(%q<libnotify>, ["~> 0.3"])
|
102
108
|
s.add_dependency(%q<rb-inotify>, ["~> 0.8"])
|
103
109
|
s.add_dependency(%q<fuubar>, ["~> 0.0.4"])
|
110
|
+
s.add_dependency(%q<rspec>, ["~> 2.5"])
|
111
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
112
|
+
s.add_dependency(%q<guard-rspec>, ["~> 0.2"])
|
113
|
+
s.add_dependency(%q<libnotify>, ["~> 0.3"])
|
114
|
+
s.add_dependency(%q<rb-inotify>, ["~> 0.8"])
|
115
|
+
s.add_dependency(%q<fuubar>, ["~> 0.0.4"])
|
104
116
|
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
105
117
|
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
106
118
|
s.add_dependency(%q<rspec>, ["~> 2.5"])
|
@@ -130,6 +142,12 @@ Gem::Specification.new do |s|
|
|
130
142
|
s.add_dependency(%q<libnotify>, ["~> 0.3"])
|
131
143
|
s.add_dependency(%q<rb-inotify>, ["~> 0.8"])
|
132
144
|
s.add_dependency(%q<fuubar>, ["~> 0.0.4"])
|
145
|
+
s.add_dependency(%q<rspec>, ["~> 2.5"])
|
146
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
147
|
+
s.add_dependency(%q<guard-rspec>, ["~> 0.2"])
|
148
|
+
s.add_dependency(%q<libnotify>, ["~> 0.3"])
|
149
|
+
s.add_dependency(%q<rb-inotify>, ["~> 0.8"])
|
150
|
+
s.add_dependency(%q<fuubar>, ["~> 0.0.4"])
|
133
151
|
s.add_dependency(%q<mongoid>, ["~> 2.0"])
|
134
152
|
s.add_dependency(%q<bson_ext>, ["~> 1.3"])
|
135
153
|
s.add_dependency(%q<rspec>, ["~> 2.5"])
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
data/spec/support/models.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-ancestry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,12 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-20 00:00:00.000000000 +04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mongoid-ancestry
|
18
|
-
requirement: &
|
18
|
+
requirement: &8826160 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *8826160
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
|
-
requirement: &
|
29
|
+
requirement: &8825140 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '2.5'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *8825140
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
40
|
-
requirement: &
|
40
|
+
requirement: &8824160 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: '1.0'
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *8824160
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: guard-rspec
|
51
|
-
requirement: &
|
51
|
+
requirement: &8822880 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '0.2'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *8822880
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: libnotify
|
62
|
-
requirement: &
|
62
|
+
requirement: &8822040 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: '0.3'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *8822040
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rb-inotify
|
73
|
-
requirement: &
|
73
|
+
requirement: &8821180 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ~>
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: '0.8'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *8821180
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: fuubar
|
84
|
-
requirement: &
|
84
|
+
requirement: &8820460 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: 0.0.4
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *8820460
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rspec
|
95
|
-
requirement: &
|
95
|
+
requirement: &8819440 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ~>
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: '2.5'
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *8819440
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: bundler
|
106
|
-
requirement: &
|
106
|
+
requirement: &8816000 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ~>
|
@@ -111,10 +111,10 @@ dependencies:
|
|
111
111
|
version: '1.0'
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *8816000
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: guard-rspec
|
117
|
-
requirement: &
|
117
|
+
requirement: &8814760 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ~>
|
@@ -122,10 +122,10 @@ dependencies:
|
|
122
122
|
version: '0.2'
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
|
-
version_requirements: *
|
125
|
+
version_requirements: *8814760
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: libnotify
|
128
|
-
requirement: &
|
128
|
+
requirement: &8813860 !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ~>
|
@@ -133,10 +133,10 @@ dependencies:
|
|
133
133
|
version: '0.3'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
|
-
version_requirements: *
|
136
|
+
version_requirements: *8813860
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: rb-inotify
|
139
|
-
requirement: &
|
139
|
+
requirement: &8813080 !ruby/object:Gem::Requirement
|
140
140
|
none: false
|
141
141
|
requirements:
|
142
142
|
- - ~>
|
@@ -144,10 +144,10 @@ dependencies:
|
|
144
144
|
version: '0.8'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
|
-
version_requirements: *
|
147
|
+
version_requirements: *8813080
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
149
|
name: fuubar
|
150
|
-
requirement: &
|
150
|
+
requirement: &8811980 !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
153
153
|
- - ~>
|
@@ -155,10 +155,10 @@ dependencies:
|
|
155
155
|
version: 0.0.4
|
156
156
|
type: :development
|
157
157
|
prerelease: false
|
158
|
-
version_requirements: *
|
158
|
+
version_requirements: *8811980
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: rspec
|
161
|
-
requirement: &
|
161
|
+
requirement: &8811160 !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|
164
164
|
- - ~>
|
@@ -166,10 +166,10 @@ dependencies:
|
|
166
166
|
version: '2.5'
|
167
167
|
type: :development
|
168
168
|
prerelease: false
|
169
|
-
version_requirements: *
|
169
|
+
version_requirements: *8811160
|
170
170
|
- !ruby/object:Gem::Dependency
|
171
171
|
name: bundler
|
172
|
-
requirement: &
|
172
|
+
requirement: &8810060 !ruby/object:Gem::Requirement
|
173
173
|
none: false
|
174
174
|
requirements:
|
175
175
|
- - ~>
|
@@ -177,10 +177,10 @@ dependencies:
|
|
177
177
|
version: '1.0'
|
178
178
|
type: :development
|
179
179
|
prerelease: false
|
180
|
-
version_requirements: *
|
180
|
+
version_requirements: *8810060
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: guard-rspec
|
183
|
-
requirement: &
|
183
|
+
requirement: &8809180 !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|
186
186
|
- - ~>
|
@@ -188,10 +188,10 @@ dependencies:
|
|
188
188
|
version: '0.2'
|
189
189
|
type: :development
|
190
190
|
prerelease: false
|
191
|
-
version_requirements: *
|
191
|
+
version_requirements: *8809180
|
192
192
|
- !ruby/object:Gem::Dependency
|
193
193
|
name: libnotify
|
194
|
-
requirement: &
|
194
|
+
requirement: &8805680 !ruby/object:Gem::Requirement
|
195
195
|
none: false
|
196
196
|
requirements:
|
197
197
|
- - ~>
|
@@ -199,10 +199,10 @@ dependencies:
|
|
199
199
|
version: '0.3'
|
200
200
|
type: :development
|
201
201
|
prerelease: false
|
202
|
-
version_requirements: *
|
202
|
+
version_requirements: *8805680
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
204
|
name: rb-inotify
|
205
|
-
requirement: &
|
205
|
+
requirement: &8805040 !ruby/object:Gem::Requirement
|
206
206
|
none: false
|
207
207
|
requirements:
|
208
208
|
- - ~>
|
@@ -210,10 +210,10 @@ dependencies:
|
|
210
210
|
version: '0.8'
|
211
211
|
type: :development
|
212
212
|
prerelease: false
|
213
|
-
version_requirements: *
|
213
|
+
version_requirements: *8805040
|
214
214
|
- !ruby/object:Gem::Dependency
|
215
215
|
name: fuubar
|
216
|
-
requirement: &
|
216
|
+
requirement: &8804240 !ruby/object:Gem::Requirement
|
217
217
|
none: false
|
218
218
|
requirements:
|
219
219
|
- - ~>
|
@@ -221,10 +221,76 @@ dependencies:
|
|
221
221
|
version: 0.0.4
|
222
222
|
type: :development
|
223
223
|
prerelease: false
|
224
|
-
version_requirements: *
|
224
|
+
version_requirements: *8804240
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: rspec
|
227
|
+
requirement: &8802960 !ruby/object:Gem::Requirement
|
228
|
+
none: false
|
229
|
+
requirements:
|
230
|
+
- - ~>
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '2.5'
|
233
|
+
type: :development
|
234
|
+
prerelease: false
|
235
|
+
version_requirements: *8802960
|
236
|
+
- !ruby/object:Gem::Dependency
|
237
|
+
name: bundler
|
238
|
+
requirement: &8801620 !ruby/object:Gem::Requirement
|
239
|
+
none: false
|
240
|
+
requirements:
|
241
|
+
- - ~>
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '1.0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: *8801620
|
247
|
+
- !ruby/object:Gem::Dependency
|
248
|
+
name: guard-rspec
|
249
|
+
requirement: &8800780 !ruby/object:Gem::Requirement
|
250
|
+
none: false
|
251
|
+
requirements:
|
252
|
+
- - ~>
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: '0.2'
|
255
|
+
type: :development
|
256
|
+
prerelease: false
|
257
|
+
version_requirements: *8800780
|
258
|
+
- !ruby/object:Gem::Dependency
|
259
|
+
name: libnotify
|
260
|
+
requirement: &8799540 !ruby/object:Gem::Requirement
|
261
|
+
none: false
|
262
|
+
requirements:
|
263
|
+
- - ~>
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0.3'
|
266
|
+
type: :development
|
267
|
+
prerelease: false
|
268
|
+
version_requirements: *8799540
|
269
|
+
- !ruby/object:Gem::Dependency
|
270
|
+
name: rb-inotify
|
271
|
+
requirement: &8798300 !ruby/object:Gem::Requirement
|
272
|
+
none: false
|
273
|
+
requirements:
|
274
|
+
- - ~>
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0.8'
|
277
|
+
type: :development
|
278
|
+
prerelease: false
|
279
|
+
version_requirements: *8798300
|
280
|
+
- !ruby/object:Gem::Dependency
|
281
|
+
name: fuubar
|
282
|
+
requirement: &8795360 !ruby/object:Gem::Requirement
|
283
|
+
none: false
|
284
|
+
requirements:
|
285
|
+
- - ~>
|
286
|
+
- !ruby/object:Gem::Version
|
287
|
+
version: 0.0.4
|
288
|
+
type: :development
|
289
|
+
prerelease: false
|
290
|
+
version_requirements: *8795360
|
225
291
|
- !ruby/object:Gem::Dependency
|
226
292
|
name: mongoid
|
227
|
-
requirement: &
|
293
|
+
requirement: &8794680 !ruby/object:Gem::Requirement
|
228
294
|
none: false
|
229
295
|
requirements:
|
230
296
|
- - ~>
|
@@ -232,10 +298,10 @@ dependencies:
|
|
232
298
|
version: '2.0'
|
233
299
|
type: :runtime
|
234
300
|
prerelease: false
|
235
|
-
version_requirements: *
|
301
|
+
version_requirements: *8794680
|
236
302
|
- !ruby/object:Gem::Dependency
|
237
303
|
name: bson_ext
|
238
|
-
requirement: &
|
304
|
+
requirement: &8794020 !ruby/object:Gem::Requirement
|
239
305
|
none: false
|
240
306
|
requirements:
|
241
307
|
- - ~>
|
@@ -243,10 +309,10 @@ dependencies:
|
|
243
309
|
version: '1.3'
|
244
310
|
type: :runtime
|
245
311
|
prerelease: false
|
246
|
-
version_requirements: *
|
312
|
+
version_requirements: *8794020
|
247
313
|
- !ruby/object:Gem::Dependency
|
248
314
|
name: rspec
|
249
|
-
requirement: &
|
315
|
+
requirement: &8793220 !ruby/object:Gem::Requirement
|
250
316
|
none: false
|
251
317
|
requirements:
|
252
318
|
- - ~>
|
@@ -254,10 +320,10 @@ dependencies:
|
|
254
320
|
version: '2.5'
|
255
321
|
type: :development
|
256
322
|
prerelease: false
|
257
|
-
version_requirements: *
|
323
|
+
version_requirements: *8793220
|
258
324
|
- !ruby/object:Gem::Dependency
|
259
325
|
name: bundler
|
260
|
-
requirement: &
|
326
|
+
requirement: &8792580 !ruby/object:Gem::Requirement
|
261
327
|
none: false
|
262
328
|
requirements:
|
263
329
|
- - ~>
|
@@ -265,10 +331,10 @@ dependencies:
|
|
265
331
|
version: '1.0'
|
266
332
|
type: :development
|
267
333
|
prerelease: false
|
268
|
-
version_requirements: *
|
334
|
+
version_requirements: *8792580
|
269
335
|
- !ruby/object:Gem::Dependency
|
270
336
|
name: guard-rspec
|
271
|
-
requirement: &
|
337
|
+
requirement: &8791780 !ruby/object:Gem::Requirement
|
272
338
|
none: false
|
273
339
|
requirements:
|
274
340
|
- - ~>
|
@@ -276,10 +342,10 @@ dependencies:
|
|
276
342
|
version: '0.2'
|
277
343
|
type: :development
|
278
344
|
prerelease: false
|
279
|
-
version_requirements: *
|
345
|
+
version_requirements: *8791780
|
280
346
|
- !ruby/object:Gem::Dependency
|
281
347
|
name: libnotify
|
282
|
-
requirement: &
|
348
|
+
requirement: &8790900 !ruby/object:Gem::Requirement
|
283
349
|
none: false
|
284
350
|
requirements:
|
285
351
|
- - ~>
|
@@ -287,10 +353,10 @@ dependencies:
|
|
287
353
|
version: '0.3'
|
288
354
|
type: :development
|
289
355
|
prerelease: false
|
290
|
-
version_requirements: *
|
356
|
+
version_requirements: *8790900
|
291
357
|
- !ruby/object:Gem::Dependency
|
292
358
|
name: rb-inotify
|
293
|
-
requirement: &
|
359
|
+
requirement: &8790120 !ruby/object:Gem::Requirement
|
294
360
|
none: false
|
295
361
|
requirements:
|
296
362
|
- - ~>
|
@@ -298,10 +364,10 @@ dependencies:
|
|
298
364
|
version: '0.8'
|
299
365
|
type: :development
|
300
366
|
prerelease: false
|
301
|
-
version_requirements: *
|
367
|
+
version_requirements: *8790120
|
302
368
|
- !ruby/object:Gem::Dependency
|
303
369
|
name: fuubar
|
304
|
-
requirement: &
|
370
|
+
requirement: &8789280 !ruby/object:Gem::Requirement
|
305
371
|
none: false
|
306
372
|
requirements:
|
307
373
|
- - ~>
|
@@ -309,7 +375,7 @@ dependencies:
|
|
309
375
|
version: 0.0.4
|
310
376
|
type: :development
|
311
377
|
prerelease: false
|
312
|
-
version_requirements: *
|
378
|
+
version_requirements: *8789280
|
313
379
|
description: Organise Mongoid model into a tree structure
|
314
380
|
email: eagle.anton@gmail.com
|
315
381
|
executables: []
|
@@ -326,15 +392,15 @@ files:
|
|
326
392
|
- VERSION
|
327
393
|
- init.rb
|
328
394
|
- install.rb
|
329
|
-
- lib/mongoid
|
330
|
-
- lib/mongoid
|
331
|
-
- lib/mongoid
|
332
|
-
- lib/mongoid
|
395
|
+
- lib/mongoid-ancestry.rb
|
396
|
+
- lib/mongoid-ancestry/class_methods.rb
|
397
|
+
- lib/mongoid-ancestry/exceptions.rb
|
398
|
+
- lib/mongoid-ancestry/instance_methods.rb
|
333
399
|
- log/.gitkeep
|
334
400
|
- mongoid-ancestry.gemspec
|
335
|
-
- spec/
|
336
|
-
- spec/mongoid
|
337
|
-
- spec/mongoid/
|
401
|
+
- spec/lib/ancestry_spec.rb
|
402
|
+
- spec/lib/mongoid-ancestry/class_methods_spec.rb
|
403
|
+
- spec/lib/mongoid-ancestry/instance_methods_spec.rb
|
338
404
|
- spec/spec_helper.rb
|
339
405
|
- spec/support/models.rb
|
340
406
|
has_rdoc: true
|
@@ -369,8 +435,8 @@ summary: ! '''Ancestry allows the records of a Mongoid model to be organised in
|
|
369
435
|
are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree
|
370
436
|
into hashes and different strategies for dealing with orphaned records.'''
|
371
437
|
test_files:
|
372
|
-
- spec/
|
373
|
-
- spec/mongoid
|
374
|
-
- spec/mongoid/
|
438
|
+
- spec/lib/ancestry_spec.rb
|
439
|
+
- spec/lib/mongoid-ancestry/class_methods_spec.rb
|
440
|
+
- spec/lib/mongoid-ancestry/instance_methods_spec.rb
|
375
441
|
- spec/spec_helper.rb
|
376
442
|
- spec/support/models.rb
|
data/lib/mongoid/ancestry.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
module Mongoid
|
2
|
-
module Ancestry
|
3
|
-
extend ActiveSupport::Concern
|
4
|
-
|
5
|
-
autoload :ClassMethods, 'mongoid/ancestry/class_methods'
|
6
|
-
autoload :InstanceMethods, 'mongoid/ancestry/instance_methods'
|
7
|
-
autoload :Error, 'mongoid/ancestry/exceptions'
|
8
|
-
|
9
|
-
included do
|
10
|
-
cattr_accessor :base_class
|
11
|
-
self.base_class = self
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|