arel-extensions 1.5.1 → 1.5.2

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
  SHA1:
3
- metadata.gz: 34740e522c8856c9c1a1affa6f6a27fe4b1b48a3
4
- data.tar.gz: eacfcbc431fb2846051b8895c0f530ace30513b0
3
+ metadata.gz: 0f5c8d435e6378cdaf63398e946ea88c0404589c
4
+ data.tar.gz: c2db5c4c9cdc751ab836f241aa1f20232da98aef
5
5
  SHA512:
6
- metadata.gz: 75529b42bbc8451752a5e8e54554c0578dd837769981ef6199d50e4b4111331b1e90cba4f53e508e773ca26d38ece0efaacced533782556e48c1432230169467
7
- data.tar.gz: cf58f036cee684dafc645a241d8e8cbcb5a96eb0d8cf938017ef98a4127504c692b41565652f5ab4344819f4a711f1e07deb9ae8af0ba54dc6e805d5cefa3ef2
6
+ metadata.gz: 93ef06c1a1fd9f451cb3b4914c88e82a982ce923e2ba70e539d6ef2882ea9e3d042f8c9994fbbca9d225856ad0bd7933ea446ec69224515550c0fbde602fbc0f
7
+ data.tar.gz: 9fd582e8334735fdd142ffbf3745010eb1c4b0f1661f1a77e0ca11acb6516fe1d8fa894f7c82886475b4dca284c09d91024ef78413df4782a11dec1f3f584f4f
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'arel-extensions'
3
- gem.version = '1.5.1'
3
+ gem.version = '1.5.2'
4
4
 
5
5
  gem.authors = ["Jon Bracy"]
6
6
  gem.email = ["jonbracy@gmail.com"]
@@ -1,5 +1,6 @@
1
1
  require File.expand_path('../nodes/overlaps', __FILE__)
2
2
  require File.expand_path('../nodes/contains', __FILE__)
3
+ require File.expand_path('../nodes/excludes', __FILE__)
3
4
  require File.expand_path('../nodes/contained_by', __FILE__)
4
5
  require File.expand_path('../array_predications', __FILE__)
5
6
  Arel::Attributes::Attribute.include(Arel::ArrayPredications)
@@ -16,7 +16,7 @@ module Arel
16
16
 
17
17
  def visit_Arel_Nodes_Excludes o, collector
18
18
  key = visit(o.left, collector)
19
- value = { excludes: visit(o.right, collector) }
19
+ value = { excludes: o.left.type_cast_for_database(o.right) }
20
20
 
21
21
  if key.is_a?(Hash)
22
22
  add_to_bottom_of_hash(key, value)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy