flame 4.11.3.1 → 4.11.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/dispatcher.rb +1 -8
- data/lib/flame/request.rb +0 -5
- 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: b56a12a13e9cda2bdb36285b8f7051597d773875
|
4
|
+
data.tar.gz: 8edf353e69d9254ad11ad1cff5cf8eca14519096
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae397ed310ea64aaf0a07989655b0820734bffe9a9c1b62fda06ce75d6495f78496f9bc61e16ef7fe2f3de1207d76ff2f7c4c419e5c2b51ed6280e925305040
|
7
|
+
data.tar.gz: 61723f2b18787782051b94bef9d4be923f93a3755d6b822576309e02f5e1b68b232025addbb9c127eae8717304c179e55eab879f06ea02b622ef847d60b265fe
|
data/lib/flame/dispatcher.rb
CHANGED
@@ -25,8 +25,7 @@ module Flame
|
|
25
25
|
## Start of execution the request
|
26
26
|
def run!
|
27
27
|
catch :halt do
|
28
|
-
|
29
|
-
try_route ||
|
28
|
+
try_route ||
|
30
29
|
try_static ||
|
31
30
|
try_static(File.join(__dir__, '..', '..', 'public')) ||
|
32
31
|
halt(404)
|
@@ -146,12 +145,6 @@ module Flame
|
|
146
145
|
|
147
146
|
private
|
148
147
|
|
149
|
-
## Redirect from urls endings by slashes to same url without slashes
|
150
|
-
def try_fix_slashes
|
151
|
-
return if request.fullpath == request.fullpath_without_trailing_slashes
|
152
|
-
response.redirect(request.fullpath_without_trailing_slashes, 301)
|
153
|
-
end
|
154
|
-
|
155
148
|
## Find route and try execute it
|
156
149
|
def try_route
|
157
150
|
route = @app.class.router.find_route(
|
data/lib/flame/request.rb
CHANGED
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.11.3.
|
4
|
+
version: 4.11.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|