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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f363fa7f568e5dc635c447c3236ef3b240f5a777
4
- data.tar.gz: 12fabf5297e54645fb2d60350ad95eccd29e6891
3
+ metadata.gz: 0b8383cdd86873f1c48723c2c1bb2ea364118441
4
+ data.tar.gz: f6b4af700c45d5bd103e545f395f83b1afd6f4be
5
5
  SHA512:
6
- metadata.gz: af208f36b1447504f5dbfefbe2d0984d6098d86242b5b66e791db3de1ea1b3effc9c5b9d94fc1897ca3b66fa360e7bf7f63869b6f07279f5098473439745f44a
7
- data.tar.gz: b83f70d809ea68993693dfe0db58ac90b8b5beb00545f9bcfa037ddd338659aae3a0d1efd34481e40852a900cedd70489ef3d9733bc73093cc5b251e1a0ffc40
6
+ metadata.gz: e25c7c816f722c92d7f4962469d8f02fcf10001d0a6a3e2cc3b2e304b5ea8c3269e195b5949e63b2bb458d1c0f334624d078822f4f7d764a5a8596d6d055a329
7
+ data.tar.gz: a7cdaa073a030b8f9dd748d6233c0ca6fd2156827a3c34583db2f78df342d8f94f244c4026a555da707133cce51ccbab995d2a6ed4d926f9886ce823422a4385
@@ -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
- Dir[File.join(views_dir, "{#{dirs.join(',')},}", "#{path}.*")].uniq
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flame
4
- VERSION = '4.3.2'.freeze
4
+ VERSION = '4.3.3'.freeze
5
5
  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: 4.3.2
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-10 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack