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 +4 -4
- data/lib/alephant/preview/server.rb +4 -1
- data/lib/alephant/preview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d430f6e14a8245dbe00b0144d860337bd27b1033
|
4
|
+
data.tar.gz: f4886aaed573977e2a013eb80d752b7817e7b6b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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
|