lita-puppet 0.7.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1a64ba6cd82ebd152396e536574abd3b893f26c
4
- data.tar.gz: 11bdffc2af7ec69bcff8f3d469eab03f1024f45c
3
+ metadata.gz: b26dfb5958492199cb906c0d0ebf51fffd4a8452
4
+ data.tar.gz: e2525831750cb309506e4779c642b442d998eda9
5
5
  SHA512:
6
- metadata.gz: d528464df2d9d25d86368f2bea53df0371ffe9b0a1865b06ee1e680040c763fffe39ccfa5dc5285e0dd04378e1f18b95d9722ec099bc4a3fbb651564d871aa8b
7
- data.tar.gz: 6485db8e6f924e158bd5f776604030b173db02bcf54bacd87ba62c62cb980209cf9ee7bfe123fb350aea0c5c1c1725dcf4ba3bdc09170c50ceda3cf2f94cfb87
6
+ metadata.gz: eacfa48fc760752e931beac72b437994c43d68cdcb15343a60e351308e192ab9e0c79ea3372a5da931dd700baefbda4d7f5ddb9730260382bdd8130b69f06158
7
+ data.tar.gz: 85c717691d9f470d5488acb64acf3a3b5f6abaa826531fa0a9fa8548812063480511cdfbd8f4707d4f6b80c3d274a0e85ea30604df2df8be73fc9498e1b45356
@@ -38,7 +38,7 @@ module Utils
38
38
  return d['error'] if d['error']
39
39
 
40
40
  tags = []
41
- d['data']['resources'].each { |r| tags.concat(r['tags']) }
41
+ d['resources']['data'].each { |r| tags.concat(r['tags']) }
42
42
 
43
43
  # return all the tags related to profile:: or role::
44
44
  case what
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Metrics/BlockLength
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'lita-puppet'
4
- spec.version = '0.7.2'
4
+ spec.version = '1.0.0'
5
5
  spec.authors = ['Daniel Schaaff', 'Jonathan Gnagy'].sort
6
6
  spec.email = ['jgnagy@knuedge.com']
7
7
  spec.description = 'Some basic Puppet interactions for Lita'
@@ -66,8 +66,8 @@ describe Lita::Handlers::Puppet, lita_handler: true do
66
66
  describe('#node_profiles') do
67
67
  it 'should provide a list of profiles and roles associated with a node' do
68
68
  allow(::PuppetDB::Client).to receive(:get).and_return(
69
- 'data' => {
70
- 'resources' => [
69
+ 'resources' => {
70
+ 'data' => [
71
71
  { 'tags' => ['profile::foo'] },
72
72
  { 'tags' => ['role::baz'] }
73
73
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schaaff