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 +4 -4
- data/CHANGELOG.md +3 -1
- data/lib/ms_header_trail/version.rb +1 -1
- data/lib/ms_header_trail.rb +8 -0
- 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: 32023dc980043bec40bab2bc553baf778ab140b27e11777ea4fc10c333386734
|
4
|
+
data.tar.gz: 2eb24accdf1e22fe65328bef1270a7f3d215bc03f2e77c2c220d5dbee5284060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c7c6bfcabe6ec4cd6f884ee4dac022bf3e29c5b54b33db5b2b8ce3a6ece9ec0fca849824782631aa005c2bb5f48f9e408567c7d724ba3098a5e69e0dd85a74
|
7
|
+
data.tar.gz: ccf16323b021a70b8dac057c13b8f2c5375a0fb1fe58ec9b7a522c302d32da1e8fa7f5fa74fe0a1484c8d6a415d84ff726cc1f3bb33c465a6addbf8cae697756
|
data/CHANGELOG.md
CHANGED
data/lib/ms_header_trail.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|