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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/thread/inheritable_attributes.rb +2 -2
- data/lib/thread/inheritable_attributes/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b10634044fc862bf105b30bb8d6c9613cbcf06
|
4
|
+
data.tar.gz: 3cbac01fc174348d4183c67d9d2198f3ca2020dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e71d039d94e165ba924220ce1dbb0732a5098ff4b662396a85e25dd0e17fa6805dc6115a47730d7ab63402a47096be31d8cef225efe6897482b3a57369f757a
|
7
|
+
data.tar.gz: 313335d8eac46fba3b21f3cb1f29b07ce91e8a03c3e3c0c0b23238d6ea160e32deb36b803ab8320fc317b6ed8b31270328ce8fe8d8f0e864e2c59cc74cdec1b4
|
data/CHANGELOG.md
ADDED
@@ -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
|
|
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.
|
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-
|
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
|