azahara_schema 0.3.9 → 0.3.10

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: bf0eebe881da427f06f2525e0e9bfe6c5fc514bb6a2fd9758bcdabf6ebc38ef0
4
- data.tar.gz: 38495530658455a1022190bee68f81ef7d88c436e10b76f8f2ba58f6fb96f284
3
+ metadata.gz: cd521cb7f65eb4e2da7a431528c37f93118e64fe747a18b25f2b21d68cd71715
4
+ data.tar.gz: 22be1abf8722e4b5dce3540161ef6f0f3a39a8af458c84c16ab49b72e1a5cef5
5
5
  SHA512:
6
- metadata.gz: 0f699c91ddc8069adcfdabdfd9060cda20b2f80b98bc0edd51f57a571149a32e68fe1e69905de32f20672153cbc6ef57df736d00e2eeeec00d68637402c002a8
7
- data.tar.gz: dc2e3000be8fa8fa43febb6f3f67f6986367e364564ef3d51f7ad72a08b880b1e5fdc70af3521b3a9d26349f5b82bf02f62687b3c7de6cc9d74cbe3bca0306d6
6
+ metadata.gz: e55554f1443c80a2bc5a2468a6a80789e6687e9bf72664c63ac1bed6c0d333986d32d50524deadb45dc25b33ea32903f0ddd3e04080c8d54ad39112d2870202b
7
+ data.tar.gz: e9c300edc0cafb02a0829f854075feddefd34385b05e1a1bc509b6191ec5681aa24045c50bab4364d79e73eec4774f42f345e9a22418bd8574aa5e69104293d8
@@ -77,7 +77,7 @@ module AzaharaSchema
77
77
  values = values.collect{|v| format.sanitize_value(v) }
78
78
  case operator
79
79
  when '='
80
- condition = arel_field.in(values.compact) if values.compact.any?
80
+ condition = arel_field.in(values.compact) unless values.compact.empty?
81
81
  if values.include?(nil)
82
82
  c_nil = arel_field.eq(nil)
83
83
  condition = condition ? condition.or(c_nil) : c_nil
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.3.9'
2
+ VERSION = '0.3.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails