flack 1.2.1 → 1.2.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
  SHA256:
3
- metadata.gz: 36dd9d587c7d003cc296db2fc3ac9f7dac0916e267a43904f5ca8be1e25b780e
4
- data.tar.gz: 1bc04ec7696966e9d197b80c25af1a76309463eabc88222d4777d769f866f9c6
3
+ metadata.gz: 4d9d0e0a4f23254de0991624be2ebe850285978344df762944402b3f08d1a87c
4
+ data.tar.gz: 13d2b858935b6f847723ec950382292ed85687079fad81463ea9bbe3636ea04c
5
5
  SHA512:
6
- metadata.gz: f8f69c70110ed67738d5c0ef95b97d4d0d0612520bbe8bab4c0353018f9bd0476bc48f29644514d3628cd2edb446abacdb38bf5392e2fbf95044a6401c7a3d37
7
- data.tar.gz: 59784ead309c9df695c416af89087d1fdf5e16d7900c758027da2f771b48337774252ee792e47fac32ba43fce0a86d2600798e155e420aecb357c1a235843bea
6
+ metadata.gz: 82bfd2f08ae2f6025d0e658f34c67606bdc580c22a6a8e260b7e6bec57fcf27373eb693a577ec4b81fa180c2adeb8c7f1bff73694842b2a8fdfb9daa279db5c4
7
+ data.tar.gz: 53dbb0a6a7ca8f1b79b988c328345bb865646ba6ae5aad3a3f26f1ddf59b80215b7b76fe8da4dea2bcdf6eb27da2a27912951de4e768cb363fe8ad82de9446d0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## flack 1.2.2 released 2021-04-08
6
+
7
+ - let #rel fall back on PATH_INFO if no REQUEST_PATH
8
+
9
+
5
10
  ## flack 1.2.1 released 2021-04-08
6
11
 
7
12
  - Respond with a proper 500 error when necessary (and dump to $stderr)
data/lib/flack.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'pp'
3
4
  require 'cgi'
4
5
  require 'rack'
5
6
 
@@ -8,7 +9,7 @@ require 'flor/unit'
8
9
 
9
10
  module Flack
10
11
 
11
- VERSION = '1.2.1'
12
+ VERSION = '1.2.2'
12
13
  end
13
14
 
14
15
  require 'flack/app'
data/lib/flack/app.rb CHANGED
@@ -97,8 +97,11 @@ class Flack::App
97
97
 
98
98
  $stderr.puts '=' * 80
99
99
  $stderr.puts Time.now.to_s
100
+ $stderr.puts '-' * 80
100
101
  $stderr.puts err.inspect
101
102
  $stderr.puts err.backtrace
103
+ $stderr.puts '-' * 80
104
+ PP.pp(env, $stderr)
102
105
  $stderr.puts ('=' * 79) + '.'
103
106
 
104
107
  respond_internal_server_error(env, err)
@@ -126,8 +126,8 @@ class Flack::App
126
126
 
127
127
  h = {}
128
128
 
129
- h['self'] = {
130
- href: rel(env, env['REQUEST_PATH']) }
129
+ h['self'] = { href: rel(env, env['REQUEST_PATH'] || env['PATH_INFO']) }
130
+
131
131
  m = env['REQUEST_METHOD']
132
132
  h['self'][:method] = m unless %w[ GET HEAD ].include?(m)
133
133
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux