awesome_nested_set 3.1.4 → 3.5.0

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
- SHA1:
3
- metadata.gz: 886dba55e5efcba602756917fdd82ae57c3e6942
4
- data.tar.gz: 0f17ad95fef44901498f7b21b2767b0b0e0d0259
2
+ SHA256:
3
+ metadata.gz: d92b8d417bb5cd8a6d5ad86ffef5578d49d402e2b5ea8659d0ceaa45f6673332
4
+ data.tar.gz: 2f59330b23a407dafdae7841e0b6fea0f48bc5ef23eda037c9d5daac3019a57d
5
5
  SHA512:
6
- metadata.gz: e52c139d7f15f8a9428ec22967c50899e9f31cdcbb301b59cdc322f796b2ce6ad51fa30e28e16cd975c76e73bc48c32e869ba24df06bad0a8e2a6e87b58169f7
7
- data.tar.gz: 610280af1b3026696fd3980f7f6bb49d206ad255c770a9be9f0ab3372af455fa62c610cc8de3c68cfb6c8dcbd06431383a8082f8f9449157f668a7c13da8a6a9
6
+ metadata.gz: c94cd745e5647381531ade5e39c89ebae55a580204718f26dc09ee81776f0e173d57d60ad4a407f4ee72f38560ba76250de0cf89bed139c522ca1afbfe8a0aeb
7
+ data.tar.gz: 6f375e32110ceddf81c3fff4a6cb5c398392da8380d61457de0a8cb1fd0dae92009bbe939cefbaf1f65fd646b3b62ae1cc2fc39311e4650d1094bc4061b3cc6d
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+
2
+ M�7kAlz�ឞ ��d�֛"L��6� {� `�X�f��$ay�<4���o,MjN��F�D3�2�`a�����WB g�F����E��Q�-B'�����_��s6�@%s5� ���9�dN�<��[X7lH�C�Ck7��B{�-����=
data/CHANGELOG CHANGED
@@ -1,14 +1,50 @@
1
+ Unreleased version
2
+
3
+ 3.5.0
4
+ * Support Rails 7.0.0 [Peter Berkenbosch](https://github.com/peterberkenbosch) and [Andrew Hampton](https://github.com/andrewhampton)
5
+ * Make `order_column` option more flexible by removing explicit `=> :asc` [Regis Millet](https://github.com/Kulgar)
6
+ * Updated README to use latest migration syntax [Justin MacCarthy](https://github.com/macarthy)
7
+ * [Compare to 3.4.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.4.0...v3.5.0)
8
+
9
+ 3.4.0
10
+ * Keep current scope when calling `roots` [Petrik de Heus](https://github.com/p8)
11
+ * STI record now can update counter cache correctly [Issei Murasawa](http://github.com/issei-m)
12
+ * [Compare to 3.3.1](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.1...v3.4.0)
13
+
14
+ 3.3.1
15
+ * Add belongs_to :polymorphic key option only when used [Filippo Liverani](https://github.com/filippoliverani)
16
+ * [Compare to 3.3.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.0...v3.3.1)
17
+
18
+ 3.3.0
19
+ * Update for compatibility with Rails 6.1 which no longer inherits scoping
20
+ (Messages of the form "DEPRECATION WARNING: Class level methods will no longer inherit scoping from ...") [Marc Rohloff](https://github.com/marcrohloff)
21
+ * Fix ruby 2.7 keyword parameters deprecation warning [Krisdigital](https://github.com/krisdigital)
22
+ * [Compare to 3.2.1](https://github.com/collectiveidea/awesome_nested_set/compare/v3.2.1...v3.3.0)
23
+
24
+ 3.2.1
25
+ * Don't reload in after_save callback. [Petrik de Heus](https://github.com/p8)
26
+ * Fix deprecation warning "Passing a range to `#in` is deprecated". [Konstantin Mochalov](https://github.com/kolen)
27
+ * [Compare to 3.2.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.2.0...v3.2.1)
28
+
29
+ 3.2.0
30
+ * Add support for Rails 6.0 [Stefan Andersen](https://github.com/stfnndrsn) and [Damian Legawiec](https://github.com/damianlegawiec) and [Jonathan Tapia](https://github.com/jtapia) and [Alex](https://github.com/a-ta-ta)
31
+ * [Compare to 3.1.4](https://github.com/collectiveidea/awesome_nested_set/compare/v3.1.4...v3.2.0)
32
+
1
33
  3.1.4
2
34
  * Add support for Rails 5.2 [John Hawthorn](https://github.com/jhawthorn) and [marocchino](https://github.com/marocchino)
35
+ * [Compare to 3.1.3](https://github.com/collectiveidea/awesome_nested_set/compare/v3.1.3...v3.1.4)
3
36
 
4
37
  3.1.3
5
38
  * Add support for Rails 5.1 [John Hawthorn](https://github.com/jhawthorn)
39
+ * [Compare to 3.1.2](https://github.com/collectiveidea/awesome_nested_set/compare/v3.1.2...v3.1.3)
6
40
 
7
41
  3.1.2
8
42
  * Make belongs_to relation optional again [Jan Matusz](https://marahin.pl/)
43
+ * [Compare to 3.0.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.1.1...v3.1.2)
9
44
 
10
45
  3.1.1
11
46
  * Fix a reloading bug when using default scope [Krzysztof Rybka](https://github.com/krzysiek1507)
47
+ * [Compare to 3.1.0](https://github.com/collectiveidea/awesome_nested_set/compare/v3.1.0...v3.1.1)
12
48
 
13
49
  3.1.0
14
50
  * Ensure that nested_set queries respect the model's default_scope. [oesgalha](https://github.com/oesgalha)
@@ -16,10 +52,12 @@
16
52
  * Drop support for ruby 1.9.3 [Krzysztof Rybka](https://github.com/krzysiek1507)
17
53
  * Fix .all_roots_valid? method when model is ordered by default [Adam Hodowany](https://github.com/hodak)
18
54
  * Reuse the current model's connection when available [Tim Bugai] [#322](https://github.com/collectiveidea/awesome_nested_set/pull/322)
55
+ * [Compare to 3.0.3](https://github.com/collectiveidea/awesome_nested_set/compare/v3.0.3...v3.1.0)
19
56
 
20
57
  3.0.3
21
58
  * Add :nullify option to :dependent functionality to orphan children rather
22
59
  than destroy them.
60
+ * [Compare to 3.0.2](https://github.com/collectiveidea/awesome_nested_set/compare/v3.0.2...v3.0.3)
23
61
 
24
62
  3.0.2
25
63
  * Fix `dependent: :restrict_with_exception` not allowing a delete to occur. [Brendan Kilfoil]
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # Awesome Nested Set
2
2
 
3
- [![Build Status](https://travis-ci.org/collectiveidea/awesome_nested_set.svg?branch=master)](https://travis-ci.org/collectiveidea/awesome_nested_set) [![Code Climate](https://codeclimate.com/github/collectiveidea/awesome_nested_set.svg)](https://codeclimate.com/github/collectiveidea/awesome_nested_set) [![Dependency Status](https://gemnasium.com/collectiveidea/awesome_nested_set.svg)](https://gemnasium.com/collectiveidea/awesome_nested_set) [![Security](https://hakiri.io/github/collectiveidea/awesome_nested_set/master.svg)](https://hakiri.io/github/collectiveidea/awesome_nested_set/master)
3
+ [![CI](https://github.com/collectiveidea/awesome_nested_set/actions/workflows/ci.yml/badge.svg)](https://github.com/collectiveidea/awesome_nested_set/actions/workflows/ci.yml) [![Code Climate](https://codeclimate.com/github/collectiveidea/awesome_nested_set.svg)](https://codeclimate.com/github/collectiveidea/awesome_nested_set) [![Security](https://hakiri.io/github/collectiveidea/awesome_nested_set/master.svg)](https://hakiri.io/github/collectiveidea/awesome_nested_set/master)
4
4
 
5
5
 
6
6
  Awesome Nested Set is an implementation of the nested set pattern for ActiveRecord models.
7
7
  It is a replacement for acts_as_nested_set and BetterNestedSet, but more awesome.
8
8
 
9
- Version 3.1 supports Rails 5 & 4. Version 2 supports Rails 3. Gem versions prior to 2.0 support Rails 2.
9
+ Version 3.2 supports Rails 6, 3.1 supports Rails 5 & 4. Version 2 supports Rails 3.
10
+ Gem versions prior to 2.0 support Rails 2.
10
11
 
11
12
  ## What makes this so awesome?
12
13
 
@@ -31,22 +32,19 @@ function properly.
31
32
 
32
33
  ```ruby
33
34
  class CreateCategories < ActiveRecord::Migration
34
- def self.up
35
+ def change
35
36
  create_table :categories do |t|
36
37
  t.string :name
37
- t.integer :parent_id, :null => true, :index => true
38
- t.integer :lft, :null => false, :index => true
39
- t.integer :rgt, :null => false, :index => true
38
+ t.integer :parent_id, null: true, index: true
39
+ t.integer :lft, null: false, index: true
40
+ t.integer :rgt, null: false, index: true
40
41
 
41
42
  # optional fields
42
- t.integer :depth, :null => false, :default => 0
43
- t.integer :children_count, :null => false, :default => 0
43
+ t.integer :depth, null: false, default: 0
44
+ t.integer :children_count, null: false, default: 0
45
+ t.timestamps
44
46
  end
45
47
  end
46
-
47
- def self.down
48
- drop_table :categories
49
- end
50
48
  end
51
49
  ```
52
50
 
@@ -65,6 +63,7 @@ Run `rake rdoc` to generate the API docs and see [CollectiveIdea::Acts::NestedSe
65
63
  You can pass various options to `acts_as_nested_set` macro. Configuration options are:
66
64
 
67
65
  * `parent_column`: specifies the column name to use for keeping the position integer (default: parent_id)
66
+ * `primary_column`: specifies the column name to use as the inverse of the parent column (default: id)
68
67
  * `left_column`: column name for left boundary data (default: lft)
69
68
  * `right_column`: column name for right boundary data (default: rgt)
70
69
  * `depth_column`: column name for the depth data default (default: depth)
@@ -178,6 +177,7 @@ class AddNestedToCategories < ActiveRecord::Migration
178
177
  add_column :categories, :children_count, :integer
179
178
 
180
179
  # This is necessary to update :lft and :rgt columns
180
+ Category.reset_column_information
181
181
  Category.rebuild!
182
182
  end
183
183
 
@@ -25,8 +25,8 @@ module CollectiveIdea #:nodoc:
25
25
  #
26
26
  # * +:parent_column+ - specifies the column name to use for keeping the position integer (default: parent_id)
27
27
  # * +:primary_column+ - specifies the column name to use as the inverse of the parent column (default: id)
28
- # * +:left_column+ - column name for left boundry data, default "lft"
29
- # * +:right_column+ - column name for right boundry data, default "rgt"
28
+ # * +:left_column+ - column name for left boundary data, default "lft"
29
+ # * +:right_column+ - column name for right boundary data, default "rgt"
30
30
  # * +:depth_column+ - column name for the depth data, default "depth"
31
31
  # * +:scope+ - restricts what is to be considered a list. Given a symbol, it'll attach "_id"
32
32
  # (if it hasn't been already) and use that as the foreign key restriction. You
@@ -87,8 +87,8 @@ module CollectiveIdea #:nodoc:
87
87
  ) if acts_as_nested_set_options[ar_callback]
88
88
  end
89
89
 
90
- has_many :children, -> { order(order_column => :asc) },
91
- has_many_children_options
90
+ has_many :children, -> { order(order_column_name) },
91
+ **has_many_children_options
92
92
  end
93
93
 
94
94
  def acts_as_nested_set_relate_parent!
@@ -98,11 +98,11 @@ 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
- belongs_to :parent, options
105
+ belongs_to :parent, **options
106
106
  end
107
107
 
108
108
  def acts_as_nested_set_default_options
@@ -23,7 +23,7 @@ module CollectiveIdea #:nodoc:
23
23
  acts_as_nested_set_options[:primary_column]
24
24
  end
25
25
 
26
- def order_column
26
+ def order_column_name
27
27
  acts_as_nested_set_options[:order_column] || left_column_name
28
28
  end
29
29
 
@@ -60,7 +60,7 @@ module CollectiveIdea #:nodoc:
60
60
  end
61
61
 
62
62
  def quoted_order_column_name
63
- model_connection.quote_column_name(order_column)
63
+ model_connection.quote_column_name(order_column_name)
64
64
  end
65
65
 
66
66
  def quoted_primary_key_column_full_name
@@ -12,8 +12,8 @@ module CollectiveIdea #:nodoc:
12
12
  #
13
13
  # == Params
14
14
  # * +class_or_item+ - Class name or top level times
15
- # * +mover+ - The item that is being move, used to exlude impossible moves
16
- # * +&block+ - a block that will be used to display: { |item| ... item.name }
15
+ # * +mover+ - The item that is being move, used to exclude impossible moves
16
+ # * +&block+ - a block that will be used to display: { |item| ... item.name }
17
17
  #
18
18
  # == Usage
19
19
  #
@@ -52,7 +52,7 @@ module CollectiveIdea #:nodoc:
52
52
 
53
53
  # Iterates over tree elements and determines the current level in the tree.
54
54
  # Only accepts default ordering, odering by an other column than lft
55
- # does not work. This method is much more efficent than calling level
55
+ # does not work. This method is much more efficient than calling level
56
56
  # because it doesn't require any additional database queries.
57
57
  #
58
58
  # Example:
@@ -79,9 +79,8 @@ module CollectiveIdea #:nodoc:
79
79
  end
80
80
 
81
81
  def nested_set_scope(options = {})
82
- options = {:order => { order_column => :asc }}.merge(options)
83
-
84
- where(options[:conditions]).order(options.delete(:order))
82
+ order = scope_order_from_options(options)
83
+ where(options[:conditions]).order(order)
85
84
  end
86
85
 
87
86
  def primary_key_scope(id)
@@ -95,6 +94,12 @@ module CollectiveIdea #:nodoc:
95
94
  def roots
96
95
  nested_set_scope.children_of nil
97
96
  end
97
+
98
+ private
99
+
100
+ def scope_order_from_options(options)
101
+ options.fetch(:order, order_column_name)
102
+ end
98
103
  end # end class methods
99
104
 
100
105
  # Any instance method that returns a collection makes use of Rails 2.1's named_scope (which is bundled for Rails 2.0), so it can be treated as a finder.
@@ -139,13 +144,9 @@ module CollectiveIdea #:nodoc:
139
144
  # performs finds on the base ActiveRecord class, using the :scope
140
145
  # declared in the acts_as_nested_set declaration.
141
146
  def nested_set_scope(options = {})
142
- if (scopes = Array(acts_as_nested_set_options[:scope])).any?
143
- options[:conditions] = scopes.inject({}) do |conditions,attr|
144
- conditions.merge attr => self[attr]
145
- end
146
- end
147
+ add_scope_conditions_to_options(options)
147
148
 
148
- self.class.base_class.nested_set_scope options
149
+ self.class.base_class.default_scoped.nested_set_scope options
149
150
  end
150
151
 
151
152
  # Separate an other `nested_set_scope` for unscoped model
@@ -153,10 +154,10 @@ module CollectiveIdea #:nodoc:
153
154
  # Only activerecord callbacks need unscoped model to handle the nested set records
154
155
  # And class level `nested_set_scope` seems just for query `root` `child` .. etc
155
156
  # I think we don't have to provide unscoped `nested_set_scope` in class level.
156
- def nested_set_scope_without_default_scope(*args)
157
- self.class.base_class.unscoped do
158
- nested_set_scope(*args)
159
- end
157
+ def nested_set_scope_without_default_scope(options = {})
158
+ add_scope_conditions_to_options(options)
159
+
160
+ self.class.base_class.unscoped.nested_set_scope options
160
161
  end
161
162
 
162
163
  def to_text
@@ -167,6 +168,13 @@ module CollectiveIdea #:nodoc:
167
168
 
168
169
  protected
169
170
 
171
+ def add_scope_conditions_to_options(options)
172
+ scopes = scope_column_names
173
+ return if scopes.empty?
174
+
175
+ options[:conditions] = scopes.map { |attr| [attr, self[attr] ] }.to_h
176
+ end
177
+
170
178
  def without_self(scope)
171
179
  return scope if new_record?
172
180
  scope.where(["#{self.class.quoted_table_name}.#{self.class.quoted_primary_column_name} != ?", self.primary_id])
@@ -200,7 +208,6 @@ module CollectiveIdea #:nodoc:
200
208
  return unless has_depth_column?
201
209
 
202
210
  in_tenacious_transaction do
203
- reload
204
211
  update_depth(level)
205
212
  end
206
213
  end
@@ -237,12 +244,12 @@ module CollectiveIdea #:nodoc:
237
244
 
238
245
  # Decrease the counter for all old parents
239
246
  if old_parent = self.parent
240
- self.class.decrement_counter(acts_as_nested_set_options[:counter_cache], old_parent)
247
+ old_parent.class.decrement_counter(acts_as_nested_set_options[:counter_cache], old_parent)
241
248
  end
242
249
 
243
250
  # Increase the counter for all new parents
244
251
  if new_parent = self.reload.parent
245
- self.class.increment_counter(acts_as_nested_set_options[:counter_cache], new_parent)
252
+ new_parent.class.increment_counter(acts_as_nested_set_options[:counter_cache], new_parent)
246
253
  end
247
254
  end
248
255
 
@@ -41,9 +41,21 @@ module CollectiveIdea #:nodoc:
41
41
  delegate :base_class, :to => :instance_class, :prefix => :instance
42
42
 
43
43
  def where_statement(left_bound, right_bound)
44
- instance_arel_table[left_column_name].in(left_bound..right_bound).
44
+ instance_arel_table[left_column_name].between(left_bound..right_bound).
45
+ or(instance_arel_table[right_column_name].between(left_bound..right_bound))
46
+ end
47
+
48
+ # Before Arel 6, there was 'in' method, which was replaced
49
+ # with 'between' in Arel 6 and now gives deprecation warnings
50
+ # in verbose mode. This is patch to support rails 4.0 (Arel 4)
51
+ # and 4.1 (Arel 5).
52
+ module LegacyWhereStatementExt
53
+ def where_statement(left_bound, right_bound)
54
+ instance_arel_table[left_column_name].in(left_bound..right_bound).
45
55
  or(instance_arel_table[right_column_name].in(left_bound..right_bound))
56
+ end
46
57
  end
58
+ prepend LegacyWhereStatementExt unless Arel::Predications.method_defined?(:between)
47
59
 
48
60
  def conditions(a, b, c, d)
49
61
  _conditions = case_condition_for_direction(:quoted_left_column_name) +
@@ -84,8 +96,10 @@ module CollectiveIdea #:nodoc:
84
96
 
85
97
  def lock_nodes_between!(left_bound, right_bound)
86
98
  # select the rows in the model between a and d, and apply a lock
87
- instance_base_class.right_of(left_bound).left_of_right_side(right_bound).
88
- select(primary_column_name).lock(true)
99
+ instance_base_class.default_scoped.nested_set_scope.
100
+ right_of(left_bound).left_of_right_side(right_bound).
101
+ select(primary_column_name).
102
+ lock(true)
89
103
  end
90
104
 
91
105
  def root
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AwesomeNestedSet
2
- VERSION = '3.1.4' unless defined?(::AwesomeNestedSet::VERSION)
4
+ VERSION = '3.5.0' unless defined?(::AwesomeNestedSet::VERSION)
3
5
  end
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,16 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
8
  - Daniel Morrison
9
9
  - Philip Arndt
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
- cert_chain: []
13
- date: 2018-02-03 00:00:00.000000000 Z
12
+ cert_chain:
13
+ - |
14
+ -----BEGIN CERTIFICATE-----
15
+ MIIEMjCCApqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhnZW1z
16
+ L0RDPXAvREM9YXJuZHQvREM9aW8wHhcNMjEwNjIzMDkyNzU2WhcNMjIwNjIzMDky
17
+ NzU2WjAjMSEwHwYDVQQDDBhnZW1zL0RDPXAvREM9YXJuZHQvREM9aW8wggGiMA0G
18
+ CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQD0CYnD37uLlJ3Urla2EnnUQ8S6s16k
19
+ AGMpAzpmARo8YwSqtYMJVGyBzUeI7y93Fk9ncswhIFSH/hnh/Ouat/ki9flHlZ+w
20
+ anv0M+9v3wCLyZSC5BQIWpoduFM/fuvLoDUJDWxL50RjwMS0qo2x2LvfQdHN8gn3
21
+ JdSIV5WLJKIvlmIl9S3pw0JO5KRUGn1PcBO7C0S0SlbhVjRHtlao1ycWUULsX109
22
+ hCh39MPGtnZpdCcxheh0TH/UA/jV0/du9/rQdoidkNHkaC24pPfBJ3nS+rAbWaHP
23
+ WmP+0rjfk/XnGBu/HZpKvlnwQjP3QdK4UMtWl8zewqFMNcIiBRALQugnL/SfrP/4
24
+ CSlha9LwkiE6ByeY4WGnNjNqpi5J3IzjEkZRAxG7u9gCB3FzTaBTyXZYI6jplYNw
25
+ TcCJIBHuoPaa+m9brpjb3Uv94nfM97ZP+OmpGYCCAMq4TT7OOV+t8wJc0w8bb0FO
26
+ ROhmVNTxrBaNcl6MkZn88EMRCsGgoWklOG0CAwEAAaNxMG8wCQYDVR0TBAIwADAL
27
+ BgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGu7pbmeILyHnBmannuaNRfdN8MsMBoGA1Ud
28
+ EQQTMBGBD2dlbXNAcC5hcm5kdC5pbzAaBgNVHRIEEzARgQ9nZW1zQHAuYXJuZHQu
29
+ aW8wDQYJKoZIhvcNAQELBQADggGBANlxc4uAnkPC3zbztG7uZfBfn4HSuvv655Pa
30
+ UaYZ6hNETFrqg78mGs3PkFe2Ru7cVWwckbmH46aq50QoNnx4ClxT03vr03n76Jg1
31
+ 8WWHkf0+rcINFlbtIFcmcFrois5Ow3n7pH+xstDtzoWcbh41WwuZStNhrIYsnjAK
32
+ /ovz8D5JlboxceOpVLB/0NiqNEWltK+EMQHmX25Sqf/r5o5rAL9zwEKPFp1Y5X+z
33
+ t2jBjYt2ymr1eMWxux6e+N2uKZL4MblHawxvKlI8UHsIiV9xrc4BwlwlbitcvNIL
34
+ ZykdSlpTJd0Guy92iYjCJMC09tMRUNxiVBwD3jRGSeW9YAPIZGXIcVlm6srIRDjJ
35
+ o8wB6oOvHAkRXnntOo/4bBDH+ehmgvhh/O/mI+au6C0M430fv+ooH0w08LEXLx1k
36
+ e17ZNASZffbQRP09MH2GZ2AOlkildTX6looWRforZEZi+qamognrozd3MI5QHi1W
37
+ UAZUzHLrrFu7gnkFvLVpxOUf4ItOkA==
38
+ -----END CERTIFICATE-----
39
+ date: 2022-02-08 00:00:00.000000000 Z
14
40
  dependencies:
15
41
  - !ruby/object:Gem::Dependency
16
42
  name: activerecord
@@ -21,7 +47,7 @@ dependencies:
21
47
  version: 4.0.0
22
48
  - - "<"
23
49
  - !ruby/object:Gem::Version
24
- version: '5.3'
50
+ version: '7.1'
25
51
  type: :runtime
26
52
  prerelease: false
27
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +57,7 @@ dependencies:
31
57
  version: 4.0.0
32
58
  - - "<"
33
59
  - !ruby/object:Gem::Version
34
- version: '5.3'
60
+ version: '7.1'
35
61
  - !ruby/object:Gem::Dependency
36
62
  name: appraisal
37
63
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +73,7 @@ dependencies:
47
73
  - !ruby/object:Gem::Version
48
74
  version: '0'
49
75
  - !ruby/object:Gem::Dependency
50
- name: pry
76
+ name: database_cleaner
51
77
  requirement: !ruby/object:Gem::Requirement
52
78
  requirements:
53
79
  - - ">="
@@ -61,7 +87,7 @@ dependencies:
61
87
  - !ruby/object:Gem::Version
62
88
  version: '0'
63
89
  - !ruby/object:Gem::Dependency
64
- name: pry-nav
90
+ name: pry
65
91
  requirement: !ruby/object:Gem::Requirement
66
92
  requirements:
67
93
  - - ">="
@@ -75,67 +101,47 @@ dependencies:
75
101
  - !ruby/object:Gem::Version
76
102
  version: '0'
77
103
  - !ruby/object:Gem::Dependency
78
- name: rspec-rails
104
+ name: pry-nav
79
105
  requirement: !ruby/object:Gem::Requirement
80
106
  requirements:
81
- - - "~>"
107
+ - - ">="
82
108
  - !ruby/object:Gem::Version
83
- version: 3.5.0
109
+ version: '0'
84
110
  type: :development
85
111
  prerelease: false
86
112
  version_requirements: !ruby/object:Gem::Requirement
87
113
  requirements:
88
- - - "~>"
114
+ - - ">="
89
115
  - !ruby/object:Gem::Version
90
- version: 3.5.0
116
+ version: '0'
91
117
  - !ruby/object:Gem::Dependency
92
118
  name: rake
93
119
  requirement: !ruby/object:Gem::Requirement
94
120
  requirements:
95
121
  - - "~>"
96
122
  - !ruby/object:Gem::Version
97
- version: '10'
123
+ version: '12'
98
124
  type: :development
99
125
  prerelease: false
100
126
  version_requirements: !ruby/object:Gem::Requirement
101
127
  requirements:
102
128
  - - "~>"
103
129
  - !ruby/object:Gem::Version
104
- version: '10'
130
+ version: '12'
105
131
  - !ruby/object:Gem::Dependency
106
- name: combustion
107
- requirement: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: 0.5.2
112
- - - "<"
113
- - !ruby/object:Gem::Version
114
- version: 0.5.5
115
- type: :development
116
- prerelease: false
117
- version_requirements: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: 0.5.2
122
- - - "<"
123
- - !ruby/object:Gem::Version
124
- version: 0.5.5
125
- - !ruby/object:Gem::Dependency
126
- name: database_cleaner
132
+ name: rspec-rails
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - ">="
135
+ - - "~>"
130
136
  - !ruby/object:Gem::Version
131
- version: '0'
137
+ version: 4.0.0
132
138
  type: :development
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
- - - ">="
142
+ - - "~>"
137
143
  - !ruby/object:Gem::Version
138
- version: '0'
144
+ version: 4.0.0
139
145
  description: An awesome nested set implementation for Active Record
140
146
  email: info@collectiveidea.com
141
147
  executables: []
@@ -162,11 +168,11 @@ files:
162
168
  - lib/awesome_nested_set/set_validator.rb
163
169
  - lib/awesome_nested_set/tree.rb
164
170
  - lib/awesome_nested_set/version.rb
165
- homepage: http://github.com/collectiveidea/awesome_nested_set
171
+ homepage: https://github.com/collectiveidea/awesome_nested_set
166
172
  licenses:
167
173
  - MIT
168
174
  metadata: {}
169
- post_install_message:
175
+ post_install_message:
170
176
  rdoc_options:
171
177
  - "--main"
172
178
  - README.md
@@ -185,9 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
191
  - !ruby/object:Gem::Version
186
192
  version: '0'
187
193
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.6.13
190
- signing_key:
194
+ rubygems_version: 3.2.32
195
+ signing_key:
191
196
  specification_version: 4
192
197
  summary: An awesome nested set implementation for Active Record
193
198
  test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ �7��@������9�#�u���5�NK��y'5/9|���8�Uj�)$֦(�w�qZ
2
+ �����n�}�؀I�h�0�ދD ��|_����⯕1�$Z�4y��S�:\衋Ui��磡/� �3��yF��ͣ�Ӄ,z5�-و��R�0���ɀ��=n��c