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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10ba0ea2ff15bddf455f373c1065a60c37e17b70
4
- data.tar.gz: 5c1cccb14e41ef4e6921a487c53da17efab801bd
3
+ metadata.gz: 95bcd03d20157f534d63adf7f8d74ab0da2674c8
4
+ data.tar.gz: d0631aac7e026d9a112ae3d6d2180b862a341909
5
5
  SHA512:
6
- metadata.gz: 8d3c742c900145d84e956bf8c170fbf57e16cce8d8934a30f64be3559a6b6305527daa7b4dd3766cb47535efbcf5aaaf3e0bec3d75f3fd4ca3f46e9b0957cd7c
7
- data.tar.gz: bd5ab5e945383fd222991f6c8d1582f030d4500b1b2236e12ac8e131de0b5c2ba726b09708cb489e4e7434e638850d6929d2f27d3c3fecb6c76fb82b76402b1c
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/:id/:template/?:fixture?' do
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
 
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
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.5
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-06-01 00:00:00.000000000 Z
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