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.
- checksums.yaml +4 -4
- data/lib/global_uid/base.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec88c7827966b642fd74234cc6f17f307ee84b35
|
4
|
+
data.tar.gz: 630352d846fb7b074296144bf4084b4a92decbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19addeb48239f9575c9059bccc716483ce53dcd18a4288ef390312db24efbe322cdd5d2a3076e79d58fbdd0067a72fa65b28423515b49e8f74590b1d2827538a
|
7
|
+
data.tar.gz: a43f46593f98bb9f33769bbf2eb012241896a50b08cb731e31c0a90ef9f056ec8f454b14c48e199be379e3cad8a0a3a8a459f150a40f6aaec5c498f276a1c5b7
|
data/lib/global_uid/base.rb
CHANGED
@@ -24,11 +24,12 @@ module GlobalUid
|
|
24
24
|
}
|
25
25
|
|
26
26
|
def self.servers
|
27
|
-
Thread
|
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[
|
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.
|
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-
|
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.
|
206
|
+
rubygems_version: 2.5.1
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: GUID
|