awesome_nested_set 3.0.0.rc.2 → 3.0.0.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +1 -0
- data/README.md +4 -0
- data/lib/awesome_nested_set/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb0aa9b299be85ac9ebc3494b827cb6b3afa971
|
4
|
+
data.tar.gz: f20762bfeacacd7f8f511696113ee55425a6939f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1144392749d797cbb0800004e3b21aac3080e6a6af9e6a25afbf598c7343ee2a7806f99ae4b5abbd1ce93b7e63e90b5c968098080eb99070d01ec54843d97dae
|
7
|
+
data.tar.gz: 3c75b37d2f71c763668ef7f76ad9406339494ac6b6d62223231dc9319b21462fd8b91b3bc06d99741e81d4e99febd8c123b06a1464c89ee1a73b07177c85ca11
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -53,6 +53,10 @@ end
|
|
53
53
|
|
54
54
|
Run `rake rdoc` to generate the API docs and see [CollectiveIdea::Acts::NestedSet](lib/awesome_nested_set/awesome_nested_set.rb) for more information.
|
55
55
|
|
56
|
+
## Indexes
|
57
|
+
|
58
|
+
It is highly recommended that you add an index to the `rgt` column on your models. Every insertion requires finding the next `rgt` value to use and this can be slow for large tables without an index. It is probably best to index the other fields as well (`parent_id`, `lft`, `depth`).
|
59
|
+
|
56
60
|
## Callbacks
|
57
61
|
|
58
62
|
There are three callbacks called when moving a node:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_nested_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.rc.
|
4
|
+
version: 3.0.0.rc.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Keepers
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 4.0.0
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '5'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- -
|
29
|
+
- - '>='
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: 4.0.0
|
32
|
+
- - <
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '5'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: rspec-rails
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
138
|
version: 1.3.1
|
133
139
|
requirements: []
|
134
140
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.0.14
|
136
142
|
signing_key:
|
137
143
|
specification_version: 4
|
138
144
|
summary: An awesome nested set implementation for Active Record
|