arel-extensions 6.0.0 → 6.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/arel-extensions.gemspec +1 -1
- data/lib/arel/visitors/sunstone_extensions.rb +24 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95a12f5c8e5e48eebb56d5ab99ffc4fe80db96ee28041beede8dbfc8a8920cc
|
4
|
+
data.tar.gz: 5e9c19213eb0d7c0d43e2f506c5f08acc651b3f4e33e5ec62dc53d0b79c87ced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd222a989cb6374f50669d3a9ec6c7e5959b763e62bbdf6c8578db7bc4d3bc94281257c41d6c3927645ef6c5cdb6be3df6f786d8f81e1517772dfb880449ed66
|
7
|
+
data.tar.gz: 50669ec434c338f89fe2d5318a868e74afc3fbf388929788c94a54853eb0c4364916fcce9f908e8dc494bcf46b03a6fe5773cdc58e5445effe85e509e8d00414
|
data/arel-extensions.gemspec
CHANGED
@@ -40,6 +40,30 @@ module Arel
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
def visit_Arel_Nodes_Overlaps o, collector
|
44
|
+
key = visit(o.left, collector)
|
45
|
+
value = { overlaps: o.left.type_cast_for_database(o.right) }
|
46
|
+
|
47
|
+
if key.is_a?(Hash)
|
48
|
+
add_to_bottom_of_hash_or_array(key, value)
|
49
|
+
key
|
50
|
+
else
|
51
|
+
{key => value}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def visit_Arel_Nodes_NotOverlaps o, collector
|
56
|
+
key = visit(o.left, collector)
|
57
|
+
value = { not_overlaps: o.left.type_cast_for_database(o.right) }
|
58
|
+
|
59
|
+
if key.is_a?(Hash)
|
60
|
+
add_to_bottom_of_hash_or_array(key, value)
|
61
|
+
key
|
62
|
+
else
|
63
|
+
{key => value}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
43
67
|
def visit_Arel_Nodes_HasKey o, collector
|
44
68
|
key = visit(o.left, collector)
|
45
69
|
value = {has_key: (o.right.nil? ? nil : o.right.to_s)}
|
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.0.0
|
4
|
+
version: 6.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|