rackr 0.0.44 → 0.0.45

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
  SHA256:
3
- metadata.gz: 3e5867f9d9dab3c8331510c345df1c57e8fb00628493796b7f6b031646b0d7e3
4
- data.tar.gz: 2a390c59f7d5a0405522f4448d94db6f9d0e8c0bee775543d017aec010844af8
3
+ metadata.gz: b44fd42881233909b8fc9239a9d235c53644bc12bc40c34cf94baf66d73d2f9d
4
+ data.tar.gz: 7be5769d84a9cb8e7163da17c694481a1412ff9a26d9063fc4894fa647cb291d
5
5
  SHA512:
6
- metadata.gz: 8739b713136d2c97394ce64a3e45b385c5df7c4481796575d38f43411974f5e9168e2730e1f955b0608a0c3c045f95154137386a6c66107bcfaf447f335de656
7
- data.tar.gz: c13efed3e12031b84129ce74351e710be2a6b36a49a31db2392060a88ef58631821fa4b1be9af7bf27a4e49a8e90edbb38bb5d0265a4a6fc72e3904b11f8c6ce
6
+ metadata.gz: 5d5e78dcd9c0650ccf13d53ba4c3975c128b0f3b1143d0765fd2788a390f9daed89824ab6a70a892a6d9388ec00a44ff577407e75d1b517d505f664037148dab
7
+ data.tar.gz: 5371f8525a097bd4cc86b6ffcd0be75baf999a13488412eb66c13a8e7e599b65f4b633fb0df04ce2a863c1f787e9ce4b11eaa618b8e3d83e6256fca826b91e61
@@ -26,7 +26,7 @@ class Rackr
26
26
  def match?(env)
27
27
  return match_with_params?(env) if @has_params
28
28
 
29
- env['REQUEST_PATH'] == @path
29
+ env['PATH_INFO'] == @path
30
30
  end
31
31
 
32
32
  private
@@ -36,7 +36,7 @@ class Rackr
36
36
  end
37
37
 
38
38
  def match_with_params?(env)
39
- splitted_request_path = env['REQUEST_PATH'].split('/')
39
+ splitted_request_path = env['PATH_INFO'].split('/')
40
40
 
41
41
  return false if @splitted_path.size != splitted_request_path.size
42
42
 
data/lib/rackr/router.rb CHANGED
@@ -188,7 +188,7 @@ class Rackr
188
188
  def match_route(env, last_tail = nil, found_branches = [])
189
189
  routes =
190
190
  if last_tail.nil?
191
- last_tail = env['REQUEST_PATH'].split('/').drop(1)
191
+ last_tail = env['PATH_INFO'].split('/').drop(1)
192
192
 
193
193
  @routes[env['REQUEST_METHOD']]
194
194
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique F. Teixeira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2023-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubi