jerakia 0.5.2 → 0.5.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: e60b8db41ade9ec51c0c9ec81f905848f8a13bec
4
- data.tar.gz: ea1b56ef55d2e20fe83038b79d3c0442c90b74b4
3
+ metadata.gz: f73ffc339b00893e3f6cd0821d5571bd8341af92
4
+ data.tar.gz: 8ca161791a470335b1f4d36bec29a4e38821bf71
5
5
  SHA512:
6
- metadata.gz: 807c3d5b12a01193aea147eb3f38439f6ae33370093fbcc7636e901e007c73b8bd39d4a9764ca062855a8034eb781e0004dc2f7847d81caf3161bb2fd997e6dd
7
- data.tar.gz: d5190f2153d3456a8bbb15d3a5e2abdb7faa007ae86c43e0d5e65812caf4cb445882c15a6b1d34eed12b9668b6f94a219c460403355ba8b3d4a3b2bd5174cd4d
6
+ metadata.gz: 8a40caa27f56a2f0f650b6941cd3041334029bb6105896a8d6e779ed9b971740023b0ed98d08f8dc087933e9ee99b7225f85194f0ea3d2ae0b02dd907a96e9cf
7
+ data.tar.gz: cf8fb3c40e56f1bda28f4cfc7346616b9941f3d779240f67718fe37797c23e2ce0cf4efd9f85e0c2f3f31b59f88091e5e80ad59552b0581e74807286679f487f
@@ -29,8 +29,8 @@ class Jerakia::Datasource
29
29
  Jerakia.crit "#{opt} must be configured in #{whoami}" if data[:mandatory]
30
30
  else
31
31
  if data[:type]
32
- unless Array(data[:type]).include?(@options[opt].class)
33
- Jerakia.crit "#{opt} is a #{opt.class} but must be a #{data[:type].to_s} in #{whoami}"
32
+ if Array(data[:type]).select { |t| @options[opt].is_a?(t) }.empty?
33
+ Jerakia.crit "#{opt} is a #{@options[opt].class} but must be a #{data[:type].to_s} in #{whoami}"
34
34
  end
35
35
  end
36
36
  end
@@ -4,6 +4,6 @@ class Jerakia
4
4
  #
5
5
  # This should be updated when a new gem is released and it is read from the gemspec file
6
6
  #
7
- VERSION = "0.5.2"
7
+ VERSION = "0.5.3"
8
8
 
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jerakia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Dunn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor