pg_graph 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d70da749009b16f1e4acb04384549c0dad34c3c6bae04d8912bdaf9521e0ca07
4
- data.tar.gz: 930b64456cdcf3116d197859b164695ec9e9fe03a89a4a210ceaf06dc2977644
3
+ metadata.gz: d6b2edcd76a35c76a8c18ca94f2e81416e8a5b1c12aa6688937216bf45250eb2
4
+ data.tar.gz: 30bd02185aa89f1fa561e67bbced8bbdea4b69940f6790fdddf0edb037c49d2e
5
5
  SHA512:
6
- metadata.gz: decea05d7462c6a85dbcaa655a078fab7f8d02ca13ef79c32b3a47708fcc67757ecbef6dd735805466c808258aea6a855c17ac1bf38c86f668e130ce25ce2a11
7
- data.tar.gz: 4a53c1a47335027432f2b0a5ffbbe32ca382375b06edcc0cdb52f37824cb115673ad7ffd57ab97690f36eb4645e84b8e3d82135a54879cf8149f1341d212ca05
6
+ metadata.gz: 1543e51a4838a9f5818abeef4cf9e2dbd213b693ac88af40ccc0744ec58bcb97ebe3c00f6b7f7f23174c5a285402e6a51eb07c36bbed7800c2d2654dd9a6cc37
7
+ data.tar.gz: b246237fe7b0df971c6400cd12e17cad876d7514164c1f03de6a9167ac6e5f8dd0be6154c806dcafe7bcc7284da39fca35395dbcd01262c126fb63caa10c5c28
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.5"
3
3
  end
data/lib/pg_graph.rb CHANGED
@@ -1,6 +1,9 @@
1
1
 
2
2
  require "pg_graph/version"
3
3
 
4
+ require "bigdecimal"
5
+ require "date"
6
+
4
7
  require "boolean"
5
8
  require "constrain"
6
9
  require "developer_exceptions"
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.5
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