bbc-cosmos-tools 0.0.5 → 0.0.6

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: b7bced8408377bdbdc301893e95cbf40fa0a5687
4
- data.tar.gz: 5d0501804714ac48e6ec8e2321435c8856b12dfc
3
+ metadata.gz: eaf0d70ac4348428e9a88d7c793be076cfe110e8
4
+ data.tar.gz: 605e4e41c4a1b12f40befac74d7709e5fea70751
5
5
  SHA512:
6
- metadata.gz: 8d98798f22c80c6d8a37b312c442116779f276ca0ce2473970bc08937ea3c3c043786269c356d3d0d7faeb5203b028e65e19790d54b964b98a3bf1fd3bc68ec2
7
- data.tar.gz: 4a9f1055c66b5d88f8721746483122078ee9a6ec5585f19b8d7a91e96a0782851b39429668cb980ae74598e30219f112d1352343d1730152f94c67756584a3f4
6
+ metadata.gz: e99485c53617e7c5c0f3c45f2d00649371409bca2949ac5df0de91e46ffac12a120e749ed8f2147f2e259dabe75284b0f8e2e2eb0e24283f6e9c9d9197baca38
7
+ data.tar.gz: f101152cf7ec14b515594796f513d4f2fdc664945b14f0eb452ac2df24d375c889e69f5ea78fcd09bee8e4415c4546ac896db4d32fe6ed7bf995920dd585022d
@@ -29,8 +29,12 @@ module BBC
29
29
  end
30
30
 
31
31
  def self.parameters(data)
32
- parameters = data['Parameters'].reduce({}) do |object, (key, value)|
33
- object.tap { |o| o[key] = value['Default'] }
32
+ if data['Parameters']
33
+ parameters = data['Parameters'].reduce({}) do |object, (key, value)|
34
+ object.tap { |o| o[key] = value['Default'] }
35
+ end
36
+ else
37
+ {}
34
38
  end
35
39
  end
36
40
 
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Tools
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-cosmos-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack