rancher-metadata 0.0.3 → 0.0.4

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: cdcd61fa62cba569562bf1a5c2011b337468e54d
4
- data.tar.gz: 0b6ac85a668b93b82bee8947d0183886dbc243ab
3
+ metadata.gz: 49379fde6d14d508331cdf11c53bd148c8038534
4
+ data.tar.gz: fdb7221a88ab7c5ef5c07e428e3352f8057bdbdd
5
5
  SHA512:
6
- metadata.gz: a9a308dbeb5d2b6a820cd8b5bd968f14c300cad1e2b5f9199efbd26daa273f11c390f0c9505243925d1be3cbd3d893c8daee40f2846482a1e4b6701575e8c7ab
7
- data.tar.gz: 3726c28556b21541000bcf91b8097171db18f39df263922ae7c2a8a5e6b2bfa38aef3836583a55534fedf5757cc90cf72d88ffbf9bb3de9444dccb83d3340fe2
6
+ metadata.gz: edb0e79e3f93666aea2910727a9c93ea354dd62464775a783e60b569dabe32ddd92b97621198880b52471b175294ac3a97e973c4b32c2033fdfaca4d0901ce1d
7
+ data.tar.gz: a13e8eed22eecab20ed4119ddde9aaf108e94fb80d9af500ac071d8eb42a19af7673f3a125d33d341f226fbd624e7bb8e597403c744a5a02e85ad56fe1718ba8
@@ -17,7 +17,11 @@ module RancherMetadata
17
17
  :max_attempts => 3
18
18
  }
19
19
 
20
- config[:api_url] = [ config[:api_url] ] unless config[:api_url].is_a?(Array) if config.has_key?(:api_url)
20
+ if config.has_key?(:api_url)
21
+ config[:api_url] = [ config[:api_url] ] unless config[:api_url].is_a?(Array)
22
+
23
+ raise("Must pass one or more API endpoints") unless config[:api_url].size > 0
24
+ end
21
25
 
22
26
  @config = defaults.merge(config)
23
27
  end
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module RancherMetadata
8
- VERSION = "0.0.3"
8
+ VERSION = "0.0.4"
9
9
 
10
10
  def self.version
11
11
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancher-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti