activerecord-hierarchical_query 1.1.0 → 1.2.1

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: 31640e2b4355e1204bc3ff3c233124de13269b864b4b55a893c528f23bfac6dc
4
- data.tar.gz: c6a07c2b90fc9121d62cdf4be640f87abbc841e8055cdb0fecdef90999885e26
3
+ metadata.gz: 18f95128fd462bc6f9c7ea0ff645a4015b812c839058470b4ffa90d3f9086f94
4
+ data.tar.gz: 550f1bd66253046d7f1529dd35948deb4aae02195189e62d6e471bb9398323be
5
5
  SHA512:
6
- metadata.gz: 8b6151f2d1ca6cbaa9c0a85ab5fd9e1242a4bdf8bbeac17634b887d7084ea0fc39fd980f5052d10a8c76dd4df6d05b3160007fee707a162b5d1fb3af8d65ce58
7
- data.tar.gz: 2b686e08d2ec2189952f6a76c8e78578c75a10cd8410a2ec4872ab5372c547a57dd9b6b63616b9fd0567713ad99254d5e1a8759e5e1ac9d3dd2fee9c277626b3
6
+ metadata.gz: 898cec660309a3677f0b5c570fa7d8c368281b9a8d1713e38c21b1c1c1a022fe9f5cea21cee4c5a3f90dafd14fc3c4c25f168be7412c1b17b1cbaa9e4c713e83
7
+ data.tar.gz: a54b8e2d64dd6249ed4b80a7140849d2de1d74733c5a9c16796d8b5e8575077f4481edf23baf787f3544a82b1d9f14dd02db51b6f85bc99e32f942d62f829544
data/README.md CHANGED
@@ -13,30 +13,20 @@ in hierarchical order using hierarchical query builder.
13
13
 
14
14
  ## Requirements
15
15
 
16
- * ActiveRecord ~> 5.2
16
+ * ActiveRecord >= 5.0, <= 6.0
17
17
  * PostgreSQL >= 8.4
18
+ * Postgres Gem >= 0.21, < 1.2
18
19
 
19
20
  Note that though PostgresSQL 8.4 and up should work, this library
20
21
  is tested on PostgresSQL 10.5.
21
22
 
22
23
  ### Rails Version
23
24
 
24
- **Rails 3 support has ended.**
25
+ **Rails 4 support has ended.**
25
26
 
26
- **Support for Rails 4 is limited to review of security related
27
- pull requests that include tests.** EOL for Rails 4 is when
28
- Rails 6 comes out.
29
-
30
- Rails 5 is supported on the `rails-5` branch and through gem
31
- versions `>= 1.0.0` on rubygems.org. This branch will soon
32
- replace master. If you have trouble with Rails 5.1 or 5.0,
33
- upgrade to Rails 5.2 and install the latest version.
34
-
35
- Now that @zachaysan is the new primary maintainer of this
36
- project, support for laggard versions of Rails is going to be
37
- minimal. Security updates will be accepted, but due to structural
38
- changes in Rails core it's no longer possible to easily support
39
- former versions of Rails.
27
+ If you have trouble with Rails 5.1 or 5.0, try upgrading to Rails 5.2
28
+ first. Rails 6 should work, but please report issues immediately as
29
+ support is recent.
40
30
 
41
31
  ## In a nutshell
42
32
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module HierarchicalQuery
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.1'
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ module Arel
25
25
  ARRAY_CLOSING = ']'.freeze
26
26
  ARRAY_CONCAT = '||'.freeze
27
27
 
28
- if Arel::VERSION < '6.0.0'
28
+ if Gem::Version.new(Arel::VERSION) < Gem::Version.new('6.0.0')
29
29
  def visit_Arel_Nodes_PostgresArray o, *a
30
30
  "#{ARRAY_OPENING}#{visit o.values, *a}#{ARRAY_CLOSING}"
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-hierarchical_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexei Mikhailov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-22 00:00:00.000000000 Z
12
+ date: 2019-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -18,9 +18,9 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5.0'
21
- - - "<"
21
+ - - "<="
22
22
  - !ruby/object:Gem::Version
23
- version: '5.3'
23
+ version: '6.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +28,9 @@ dependencies:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: '5.0'
31
- - - "<"
31
+ - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: '5.3'
33
+ version: '6.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: pg
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubyforge_project:
173
- rubygems_version: 2.7.7
172
+ rubygems_version: 3.0.6
174
173
  signing_key:
175
174
  specification_version: 4
176
175
  summary: Recursively traverse trees using a single SQL query