ms_header_trail 0.1.1 → 0.2.0

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: f6bc222d2e57099d4d6e318372f496e58a1bf549e0becf485b2fe11f5af0e9f2
4
- data.tar.gz: da9b2a4f6fc1976441e305201801b9d34ffab86a21d156f614e9e84a052c3d96
3
+ metadata.gz: 32023dc980043bec40bab2bc553baf778ab140b27e11777ea4fc10c333386734
4
+ data.tar.gz: 2eb24accdf1e22fe65328bef1270a7f3d215bc03f2e77c2c220d5dbee5284060
5
5
  SHA512:
6
- metadata.gz: 9c0471b0c4b26c6178a09dae300506d502af588b3fcb14d81ffcc027acb3b6f02249704779f16da4d95770c6e049278464a87e123c9fd6dd81f8236ef60b888d
7
- data.tar.gz: b4186c2f09842f5fefc6f53a75ab1edcf2c8c5d8b3478c8fc4ad5d848eac96a6cad1ab5f3d0c9e1ea8567d3c5a6c578491ff658669969292ec37ae2861b82abe
6
+ metadata.gz: 58c7c6bfcabe6ec4cd6f884ee4dac022bf3e29c5b54b33db5b2b8ce3a6ece9ec0fca849824782631aa005c2bb5f48f9e408567c7d724ba3098a5e69e0dd85a74
7
+ data.tar.gz: ccf16323b021a70b8dac057c13b8f2c5375a0fb1fe58ec9b7a522c302d32da1e8fa7f5fa74fe0a1484c8d6a415d84ff726cc1f3bb33c465a6addbf8cae697756
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2024-06-04
3
+ ## [0.2.0] - 2024-06-04
4
+ - Allow to reset current thread values
4
5
 
6
+ ## [0.1.1] - 2024-06-04
5
7
  - Initial release
6
8
  - Process the data into headers and retrieve from header ENV
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MsHeaderTrail
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -37,6 +37,14 @@ module MsHeaderTrail
37
37
  yield
38
38
  end
39
39
 
40
+ # Public: Reset values into current thread
41
+ def reset
42
+ Thread.current
43
+ .keys
44
+ .select { |key| key.start_with?(configuration.prefix_keyname) }
45
+ .each { |key| Thread.current[key] = nil }
46
+ end
47
+
40
48
  # Public: Retrieve the given key
41
49
  def get(key)
42
50
  Thread.current[key]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_header_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Dadario
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-17 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday