rails_api_logger 0.2.1 → 0.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: 5fbcb1b4b9bd0ac439819b399b94cb27ae816c8d76afec1e700deada25d4934f
4
- data.tar.gz: ddfa3c8d1528fb7b1bd18bcac71bc6499023d641496116c7db6b67f36839f9af
3
+ metadata.gz: 95eaa68780ef406351f3ea4e90fdb2534ce01c1e8b4013011415c35a4159fb7b
4
+ data.tar.gz: e36c39dc1b5408012b924f3c2dbeab3546c561f7536449e831410a42f6b615ad
5
5
  SHA512:
6
- metadata.gz: d40aa71d6d9c9229b93fabece22e6fbb51ef5dc4024edbfa2e914b433dfd4421c2bdae6218f7de33000896c8fdfbf1b0db4d253938db18bb9e36f70a0b8483d0
7
- data.tar.gz: 94f7bc3f052d87c8f1cb8072febc193a43710b2f949737e0ea52fc5849097f1a6bd29d5eac6da3d06da51b2057bf649e76d64a3eef88873ebb0b79550cdd020f
6
+ metadata.gz: 6f7c662cec7314c18f751956a6e38824333e179f49be588cb3d9e7cf966e2f03c818953ced27f75e0fd373434675738c709ae49ac6a53592d1d1f3f34d7fc261
7
+ data.tar.gz: f1084faf61c871106de684e1a35c7da1e0def0c45f15f99fac249582010105b8d9de7f4cebef1b206d8344666e5129322d0f21612ac925d424b6581545a4b254
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_api_logger (0.2.1)
4
+ rails_api_logger (0.2.2)
5
5
  activerecord (>= 4.1.0)
6
6
  railties (>= 4.1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (6.1.1)
12
- actionview (= 6.1.1)
13
- activesupport (= 6.1.1)
11
+ actionpack (6.1.3)
12
+ actionview (= 6.1.3)
13
+ activesupport (= 6.1.3)
14
14
  rack (~> 2.0, >= 2.0.9)
15
15
  rack-test (>= 0.6.3)
16
16
  rails-dom-testing (~> 2.0)
17
17
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (6.1.1)
19
- activesupport (= 6.1.1)
18
+ actionview (6.1.3)
19
+ activesupport (= 6.1.3)
20
20
  builder (~> 3.1)
21
21
  erubi (~> 1.4)
22
22
  rails-dom-testing (~> 2.0)
23
23
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activemodel (6.1.1)
25
- activesupport (= 6.1.1)
26
- activerecord (6.1.1)
27
- activemodel (= 6.1.1)
28
- activesupport (= 6.1.1)
29
- activesupport (6.1.1)
24
+ activemodel (6.1.3)
25
+ activesupport (= 6.1.3)
26
+ activerecord (6.1.3)
27
+ activemodel (= 6.1.3)
28
+ activesupport (= 6.1.3)
29
+ activesupport (6.1.3)
30
30
  concurrent-ruby (~> 1.0, >= 1.0.2)
31
31
  i18n (>= 1.6, < 2)
32
32
  minitest (>= 5.1)
@@ -59,9 +59,9 @@ GEM
59
59
  nokogiri (>= 1.6)
60
60
  rails-html-sanitizer (1.3.0)
61
61
  loofah (~> 2.3)
62
- railties (6.1.1)
63
- actionpack (= 6.1.1)
64
- activesupport (= 6.1.1)
62
+ railties (6.1.3)
63
+ actionpack (= 6.1.3)
64
+ activesupport (= 6.1.3)
65
65
  method_source
66
66
  rake (>= 0.8.7)
67
67
  thor (~> 1.0)
@@ -13,7 +13,7 @@ class RequestLog < ActiveRecord::Base
13
13
  validates :path, presence: true
14
14
 
15
15
  def self.from_request(request)
16
- body = (request.body.respond_to?(:read) ? request.body.read : request.body).force_encoding("UTF-8")
16
+ body = (request.body.respond_to?(:read) ? request.body.read : request.body).dup.force_encoding("UTF-8")
17
17
  begin
18
18
  body = JSON.parse(body) if body.present?
19
19
  rescue JSON::ParserError
@@ -1,3 +1,3 @@
1
1
  module RailsApiLogger
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_api_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties