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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/flack.rb +2 -1
- data/lib/flack/app.rb +3 -0
- data/lib/flack/app/helpers.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d9d0e0a4f23254de0991624be2ebe850285978344df762944402b3f08d1a87c
|
4
|
+
data.tar.gz: 13d2b858935b6f847723ec950382292ed85687079fad81463ea9bbe3636ea04c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82bfd2f08ae2f6025d0e658f34c67606bdc580c22a6a8e260b7e6bec57fcf27373eb693a577ec4b81fa180c2adeb8c7f1bff73694842b2a8fdfb9daa279db5c4
|
7
|
+
data.tar.gz: 53dbb0a6a7ca8f1b79b988c328345bb865646ba6ae5aad3a3f26f1ddf59b80215b7b76fe8da4dea2bcdf6eb27da2a27912951de4e768cb363fe8ad82de9446d0
|
data/CHANGELOG.md
CHANGED
data/lib/flack.rb
CHANGED
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)
|
data/lib/flack/app/helpers.rb
CHANGED
@@ -126,8 +126,8 @@ class Flack::App
|
|
126
126
|
|
127
127
|
h = {}
|
128
128
|
|
129
|
-
h['self'] = {
|
130
|
-
|
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
|
|