flame 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/dispatcher.rb +3 -3
- data/lib/flame/render.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d769cfd063c4c30f57f93caf9bcea00762ee88b
|
4
|
+
data.tar.gz: cf5f851acfee41d52b948842bf05c490bda8874a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aed5f8f99ca2673c6a33082b3480e7dba6e6cd4ea96ac5d5b83199bfdb10f870e2b95982c8da2974fed7fed9a4d6f950201155d48318ac64cf51d972f8fb77a
|
7
|
+
data.tar.gz: 52f450070696fcc94174d9dfdc03dc3a92d265adecd7c6de414b2e9d4182ff58232bd1b261b2a63740335484fdd25dcb8ae7f106051997dce6a3d861d6cc0426
|
data/lib/flame/dispatcher.rb
CHANGED
@@ -126,12 +126,12 @@ module Flame
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def [](key)
|
129
|
-
@request_cookies[key
|
129
|
+
@request_cookies[key.to_s]
|
130
130
|
end
|
131
131
|
|
132
132
|
def []=(key, new_value)
|
133
|
-
return @response.delete_cookie(key) if new_value.nil?
|
134
|
-
@response.set_cookie(key, new_value)
|
133
|
+
return @response.delete_cookie(key.to_s, path: '/') if new_value.nil?
|
134
|
+
@response.set_cookie(key.to_s, value: new_value, path: '/')
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
data/lib/flame/render.rb
CHANGED
@@ -14,6 +14,7 @@ module Flame
|
|
14
14
|
@locals = options.merge(options.delete(:locals) || {})
|
15
15
|
## Find filename
|
16
16
|
@filename = find_file(path)
|
17
|
+
@layout = nil if File.basename(@filename)[0] == '_'
|
17
18
|
## Compile Tilt to instance hash
|
18
19
|
tilts[@filename] ||= Tilt.new(@filename)
|
19
20
|
end
|