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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9060c77958a0e0906299735c16c544b90f10f14bb56aa1419181baf3e7196fed
4
- data.tar.gz: 2e708cbb20734ae3689f7623600046496d2706b796a218e8027ebd81ef9a83dd
3
+ metadata.gz: a81b65d48bd11340944d7d656808134a8f6ba51d6a8b9a16997e22d68cea2781
4
+ data.tar.gz: b4fe1ffa4236a408177b46346e0491f425e085d22c7e89791ebeb7068ea04f7f
5
5
  SHA512:
6
- metadata.gz: 5b04286de900fd237e761762c5ddf9a5620d9a4ac9b06e810f18535bc2ec947ffbf5984a656a4e1aca6e84705020d4b27e22df107b7c654f0a3ec44c00206ddf
7
- data.tar.gz: 9ff6b444132903c8bf4b0c02ff6a13828c0edbf4fdf77bbdb0a9b2913e6ef4336c6b4022ddd747c6cae499c8936e3cb1f8f6e200095501b9f12813120b441494
6
+ metadata.gz: cb5a895c1c041f879a7602cfc03d1282146dbd140a2fc6bb48a14c34d682f3e1b99ea887a1aabc75dc764a889e02a9bb6c27d770ae5e048987f114fe9deafe2d
7
+ data.tar.gz: cb631dc32ff4f8595d7953440f27e1600d35f2bc84bff7f5bf3c58171fc6aff2831a1a30cad39ceba14dcd4da40a070d89b459a714ba39955e7c11af07eb31cf
@@ -1,17 +1,17 @@
1
1
  version: v1.0
2
- name: master-deploy
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: master-deploy
9
+ - name: main-deploy
10
10
  task:
11
11
  secrets:
12
12
  - name: rubygems-deploy
13
13
  jobs:
14
- - name: master-deploy
14
+ - name: main-deploy
15
15
  commands:
16
16
  - checkout --use-cache
17
17
  - gem build rails_api_logger
@@ -28,5 +28,5 @@ blocks:
28
28
  - bundle exec standardrb
29
29
  - bundle exec rspec
30
30
  promotions:
31
- - name: master
32
- pipeline_file: master-deploy.yml
31
+ - name: main
32
+ pipeline_file: main-deploy.yml
data/CHANGELOG.md CHANGED
@@ -1,11 +1,19 @@
1
- # 0.6.0
2
- * Fixes an important concurrency issue by removing instance variables in the rack middleware
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/master/CODE_OF_CONDUCT.md).
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/master/CODE_OF_CONDUCT.md).
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["inbound_request_log"].update(loggable: loggable) if loggable&.persisted?
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
@@ -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.do_not_eager_load("#{__dir__}/generators")
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "rails_api_logger"
3
- spec.version = "0.6.0"
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.0
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-04-29 00:00:00.000000000 Z
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/master-deploy.yml"
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: