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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2e57daa4864ca189927f6f4197009f057ce83d6cc4a1f12d7fd12e20a63ac68
4
- data.tar.gz: 39d7ab6d734005b482dd04f1e03c1e8b71b5a463d2c35b9cec3a71d46bf84b20
3
+ metadata.gz: d95a12f5c8e5e48eebb56d5ab99ffc4fe80db96ee28041beede8dbfc8a8920cc
4
+ data.tar.gz: 5e9c19213eb0d7c0d43e2f506c5f08acc651b3f4e33e5ec62dc53d0b79c87ced
5
5
  SHA512:
6
- metadata.gz: 4fbf0b2cdd5c76f856b027495b46ca5084dbadd5e1e0a5bcad2ab62de4fa0915a1453ee63ee35b4de397aa9fd1cdc214d10a2586025be6656cc985ed43468996
7
- data.tar.gz: d438b922e697b704c58a22734b647c7027defbf53cce02502ec52a3753fe8417cdf17976e1e956bc7c1e63eb7be0c7b2e8dbc4d5ca87ccd4cf4d1ce805567a03
6
+ metadata.gz: fd222a989cb6374f50669d3a9ec6c7e5959b763e62bbdf6c8578db7bc4d3bc94281257c41d6c3927645ef6c5cdb6be3df6f786d8f81e1517772dfb880449ed66
7
+ data.tar.gz: 50669ec434c338f89fe2d5318a868e74afc3fbf388929788c94a54853eb0c4364916fcce9f908e8dc494bcf46b03a6fe5773cdc58e5445effe85e509e8d00414
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'arel-extensions'
3
- gem.version = '6.0.0'
3
+ gem.version = '6.0.0.1'
4
4
 
5
5
  gem.authors = ["Jon Bracy"]
6
6
  gem.email = ["jonbracy@gmail.com"]
@@ -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-05-29 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord