thingfish-metastore-pggraph 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thingfish/metastore/pggraph.rb +7 -5
- metadata +31 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34c431f6b09d1a28a6ae5a9c44377ee65d0810ca
|
4
|
+
data.tar.gz: 5bf0ce89439adb0f94ed426c121971204d1d789e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09353d9187721217312043d5317217876d366a3920041a60a9d3a4f59305d3c953595f4bb90c90d68871c6e54b0a3dc02b093c369112c0e0f4ef2e00201c4816
|
7
|
+
data.tar.gz: 5f27a6e6c325daf6746b661bf5240472f146aa4fce7facf40912dda0c30b514e203e151fd72ffa037650f07eeff7617f537d39edc62fde95d7ca2ce5d551dc6e
|
@@ -24,10 +24,10 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
24
24
|
|
25
25
|
|
26
26
|
# Package version
|
27
|
-
VERSION = '0.
|
27
|
+
VERSION = '0.3.0'
|
28
28
|
|
29
29
|
# Version control revision
|
30
|
-
REVISION = %q$Revision:
|
30
|
+
REVISION = %q$Revision: 686fbfe638bd $
|
31
31
|
|
32
32
|
# The data directory that contains migration files.
|
33
33
|
#
|
@@ -59,12 +59,13 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
59
59
|
### Set up the metastore database and migrate to the latest version.
|
60
60
|
def self::setup_database
|
61
61
|
Sequel.extension :pg_json_ops
|
62
|
+
Sequel.split_symbols = true
|
63
|
+
Sequel::Model.require_valid_table = false
|
62
64
|
|
63
65
|
self.db = Sequel.connect( self.uri )
|
64
66
|
self.db.logger = Loggability[ Thingfish::Metastore::PgGraph ]
|
65
67
|
self.db.extension :pg_streaming
|
66
68
|
self.db.stream_all_queries = true
|
67
|
-
self.db.optimize_model_load = true
|
68
69
|
self.db.sql_log_level = :debug
|
69
70
|
self.db.extension( :pg_json )
|
70
71
|
self.db.log_warn_duration = self.slow_query_seconds
|
@@ -103,8 +104,9 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
103
104
|
def initialize( * ) # :notnew:
|
104
105
|
require 'thingfish/metastore/pggraph/node'
|
105
106
|
require 'thingfish/metastore/pggraph/edge'
|
106
|
-
|
107
|
-
Thingfish::Metastore::PgGraph::
|
107
|
+
|
108
|
+
Thingfish::Metastore::PgGraph::Node.dataset = self.class.db[ :nodes ]
|
109
|
+
Thingfish::Metastore::PgGraph::Edge.dataset = self.class.db[ :edges ]
|
108
110
|
@model = Thingfish::Metastore::PgGraph::Node
|
109
111
|
end
|
110
112
|
|
metadata
CHANGED
@@ -1,15 +1,37 @@
|
|
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.3.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
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZtYWhs
|
15
|
+
b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
|
16
|
+
HhcNMTcxMTIyMjIyMTAyWhcNMTgxMTIyMjIyMTAyWjA+MQ8wDQYDVQQDDAZtYWhs
|
17
|
+
b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQB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
-----END CERTIFICATE-----
|
34
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
13
35
|
dependencies:
|
14
36
|
- !ruby/object:Gem::Dependency
|
15
37
|
name: thingfish
|
@@ -17,14 +39,14 @@ dependencies:
|
|
17
39
|
requirements:
|
18
40
|
- - "~>"
|
19
41
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0.
|
42
|
+
version: '0.7'
|
21
43
|
type: :runtime
|
22
44
|
prerelease: false
|
23
45
|
version_requirements: !ruby/object:Gem::Requirement
|
24
46
|
requirements:
|
25
47
|
- - "~>"
|
26
48
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0.
|
49
|
+
version: '0.7'
|
28
50
|
- !ruby/object:Gem::Dependency
|
29
51
|
name: loggability
|
30
52
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,28 +67,28 @@ dependencies:
|
|
45
67
|
requirements:
|
46
68
|
- - "~>"
|
47
69
|
- !ruby/object:Gem::Version
|
48
|
-
version: '4
|
70
|
+
version: '5.4'
|
49
71
|
type: :runtime
|
50
72
|
prerelease: false
|
51
73
|
version_requirements: !ruby/object:Gem::Requirement
|
52
74
|
requirements:
|
53
75
|
- - "~>"
|
54
76
|
- !ruby/object:Gem::Version
|
55
|
-
version: '4
|
77
|
+
version: '5.4'
|
56
78
|
- !ruby/object:Gem::Dependency
|
57
79
|
name: pg
|
58
80
|
requirement: !ruby/object:Gem::Requirement
|
59
81
|
requirements:
|
60
82
|
- - "~>"
|
61
83
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0
|
84
|
+
version: '1.0'
|
63
85
|
type: :runtime
|
64
86
|
prerelease: false
|
65
87
|
version_requirements: !ruby/object:Gem::Requirement
|
66
88
|
requirements:
|
67
89
|
- - "~>"
|
68
90
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0
|
91
|
+
version: '1.0'
|
70
92
|
description: |
|
71
93
|
This is a metadata storage plugin for the Thingfish digital asset
|
72
94
|
manager. It provides persistent storage for uploaded data to PostgreSQL
|