acts_as_tree 2.7.1 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -0
- data/README.md +2 -0
- data/gemfiles/rails-5.2.gemfile +5 -0
- data/lib/acts_as_tree.rb +4 -1
- data/lib/acts_as_tree/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f213a482f1a2b2b32c7d0da25ed401c181200fd0ba395f10adf0507c4176c141
|
4
|
+
data.tar.gz: 838b60e6cb6cacaf67636c4481c8d1a91bc09ed69e04dab6ac88386bb07627ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afd79dd6589217a4af6ff173a4908845ce1a433c693cb09ebaf596457c3df52bb14b17361b6c930f74c5a6fe6a2a397db46ac3f6066b4e888b122dbf861c3f82
|
7
|
+
data.tar.gz: 0d7467f13dfa0667797786352f50395ba7e547cbb3787d67b667762f0868d697d83e2db3674c1f5df1988f20f94b1f2d093809c0dc592eb8529d40de7f426003
|
data/.travis.yml
CHANGED
@@ -21,6 +21,7 @@ gemfile:
|
|
21
21
|
- gemfiles/rails-4.2.gemfile
|
22
22
|
- gemfiles/rails-5.0.gemfile
|
23
23
|
- gemfiles/rails-5.1.gemfile
|
24
|
+
- gemfiles/rails-5.2.gemfile
|
24
25
|
|
25
26
|
matrix:
|
26
27
|
exclude:
|
@@ -62,3 +63,12 @@ matrix:
|
|
62
63
|
gemfile: gemfiles/rails-5.1.gemfile
|
63
64
|
- rvm: 2.1.8
|
64
65
|
gemfile: gemfiles/rails-5.1.gemfile
|
66
|
+
# rails 5.2 requires ruby 2.2.2+
|
67
|
+
- rvm: 1.9.2
|
68
|
+
gemfile: gemfiles/rails-5.2.gemfile
|
69
|
+
- rvm: 1.9.3
|
70
|
+
gemfile: gemfiles/rails-5.2.gemfile
|
71
|
+
- rvm: 2.0.0
|
72
|
+
gemfile: gemfiles/rails-5.2.gemfile
|
73
|
+
- rvm: 2.1.8
|
74
|
+
gemfile: gemfiles/rails-5.2.gemfile
|
data/README.md
CHANGED
@@ -74,6 +74,8 @@ We no longer support Ruby 1.8 or versions of Rails/ActiveRecord older than 3.0.
|
|
74
74
|
Moving forward we will do our best to support the latest versions of ActiveRecord and Ruby.
|
75
75
|
|
76
76
|
## Change Log
|
77
|
+
* 2.8.0 - August 27, 2018
|
78
|
+
* Added support for rails 5.2, see #76, #77 -- felixbuenemann
|
77
79
|
* 2.7.1 - January 30, 2018
|
78
80
|
* Fix column quoting if the `:order` option is a symbol, see #73, #74 -- felixbuenemann
|
79
81
|
* 2.7.0 - September 15, 2017
|
data/lib/acts_as_tree.rb
CHANGED
@@ -355,7 +355,10 @@ module ActsAsTree
|
|
355
355
|
|
356
356
|
private
|
357
357
|
|
358
|
-
if ActiveRecord::VERSION::MAJOR > 5 || ActiveRecord::VERSION::MAJOR == 5 && ActiveRecord::VERSION::MINOR >=
|
358
|
+
if ActiveRecord::VERSION::MAJOR > 5 || ActiveRecord::VERSION::MAJOR == 5 && ActiveRecord::VERSION::MINOR >= 2
|
359
|
+
def update_parents_counter_cache
|
360
|
+
end
|
361
|
+
elsif ActiveRecord::VERSION::MAJOR == 5 && ActiveRecord::VERSION::MINOR == 1
|
359
362
|
def update_parents_counter_cache
|
360
363
|
counter_cache_column = self.class.children_counter_cache_column
|
361
364
|
|
data/lib/acts_as_tree/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Dahlstrand
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-
|
15
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activerecord
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- gemfiles/rails-4.2.gemfile
|
96
96
|
- gemfiles/rails-5.0.gemfile
|
97
97
|
- gemfiles/rails-5.1.gemfile
|
98
|
+
- gemfiles/rails-5.2.gemfile
|
98
99
|
- lib/acts_as_tree.rb
|
99
100
|
- lib/acts_as_tree/active_record/acts/tree.rb
|
100
101
|
- lib/acts_as_tree/railtie.rb
|
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.7.
|
124
|
+
rubygems_version: 2.7.7
|
124
125
|
signing_key:
|
125
126
|
specification_version: 4
|
126
127
|
summary: Provides a simple tree behaviour to active_record models.
|