ruby-puppetdb 1.3.1 → 1.3.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: aba7f6158411e242655eebf248b2781132388060
4
- data.tar.gz: 0502d3aba2a0b4c71b337da6a3a7eafa0139889b
3
+ metadata.gz: 7b58daac1cb0173a064f167485d0bf20d8449ffd
4
+ data.tar.gz: 0fec9c12a0b9bd770784a74b40a538713ab6d16e
5
5
  SHA512:
6
- metadata.gz: de84f482477cfa03a05057eb14c55e8dea1be2d2034bfaa9722cabd986d025833b4136aa8ce4a12f016af8b7d04e3333d5cfd20eca392dea9c5ef5d74cf83609
7
- data.tar.gz: 3b2cc8de48ea9f74213e9c1866d609bad5f7772afa31ea5d87c8a1eec1cf1775d16707376901dbed3298cf9a57eeb423313ab9434908dd28a5a484e23ff397c3
6
+ metadata.gz: 556ac354e46c631a0d1644091511cd6500de0d953675e35127c75899e14f277da459a4bde03fcd044cb6a78e8b1fab8a204c76801bcbfc43a6e20b9815f74b5e
7
+ data.tar.gz: ccc5a8d8fd863c82bb142a25d4d9fdacbb34a7d9c1cda91f9c63ba7ed2b7b228da4c1a36867b726e62dd47d073a0197f2f361408556a11dd3089b4b3ec102bdf
data/Modulefile CHANGED
@@ -1,5 +1,5 @@
1
1
  name 'dalen-puppetdbquery'
2
- version '1.3.1'
2
+ version %x{git describe --tags}.chomp.split('-')[0..1].join('-')
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'
@@ -113,8 +113,8 @@ Puppet::Face.define(:query, '1.0.0') do
113
113
 
114
114
  puppetdb = PuppetDB::Connection.new options[:puppetdb_host], options[:puppetdb_port]
115
115
  nodes = puppetdb.query(:nodes, puppetdb.parse_query(query, :nodes)).collect { |n| n['name']}
116
- starttime = Chronic.parse(options[:since], :context => :past, :guess => false).first.getutc.strftime('%FT%T.%LZ')
117
- endtime = Chronic.parse(options[:until], :context => :past, :guess => false).last.getutc.strftime('%FT%T.%LZ')
116
+ starttime = Chronic.parse(options[:since], :context => :past, :guess => false).first.getutc.strftime('%FT%T.000Z')
117
+ endtime = Chronic.parse(options[:until], :context => :past, :guess => false).last.getutc.strftime('%FT%T.000Z')
118
118
 
119
119
  events = []
120
120
  # Event API doesn't support subqueries at the moment and
@@ -140,6 +140,8 @@ Puppet::Face.define(:query, '1.0.0') do
140
140
  puts colorize(:green, out)
141
141
  when 'skipped'
142
142
  puts colorize(:hyellow, out) unless e['resource-type'] == 'Schedule'
143
+ when 'noop'
144
+ puts out
143
145
  end
144
146
  end
145
147
  nil
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.1
4
+ version: 1.3.2
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-17 00:00:00.000000000 Z
12
+ date: 2013-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json