rack-fluentd-logger 0.1.5 → 0.1.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: 89f90b1a330eab7208321e253cbab8b919886f79c075bfda1c240dff439811bc
4
- data.tar.gz: 69f6453eff1c9b89c07cceea0e5e0b6e456db3f56212075ee8493f76d6ecd3f6
3
+ metadata.gz: ddfafb67d58a7d6eb93ccdb74af42510b516f5aee1a61ea5a74b5d9ecb45df8b
4
+ data.tar.gz: 8c8755345bffaf5099ea537afb8ea01b860826f8706ae404d4dcd913545b7a76
5
5
  SHA512:
6
- metadata.gz: 0a36b10669d000d9db34d2c5d73f684bad687b3a1a3c00995c24d874c9d5f715f3cdbde3030257d049dbb3b957ca880b33091c0ac855d4262f3b0bb7c0197c10
7
- data.tar.gz: '0249252e13420f5bda484c36e7147df719e8662cbc1fb3dd1dd1d5265087943e46a7cc6aac9250613640c9839e2d1e25842d572fdb9db45382a64a47c88e2d90'
6
+ metadata.gz: e0e1198104bb80f1d4b697c585ae60cc6c278888973948b4b336ed0ab624880c544de3db9cec9f1408d0c0be65a1c694cc6572a1073708fae78b52e89977cb14
7
+ data.tar.gz: 47dd423e3e24c1cc1bb373dcda3f1b79136e9cfdf19feefd35e2dc7688ce8beca72583ccc66c711b5f8391c2a68523db6fce2373fbb1e966eb71c11390d0f629
@@ -63,7 +63,7 @@ module Rack
63
63
  body = body.body if body.respond_to?(:body)
64
64
  body = [body] if body.is_a? String
65
65
 
66
- body = if headers['Content-Type'].include? 'json'
66
+ body = if headers['Content-Type'] && headers['Content-Type'].include? 'json'
67
67
  body.map { |s| self.class.json_parser&.call(s) }
68
68
  else
69
69
  body[0..@max_body_non_json]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class FluentdLogger
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-fluentd-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Slyusarev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.7'
69
- description:
69
+ description:
70
70
  email:
71
71
  - slyusarevmikhail@gmail.com
72
72
  executables: []
@@ -80,7 +80,7 @@ homepage: https://github.com/mikhailvs/rack-fluentd-logger
80
80
  licenses:
81
81
  - MIT
82
82
  metadata: {}
83
- post_install_message:
83
+ post_install_message:
84
84
  rdoc_options: []
85
85
  require_paths:
86
86
  - lib
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.0.4
99
- signing_key:
98
+ rubygems_version: 3.3.3
99
+ signing_key:
100
100
  specification_version: 4
101
101
  summary: Rack middleware for logging traffic to fluentd.
102
102
  test_files: []