ruby-puppetdb 1.3.0 → 1.3.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
  SHA1:
3
- metadata.gz: 93d81a43c0316b2d59fb966659c283014a4a4e03
4
- data.tar.gz: 7b844189a53c57849db60e828f36146aa113c0f9
3
+ metadata.gz: aba7f6158411e242655eebf248b2781132388060
4
+ data.tar.gz: 0502d3aba2a0b4c71b337da6a3a7eafa0139889b
5
5
  SHA512:
6
- metadata.gz: e5b8a134365df7df9ed82e8e31fa26e76ad5b46423d80f3981eeb692f40a7deb0021252faeab59155a4690b3b6d253f3b88eafdca0c09ef4ea2644ececd1c0c5
7
- data.tar.gz: 8e3a55dc4c110c54305ae3d8dcb27ae9307801bf9350302bf57d881962b02d7e5cc16ea58c8839cbdafc7509da95c61d58be014df2a77262e2872ee2ea0f17a6
6
+ metadata.gz: de84f482477cfa03a05057eb14c55e8dea1be2d2034bfaa9722cabd986d025833b4136aa8ce4a12f016af8b7d04e3333d5cfd20eca392dea9c5ef5d74cf83609
7
+ data.tar.gz: 3b2cc8de48ea9f74213e9c1866d609bad5f7772afa31ea5d87c8a1eec1cf1775d16707376901dbed3298cf9a57eeb423313ab9434908dd28a5a484e23ff397c3
data/Modulefile CHANGED
@@ -1,5 +1,5 @@
1
1
  name 'dalen-puppetdbquery'
2
- version '1.3.0'
2
+ version '1.3.1'
3
3
  author 'Erik Dalen <erik.gustav.dalen@gmail.com>'
4
4
  license 'Apache License V2'
5
5
  summary 'Query functions for the PuppetDB API'
@@ -20,8 +20,6 @@ EOT
20
20
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'puppetdb/connection'))
21
21
 
22
22
  puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
23
- if query.is_a? String then
24
- query = puppetdb.parse_query query
25
- end
23
+ query = puppetdb.parse_query query, :facts if query.is_a? String
26
24
  puppetdb.facts(facts, query)
27
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-puppetdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Bode
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json