awesome_nested_set 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 987975770adaff76d0b73ccbb82d5bdc008023485d822ac07e84586a550a2ede
4
- data.tar.gz: 35dace0d877e6abcd9cacc806447311eea226d916cf753fb17c23d957a73a398
3
+ metadata.gz: 21d0bfb95d740009c0df08b796d8cc8a7fcffb329a7071e3e8abac8b6b5bc4ad
4
+ data.tar.gz: 1ef4e781fe0300d2316ca1f6bbdcce5c208618e3a7ac0aa5fc0966a5ea8b8bea
5
5
  SHA512:
6
- metadata.gz: bf339d676ccbb8258b642f7017b950d2d1947e9819648b8e5b6254ad6e460c2e129648de11c969833eabaacdc1a481743c2a0441b7b8a8cfe17242bd2546a3fc
7
- data.tar.gz: 492ecf9fac7fe59bc51a60a630a595a5f8c533c3799d7d4cc137e75f8c60b088f717a8b146395779f3835f0bcc0174890c1463fbd23385faea04ad6c57f3a0cd
6
+ metadata.gz: a98ce815f1e820457f7e2b87358b8af5cc584c894bd08ef531d32abeb92aaf64d484edbdac6ef264bab8b03d946b2bb68f6eb3433fd27a0516ef2de69fa7fd7a
7
+ data.tar.gz: ed46eb2b3a4311aead5153608bb26c99add49a796eacfbc5ba910f7854614015bf8bea1bfa63181ebe602692d14864de0866625600326037a65aa468fd98ca89
@@ -1,2 +1,2 @@
1
- U!2��������\€��[0��:�g��fl2��0ð
2
- ��94G�%�}���#�#0�X |��mB��UjM}yW�����ȥ��m9��.¬��+�hY�z��)d���r-� pcio���8��\����CV��'�-�)I����-��@�K��aZ5�&.��fL�.��c���8��Sw�7Sj����aT;��[X�W���� F�!�� )���qG�ʼ�����1T�����)r����A(7 ���)n���%"'��q�����_{�ޚ�x���5 &�͠�D��<5(z�,m#
1
+ #DcM����&�o���D�0������'�x6�>�U#����a������Q��K�^�!����ߟ�H�/8!@�����
2
+ ,��]u��T�_I�<��y�ֹe:o�Y�C���9M_fTA~���Ӄ��{�n�e��dt�5Bl$�ɱ�rv F�,}�#k���s/ jz��?GZ@��M� 7�3�~�Rf;PZ�Xf���r]9P��v�&�X�B�*�Q2���1�$��6Z�]��)�8�
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
  Unreleased version
2
2
 
3
- * [Compare to 3.3.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.0...master)
3
+ * [Compare to 3.3.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.1...master)
4
+
5
+ 3.3.1
6
+ * Add belongs_to :polymorphic key option only when used [Filippo Liverani](https://github.com/filippoliverani)
7
+ * [Compare to 3.3.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.0...v3.3.1)
4
8
 
5
9
  3.3.0
6
10
  * Update for compatibility with Rails 6.1 which no longer inherits scoping
@@ -98,9 +98,9 @@ module CollectiveIdea #:nodoc:
98
98
  :primary_key => primary_column_name,
99
99
  :counter_cache => acts_as_nested_set_options[:counter_cache],
100
100
  :inverse_of => (:children unless acts_as_nested_set_options[:polymorphic]),
101
- :polymorphic => acts_as_nested_set_options[:polymorphic],
102
101
  :touch => acts_as_nested_set_options[:touch]
103
102
  }
103
+ options[:polymorphic] = true if acts_as_nested_set_options[:polymorphic]
104
104
  options[:optional] = true if ActiveRecord::VERSION::MAJOR >= 5
105
105
  belongs_to :parent, **options
106
106
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AwesomeNestedSet
4
- VERSION = '3.3.0' unless defined?(::AwesomeNestedSet::VERSION)
4
+ VERSION = '3.3.1' unless defined?(::AwesomeNestedSet::VERSION)
5
5
  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.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -36,7 +36,7 @@ cert_chain:
36
36
  Hsej0MQ3drCB1eA4c9OXdCUQJnY2aLTq3uNvTbZvoTgWK55eq3KLBJ4zzoKZ4tBX
37
37
  /HIFI/fEwYlI1Ji3oikUrHkc4rWgaQ==
38
38
  -----END CERTIFICATE-----
39
- date: 2021-01-03 00:00:00.000000000 Z
39
+ date: 2021-01-04 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activerecord
metadata.gz.sig CHANGED
Binary file