falcon 0.19.5 → 0.19.6

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: 8f05fc08cb795a919f7f641c0fcc1de262f4b7620732069148b3ceca51f2d809
4
- data.tar.gz: 40d7725c7499d7b0cd10680083d4fd30518db08deb1f4afd063d6f90fe2b8839
3
+ metadata.gz: c09541c3301a05218ed04a87672b46a5d1b715f106cea0e521a99abe08acd4b3
4
+ data.tar.gz: aea4dd96271c20a0ad58797a88a463302b673d3c8eb8c76637248cf7723884da
5
5
  SHA512:
6
- metadata.gz: b9907c3a067332e54595827f4aa0bb5e88ca2484731f924e1debe9d94424812f184e2415124988dc631d16687ba7fc4f0bd56da4d74518fc83e24d88fc065950
7
- data.tar.gz: 2d2f18c6a86e86e7b9580caf7753f4ffce6382ebb49ba53fad66bb9dee5b73a81adc651b1e6b4a658236ffc26dd6be32bc093f40a90a5223161bf672cfdbcadd
6
+ metadata.gz: cedf78004e71300083ea4b514e550fac70368dde871be8942c8b37940f2c50356b76997c9f575470a4379536ee366af87876726a9a9cc677424873a44103a1a4
7
+ data.tar.gz: 7cef15900bcf69b2ac7a240abf08d2ca34ec84bf1d44710dc27f406ccf2aa6f6b77d5724d73a72cb0fdb11d8ce00410d6dbe0869549ffee70d3b3fa86b388f10
data/README.md CHANGED
@@ -4,7 +4,7 @@ Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top
4
4
 
5
5
  [Priority Business Support](#priority-business-support) is available.
6
6
 
7
- [![Build Status](https://secure.travis-ci.org/socketry/falcon.svg)](http://travis-ci.org/socketry/falcon)
7
+ [![Build Status](https://travis-ci.com/socketry/falcon.svg)](http://travis-ci.com/socketry/falcon)
8
8
  [![Code Climate](https://codeclimate.com/github/socketry/falcon.svg)](https://codeclimate.com/github/socketry/falcon)
9
9
  [![Coverage Status](https://coveralls.io/repos/socketry/falcon/badge.svg)](https://coveralls.io/r/socketry/falcon)
10
10
  [![Gitter](https://badges.gitter.im/join.svg)](https://gitter.im/socketry/falcon)
@@ -25,6 +25,8 @@ run lambda {|env|
25
25
  body.write(COMMENT)
26
26
 
27
27
  count.downto(1) do |i|
28
+ task.annotate "bottles of beer #{i}"
29
+
28
30
  puts "#{bottles(i)} of beer on the wall..."
29
31
  body.write("<p>#{bottles(i)} of beer on the wall, ")
30
32
  task.sleep(0.1)
@@ -83,7 +83,7 @@ module Falcon
83
83
  end
84
84
 
85
85
  def make_response(request, status, headers, body)
86
- @logger.debug(request) {"Rack response: #{status} #{headers.inspect} #{body.class}"}
86
+ # @logger.debug(request) {"Rack response: #{status} #{headers.inspect} #{body.class}"}
87
87
 
88
88
  return Response.wrap(status, headers, body)
89
89
  end
@@ -33,11 +33,7 @@ module Falcon
33
33
  task = Async::Task.current
34
34
  address = request.remote_address
35
35
 
36
- @logger.debug(request.authority) {"#{request.method} #{request.path} #{request.version} from #{address.inspect}"}
37
-
38
- # if ENV['REQUEST_HEADERS']
39
- # @logger.debug(request.authority) {request.headers.inspect}
40
- # end
36
+ @logger.info(request.authority) {"#{request.method} #{request.path} #{request.version} #{request.headers.to_h} from #{address.inspect}"}
41
37
 
42
38
  task.annotate("#{request.method} #{request.path} from #{address.inspect}")
43
39
  end
@@ -50,11 +46,7 @@ module Falcon
50
46
  response = super
51
47
 
52
48
  statistics.wrap(response) do |statistics, error|
53
- @logger.info(request.authority) {"#{request.method} #{request.path} #{request.version} -> #{response.status}; #{statistics.inspect}"}
54
-
55
- # if ENV['RESPONSE_HEADERS']
56
- # @logger.info response.headers.inspect
57
- # end
49
+ @logger.info(request.authority) {"#{statistics.object_id}] #{request.method} #{request.path} #{request.version} -> #{response.status} #{response.headers.to_h}; #{statistics.inspect}"}
58
50
 
59
51
  @logger.error(request.authority) {"#{error.class}: #{error.message}"} if error
60
52
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Falcon
22
- VERSION = "0.19.5"
22
+ VERSION = "0.19.6"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.5
4
+ version: 0.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-18 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-protocol