thingfish-metastore-pggraph 0.3.0 → 0.4.0
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 +5 -5
- data/lib/thingfish/metastore/pggraph.rb +13 -8
- metadata +4 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6c336cc6b1e311cddfb8074bb78a73effa5c496488b03132a1d304eafd1440b0
|
4
|
+
data.tar.gz: 7469248fee46e9c7f3ecc2fb3909468951d0f65c02d69bfb56aa0a9b06797000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0496ab8a80b2c2f137c4b583bf551c3593ff5fc7e27a85269cb6bf359af898d7f92bea796c310d6c41de47f54951ca9effd2f1b42a81c258dfec5317dcebda63'
|
7
|
+
data.tar.gz: b45b914761a90c8500423d68cc7efee9402361758a817306b10761ef555225180c3d14349380f182e311e6c3a6ed594efa546167d6e0e4dd7811997f928274fa
|
@@ -24,7 +24,7 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
24
24
|
|
25
25
|
|
26
26
|
# Package version
|
27
|
-
VERSION = '0.
|
27
|
+
VERSION = '0.4.0'
|
28
28
|
|
29
29
|
# Version control revision
|
30
30
|
REVISION = %q$Revision: 686fbfe638bd $
|
@@ -32,13 +32,12 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
32
32
|
# The data directory that contains migration files.
|
33
33
|
#
|
34
34
|
DATADIR = if ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR']
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
35
|
+
Pathname( ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR'] )
|
36
|
+
elsif Gem.loaded_specs[ 'thingfish-metastore-pggraph' ] && File.exist?( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
|
37
|
+
Pathname( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
|
38
|
+
else
|
39
|
+
Pathname( __FILE__ ).dirname.parent.parent.parent + 'data/thingfish-metastore-pggraph'
|
40
|
+
end
|
42
41
|
|
43
42
|
log_as :thingfish_metastore_pggraph
|
44
43
|
|
@@ -295,5 +294,11 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
295
294
|
return ds
|
296
295
|
end
|
297
296
|
|
297
|
+
|
298
|
+
# Register a hook to make the database connection fork-safe.
|
299
|
+
Strelka.before_fork do
|
300
|
+
self.db&.disconnect
|
301
|
+
end
|
302
|
+
|
298
303
|
end # class Thingfish::Metastore::PgGraph
|
299
304
|
|
metadata
CHANGED
@@ -1,37 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thingfish-metastore-pggraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mahlon E. Smith <mahlon@martini.nu>
|
8
8
|
- Michael Granger <ged@faeriemud.org>
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
-----BEGIN CERTIFICATE-----
|
14
|
-
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZtYWhs
|
15
|
-
b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
|
16
|
-
HhcNMTcxMTIyMjIyMTAyWhcNMTgxMTIyMjIyMTAyWjA+MQ8wDQYDVQQDDAZtYWhs
|
17
|
-
b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
|
18
|
-
gg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|
-
date: 2018-01-17 00:00:00.000000000 Z
|
11
|
+
cert_chain: []
|
12
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
35
13
|
dependencies:
|
36
14
|
- !ruby/object:Gem::Dependency
|
37
15
|
name: thingfish
|
@@ -124,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
102
|
- !ruby/object:Gem::Version
|
125
103
|
version: '0'
|
126
104
|
requirements: []
|
127
|
-
|
128
|
-
rubygems_version: 2.5.1
|
105
|
+
rubygems_version: 3.0.4
|
129
106
|
signing_key:
|
130
107
|
specification_version: 4
|
131
108
|
summary: Graph DDL storage for Thingfish metadata.
|