tool 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: 3ad22826371837ebdeb6a642c310bf0b02815139
4
- data.tar.gz: b16dc92838a3bb4776664d4cce4a868d3bf36067
3
+ metadata.gz: 957f199ec72715506547dd26a5d290743e92b6de
4
+ data.tar.gz: 2d398cd3454dffa91ff9d7d2a80f44405be6c197
5
5
  SHA512:
6
- metadata.gz: 4e68bf215746003f18c31579c68b31993821d82aa55fd0933633da2955139e5a169ad72d16cffb2fdd1f735452956292401d598018f86d0aa90ff1db252bc720
7
- data.tar.gz: 4aea8b0920a9e735b9fa3a2548b7562517be8841b3cd7bac2011d4e782346e4841006bf43c94a81fc382fd4b819ade7d7392589844fc84c8090ebba5b3099d86
6
+ metadata.gz: cfecff9484e4eda3240e1b99395e00683c583c09f0b1e9dc5c533347e422d37204aa3113204c4d804f4d8fa78cc6c5f19756a8e12dca4f7cb59aed047794c38a
7
+ data.tar.gz: 077654427a1d76b1a889641125aac6b4b6aeb9338fe1cb215f30d8d8ec077b3e07912d7d0570f09482539ad5247e38018584030eac8f3b872387e99175ceaa98
@@ -6,10 +6,10 @@ module Tool
6
6
  # Have thread local values without them actually being thread global.
7
7
  #
8
8
  # Advantages:
9
- # * values for all threads are garbage collected when ThreadLocal instance is
10
- # * values for specific thread are garbage collected when thread is
11
- # * no hidden global state
12
- # * supports other data types besides hashes.
9
+ # * Values for all threads are garbage collected when ThreadLocal instance is.
10
+ # * Values for specific thread are garbage collected when thread is.
11
+ # * No hidden global state.
12
+ # * Supports other data types besides hashes.
13
13
  #
14
14
  # @example To replace Thread.current hash access
15
15
  # local = Tool::ThreadLocal.new
@@ -55,7 +55,7 @@ module Tool
55
55
  # @see #initialize
56
56
  # @!visibility private
57
57
  def self.new(*)
58
- result = super(default)
58
+ result = super
59
59
  @mutex.synchronize { @locals << WeakRef.new(result) }
60
60
  result
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module Tool
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase