lita-puppet 2.1.1 → 2.1.3

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: 4093f7f1cf750679f71793b9422435344dfcba71
4
- data.tar.gz: 366fb224da2ec58f872484386401c6798645fcde
3
+ metadata.gz: 6784e1f9c91bdbab4691357ae148e2fd90310001
4
+ data.tar.gz: d879f631327cdee20d76c005fdea4c993261c3a5
5
5
  SHA512:
6
- metadata.gz: 32cf95a9ed7f69609621ec08c4eb1772047b7f67cf1be37b6ea4b1633ba2b4c3e670fb3b9f3372e2c1384f3dc04b44312164a8670a170aeaca28a602c844e9b2
7
- data.tar.gz: 707d26704e241e5638c98e6774e114820ec7551f049c1b273dd0192ac5be24dccda4c8f054f85d3ad264091da9b1b38468db65aafefc5ccf1b0b882e0f49397f
6
+ metadata.gz: 5cd85ed54bd6eebba840a5bc1baf530ef0ed12e73f21c065b34a01b111cef0e1e0346988f723b326e243f731309bc2e3f080c8eec63c6e11a3451ff27a4bd356
7
+ data.tar.gz: c19266fc0db852119049a9287fd6a26337f110aaf99de06c3de910b715b0ac0d2703d2a2291f69bd68017cae93825ff4036eda1eaf2add7e001cc05c3e3ed31d
@@ -13,7 +13,7 @@ Metrics/AbcSize:
13
13
  Max: 22
14
14
 
15
15
  Metrics/MethodLength:
16
- Max: 20
16
+ Max: 25
17
17
 
18
18
  Metrics/ClassLength:
19
19
  Max: 165
@@ -67,7 +67,11 @@ module Utils
67
67
  return d['error'] if d['error']
68
68
 
69
69
  tags = []
70
- d['resources']['data'].each { |r| tags.concat(r['tags']) }
70
+ if d['resources'].is_a?(Array)
71
+ d['resources'].each { |r| tags.concat(r['tags']) }
72
+ else
73
+ d['resources']['data'].each { |r| tags.concat(r['tags']) }
74
+ end
71
75
 
72
76
  # return all the tags related to profile:: or role::
73
77
  case what
@@ -41,6 +41,7 @@ module Utils
41
41
  remote.disconnect
42
42
  end
43
43
 
44
+ remote = nil # Try to force the destruction of the Rye box
44
45
  calculate_result(output, exception)
45
46
  end
46
47
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-puppet'
3
- spec.version = '2.1.1'
3
+ spec.version = '2.1.3'
4
4
  spec.authors = ['Daniel Schaaff', 'Jonathan Gnagy'].sort
5
5
  spec.email = ['jgnagy@knuedge.com']
6
6
  spec.description = 'Some basic Puppet interactions for Lita'
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: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schaaff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-14 00:00:00.000000000 Z
12
+ date: 2017-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lita
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.4.8
228
+ rubygems_version: 2.4.5
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Allow the Lita bot to handle requests for puppet tasks