websin 0.0.4 → 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: 5f5c87d264dee8e22349123e56c618ddc7d7b9ed
4
- data.tar.gz: a8daf42a84ebaf6a359978acfdc1bde662f0255e
3
+ metadata.gz: 700eeaade9dd4976206bb7e46e690dceb72e74b6
4
+ data.tar.gz: 64c61bfe9efbfaa45f03a1e7fdda6cfb90ef5b52
5
5
  SHA512:
6
- metadata.gz: 58767bfd19c15e8c197091eac713bf732d12ce8c4d8fb12dfafc716f65c78abf7944b50ad1cf733983f869967f67f307fddea84e6d01dbcad6ec1f75876dd68b
7
- data.tar.gz: 769376ec8cdd71b824a84241e32a20a62ab19c63c91418c2ccfe2dcdac44e47ed7707719ba5b5add865fde0d5c72d485fa5f8f412dddf93c67c434f1768b576e
6
+ metadata.gz: 75e03b9b58132215d6dfe2c709acce21dbd032473767310abb245152bf0f58b18de2cfeb73e7a7632d1feafd7395130725efdd56c3cede5e27309f6621080b00
7
+ data.tar.gz: f73577688c077cc38aa81e5b8c4110c615aa3e918a824b1c9f7ee4c123c238a635c2172e804dd93ebf7a8aecf35b7ce5f35a1bca72d4f0af4417f668c759f382
data/lib/websin.rb CHANGED
@@ -47,7 +47,9 @@ class WebSin < Sinatra::Base
47
47
  when '.png', '.jpg', '.jpeg', '.gif'
48
48
  content_type "image/#{ext[1..-1]}"
49
49
  File.read(File.join(settings.views, params[:captures]))
50
- when '' then slim :"#{path}/#{name[0] ? name : 'index'}"
50
+ when ''
51
+ slim :"#{path}/#{name[0] ? name : 'index'}",
52
+ layout: params[:layout] ? params[:layout].to_sym : :layout
51
53
  else
52
54
  File.read(File.join(settings.views, params[:captures]))
53
55
  end
@@ -1,3 +1,3 @@
1
1
  module Websin
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Mrozek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler