dm-is-nested_set 0.10.0 → 0.10.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/History.rdoc CHANGED
@@ -1,4 +1,8 @@
1
- === 0.10.0 / 2009-10-15
1
+ === 0.10.1 / 2009-09-30
2
+
3
+ * No changes this version
4
+
5
+ === 0.10.0 / 2009-09-15
2
6
 
3
7
  * Updated to work with dm-core 0.10.0
4
8
 
@@ -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
- reload_attributes([ :lft, :rgt ])
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
- reload_attributes([ :lft, :rgt ])
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)
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module Is
3
3
  module NestedSet
4
- VERSION = '0.10.0'.freeze
4
+ VERSION = '0.10.1'.freeze
5
5
  end
6
6
  end
7
7
  end
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.0
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-16 00:00:00 -07:00
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