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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c732b9a7ff91de02c8e4f0cb0a665b873522a910373653d24ad6479a244e355e
4
- data.tar.gz: 1e649ca5b2062b902e433cda89a17a233ad8ed5c3276667703a6704c3263d519
3
+ metadata.gz: 10bbf73b30f4482b4e185b7fa953c56d82127c7b7356ccccad4c7af1193f15be
4
+ data.tar.gz: 60f6cb22b73ac8fe608c7c6622fcf9428151d592c3096b01e274838de2201073
5
5
  SHA512:
6
- metadata.gz: a1e2fe18597653b8f200c0be4c088a5df2bf5e2fedc7ec39b0fd6582d3ae20f1567a34b5f754e88cd056afdffd08acb9bd475cab8a7cd710966ee65db3618c58
7
- data.tar.gz: 32fed55e680c8289195e7a5618b65038ea1bd8f9bef835d0f25e95bdb8bcd3e155a1d9084265017b0e8bab6b6a9e4d66ea4d8f2a30f576a3527cc68caa462844
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.2"
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.2
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