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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d1c0885abe0d301749e9c918588554824172ece
4
- data.tar.gz: 6d2fb2d4d781491b9fc76812d822d973308f1a28
3
+ metadata.gz: 7eb0aa9b299be85ac9ebc3494b827cb6b3afa971
4
+ data.tar.gz: f20762bfeacacd7f8f511696113ee55425a6939f
5
5
  SHA512:
6
- metadata.gz: 994a05b6c6d17b97a7ab365cf1a3a77e3fbde00a1bdd10da1f00f3bf6d31f09f78de81ed56ca1891d92b8f27e7befc22865215a1a3c3fe239add0d5ef1c2f19d
7
- data.tar.gz: d7c1929abfb91c0f5f78f1a02782c90b37da7c2c8172a891a83411e392255f6d778e1ab3f022c3fa8a5526d0beb0372186b7b377ca66dd24bae58b97ee17da26
6
+ metadata.gz: 1144392749d797cbb0800004e3b21aac3080e6a6af9e6a25afbf598c7343ee2a7806f99ae4b5abbd1ce93b7e63e90b5c968098080eb99070d01ec54843d97dae
7
+ data.tar.gz: 3c75b37d2f71c763668ef7f76ad9406339494ac6b6d62223231dc9319b21462fd8b91b3bc06d99741e81d4e99febd8c123b06a1464c89ee1a73b07177c85ca11
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ * Added information to the README regarding indexes to be added for performance [bdarfler]
1
2
  * Modified associate_parents to add child objects to the parent#children collection [Tiago Moraes]
2
3
 
3
4
  2.1.6
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:
@@ -1,3 +1,3 @@
1
1
  module AwesomeNestedSet
2
- VERSION = '3.0.0.rc.2' unless defined?(::AwesomeNestedSet::VERSION)
2
+ VERSION = '3.0.0.rc.3' unless defined?(::AwesomeNestedSet::VERSION)
3
3
  end
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.2
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-09-24 00:00:00.000000000 Z
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.1.0
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