closure_tree 6.0.0.gamma → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +6 -0
- data/CHANGELOG.md +11 -3
- data/README.md +2 -2
- data/closure_tree.gemspec +1 -1
- data/gemfiles/activerecord_4.1.gemfile +2 -2
- data/gemfiles/activerecord_4.2.gemfile +1 -1
- data/lib/closure_tree/hierarchy_maintenance.rb +1 -1
- data/lib/closure_tree/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61222be14d812607e9d4cefdcfc76c0579fb08dd
|
4
|
+
data.tar.gz: 81e89568a49834a426341cdd5f1595ccd7587c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e39637522b4a2d9ea04d0900c5da4fbd5e21ec2dacc3d6082ca7c77106bc612100ce1c61e8e82e238ef705e9bce4d7d22537a012e3abfff9a042d96256c3ca
|
7
|
+
data.tar.gz: fb6aa0360ae7642efc6c5d70ff44bc9d583c25a027ae07c3eaa1573fea8d99879a5f424a8641209b34a10ffc17c98edeff122bfebd282b71521010f8bb9c1153
|
data/Appraisals
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
appraise 'activerecord-4.1' do
|
2
2
|
gem 'activerecord', '~> 4.1.0'
|
3
3
|
gem 'foreigner', :git => 'https://github.com/matthuhiggins/foreigner.git'
|
4
|
+
platforms :ruby, :rbx do
|
5
|
+
gem 'mysql2', '~> 0.3.20'
|
6
|
+
end
|
4
7
|
end
|
5
8
|
|
6
9
|
appraise 'activerecord-4.2' do
|
7
10
|
gem 'activerecord', '~> 4.2.0'
|
11
|
+
platforms :ruby, :rbx do
|
12
|
+
gem 'mysql2', '~> 0.3.20'
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
appraise 'activerecord-edge' do
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### 6.0.0
|
4
|
-
|
5
|
-
*
|
3
|
+
### 6.0.0
|
4
|
+
|
5
|
+
* [Andrew Kumanyaev](https://github.com/zzet) *dramatically* improved mutation performance on large trees.
|
6
|
+
Thanks for the PR!
|
7
|
+
* [Martin Schmidt](https://github.com/martin-schmidt) discovered and fixed build problems due to new versions
|
8
|
+
of mysql2 and ammeter which broke Travis builds. Thanks for the PR!
|
9
|
+
|
10
|
+
### 6.0.0.alpha,beta,gamma
|
11
|
+
|
12
|
+
* Dropped support for versions of Rails 3.2 and 4.0 (which are no longer supported).
|
13
|
+
* Dropped support for Ruby 1.9 and JRuby 1.9 (which are no longer supported).
|
6
14
|
* Added support for `.hash_tree` from `.parent` and `.children`.
|
7
15
|
Addresses [PR146](https://github.com/mceachen/closure_tree/pull/146).
|
8
16
|
Thanks for reporting this and the breaking test, [Mike](https://github.com/mkralla11)!
|
data/README.md
CHANGED
@@ -75,8 +75,8 @@ Note that closure_tree only supports ActiveRecord 4.1 and later, and has test co
|
|
75
75
|
|
76
76
|
Make sure you check out the [large number options](#available-options) that `has_closure_tree` accepts.
|
77
77
|
|
78
|
-
Make sure you add `has_closure_tree`
|
79
|
-
`self.table_name =` lines in your model
|
78
|
+
**IMPORTANT: Make sure you add `has_closure_tree` _after_ `attr_accessible` and
|
79
|
+
`self.table_name =` lines in your model.**
|
80
80
|
|
81
81
|
If you're already using other hierarchical gems, like `ancestry` or `acts_as_tree`, please refer
|
82
82
|
to the [warning section](#warning)!
|
data/closure_tree.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.add_development_dependency 'appraisal'
|
26
26
|
gem.add_development_dependency 'timecop'
|
27
27
|
gem.add_development_dependency 'parallel'
|
28
|
-
gem.add_development_dependency 'ammeter', '
|
28
|
+
gem.add_development_dependency 'ammeter', '1.1.2' # See https://github.com/mceachen/closure_tree/issues/181
|
29
29
|
# gem.add_development_dependency 'byebug'
|
30
30
|
# gem.add_development_dependency 'ruby-prof' # <- don't need this normally.
|
31
31
|
end
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "foreigner", :git => "https://github.com/matthuhiggins/foreigner.git"
|
6
5
|
gem "activerecord", "~> 4.1.0"
|
6
|
+
gem "foreigner", :git => "https://github.com/matthuhiggins/foreigner.git"
|
7
7
|
|
8
8
|
platforms :ruby, :rbx do
|
9
|
-
gem "mysql2"
|
9
|
+
gem "mysql2", "~> 0.3.20"
|
10
10
|
gem "pg"
|
11
11
|
gem "sqlite3"
|
12
12
|
end
|
data/lib/closure_tree/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closure_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew McEachen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -126,14 +126,14 @@ dependencies:
|
|
126
126
|
name: ammeter
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 1.1.2
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.1.2
|
139
139
|
description: Easily and efficiently make your ActiveRecord model support hierarchies
|
@@ -219,9 +219,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: 2.1.0
|
220
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
221
|
requirements:
|
222
|
-
- - "
|
222
|
+
- - ">="
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version:
|
224
|
+
version: '0'
|
225
225
|
requirements: []
|
226
226
|
rubyforge_project:
|
227
227
|
rubygems_version: 2.4.5.1
|