flame 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/controller.rb +8 -0
- data/lib/flame/render.rb +2 -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: 3de3e048d0a457365810d4b5525fca0c77899c0d
|
4
|
+
data.tar.gz: aa2105933f9570acac6ba202917db1db6e46ed5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 204303d9de1ee9ad237b13cb874b3aebc381b4ce3f3294bbce81e90fcef476fe96e51cda35fc13ff3825bc6c0be0c563aa7b9540ca7887f3f1b96b31b1c1272b
|
7
|
+
data.tar.gz: 9d169e854176e75dabf67f99ccc3e490cc6f1df6b8dec9fcda524d5a84f573714ac549d5244a1a2eb0b4fa5ce8d67c85f7857541baae72e60d24405c0a7b1db9
|
data/lib/flame/controller.rb
CHANGED
@@ -13,10 +13,18 @@ module Flame
|
|
13
13
|
@dispatcher.config
|
14
14
|
end
|
15
15
|
|
16
|
+
def request
|
17
|
+
@dispatcher.request
|
18
|
+
end
|
19
|
+
|
16
20
|
def params
|
17
21
|
@dispatcher.params
|
18
22
|
end
|
19
23
|
|
24
|
+
def halt(*params)
|
25
|
+
@dispatcher.halt(*params)
|
26
|
+
end
|
27
|
+
|
20
28
|
def path_to(*params)
|
21
29
|
@dispatcher.path_to(*params)
|
22
30
|
end
|
data/lib/flame/render.rb
CHANGED
@@ -44,7 +44,8 @@ module Flame
|
|
44
44
|
## Compile layout to hash
|
45
45
|
return result unless layout_filename
|
46
46
|
@tilts[layout_filename] ||= Tilt.new(layout_filename)
|
47
|
-
|
47
|
+
return result unless @tilts[layout_filename]
|
48
|
+
@tilts[layout_filename].render { result }
|
48
49
|
end
|
49
50
|
end
|
50
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|