dm-is-nested_set 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -1
- data/lib/dm-is-nested_set/is/nested_set.rb +2 -2
- data/lib/dm-is-nested_set/is/version.rb +1 -1
- metadata +23 -4
data/History.rdoc
CHANGED
@@ -219,7 +219,7 @@ module DataMapper
|
|
219
219
|
model.base_model.adjust_gap!(nested_set, position - 1, gap)
|
220
220
|
|
221
221
|
# offset this node (and all its descendants) to the right position
|
222
|
-
|
222
|
+
eager_load([ :lft, :rgt ])
|
223
223
|
old_position = lft
|
224
224
|
offset = position - old_position
|
225
225
|
|
@@ -227,7 +227,7 @@ module DataMapper
|
|
227
227
|
|
228
228
|
# close the gap this movement left behind.
|
229
229
|
model.base_model.adjust_gap!(nested_set, old_position, -gap)
|
230
|
-
|
230
|
+
eager_load([ :lft, :rgt ])
|
231
231
|
else
|
232
232
|
# make a gap where the new node can be inserted
|
233
233
|
model.base_model.adjust_gap!(nested_set, position - 1, 2)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-is-nested_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sindre Aarsaether
|
@@ -9,10 +9,29 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-30 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: dm-core
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.10.1
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: dm-adjust
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.1
|
34
|
+
version:
|
16
35
|
description: DataMapper plugin allowing the creation of nested sets from data models
|
17
36
|
email:
|
18
37
|
- sindre [a] identu [d] no
|