alephant-preview 0.3.5 → 0.3.6
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 -4
- 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: 95bcd03d20157f534d63adf7f8d74ab0da2674c8
|
4
|
+
data.tar.gz: d0631aac7e026d9a112ae3d6d2180b862a341909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 421b39118421dbaa27a3ab1ec17e0759964123401f5603076ee3b219496619f2b0f994749bfd93febb0bfd043029ccc807a50e81e1bd7dc910d48ec0df3212e1
|
7
|
+
data.tar.gz: f24b9db157d8216407380e020676520fd10ece3ed76cd9d30704c998020f05a894fc8864586510b914ce4bc791e725d32f4d052a7abb99ee8cc2e6bb54c53ee8
|
@@ -31,13 +31,13 @@ module Alephant
|
|
31
31
|
render_preview
|
32
32
|
end
|
33
33
|
|
34
|
-
get '/component/:
|
34
|
+
get '/component/:template/?:fixture?' do
|
35
|
+
params['id'] = find_id_from_template params['template']
|
36
|
+
params['fixture'] = 'responsive' unless params['fixture']
|
35
37
|
render_component
|
36
38
|
end
|
37
39
|
|
38
|
-
get '/component/:template/?:fixture?' do
|
39
|
-
params['id'] = find_id_from_template params['template']
|
40
|
-
params['fixture'] = 'responsive'
|
40
|
+
get '/component/:id/:template/?:fixture?' do
|
41
41
|
render_component
|
42
42
|
end
|
43
43
|
|
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.6
|
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-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|