pg_graph 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_graph/version.rb +1 -1
- data/lib/pg_graph.rb +11 -11
- data/pg_graph.gemspec +1 -0
- metadata +27 -14
- data/lib/ext/module.rb +0 -18
- /data/lib/{data → pg_graph/data}/association.rb +0 -0
- /data/lib/{data → pg_graph/data}/data.rb +0 -0
- /data/lib/{data → pg_graph/data}/dimension.rb +0 -0
- /data/lib/{data → pg_graph/data}/read.rb +0 -0
- /data/lib/{data → pg_graph/data}/render.rb +0 -0
- /data/lib/{data → pg_graph/data}/value.rb +0 -0
- /data/lib/{ext → pg_graph/ext}/meta.rb +0 -0
- /data/lib/{type → pg_graph/type}/dump_type.rb +0 -0
- /data/lib/{type → pg_graph/type}/read.rb +0 -0
- /data/lib/{type → pg_graph/type}/type.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 829bab0e543f48a02760b6a6888967bce94f2d5a4456fc6af81f43a084275532
|
4
|
+
data.tar.gz: 0ca91b04090f570ef3bac358791e37f911e030c3dc334edb941a739896099057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc04dbdebdf415b9c6e51e5af2a398689c517c7becae479a4f8eee9f5fcafa5bcd78d52e370fbfc8b893d86fa09e2cc14b41b8f161c55f67fed1f0caa749d84
|
7
|
+
data.tar.gz: dec4aad67d9eba1236688baca32f013889748083ecec306b081dafd9c119c20fc05cdac422e0aa13e40da7417335681d791173c5d24113b0d5f21ab178398435
|
data/lib/pg_graph/version.rb
CHANGED
data/lib/pg_graph.rb
CHANGED
@@ -6,27 +6,27 @@ require "date"
|
|
6
6
|
|
7
7
|
require "boolean"
|
8
8
|
require "constrain"
|
9
|
+
require "forward_to"; include ForwardTo
|
9
10
|
require "developer_exceptions"
|
10
11
|
|
11
12
|
require "hash_tree"
|
12
13
|
|
13
|
-
require "ext/meta.rb"
|
14
|
-
require "ext/module.rb"
|
14
|
+
require "pg_graph/ext/meta.rb"
|
15
15
|
|
16
16
|
require "pg_graph/version.rb"
|
17
17
|
require "pg_graph/inflector.rb"
|
18
18
|
require "pg_graph/reflector.rb"
|
19
19
|
|
20
|
-
require "type/type.rb"
|
21
|
-
require "type/read.rb"
|
22
|
-
require "type/dump_type.rb"
|
20
|
+
require "pg_graph/type/type.rb"
|
21
|
+
require "pg_graph/type/read.rb"
|
22
|
+
require "pg_graph/type/dump_type.rb"
|
23
23
|
|
24
|
-
require "data/data.rb"
|
25
|
-
require "data/association.rb"
|
26
|
-
require "data/value.rb"
|
27
|
-
require "data/dimension.rb"
|
28
|
-
require "data/read.rb"
|
29
|
-
require "data/render.rb"
|
24
|
+
require "pg_graph/data/data.rb"
|
25
|
+
require "pg_graph/data/association.rb"
|
26
|
+
require "pg_graph/data/value.rb"
|
27
|
+
require "pg_graph/data/dimension.rb"
|
28
|
+
require "pg_graph/data/read.rb"
|
29
|
+
require "pg_graph/data/render.rb"
|
30
30
|
|
31
31
|
module PgGraph
|
32
32
|
include DeveloperExceptions
|
data/pg_graph.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: boolean
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: forward_to
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rake
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,22 +212,21 @@ files:
|
|
198
212
|
- bin/setup
|
199
213
|
- doc/diagram.drawio
|
200
214
|
- exe/pg_graph
|
201
|
-
- lib/data/association.rb
|
202
|
-
- lib/data/data.rb
|
203
|
-
- lib/data/dimension.rb
|
204
|
-
- lib/data/read.rb
|
205
|
-
- lib/data/render.rb
|
206
|
-
- lib/data/value.rb
|
207
|
-
- lib/ext/meta.rb
|
208
|
-
- lib/ext/module.rb
|
209
215
|
- lib/pg_graph.rb
|
216
|
+
- lib/pg_graph/data/association.rb
|
217
|
+
- lib/pg_graph/data/data.rb
|
218
|
+
- lib/pg_graph/data/dimension.rb
|
219
|
+
- lib/pg_graph/data/read.rb
|
220
|
+
- lib/pg_graph/data/render.rb
|
221
|
+
- lib/pg_graph/data/value.rb
|
222
|
+
- lib/pg_graph/ext/meta.rb
|
210
223
|
- lib/pg_graph/inflector.rb
|
211
224
|
- lib/pg_graph/reflector.rb
|
212
225
|
- lib/pg_graph/timer.rb
|
226
|
+
- lib/pg_graph/type/dump_type.rb
|
227
|
+
- lib/pg_graph/type/read.rb
|
228
|
+
- lib/pg_graph/type/type.rb
|
213
229
|
- lib/pg_graph/version.rb
|
214
|
-
- lib/type/dump_type.rb
|
215
|
-
- lib/type/read.rb
|
216
|
-
- lib/type/type.rb
|
217
230
|
- pg_graph.gemspec
|
218
231
|
- snippets/1-1.sql
|
219
232
|
- snippets/N-M.sql
|
@@ -240,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
253
|
- !ruby/object:Gem::Version
|
241
254
|
version: '0'
|
242
255
|
requirements: []
|
243
|
-
rubygems_version: 3.3.
|
256
|
+
rubygems_version: 3.3.7
|
244
257
|
signing_key:
|
245
258
|
specification_version: 4
|
246
259
|
summary: Create graph type model of database
|
data/lib/ext/module.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
class Module
|
2
|
-
# Forward list of methods to object. The arguments should be strings or symbols
|
3
|
-
def forward_method(object, *methods)
|
4
|
-
forward_to(object, *methods)
|
5
|
-
end
|
6
|
-
|
7
|
-
# Same but with a better name
|
8
|
-
def forward_to(object, *methods)
|
9
|
-
for method in Array(methods).flatten
|
10
|
-
if method =~ /=$/
|
11
|
-
class_eval("def #{method}(arg) #{object}&.#{method}(arg) end")
|
12
|
-
else
|
13
|
-
class_eval("def #{method}(*args, &block) #{object}&.#{method}(*args, &block) end")
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|