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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d32d23158e9b974aeffc5fe307d6dc59aa37907b
4
- data.tar.gz: 190e8a6f9a7e8678657f82de4335aa14f9239a0c
3
+ metadata.gz: 61222be14d812607e9d4cefdcfc76c0579fb08dd
4
+ data.tar.gz: 81e89568a49834a426341cdd5f1595ccd7587c7c
5
5
  SHA512:
6
- metadata.gz: a7cbc97513019349f2c193dcf3976bb402406b68e3c285a19d07717a0e3ff24f5fa7860aef0589ba634a3d0f57046eb8580bcb20587d14ee2d786277ba5d1401
7
- data.tar.gz: e9efa70b8a6c7c5e048296ceef1d285d210db2e89497fd2ea8179ebdef60b85b53b174a9d8935a7aa69530e100a274eadc635ec89e98d4e194e4cfadc5136250
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.alpha
4
- * Drop support for unsupported versions of Rails, 3.2 and 4.0.
5
- * Drop support for Ruby 1.9 and JRuby 1.9
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` **after** `attr_accessible` and
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', '~> 1.1.2'
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
@@ -5,7 +5,7 @@ source "https://rubygems.org"
5
5
  gem "activerecord", "~> 4.2.0"
6
6
 
7
7
  platforms :ruby, :rbx do
8
- gem "mysql2"
8
+ gem "mysql2", "~> 0.3.20"
9
9
  gem "pg"
10
10
  gem "sqlite3"
11
11
  end
@@ -98,8 +98,8 @@ module ClosureTree
98
98
  FROM (SELECT descendant_id
99
99
  FROM #{_ct.quoted_hierarchy_table_name}
100
100
  WHERE ancestor_id = #{_ct.quote(id)}
101
+ OR descendant_id = #{_ct.quote(id)}
101
102
  ) AS x )
102
- OR descendant_id = #{_ct.quote(id)}
103
103
  SQL
104
104
  end
105
105
  end
@@ -1,3 +1,3 @@
1
1
  module ClosureTree
2
- VERSION = Gem::Version.new('6.0.0.gamma')
2
+ VERSION = Gem::Version.new('6.0.0')
3
3
  end
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.gamma
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-09-07 00:00:00.000000000 Z
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: 1.3.1
224
+ version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
227
  rubygems_version: 2.4.5.1