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 +4 -4
- data/lib/websin.rb +3 -1
- data/lib/websin/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: 700eeaade9dd4976206bb7e46e690dceb72e74b6
|
4
|
+
data.tar.gz: 64c61bfe9efbfaa45f03a1e7fdda6cfb90ef5b52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ''
|
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
|
data/lib/websin/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|