rails_api_logger 0.6.0 → 0.6.1
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 +9 -7
- data/README.md +2 -2
- data/lib/rails_api_logger/inbound_requests_logger.rb +1 -5
- data/lib/rails_api_logger.rb +4 -0
- data/rails_api_logger.gemspec +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: 4b9cef8f177c929097fa995670c4a071e8527b843837eac867bbb75b71fab198
|
4
|
+
data.tar.gz: 58681f53d1a7d9eeb6c3b13646a245a9bd5cbc163a48f656f24900646d74edc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba47e17a09c47b7f8796fe8600b0fd02399ff17c44290da3ed853de40227ece45c8991832ac187a7304072d7e73bc8dad86a749a673069624afe14ff6ea952dc
|
7
|
+
data.tar.gz: 74d30c8338898eff42ebc791ca120546e19054b6aba2f0960c75168f7d3d7aaf6faf297252b8ec658aea682776022363cfd08a70c976a9f1ba2e824982180b50
|
@@ -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,13 @@
|
|
1
|
-
# 0.6.
|
2
|
-
* Fixes
|
1
|
+
# 0.6.1
|
2
|
+
* Fixes the loading of concern into controllers.
|
3
3
|
|
4
|
+
# 0.6.0
|
5
|
+
* Fixes an important concurrency issue by removing instance variables in the rack middleware.
|
4
6
|
|
5
7
|
# 0.5.0
|
6
|
-
* Started using Zeitwerk
|
7
|
-
* Removed RailsAdmin specific code
|
8
|
-
* Improved RailsApiLogger class
|
8
|
+
* Started using Zeitwerk.
|
9
|
+
* Removed RailsAdmin specific code.
|
10
|
+
* Improved RailsApiLogger class.
|
9
11
|
|
10
12
|
# 0.4.1
|
11
13
|
* Fixed the `.failed` scope.
|
@@ -27,7 +29,7 @@ add_column :outbound_request_logs, :ended_at, :timestamp
|
|
27
29
|
* Added `formatted_request_body` and `formatted_response_body` methods.
|
28
30
|
|
29
31
|
# 0.2.0
|
30
|
-
* Switch to a middleware solution
|
32
|
+
* Switch to a middleware solution.
|
31
33
|
|
32
34
|
# 0.1.0
|
33
|
-
* Initial release
|
35
|
+
* 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
data/rails_api_logger.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Rodi
|
@@ -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
|