thread_attr_accessor 0.2.0 → 0.2.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 +4 -4
- data/lib/thread_attr_accessor/version.rb +1 -1
- data/lib/thread_attr_accessor.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d5ea145a61533a69566793c7f11e8ddb66fc945
|
|
4
|
+
data.tar.gz: 5f9ab00dd8c02a49d7f3cad85443c4e4d24718b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 377286df47e7cdcc42033bbe5e2f52cef39ad7980b467a38f6a5b91bc0249fe4d42aeca82b671a182406d221c8ebf69dbf8438ddd8e2eaac1a03b600995e5159
|
|
7
|
+
data.tar.gz: 7d86eead4c49de3207f22588c51e7ac1c4ebb62c2eac41ca066cb7f64e050174a3e05e5c96410ef2650efa95db0db6cbf4591dc50467b33e8892005af983ab50
|
data/lib/thread_attr_accessor.rb
CHANGED
|
@@ -43,7 +43,7 @@ module ThreadAttrAccessor
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
def thread_attr_writer(*names, private: false)
|
|
46
|
+
def thread_attr_writer(*names, private: false, **opts)
|
|
47
47
|
mod = const_get(:ThreadAttributeAccessors)
|
|
48
48
|
|
|
49
49
|
names.each do |name|
|
|
@@ -59,7 +59,7 @@ module ThreadAttrAccessor
|
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
-
def thread_attr_reader(*names, default: nil, inherit: false, private: false)
|
|
62
|
+
def thread_attr_reader(*names, default: nil, inherit: false, private: false, **opts)
|
|
63
63
|
if default && inherit
|
|
64
64
|
get_default = ->(thread_key) {
|
|
65
65
|
ThreadAttrAccessor.search_in_ancestor_threads(thread_key) ||
|