pg_graph 0.3.0 → 0.3.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: 7ca4a215150fbefc9df5e1df93c9468719b3d3edb1bbd2f1580423a4cbc57077
4
- data.tar.gz: 9bb5444f261ec3bb57c86b88c016b4dc0f7c02f8818ed54016e2d60b48c0edf2
3
+ metadata.gz: c732b9a7ff91de02c8e4f0cb0a665b873522a910373653d24ad6479a244e355e
4
+ data.tar.gz: 1e649ca5b2062b902e433cda89a17a233ad8ed5c3276667703a6704c3263d519
5
5
  SHA512:
6
- metadata.gz: 020ad3b29309beede81e0ec7a06417aa868aa5e892c3d333d035280e3bb5ec83a08660bd21ab4cc552a5d298cf4c51213da4d29e3953932b9777cb8282b9dcce
7
- data.tar.gz: 69f6c30448b6d0690d51bda338f380d351e616766f56e39c868a15ffa99413becc2022c9a30b8c2adf698b1eb79a1f7e55e555408e283696f8ebce83e25c0c24
6
+ metadata.gz: a1e2fe18597653b8f200c0be4c088a5df2bf5e2fedc7ec39b0fd6582d3ae20f1567a34b5f754e88cd056afdffd08acb9bd475cab8a7cd710966ee65db3618c58
7
+ data.tar.gz: 32fed55e680c8289195e7a5618b65038ea1bd8f9bef835d0f25e95bdb8bcd3e155a1d9084265017b0e8bab6b6a9e4d66ea4d8f2a30f576a3527cc68caa462844
@@ -1,3 +1,3 @@
1
1
  module PgGraph
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/type/type.rb CHANGED
@@ -33,7 +33,10 @@ module PgGraph::Type
33
33
  protected
34
34
  # Nodes with nil keys are not attached. This is used in PgCatalogSchema to
35
35
  # avoid being included in the list of schemas
36
- def do_attach(key, child) super if child end
36
+ def do_attach(key, child)
37
+ !key?(key) or raise PgGraph::Error, "Duplicate fields in #{self.uid}: '#{key}'"
38
+ super if child
39
+ end
37
40
 
38
41
  # Forward list of methods to object. The arguments should be strings or symbols
39
42
  def self.forward_method(object, *methods)
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.0
4
+ version: 0.3.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: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boolean
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.3.18
243
+ rubygems_version: 3.3.7
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: Create graph type model of database