arel-extensions 6.1.0.rc1 → 6.1.0.rc2

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: 6499ad3b57ef7119b545163cecc1972913c494d57bbfd19c81aecbbf74219880
4
- data.tar.gz: 576fb2e56d087957430ff9e8cc5ee3dc968c2f17ba3d2c617a4eae2f6664f340
3
+ metadata.gz: e5d5fc1f0a60a20f13e1f12d1b445c347bce09e0e070ad0e3a45e1e77b108eab
4
+ data.tar.gz: c75928cd9e920e0004829c359e5b4cb61d237474e0667a7ef6876045fa01c539
5
5
  SHA512:
6
- metadata.gz: df8347481c7c0d86903d7f0fe35850da0ac725325ab18f11191f6c04455d88515cd47306ab1fb972f5ca2e8a49e678cbfd242c12a0850575a5cdbde95bb41a9b
7
- data.tar.gz: 52c2e805c1758594478b229c421ba301571c82d715be1904f8fd00359ab7b399919d2d6f74c8548078ad141c41a7bc687d7d311b33f79ac171ca38f95859623f
6
+ metadata.gz: fb8e0f51781d3459bda4514c07fcabe0b51d27ca668f4c17ccdc7a9f6e714d4bde039c13a103697765a9ae076befa3d36285e6a5bf3dae2df4b810fb17b72d19
7
+ data.tar.gz: e75fa73cfa18eb83e1e22a5941c75721d8bc536092b51900fcce6195d77cb466b082f232fe2b36a784af56a93701cb593ef4c9c160e7df64c110e5feadb7c241
@@ -1,5 +1,5 @@
1
1
  module Arel
2
2
  module Extensions
3
- VERSION = '6.1.0.rc1'
3
+ VERSION = '6.1.0.rc2'
4
4
  end
5
5
  end
@@ -1,6 +1,9 @@
1
1
  module Arel
2
2
  module Nodes
3
- class ContainedBy < Binary
3
+ class ContainedBy < InfixOperation
4
+ def initialize(left, right)
5
+ super(:"<@", left, right)
6
+ end
4
7
  end
5
8
  end
6
- end
9
+ end
@@ -12,7 +12,7 @@ module Arel
12
12
  end
13
13
 
14
14
  def able_to_type_cast?
15
- false
15
+ relation.able_to_type_cast?
16
16
  end
17
17
 
18
18
  def table_name
@@ -28,18 +28,11 @@ module Arel
28
28
  collector << "RANDOM()"
29
29
  end
30
30
 
31
- def visit_Arel_Nodes_ContainedBy o, collector
32
- visit o.left, collector
33
- collector << ' <@ '
34
- collector << quote(o.left.type_cast_for_database(o.right))
35
- collector
36
- end
37
-
38
31
  def visit_Arel_Nodes_Excludes o, collector
39
32
  collector << 'NOT ('
40
33
  visit o.left, collector
41
34
  collector << ' @> '
42
- collector << quote(o.left.type_cast_for_database(o.right))
35
+ visit o.right, collector
43
36
  collector << ')'
44
37
  collector
45
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0.rc1
4
+ version: 6.1.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord