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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c3b246233ec03fd89c4c0acaabef54f9a21cfd8
4
- data.tar.gz: a9a8ab0206466032532d763cf842a6a3cdbd831b
3
+ metadata.gz: 2d769cfd063c4c30f57f93caf9bcea00762ee88b
4
+ data.tar.gz: cf5f851acfee41d52b948842bf05c490bda8874a
5
5
  SHA512:
6
- metadata.gz: 13ee2d5fa5407d377d8370f445e454acf058108450945df5f79b711d02eea628732627ac2c725f579fcefc4460beddcff1d268c3816a7ce3bf3c179ffc2e388b
7
- data.tar.gz: d497b609ddc7635cee5b510fa7f04842371463676c07f5f169e6821d9f27fd23a31e1385d70694046d0b356cfa6c54a0d4ad6839a2ea0324845044d8908c8fff
6
+ metadata.gz: 9aed5f8f99ca2673c6a33082b3480e7dba6e6cd4ea96ac5d5b83199bfdb10f870e2b95982c8da2974fed7fed9a4d6f950201155d48318ac64cf51d972f8fb77a
7
+ data.tar.gz: 52f450070696fcc94174d9dfdc03dc3a92d265adecd7c6de414b2e9d4182ff58232bd1b261b2a63740335484fdd25dcb8ae7f106051997dce6a3d861d6cc0426
@@ -126,12 +126,12 @@ module Flame
126
126
  end
127
127
 
128
128
  def [](key)
129
- @request_cookies[key] || @request_cookies[key.to_s]
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
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov