hario 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 848a772343845f190829132514fd9b48ebbeed888942101b5a506c56471cefa6
4
- data.tar.gz: 686ea3e558172f4323c34d8a582cb894dc2c651fb1bbef8968652ccac14c5764
3
+ metadata.gz: 0c8b8bf6f818c006ad4697f801728b977f01009ff3014e3ae516aabdf978ff14
4
+ data.tar.gz: 04abafdddc6d26b9ac1eb3d8d0e3160da7adbc51c9e03278887277ac38b303d2
5
5
  SHA512:
6
- metadata.gz: 55fd4028f152d38dd651166c0594cc1d4bdd587df3efbd54d323689c2e4f0acffcf30f4f201da91a198a9e28dcd8bb80b43c221656286cbaaf341a21feec4e8c
7
- data.tar.gz: a6216c57c9749b1770463c48f74222a85b808e8c6abdf005cdccb971134046faac35f12af3ff40acf9f6f9381e8234e5428caa2930264efbbeeaee5da55f5b26
6
+ metadata.gz: 13da71735f0491db6e3f944757c29ec0a47f711d12578cd222957cf94aeb93d366f3079a7359993b24ae38d6075a8fa012c2bc8adeede4bb39a8e079892c7f19
7
+ data.tar.gz: 51be388b7342ec1b0f511b78bfa22ddd461bd266294d7862b27a576b7fec945b7f47cebb39fcd29cdc2133a64f1b7f16415cc8daa4d956e302dc98fb28d9b734
@@ -52,7 +52,11 @@ module Hario
52
52
  raise_if_invalid_attribute!(attribute, end_model)
53
53
 
54
54
  case operator
55
- when :equals, :in
55
+ when :equals
56
+ condition = { attribute => value }
57
+ condition = { attribute_table => condition } if attribute_table
58
+ when :in
59
+ value = value.split(',').map(&:strip) if value.is_a?(String)
56
60
  condition = { attribute => value }
57
61
  condition = { attribute_table => condition } if attribute_table
58
62
  when :is
data/lib/hario/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hario
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hario
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Campbell