puppetdb_query 0.0.10 → 0.0.11

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
  SHA1:
3
- metadata.gz: 3301979985af2a5c8e3e52c9aebe6204d91a2bd3
4
- data.tar.gz: 2a3155d079b92856bb7f9ff0b0a8045c9d973e25
3
+ metadata.gz: 5c59921caa3a24f6e43828a8ab635634dfd371be
4
+ data.tar.gz: 18028e8e706f539664aa5627d0d57606a96677b5
5
5
  SHA512:
6
- metadata.gz: 22aa0dcca610efafe04080ed11683f4d03fe038c2be0d80dca89b93d8c39deb22ce186c2b8cbf0b4da653c73304bf11153bca56761b0e105f33c24ee45b3f43e
7
- data.tar.gz: 791c167a17715cc0de051ce33c5a05bf8d603a3b6ad70c01a7584c24a4d318ad2be4678db8e2191a26dd310639cea4eb3371cb0bf253f07a087b0b87905f74f8
6
+ metadata.gz: a2e51a70d305202683ecb500469a94bcf50529968fafcf5e4057130af2e2096c55a73423a3ad9ff8b3060f03996908b5f46797433827b20e1d62360c37c189a1
7
+ data.tar.gz: 04997036bb8b66f95fc87c7e54d3a959a7ea7e32119d2b091a28789d45a522156abebfc850c511362e25a4f10f4a437f037e39eff4a8499e3e35483bce76ec71
@@ -30,7 +30,7 @@ module PuppetDBQuery
30
30
  OR.symbol => OR,
31
31
  NOT.symbol => NOT,
32
32
  EQUAL.symbol => EQUAL,
33
- :is => EQUAL,
33
+ :_is => EQUAL,
34
34
  NOT_EQUAL.symbol => NOT_EQUAL,
35
35
  MATCH.symbol => MATCH,
36
36
  IN.symbol => IN,
@@ -35,7 +35,7 @@ module PuppetDBQuery
35
35
  "and" => :_and,
36
36
  "in" => :_in,
37
37
  "is" => :_is,
38
- "null" => :_null,
38
+ "null" => :null,
39
39
  "true" => :true,
40
40
  "false" => :false,
41
41
  }.freeze
@@ -1,3 +1,3 @@
1
1
  module PuppetDBQuery
2
- VERSION = "0.0.10".freeze
2
+ VERSION = "0.0.11".freeze
3
3
  end
@@ -35,6 +35,9 @@ describe PuppetDBQuery::Parser do
35
35
  .add(:type, [:jenkins, :mongo, :tomcat])
36
36
  ]
37
37
  ],
38
+ [ 'type is null',
39
+ [PuppetDBQuery::Term.new(PuppetDBQuery::Parser::EQUAL).add(:type, :null)]
40
+ ],
38
41
  ].freeze
39
42
 
40
43
  CORRECT_PARSER_DATA.each do |q, a|
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@ require 'puppetdb_query'
3
3
 
4
4
  # no logging output during spec tests
5
5
  include PuppetDBQuery::Logging
6
- logger.level = Logger::FATAL
6
+ logger.level = Logger::DEBUG
7
7
 
8
8
  # we want to be able to test protected or private methods
9
9
  RSpec.configure do |config|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetdb_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meyling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-28 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec