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 +4 -4
- data/Gemfile.lock +15 -15
- data/lib/rails_api_logger/request_log.rb +1 -1
- data/lib/rails_api_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95eaa68780ef406351f3ea4e90fdb2534ce01c1e8b4013011415c35a4159fb7b
|
4
|
+
data.tar.gz: e36c39dc1b5408012b924f3c2dbeab3546c561f7536449e831410a42f6b615ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
12
|
-
actionview (= 6.1.
|
13
|
-
activesupport (= 6.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.
|
19
|
-
activesupport (= 6.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.
|
25
|
-
activesupport (= 6.1.
|
26
|
-
activerecord (6.1.
|
27
|
-
activemodel (= 6.1.
|
28
|
-
activesupport (= 6.1.
|
29
|
-
activesupport (6.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.
|
63
|
-
actionpack (= 6.1.
|
64
|
-
activesupport (= 6.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
|
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.
|
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-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|