pg_graph 0.3.3 → 0.3.4

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: d70da749009b16f1e4acb04384549c0dad34c3c6bae04d8912bdaf9521e0ca07
4
- data.tar.gz: 930b64456cdcf3116d197859b164695ec9e9fe03a89a4a210ceaf06dc2977644
3
+ metadata.gz: 10bbf73b30f4482b4e185b7fa953c56d82127c7b7356ccccad4c7af1193f15be
4
+ data.tar.gz: 60f6cb22b73ac8fe608c7c6622fcf9428151d592c3096b01e274838de2201073
5
5
  SHA512:
6
- metadata.gz: decea05d7462c6a85dbcaa655a078fab7f8d02ca13ef79c32b3a47708fcc67757ecbef6dd735805466c808258aea6a855c17ac1bf38c86f668e130ce25ce2a11
7
- data.tar.gz: 4a53c1a47335027432f2b0a5ffbbe32ca382375b06edcc0cdb52f37824cb115673ad7ffd57ab97690f36eb4645e84b8e3d82135a54879cf8149f1341d212ca05
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
@@ -1,3 +1,3 @@
1
1
  module PgGraph
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boolean