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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e165e4e52f028980d9d3303f528875898d6fc077176f06e61665dc89d1ebd62
4
- data.tar.gz: fc4fd487a8c1d6035a9e99693f8f30d47c299e1e7f281aaf9edaf962a2f3ba71
3
+ metadata.gz: f213a482f1a2b2b32c7d0da25ed401c181200fd0ba395f10adf0507c4176c141
4
+ data.tar.gz: 838b60e6cb6cacaf67636c4481c8d1a91bc09ed69e04dab6ac88386bb07627ce
5
5
  SHA512:
6
- metadata.gz: e808b5ab15a9fe12366a7bd2f2a5ef4fcf970e2be8dfd445620181075ad6509ef05c692b7ee700b2ee35e4c1a9cdfa33064bed10a6685836c2d53aeb014936ba
7
- data.tar.gz: 1f6981b6d3b30f3038bf4c25bddb8ac74719480a0b86c49f4c76c0532478a25f685f207b38409c0412572e6308c6f2bc43082c27235b967a17edab2db6e1908e
6
+ metadata.gz: afd79dd6589217a4af6ff173a4908845ce1a433c693cb09ebaf596457c3df52bb14b17361b6c930f74c5a6fe6a2a397db46ac3f6066b4e888b122dbf861c3f82
7
+ data.tar.gz: 0d7467f13dfa0667797786352f50395ba7e547cbb3787d67b667762f0868d697d83e2db3674c1f5df1988f20f94b1f2d093809c0dc592eb8529d40de7f426003
@@ -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
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 5.2.0"
4
+
5
+ gemspec path: "../"
@@ -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 >= 1
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
 
@@ -1,3 +1,3 @@
1
1
  module ActsAsTree
2
- VERSION = "2.7.1"
2
+ VERSION = "2.8.0"
3
3
  end
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.7.1
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-01-30 00:00:00.000000000 Z
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.3
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.