rails_api_logger 0.6.0 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semaphore/{master-deploy.yml → main-deploy.yml} +3 -3
- data/.semaphore/semaphore.yml +2 -2
- data/CHANGELOG.md +15 -7
- data/README.md +2 -2
- data/lib/rails_api_logger/inbound_requests_logger.rb +1 -5
- data/lib/rails_api_logger.rb +5 -1
- data/rails_api_logger.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81b65d48bd11340944d7d656808134a8f6ba51d6a8b9a16997e22d68cea2781
|
4
|
+
data.tar.gz: b4fe1ffa4236a408177b46346e0491f425e085d22c7e89791ebeb7068ea04f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb5a895c1c041f879a7602cfc03d1282146dbd140a2fc6bb48a14c34d682f3e1b99ea887a1aabc75dc764a889e02a9bb6c27d770ae5e048987f114fe9deafe2d
|
7
|
+
data.tar.gz: cb631dc32ff4f8595d7953440f27e1600d35f2bc84bff7f5bf3c58171fc6aff2831a1a30cad39ceba14dcd4da40a070d89b459a714ba39955e7c11af07eb31cf
|
@@ -1,17 +1,17 @@
|
|
1
1
|
version: v1.0
|
2
|
-
name:
|
2
|
+
name: main-deploy
|
3
3
|
agent:
|
4
4
|
machine:
|
5
5
|
type: e1-standard-2
|
6
6
|
os_image: ubuntu1804
|
7
7
|
|
8
8
|
blocks:
|
9
|
-
- name:
|
9
|
+
- name: main-deploy
|
10
10
|
task:
|
11
11
|
secrets:
|
12
12
|
- name: rubygems-deploy
|
13
13
|
jobs:
|
14
|
-
- name:
|
14
|
+
- name: main-deploy
|
15
15
|
commands:
|
16
16
|
- checkout --use-cache
|
17
17
|
- gem build rails_api_logger
|
data/.semaphore/semaphore.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
-
# 0.6.
|
2
|
-
*
|
1
|
+
# 0.6.3
|
2
|
+
* Fix the CHANGELOG path in gemspec.
|
3
|
+
|
4
|
+
# 0.6.2
|
5
|
+
* Fixes Zeitwerk warning.
|
3
6
|
|
7
|
+
# 0.6.1
|
8
|
+
* Fixes the loading of concern into controllers.
|
9
|
+
|
10
|
+
# 0.6.0
|
11
|
+
* Fixes an important concurrency issue by removing instance variables in the rack middleware.
|
4
12
|
|
5
13
|
# 0.5.0
|
6
|
-
* Started using Zeitwerk
|
7
|
-
* Removed RailsAdmin specific code
|
8
|
-
* Improved RailsApiLogger class
|
14
|
+
* Started using Zeitwerk.
|
15
|
+
* Removed RailsAdmin specific code.
|
16
|
+
* Improved RailsApiLogger class.
|
9
17
|
|
10
18
|
# 0.4.1
|
11
19
|
* Fixed the `.failed` scope.
|
@@ -27,7 +35,7 @@ add_column :outbound_request_logs, :ended_at, :timestamp
|
|
27
35
|
* Added `formatted_request_body` and `formatted_response_body` methods.
|
28
36
|
|
29
37
|
# 0.2.0
|
30
|
-
* Switch to a middleware solution
|
38
|
+
* Switch to a middleware solution.
|
31
39
|
|
32
40
|
# 0.1.0
|
33
|
-
* Initial release
|
41
|
+
* Initial release.
|
data/README.md
CHANGED
@@ -180,7 +180,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
180
180
|
|
181
181
|
Bug reports and pull requests are welcome on GitHub at https://github.com/renuo/rails_api_logger.
|
182
182
|
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
183
|
-
the [code of conduct](https://github.com/renuo/rails_api_logger/blob/
|
183
|
+
the [code of conduct](https://github.com/renuo/rails_api_logger/blob/main/CODE_OF_CONDUCT.md).
|
184
184
|
|
185
185
|
## License
|
186
186
|
|
@@ -189,4 +189,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
189
189
|
## Code of Conduct
|
190
190
|
|
191
191
|
Everyone interacting in the RailsApiLogger project's codebases, issue trackers, chat rooms and mailing lists is
|
192
|
-
expected to follow the [code of conduct](https://github.com/renuo/rails_api_logger/blob/
|
192
|
+
expected to follow the [code of conduct](https://github.com/renuo/rails_api_logger/blob/main/CODE_OF_CONDUCT.md).
|
@@ -4,10 +4,6 @@ module InboundRequestsLogger
|
|
4
4
|
private
|
5
5
|
|
6
6
|
def attach_inbound_request_loggable(loggable)
|
7
|
-
request.env["
|
7
|
+
request.env["INBOUND_REQUEST_LOG"].update(loggable: loggable) if loggable&.persisted?
|
8
8
|
end
|
9
9
|
end
|
10
|
-
|
11
|
-
ActiveSupport.on_load(:action_controller) do
|
12
|
-
include InboundRequestsLogger
|
13
|
-
end
|
data/lib/rails_api_logger.rb
CHANGED
@@ -4,7 +4,7 @@ require "zeitwerk"
|
|
4
4
|
|
5
5
|
loader = Zeitwerk::Loader.for_gem
|
6
6
|
loader.collapse("#{__dir__}/rails_api_logger")
|
7
|
-
loader.
|
7
|
+
loader.ignore("#{__dir__}/generators")
|
8
8
|
loader.setup
|
9
9
|
|
10
10
|
class RailsApiLogger
|
@@ -27,3 +27,7 @@ class RailsApiLogger
|
|
27
27
|
log.save!
|
28
28
|
end
|
29
29
|
end
|
30
|
+
|
31
|
+
ActiveSupport.on_load(:action_controller) do
|
32
|
+
include InboundRequestsLogger
|
33
|
+
end
|
data/rails_api_logger.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "rails_api_logger"
|
3
|
-
spec.version = "0.6.
|
3
|
+
spec.version = "0.6.3"
|
4
4
|
spec.authors = ["Alessandro Rodi"]
|
5
5
|
spec.email = ["alessandro.rodi@renuo.ch"]
|
6
6
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.metadata["homepage_uri"] = spec.homepage
|
14
14
|
spec.metadata["source_code_uri"] = "https://github.com/renuo/rails_api_logger"
|
15
|
-
spec.metadata["changelog_uri"] = "https://github.com/renuo/rails_api_logger/CHANGELOG.md"
|
15
|
+
spec.metadata["changelog_uri"] = "https://github.com/renuo/rails_api_logger/blob/main/CHANGELOG.md"
|
16
16
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
18
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Rodi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -160,7 +160,7 @@ files:
|
|
160
160
|
- ".gitignore"
|
161
161
|
- ".rspec"
|
162
162
|
- ".ruby-version"
|
163
|
-
- ".semaphore/
|
163
|
+
- ".semaphore/main-deploy.yml"
|
164
164
|
- ".semaphore/semaphore.yml"
|
165
165
|
- CHANGELOG.md
|
166
166
|
- CODE_OF_CONDUCT.md
|
@@ -185,7 +185,7 @@ licenses:
|
|
185
185
|
metadata:
|
186
186
|
homepage_uri: https://github.com/renuo/rails_api_logger
|
187
187
|
source_code_uri: https://github.com/renuo/rails_api_logger
|
188
|
-
changelog_uri: https://github.com/renuo/rails_api_logger/CHANGELOG.md
|
188
|
+
changelog_uri: https://github.com/renuo/rails_api_logger/blob/main/CHANGELOG.md
|
189
189
|
post_install_message:
|
190
190
|
rdoc_options: []
|
191
191
|
require_paths:
|