puppetdb_query 0.0.12 → 0.0.13

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: af252a7065c0de48c4f5b2c67be20358a2729a2d
4
- data.tar.gz: adb38ad2d86375b9d474ed053c946813e63f3397
3
+ metadata.gz: 27f07ecc3d21e288773f4dbd073a01916b217c76
4
+ data.tar.gz: c4f1af6f52903ccfa03531ae03d29365a33b1504
5
5
  SHA512:
6
- metadata.gz: cbea64f06aeeefacb760199d10304caf32a3e54366dcf4c3e2277dc3f9efb79cf696db7fce27d6b131769050e27599e6a5f4807cdf69052498fd105b5d7464fc
7
- data.tar.gz: a0be094a6621679ece6f7ad812d3db22f714dd163112b497095213a06b533a47d669c7ac1c6cb0b5efbd3eb5f9e15427a433c48850d640ae9988d49f60cac4b5
6
+ metadata.gz: 7314f72c14245d7cb0e16251daf5f3af13713c8c12154279fddb19455fb12a7ee80e634fe76a3bd2518dcc030d0915a1e62f88938d94485c0b9cd51430ed3a62
7
+ data.tar.gz: 70c7c3d25a471f70ae936bf84b19bc598aa5defc7bd987cc57eda5d0b3cde9d3a9db11a77755fc90d6d507d29611a068119b523b81a9b6836299bf31a909f20e
@@ -44,9 +44,9 @@ module PuppetDBQuery
44
44
  # see https://jira.mongodb.org/browse/SERVER-10708
45
45
  { :$nor => terms }
46
46
  when :_equal
47
- { term.args[0] => term.args[1].to_s }
47
+ { term.args[0] => (term.args[1] != :null ? term.args[1].to_s : :null) }
48
48
  when :_not_equal
49
- { term.args[0] => { :$ne => term.args[1].to_s } }
49
+ { term.args[0] => { :$ne => (term.args[1] != :null ? term.args[1].to_s : :null) } }
50
50
  when :_match
51
51
  { term.args[0] => { :$regex => term.args[1].to_s } }
52
52
  when :_in
@@ -1,3 +1,3 @@
1
1
  module PuppetDBQuery
2
- VERSION = "0.0.12".freeze
2
+ VERSION = "0.0.13".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetdb_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meyling