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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9060c77958a0e0906299735c16c544b90f10f14bb56aa1419181baf3e7196fed
4
- data.tar.gz: 2e708cbb20734ae3689f7623600046496d2706b796a218e8027ebd81ef9a83dd
3
+ metadata.gz: 4b9cef8f177c929097fa995670c4a071e8527b843837eac867bbb75b71fab198
4
+ data.tar.gz: 58681f53d1a7d9eeb6c3b13646a245a9bd5cbc163a48f656f24900646d74edc1
5
5
  SHA512:
6
- metadata.gz: 5b04286de900fd237e761762c5ddf9a5620d9a4ac9b06e810f18535bc2ec947ffbf5984a656a4e1aca6e84705020d4b27e22df107b7c654f0a3ec44c00206ddf
7
- data.tar.gz: 9ff6b444132903c8bf4b0c02ff6a13828c0edbf4fdf77bbdb0a9b2913e6ef4336c6b4022ddd747c6cae499c8936e3cb1f8f6e200095501b9f12813120b441494
6
+ metadata.gz: ba47e17a09c47b7f8796fe8600b0fd02399ff17c44290da3ed853de40227ece45c8991832ac187a7304072d7e73bc8dad86a749a673069624afe14ff6ea952dc
7
+ data.tar.gz: 74d30c8338898eff42ebc791ca120546e19054b6aba2f0960c75168f7d3d7aaf6faf297252b8ec658aea682776022363cfd08a70c976a9f1ba2e824982180b50
@@ -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,13 @@
1
- # 0.6.0
2
- * Fixes an important concurrency issue by removing instance variables in the rack middleware
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/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
@@ -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.1"
4
4
  spec.authors = ["Alessandro Rodi"]
5
5
  spec.email = ["alessandro.rodi@renuo.ch"]
6
6
 
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.0
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/master-deploy.yml"
163
+ - ".semaphore/main-deploy.yml"
164
164
  - ".semaphore/semaphore.yml"
165
165
  - CHANGELOG.md
166
166
  - CODE_OF_CONDUCT.md