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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c276d6c75a8880b77b66f8d40346511069a635088070835903b36ae2b000401
4
- data.tar.gz: fc96bb277f909cc6da83566b2151d6a30628cb143e3d2cd9ecc7af1d800dd31d
3
+ metadata.gz: 829bab0e543f48a02760b6a6888967bce94f2d5a4456fc6af81f43a084275532
4
+ data.tar.gz: 0ca91b04090f570ef3bac358791e37f911e030c3dc334edb941a739896099057
5
5
  SHA512:
6
- metadata.gz: 6b5a9ef6de526ff63c3930677822eb244e7bc486fe95d4db340592ea363c91427410cd1449cb46f8f99635aa3cff6886b9b30826dcea8163a63c7d36fbad4eaa
7
- data.tar.gz: eae096de222265d3d229bbc755356781bf1c7027cfdd54eec382f08c98c390bb6fe5d43ee3e47df17ef949b5b4c4d4b3e33241ebc3441f882ddcd6129f1bc82c
6
+ metadata.gz: 5fc04dbdebdf415b9c6e51e5af2a398689c517c7becae479a4f8eee9f5fcafa5bcd78d52e370fbfc8b893d86fa09e2cc14b41b8f161c55f67fed1f0caa749d84
7
+ data.tar.gz: dec4aad67d9eba1236688baca32f013889748083ecec306b081dafd9c119c20fc05cdac422e0aa13e40da7417335681d791173c5d24113b0d5f21ab178398435
@@ -1,3 +1,3 @@
1
1
  module PgGraph
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency "shellopts"
33
33
  spec.add_dependency "pg_conn"
34
34
  spec.add_dependency "pg_meta"
35
+ spec.add_dependency "forward_to"
35
36
 
36
37
  spec.add_development_dependency "rake"
37
38
  spec.add_development_dependency "rspec"
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.1
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-03-24 00:00:00.000000000 Z
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.18
256
+ rubygems_version: 3.3.7
244
257
  signing_key:
245
258
  specification_version: 4
246
259
  summary: Create graph type model of database
@@ -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
-