flame 4.0.13 → 4.0.15
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 +2 -1
- data/lib/flame/render.rb +3 -3
- 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: 9ebfba77382bd98558f39f7086507b361d5fd460
|
4
|
+
data.tar.gz: 9f236cda861c1a8164928fceb42c2489584704a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5a02962ba976c1da5927a4b90130f370853df66e3293380b2c767d30085b54b01a4eba908d16230e4e02d04b0c74dc2c89b8c49af8d7316c489e28c271766bb
|
7
|
+
data.tar.gz: 4471ad147dc5d85cb349274cea264689381e926f97b4c1cc3923df68e76067f0816a4a380a180e824d236b91c85ec145e84513d8d1eb614841f45242b8ee3287
|
data/lib/flame/controller.rb
CHANGED
@@ -88,7 +88,8 @@ module Flame
|
|
88
88
|
private
|
89
89
|
|
90
90
|
def add_controller_class(args)
|
91
|
-
args.unshift
|
91
|
+
args.unshift(self.class) if args[0].is_a?(Symbol)
|
92
|
+
args.insert(1, :index) if args[0].is_a?(Class) && !args[1].is_a?(Symbol)
|
92
93
|
end
|
93
94
|
|
94
95
|
class << self
|
data/lib/flame/render.rb
CHANGED
@@ -86,10 +86,10 @@ module Flame
|
|
86
86
|
## ['namespace']
|
87
87
|
## ]
|
88
88
|
def combine_parts(parts)
|
89
|
-
|
90
|
-
arr.push
|
89
|
+
parts.size.downto(1).with_object([]) do |i, arr|
|
90
|
+
arr.push(*parts.combination(i).to_a)
|
91
91
|
end
|
92
|
-
variants.uniq!.reject!(&:empty?)
|
92
|
+
# variants.uniq!.reject!(&:empty?)
|
93
93
|
end
|
94
94
|
|
95
95
|
def layout_dirs
|
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.0.
|
4
|
+
version: 4.0.15
|
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-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|