inheritable-thread-vars 0.0.1 → 0.0.2

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: 4eba7857c9617ca9c97e32f9afc22946bf2c44de815659ee1d622016f3fc9d01
4
- data.tar.gz: 8150ff62591ce2e47954cae91dcb426ca371d615299f95fd612cefbb94a84cfd
3
+ metadata.gz: b58d731a5e9622ccc8fdd0197601e0ab8b00b279f16c5411e552814c55d5a9b4
4
+ data.tar.gz: 4730063e5de5f19eec5f95bcb40b4a7cf4a3fe057cd00307f8a12ae6902eda38
5
5
  SHA512:
6
- metadata.gz: c7a1eccb849eaa0fb7e4e7d415dfda4da82f8108917cb590ac34b71bccb07acff9d33bc9c33d2aa0d8b5d49f8c167bedb58e3e3b808d5a96940cd41f2820e6c1
7
- data.tar.gz: 1cb8d46280241ba85d7a5a67a7f2e14ad67e189e4d04122b75783e38ac3691c738def51b88acfc2cd2e219ccaf869a01b02bccdda7a242dad474463972901fff
6
+ metadata.gz: 701c118a60dd008cb0e829cebb1f7627e8d7d546e7bba3b1c27f1ef87238df74e92905280e37126c3afacc9c51c8c41428b129b8be11eee89844413d03ff1f25
7
+ data.tar.gz: 3a5bf27b9cc7f9ab12dd4990cfff8a3377d566ef222c33966724c73c8e759dfc01854a1af50bf1e83b4ebc4fb1cd536bdd71bea970d3179c7be70108a6ea1cf0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [0.0.1] - 2025-04-12
1
+ ## [0.0.2] - 2025-04-14
2
+
3
+ - Pass args to Thread.new to its receiving block
4
+
5
+ ## [0.0.1] - 2025-04-13
2
6
 
3
7
  - Re-release as inheritable-thread-vars instead of foobara-thread-parent
4
8
  - Cleaned up the git history a bit
@@ -16,7 +16,7 @@ class Thread
16
16
  def new(*, **, &block)
17
17
  parent = Thread.current
18
18
 
19
- super do
19
+ super do |*args|
20
20
  child = Thread.current
21
21
 
22
22
  if child.instance_variable_defined?(:@thread_parent)
@@ -40,7 +40,7 @@ class Thread
40
40
  child.instance_variable_set("@inheritable_thread_locals", parent_inheritable_thread_locals.dup)
41
41
  end
42
42
 
43
- block.call
43
+ block.call(*args)
44
44
  end
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inheritable-thread-vars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi