ruby-puppetdb 1.3.2 → 1.3.3

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: 7b58daac1cb0173a064f167485d0bf20d8449ffd
4
- data.tar.gz: 0fec9c12a0b9bd770784a74b40a538713ab6d16e
3
+ metadata.gz: 392d7e62e4de4fab8893322d3b1566af2115decc
4
+ data.tar.gz: b7352a764dac57a95abaabbe444fa87d7fd7dae6
5
5
  SHA512:
6
- metadata.gz: 556ac354e46c631a0d1644091511cd6500de0d953675e35127c75899e14f277da459a4bde03fcd044cb6a78e8b1fab8a204c76801bcbfc43a6e20b9815f74b5e
7
- data.tar.gz: ccc5a8d8fd863c82bb142a25d4d9fdacbb34a7d9c1cda91f9c63ba7ed2b7b228da4c1a36867b726e62dd47d073a0197f2f361408556a11dd3089b4b3ec102bdf
6
+ metadata.gz: d7c7160494a09d173209981e627c09c615d33d472033fdbe0b1034ef6734aff3deaff8471c58a99b75310746faf3177ebda3874f7d7193b507752b7d9ddcae77
7
+ data.tar.gz: 6139c779e2ba9057e00cccce7de0adecd5c7568b5fa8283450d1f5b95a8056f3c81a1c47b8e812e702e1289134d5cae0fcc19a8eed3a3c6627510cad4a13d514
data/Modulefile CHANGED
@@ -1,5 +1,5 @@
1
1
  name 'dalen-puppetdbquery'
2
- version %x{git describe --tags}.chomp.split('-')[0..1].join('-')
2
+ version %x{git describe --tags}.sub('-','+').chomp
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'
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'rspec/core/rake_task'
4
+ require 'puppetlabs_spec_helper/rake_tasks'
4
5
 
5
6
  task :default => [:test]
6
7
 
@@ -17,7 +17,9 @@ EOT
17
17
  query, facts = args
18
18
 
19
19
  require 'puppet/util/puppetdb'
20
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'puppetdb/connection'))
20
+ # This is also needed if the puppetdb library isn't pluginsynced to the master
21
+ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
22
+ require 'puppetdb/connection'
21
23
 
22
24
  puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
23
25
  query = puppetdb.parse_query query, :facts if query.is_a? String
@@ -14,7 +14,9 @@ EOT
14
14
  query, fact = args
15
15
 
16
16
  require 'puppet/util/puppetdb'
17
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'puppetdb/connection'))
17
+ # This is also needed if the puppetdb library isn't pluginsynced to the master
18
+ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
19
+ require 'puppetdb/connection'
18
20
 
19
21
  puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
20
22
  if fact then
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.2
4
+ version: 1.3.3
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-07-18 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -184,3 +184,4 @@ test_files:
184
184
  - spec/unit/puppet/parser/functions/pdbstatusquery_spec.rb
185
185
  - spec/unit/puppet/parser/functions/query_facts_spec.rb
186
186
  - spec/unit/puppet/parser/functions/query_nodes_spec.rb
187
+ has_rdoc: