thread-inheritable_attributes 0.1.0 → 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
  SHA1:
3
- metadata.gz: c753680a46e989ac942dfa3527238e74ade622c0
4
- data.tar.gz: d7eaa2991676810bc41ad7b139878f1899ace8db
3
+ metadata.gz: 23b10634044fc862bf105b30bb8d6c9613cbcf06
4
+ data.tar.gz: 3cbac01fc174348d4183c67d9d2198f3ca2020dd
5
5
  SHA512:
6
- metadata.gz: 723c08064907696fb6901dee1eb9320e136df9b48144011a24e6f90e0f7b266b5bb654cf3c6f23e9ea99ccedbe7e81d9b58b685d2ad91b957736f150a7ba65c0
7
- data.tar.gz: dc784eca7e47dc8056f26af04e8caf2e433caadc9ce3ee1257078f16de6ba0958afe1fb1ed9fbd1eb9d3443b170178b68c02cee1ddd899dcae683e8fa70f2948
6
+ metadata.gz: 6e71d039d94e165ba924220ce1dbb0732a5098ff4b662396a85e25dd0e17fa6805dc6115a47730d7ab63402a47096be31d8cef225efe6897482b3a57369f757a
7
+ data.tar.gz: 313335d8eac46fba3b21f3cb1f29b07ce91e8a03c3e3c0c0b23238d6ea160e32deb36b803ab8320fc317b6ed8b31270328ce8fe8d8f0e864e2c59cc74cdec1b4
@@ -0,0 +1,6 @@
1
+ ## Current Release v0.2.0
2
+
3
+ ### Fix
4
+ - Addressing issue of args not being passed to thread block when creating a Thread and passing args to the initializer.
5
+
6
+ ## Initial Release v0.1.0
@@ -6,9 +6,9 @@ class Thread
6
6
 
7
7
  def initialize(*args, &block)
8
8
  inheritable_attributes = Thread.current.inheritable_attributes
9
- _initialize(*args) do
9
+ _initialize(*args) do |*block_args|
10
10
  Thread.current[:inheritable_attributes] = inheritable_attributes
11
- block.call
11
+ block.call(block_args)
12
12
  end
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  class Thread
2
2
  module InheritableAttributes
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thread-inheritable_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - CODE_OF_CONDUCT.md
67
68
  - Gemfile
68
69
  - LICENSE.txt