thingfish-metastore-pggraph 0.1.3 → 0.2.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 +4 -4
- data/lib/thingfish/metastore/pggraph.rb +11 -25
- metadata +5 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d4170d6e99bd246f73c2294a54f9ff9ce725ba2
|
|
4
|
+
data.tar.gz: 25c7852d53fcf6e286cd5146c6b928fb9b3eef53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c73e16ee7e3db87ba2d6210d23baa948ad4147d52ce7eb018bb9b8cd17950e11a2a3e917b1a8e6b07e41fbac1ab3254a3a367f2d6ec52ec0f890209c405146a1
|
|
7
|
+
data.tar.gz: b4f76f7c1d25dba1b0404f92900c8811537bd5b42dba2e0ec2783799817c4256ad482f802464375eb17c2a1d28e198c6a0c602c19908f1de119674075f72cb74
|
|
@@ -24,10 +24,10 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
# Package version
|
|
27
|
-
VERSION = '0.
|
|
27
|
+
VERSION = '0.2.0'
|
|
28
28
|
|
|
29
29
|
# Version control revision
|
|
30
|
-
REVISION = %q$Revision:
|
|
30
|
+
REVISION = %q$Revision: b1f97f6063a3 $
|
|
31
31
|
|
|
32
32
|
# The data directory that contains migration files.
|
|
33
33
|
#
|
|
@@ -40,31 +40,21 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
|
40
40
|
'data' + 'thingfish-metastore-pggraph'
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
# The default config values
|
|
44
|
-
DEFAULT_CONFIG = {
|
|
45
|
-
uri: 'postgres:/thingfish',
|
|
46
|
-
slow_query_seconds: 0.01,
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
# Loggability API -- use a separate logger
|
|
51
43
|
log_as :thingfish_metastore_pggraph
|
|
52
44
|
|
|
53
45
|
# Configurability API -- load the `pg_metastore`
|
|
54
|
-
|
|
46
|
+
configurability 'thingfish.pggraph_metastore' do
|
|
55
47
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
# The Sequel::Database that's used to access the metastore tables
|
|
49
|
+
setting :uri, default: 'postgres:/thingfish'
|
|
50
|
+
|
|
51
|
+
# The number of seconds to consider a "slow" query
|
|
52
|
+
setting :slow_query_seconds, default: 0.01
|
|
53
|
+
end
|
|
59
54
|
|
|
60
|
-
##
|
|
61
55
|
# The Sequel::Database that's used to access the metastore tables
|
|
62
56
|
singleton_attr_accessor :db
|
|
63
57
|
|
|
64
|
-
##
|
|
65
|
-
# The number of seconds to consider a "slow" query
|
|
66
|
-
singleton_attr_accessor :slow_query_seconds
|
|
67
|
-
|
|
68
58
|
|
|
69
59
|
### Set up the metastore database and migrate to the latest version.
|
|
70
60
|
def self::setup_database
|
|
@@ -104,12 +94,8 @@ class Thingfish::Metastore::PgGraph < Thingfish::Metastore
|
|
|
104
94
|
### Configurability API -- set up the metastore with the `pg_metastore` section of
|
|
105
95
|
### the config file.
|
|
106
96
|
def self::configure( config=nil )
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
self.uri = config[:uri]
|
|
110
|
-
self.slow_query_seconds = config[:slow_query_seconds]
|
|
111
|
-
|
|
112
|
-
self.setup_database
|
|
97
|
+
super
|
|
98
|
+
self.setup_database if self.uri
|
|
113
99
|
end
|
|
114
100
|
|
|
115
101
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mahlon E. Smith <mahlon@martini.nu>
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thingfish
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '0.
|
|
20
|
+
version: '0.6'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '0.
|
|
27
|
+
version: '0.6'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: loggability
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,20 +39,6 @@ dependencies:
|
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0.11'
|
|
42
|
-
- !ruby/object:Gem::Dependency
|
|
43
|
-
name: configurability
|
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
|
45
|
-
requirements:
|
|
46
|
-
- - "~>"
|
|
47
|
-
- !ruby/object:Gem::Version
|
|
48
|
-
version: '2.2'
|
|
49
|
-
type: :runtime
|
|
50
|
-
prerelease: false
|
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
-
requirements:
|
|
53
|
-
- - "~>"
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
version: '2.2'
|
|
56
42
|
- !ruby/object:Gem::Dependency
|
|
57
43
|
name: sequel
|
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -117,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
103
|
version: '0'
|
|
118
104
|
requirements: []
|
|
119
105
|
rubyforge_project:
|
|
120
|
-
rubygems_version: 2.
|
|
106
|
+
rubygems_version: 2.5.1
|
|
121
107
|
signing_key:
|
|
122
108
|
specification_version: 4
|
|
123
109
|
summary: Graph DDL storage for Thingfish metadata.
|