pg_graph 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data/data.rb +2 -2
- data/lib/data/render.rb +1 -1
- data/lib/pg_graph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10bbf73b30f4482b4e185b7fa953c56d82127c7b7356ccccad4c7af1193f15be
|
4
|
+
data.tar.gz: 60f6cb22b73ac8fe608c7c6622fcf9428151d592c3096b01e274838de2201073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a9ed5e6454f1011d4090bf266a8099ebfff049a19c344a4ef1f5aa0ac3c28be1755948f084f5d7fbaf74cbb865ce939ced9b60c841cbda90d1dd22f88c2a881
|
7
|
+
data.tar.gz: 2d00e66a5bd20d5aa3ee0d83e3c3bb19f6c38e33cd9916923ca48d58d343b36b164d639ef6525ba8b216932371c4f8d2e67b120cb0b1559c92daa46af0a06b2f
|
data/lib/data/data.rb
CHANGED
@@ -159,7 +159,7 @@ module PgGraph::Data
|
|
159
159
|
# statement. Returns self
|
160
160
|
def write(connection, ids: {}, delete: :all)
|
161
161
|
constrain connection, PgConn
|
162
|
-
constrain ids, String => Integer
|
162
|
+
constrain ids, { String => Integer }
|
163
163
|
connection.exec(to_exec_sql(ids: ids, delete: delete))
|
164
164
|
self
|
165
165
|
end
|
@@ -367,7 +367,7 @@ module PgGraph::Data
|
|
367
367
|
|
368
368
|
def initialize(table, columns)
|
369
369
|
constrain table, Table
|
370
|
-
constrain columns, Symbol => PgGraph::RUBY_CLASSES
|
370
|
+
constrain columns, { Symbol => PgGraph::RUBY_CLASSES }
|
371
371
|
constrain columns, lambda { |h| h.key?(:id) }, "No :id field"
|
372
372
|
@table = table # has to go before super
|
373
373
|
super(table.type.record_type, dimension: 1)
|
data/lib/data/render.rb
CHANGED
@@ -35,7 +35,7 @@ module PgGraph::Data
|
|
35
35
|
# puts " delete: #{delete.inspect}"
|
36
36
|
# puts " files: #{files.inspect}"
|
37
37
|
constrain database, Database
|
38
|
-
constrain ids, String => Integer
|
38
|
+
constrain ids, { String => Integer }
|
39
39
|
@database = database
|
40
40
|
self.format = format
|
41
41
|
(@ids = ids.dup).default = 0
|
data/lib/pg_graph/version.rb
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.3.
|
4
|
+
version: 0.3.4
|
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: 2023-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: boolean
|