puppetdb_query 0.1.1 → 0.1.2

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: 9357a22b2ac46f39cfc098965ebb11c89880cc4f
4
- data.tar.gz: 209a291011f8f606f6234848e5dba9dc5bd5b955
3
+ metadata.gz: 8e46af68be3fefbfab6436fbfe33f1a2679fa3a7
4
+ data.tar.gz: c8768932fb7057ee7939d541d7c6869f32bed017
5
5
  SHA512:
6
- metadata.gz: ed6cb32cab631aa429555e996475353551c811c61294f65b52a16f621e187a6196ab2523287690670607054a3cb11725faad993668f0ab2a367025f59ac4707f
7
- data.tar.gz: a5f4650072a8ec5b1112933651d79bd63e6dd4078f36ae88a1f8d42c92437fdac63c5adead618508948b265b780ddbb7acc10ef8be10c328b0a6c916cc83acc8
6
+ metadata.gz: baba99de4a9b92bec64a92ef837cc770f724e2697bf0a356416a8f89ab2fc856a6bfd7b63d35a650daad67ed3c83171f468665b7692d02f582d7e9fd125e0c61
7
+ data.tar.gz: c4a7b77edceec7fb4ded523ea94177abcfd2a368f0c5610483319ec7caf438f77f595fc0affeb6fc681a267e8cf98235854ba982fe7fc6f05cb8547042c70b55
@@ -215,18 +215,3 @@ module PuppetDBQuery
215
215
  end
216
216
  # rubocop:enable Metrics/ClassLength
217
217
  end
218
-
219
- if $0 == __FILE__
220
- require "pp"
221
- query = "facts=-7.4E1 and fucts=8 and fits=true or application_vertical='ops' and" \
222
- " (application_group=\"live\"or application_group='prelive-production')"
223
- puts query
224
- query = PuppetDBQuery::Tokenizer.idem(query)
225
- puts query
226
- query = PuppetDBQuery::Tokenizer.idem(query)
227
- puts query
228
-
229
- parser = PuppetDBQuery::Parser.new
230
- tree = parser.parse(query)
231
- pp tree
232
- end
@@ -71,7 +71,7 @@ module PuppetDBQuery
71
71
  # rubocop:enable Metrics/MethodLength
72
72
 
73
73
  def stringify(value)
74
- return value if value == :null
74
+ return nil if value == :null
75
75
  return value.to_s if value.is_a?(Symbol)
76
76
  value
77
77
  end
@@ -1,3 +1,3 @@
1
1
  module PuppetDBQuery
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meyling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-28 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.8
95
+ rubygems_version: 2.5.1
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: access puppetdb data from other sources