alephant-preview 0.3.7 → 0.3.8

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: 6ca1569d4f9ca20e48a9d00ef981602422a237b9
4
- data.tar.gz: 4056520bbdf02527bcdd07e5f9428b9e43b6b898
3
+ metadata.gz: d430f6e14a8245dbe00b0144d860337bd27b1033
4
+ data.tar.gz: f4886aaed573977e2a013eb80d752b7817e7b6b8
5
5
  SHA512:
6
- metadata.gz: a388bca06b68b45e6e92a75aaad037b806dd78c1119905a609e53898b7a89fc305e02b4f2d5a0cb6dd6e48b8e1e95c7083cb376bf0365cf5f2b07780fc53d11a
7
- data.tar.gz: 84646ac9db16888430e8ea03b6d792c6ac3972b672dd13eaf84698160a05553eb4e1d46910ccf349483cf414f2ed8697dad3daa75bd0ce41e41332775d80961e
6
+ metadata.gz: b44ff4b53544fe1f83c9fb92f30947c6b293e848447eb31caf59b5704defdc1d4786ea5a6fcc1be99bf190540487ec7dbe07a85c235b0ee5d1e49db15b017848
7
+ data.tar.gz: 8aa7f6dd4b7aac34a7603bf5dd9904f3b9eee8a7d76c20491ef9cbd7d06c61dfe338575e7fdb457b02bb9691bab5abf903af1d010723f7c20e0a0aaf0e5abdd0
@@ -49,7 +49,7 @@ module Alephant
49
49
  batch_components = []
50
50
 
51
51
  batched_components.each do |component|
52
- options = component.fetch(:options, {}) || {}
52
+ options = symbolize component.fetch(:options, {})
53
53
  params["template"] = component.fetch(:component)
54
54
  params["id"] = find_id_from_template params["template"]
55
55
  params["fixture"] = options.fetch(:fixture, "responsive") || "responsive"
@@ -168,6 +168,9 @@ module Alephant
168
168
  Alephant::Renderer::ViewMapper.new(id, BASE_LOCATION)
169
169
  end
170
170
 
171
+ def symbolize(hash)
172
+ Hash[hash.map { |k, v| [k.to_sym, v] }]
173
+ end
171
174
  end
172
175
  end
173
176
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement