flame 4.3.2 → 4.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/render.rb +6 -1
- data/lib/flame/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: 0b8383cdd86873f1c48723c2c1bb2ea364118441
|
4
|
+
data.tar.gz: f6b4af700c45d5bd103e545f395f83b1afd6f4be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e25c7c816f722c92d7f4962469d8f02fcf10001d0a6a3e2cc3b2e304b5ea8c3269e195b5949e63b2bb458d1c0f334624d078822f4f7d764a5a8596d6d055a329
|
7
|
+
data.tar.gz: a7cdaa073a030b8f9dd748d6233c0ca6fd2156827a3c34583db2f78df342d8f94f244c4026a555da707133cce51ccbab995d2a6ed4d926f9886ce823422a4385
|
data/lib/flame/render.rb
CHANGED
@@ -65,7 +65,12 @@ module Flame
|
|
65
65
|
|
66
66
|
## Common method for `find_file` and `find_layouts`
|
67
67
|
def find_files(path, dirs)
|
68
|
-
|
68
|
+
paths = [path]
|
69
|
+
paths.push(dirs.last) if path.to_sym == :index
|
70
|
+
dirs.push(nil)
|
71
|
+
Dir[
|
72
|
+
File.join(views_dir, "{#{dirs.join(',')}}", "{#{paths.join(',')}}.*")
|
73
|
+
].uniq
|
69
74
|
end
|
70
75
|
|
71
76
|
## Find template-file by path
|
data/lib/flame/version.rb
CHANGED
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: 4.3.
|
4
|
+
version: 4.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|