grape_logging 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3eae6798e8a0130a3825edab4719589e70fe49aa0f210003e9089db17a294f48
4
- data.tar.gz: '0907410df65f7a7e782581aacd5ac1a0ab5e6a9a67111aa63eb627d73d5d174f'
3
+ metadata.gz: c221ae5f7be5a9f4a5818689a276d1637144cf5c0a3845e3fd1d20a15455a5e7
4
+ data.tar.gz: 1208a13208efba0ef1ddd1ee9e6e5306a35acbe0bd623603fbda16ad1821eee1
5
5
  SHA512:
6
- metadata.gz: 1a142c81ac1b47e22d960db29f7efe1b336f706f1e4c4dbbf5c019fca33c464ac6742d730046d45b933854ba53173ac884604bbfc7c8c18963bf2b74fbeabf52
7
- data.tar.gz: c592ed9ea7d8d289b17297ec41f616a556bce9bd2d041ce738ed035155e789991789adc44610a1fec546fd00fdd2986fb93de5d04534f493ebc3b21e43001315
6
+ metadata.gz: 82f1f1e940a7ace4f9e30f8623b56d4a2880bb4a2eeee1a8d654382662b5efe336a875e2e501275dc48594cc1ded59204e9eee44e43fb62204c84d0978e9a525
7
+ data.tar.gz: 866d9f113fdfd414f48c710814902eae481982e5cf8a453b840904410eae3d368a09423bb6489e3ec455b21b348cadd2023082224e604db493f816d040532958
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.1] - 2025-07-09
4
+
5
+ ### Fixed
6
+ - [#92](https://github.com/aserafin/grape_logging/pull/92) Handle symbol param keys during filtering - [@samsonjs](https://github.com/samsonjs).
7
+
8
+ [2.1.1]: https://github.com/aserafin/grape_logging/compare/v2.1.0...v2.1.1
9
+
3
10
  ## [2.1.0] - 2025-07-09
4
11
 
5
- ## Added
12
+ ### Added
6
13
  - [#91](https://github.com/aserafin/grape_logging/pull/91) Add ActionDispatch request ID to logger arguments hash as `:request_id` - [@samsonjs](https://github.com/samsonjs).
7
14
 
8
15
  [2.1.0]: https://github.com/aserafin/grape_logging/compare/v2.0.0...v2.1.0
data/RELEASING.md CHANGED
@@ -15,7 +15,7 @@ Check that the last build succeeded in [GitHub Actions](https://github.com/asera
15
15
 
16
16
  ### Update Changelog
17
17
 
18
- Change "Next Release" in [CHANGELOG.md](https://github.com/aserafin/grape_logging/blob/master/CHANGELOG.md) to the new version and date:
18
+ Change "Unreleased" in [CHANGELOG.md](https://github.com/aserafin/grape_logging/blob/master/CHANGELOG.md) to the new version and date:
19
19
 
20
20
  ```
21
21
  ## [1.8.5] - 2024-06-28
@@ -96,10 +96,12 @@ end
96
96
  Add the next release to [CHANGELOG.md](https://github.com/aserafin/grape_logging/blob/master/CHANGELOG.md).
97
97
 
98
98
  ```
99
- ## [Next Release]
99
+ ## [1.8.6] - Unreleased
100
100
 
101
101
  ### Changed or Fixed or Added
102
102
  - Your contribution here.
103
+
104
+ [1.8.6]: https://github.com/aserafin/grape_logging/compare/v1.8.5...master
103
105
  ```
104
106
 
105
107
  Commit your changes.
@@ -5,11 +5,13 @@ require 'grape_logging/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'grape_logging'
7
7
  spec.version = GrapeLogging::VERSION
8
- spec.authors = ['aserafin']
9
- spec.email = ['adrian@softmad.pl']
8
+ spec.authors = ['aserafin', 'Sami Samhuri']
9
+ spec.email = ['adrian@softmad.pl', 'sami@samhuri.net']
10
10
 
11
- spec.summary = %q{Out of the box request logging for Grape!}
12
- spec.description = %q{This gem provides simple request logging for Grape with just few lines of code you have to put in your project! In return you will get response codes, paths, parameters and more!}
11
+ spec.summary = 'Out of the box request logging for Grape!'
12
+ spec.description = 'This gem provides simple request logging for Grape with just few lines ' \
13
+ 'of code you have to put in your project! In return you will get response ' \
14
+ 'codes, paths, parameters and more!'
13
15
  spec.homepage = 'http://github.com/aserafin/grape_logging'
14
16
  spec.license = 'MIT'
15
17
 
@@ -37,14 +37,16 @@ module GrapeLogging
37
37
 
38
38
  def build_encoding_map(parameters)
39
39
  parameters.each_with_object({}) do |(k, v), h|
40
- h[k.dup.force_encoding(Encoding::ASCII_8BIT)] = [k.encoding, v.is_a?(Hash) ? build_encoding_map(v) : nil]
40
+ key_str = k.to_s
41
+ h[key_str.dup.force_encoding(Encoding::ASCII_8BIT)] = [key_str.encoding, v.is_a?(Hash) ? build_encoding_map(v) : nil]
41
42
  end
42
43
  end
43
44
 
44
45
  def transform_key_encoding(parameters, encoding_map)
45
46
  parameters.each_with_object({}) do |(k, v), h|
46
- encoding, children_encoding_map = encoding_map[k]
47
- h[k.dup.force_encoding(encoding)] = v.is_a?(Hash) ? transform_key_encoding(v, children_encoding_map) : v
47
+ key_str = k.to_s
48
+ encoding, children_encoding_map = encoding_map[key_str]
49
+ h[key_str.dup.force_encoding(encoding)] = v.is_a?(Hash) ? transform_key_encoding(v, children_encoding_map) : v
48
50
  end
49
51
  end
50
52
  end
@@ -1,3 +1,3 @@
1
1
  module GrapeLogging
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aserafin
8
+ - Sami Samhuri
8
9
  bindir: exe
9
10
  cert_chain: []
10
11
  date: 1980-01-02 00:00:00.000000000 Z
@@ -70,6 +71,7 @@ description: This gem provides simple request logging for Grape with just few li
70
71
  paths, parameters and more!
71
72
  email:
72
73
  - adrian@softmad.pl
74
+ - sami@samhuri.net
73
75
  executables: []
74
76
  extensions: []
75
77
  extra_rdoc_files: []