global_uid 3.3.3 → 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/global_uid/base.rb +3 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3549fc56472082561d255446739dff33ca6f7880
4
- data.tar.gz: eec2d4ddf0156193145d2563a6f2b88aa3ef94fe
3
+ metadata.gz: ec88c7827966b642fd74234cc6f17f307ee84b35
4
+ data.tar.gz: 630352d846fb7b074296144bf4084b4a92decbc2
5
5
  SHA512:
6
- metadata.gz: 413634191bf6e99c24c0080e2e663f7d4417203b15ecf9d5baa9dee03841b1ec445e10c93e6e0abc779e9fed43bc4e37789d59a3e6e7b19fb031f1b54b1652b8
7
- data.tar.gz: 224d3cd23f5e8aff6995f1c01b396c33b94a7e86ebe3d5aa3f50b81b4ed3bb542b4060201f4f85c0896419af4735bc61629f1f3c436ed6625dc67700ca906b6c
6
+ metadata.gz: 19addeb48239f9575c9059bccc716483ce53dcd18a4288ef390312db24efbe322cdd5d2a3076e79d58fbdd0067a72fa65b28423515b49e8f74590b1d2827538a
7
+ data.tar.gz: a43f46593f98bb9f33769bbf2eb012241896a50b08cb731e31c0a90ef9f056ec8f454b14c48e199be379e3cad8a0a3a8a459f150a40f6aaec5c498f276a1c5b7
@@ -24,11 +24,12 @@ module GlobalUid
24
24
  }
25
25
 
26
26
  def self.servers
27
- Thread.current[:servers]
27
+ # Thread local storage is inheritted on `fork`, include the pid
28
+ Thread.current["global_uid_servers_#{$$}"]
28
29
  end
29
30
 
30
31
  def self.servers=(s)
31
- Thread.current[:servers] = s
32
+ Thread.current["global_uid_servers_#{$$}"] = s
32
33
  end
33
34
 
34
35
  def self.create_uid_tables(id_table_name, options={})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.4.5.1
206
+ rubygems_version: 2.5.1
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: GUID