thingfish-metastore-pggraph 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 34c431f6b09d1a28a6ae5a9c44377ee65d0810ca
4
- data.tar.gz: 5bf0ce89439adb0f94ed426c121971204d1d789e
2
+ SHA256:
3
+ metadata.gz: 6c336cc6b1e311cddfb8074bb78a73effa5c496488b03132a1d304eafd1440b0
4
+ data.tar.gz: 7469248fee46e9c7f3ecc2fb3909468951d0f65c02d69bfb56aa0a9b06797000
5
5
  SHA512:
6
- metadata.gz: 09353d9187721217312043d5317217876d366a3920041a60a9d3a4f59305d3c953595f4bb90c90d68871c6e54b0a3dc02b093c369112c0e0f4ef2e00201c4816
7
- data.tar.gz: 5f27a6e6c325daf6746b661bf5240472f146aa4fce7facf40912dda0c30b514e203e151fd72ffa037650f07eeff7617f537d39edc62fde95d7ca2ce5d551dc6e
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.3.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
- Pathname.new( ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR'] )
36
- elsif Gem.datadir( 'thingfish-metastore-pggraph' )
37
- Pathname.new( Gem.datadir('thingfish-metastore-pggraph') )
38
- else
39
- Pathname.new( __FILE__ ).dirname.parent.parent.parent +
40
- 'data' + 'thingfish-metastore-pggraph'
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.3.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
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpXGN0YbMVpYv4EoiCxpQw
19
- sxKdyhlkvpvENUkpEhbpnEuMKXgUfRHO4T/vBZf0h8eYgwnrHCRhAeIqesFKfoj9
20
- mpEJk5JUuADOAz18aT+v24UqAtJdiwBJLuqhslSNB6CFXZv3OOMny9bjoJegz0hI
21
- Fht9ppCuNmxJNd+L3zAX8lD01RUWNRC+8L5QLCjViJtjFDDCFfh9NCirs+XnTCzo
22
- AJgFbsZIzFJtSiXUtFgscKr4Ik8ruhRbPbYbmx9rf6W74aTMPxggq/d3gj0Eh32y
23
- WsXsQ5giVnmkbsRkBNu3QyZ8Xr5+7mvy5AWyqXKOrcW7lnYaob6Z9x/MGXGNeD6j
24
- AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRY8ea6
25
- +6kAaW7ukKph2/4MTAD8/TAcBgNVHREEFTATgRFtYWhsb25AbWFydGluaS5udTAc
26
- BgNVHRIEFTATgRFtYWhsb25AbWFydGluaS5udTANBgkqhkiG9w0BAQUFAAOCAQEA
27
- 00FljTeSNaYUqJ59yLRA+i43wVNiO4ETQQu6fYQCPns12Sm90spOJb3SmTDkJ7CY
28
- dixOQg5A3Et1LVS+Z/YfH1TAbb50oTWbZbTW2JknHS0hohq3UF1pvbkk1niZ26er
29
- skJ352MUfcyaUkQyMmCjL/BpkDutYH5OCGh+FmK8+mH7SoC9Nr48WwH2prVdHs3y
30
- OMWFgB33sXdj1XqOd2Rw1WPgAeMeDqWeIrRMpUhNZOwroaA1MAr60f9NIYxua/vx
31
- n0YyneERGuHPSRZFgo72tGOqLpAlWnhPxRNqnayZmsg3hPPI87B6MTUI2UQ7VUdh
32
- UrSf3b+cPoC8PNfjp8zsdw==
33
- -----END CERTIFICATE-----
34
- 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
- rubyforge_project:
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.