pg_graph 0.4.1 → 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 +1 -1
- data/pg_graph.gemspec +1 -0
- metadata +17 -4
- data/lib/pg_graph/ext/module.rb +0 -18
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,12 +6,12 @@ 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
14
|
require "pg_graph/ext/meta.rb"
|
14
|
-
require "pg_graph/ext/module.rb"
|
15
15
|
|
16
16
|
require "pg_graph/version.rb"
|
17
17
|
require "pg_graph/inflector.rb"
|
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: 2024-
|
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
|
@@ -206,7 +220,6 @@ files:
|
|
206
220
|
- lib/pg_graph/data/render.rb
|
207
221
|
- lib/pg_graph/data/value.rb
|
208
222
|
- lib/pg_graph/ext/meta.rb
|
209
|
-
- lib/pg_graph/ext/module.rb
|
210
223
|
- lib/pg_graph/inflector.rb
|
211
224
|
- lib/pg_graph/reflector.rb
|
212
225
|
- lib/pg_graph/timer.rb
|
@@ -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/pg_graph/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
|
-
|