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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3091319c3472e5cbf2fd06a7f771df6b2728e9fb
4
- data.tar.gz: 1f379f843e562ff2c734b8260e60e8c9aaf44132
3
+ metadata.gz: b56a12a13e9cda2bdb36285b8f7051597d773875
4
+ data.tar.gz: 8edf353e69d9254ad11ad1cff5cf8eca14519096
5
5
  SHA512:
6
- metadata.gz: 878cd581f5f128f2152e71e379cf2beff8cc162da4d5b9e3b26d6cf5022d6ece235e4076f211818b8e112f0d62fea683b5eab6aa83910c8ed60cf8adae6c1135
7
- data.tar.gz: 0fefbfc57c4ef14a2899e700c9bfef0429ee500ace9d2bf28455cbb2df20f68fc302d77818b907ff5eb94e8b1e04291163d8e5355926862f224fb0d0017362e7
6
+ metadata.gz: eae397ed310ea64aaf0a07989655b0820734bffe9a9c1b62fda06ce75d6495f78496f9bc61e16ef7fe2f3de1207d76ff2f7c4c419e5c2b51ed6280e925305040
7
+ data.tar.gz: 61723f2b18787782051b94bef9d4be923f93a3755d6b822576309e02f5e1b68b232025addbb9c127eae8717304c179e55eab879f06ea02b622ef847d60b265fe
@@ -25,8 +25,7 @@ module Flame
25
25
  ## Start of execution the request
26
26
  def run!
27
27
  catch :halt do
28
- # try_fix_slashes ||
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
@@ -10,10 +10,5 @@ module Flame
10
10
  def http_method
11
11
  params['_method'] || request_method
12
12
  end
13
-
14
- ## Return fullpath without trailing slashes
15
- def fullpath_without_trailing_slashes
16
- fullpath.gsub(%r{(?<=.)\/+(?=$|\?)}, '')
17
- end
18
13
  end
19
14
  end
data/lib/flame/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flame
4
- VERSION = '4.11.3.1'.freeze
4
+ VERSION = '4.11.3.2'.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.11.3.1
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-26 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack