rober 0.0.5 → 0.0.6

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: '0825f034935865b5ed68caf8eb9b578deedf1ec9db29d8a8a3cb2e2d5bca7b0f'
4
- data.tar.gz: a01351990f2963ab996f0c62d0aa42cffa3fdb509582f7c72adc0122bde59249
3
+ metadata.gz: 6b7fb69845a17f67745da375f410eb67d74d28ea2785df734127692830e370a5
4
+ data.tar.gz: c621ea85846b36bc78bbd799b97f2799df15ad3abed94233c42265d344d2815b
5
5
  SHA512:
6
- metadata.gz: 4538153a4c43434634c0ae4a65617b27f8525f7e24b4447411d734a177043fedb7770441585fabcb1d3db6569ff3a2224ad931b1de9922c592fa0f1bb20dd39a
7
- data.tar.gz: 2e67235947083811ddc8fd6785db45c06a9c3eb246c87f0c646d6480ec7a4d659249323a8606412e5a59083ca887658e1d69c7a6a65c02558b7f9d92666f436b
6
+ metadata.gz: dd13e201ce41bc8fc1f2dffdc0ec719f6e92ce8c9f984d5c611fa463c2d14f2ff5e88bdb6d09227ee1cbc8a6a8a6718f92cdaf28ea2edf737a81b7bca8214d45
7
+ data.tar.gz: 25a2bc0535571a33737f77a1d1fd0f708d3acf84851ec7d9333c33b46c1494434d7dc2ccc227be1a20037dda0589445f1c5c86a389132444cebd0966d9cc5c17
data/README.md CHANGED
@@ -30,6 +30,9 @@ TODO: Write usage instructions here
30
30
 
31
31
  ## Changes
32
32
 
33
+ 2018-01-10 0.0.6
34
+ fix dbm primary keys
35
+
33
36
  2018-01-10 0.0.5
34
37
  fix path
35
38
 
@@ -55,7 +55,7 @@ module Rober
55
55
  list = it.xpath('constraint[@type="pk-constr"]')
56
56
  pk_ary = []
57
57
  unless list.empty?
58
- pk_ary = list.first.xpath('columns').map{|col| col[:names]}
58
+ pk_ary = list.first.xpath('columns').map{|col| col[:names].split(/,/)}.flatten
59
59
  end
60
60
  it.xpath('column').each do |attr|
61
61
  type_tag = attr.xpath('./type').first
@@ -1,3 +1,3 @@
1
1
  module Rober
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -21,5 +21,9 @@ describe Rober do
21
21
  expect(entities[0].attributes.size).to eq(3)
22
22
  expect(entities[1].attributes.size).to eq(4)
23
23
  expect(entities[0].comment).to eq("aaa\nbbb")
24
+ expect(entities[1].attributes[0].pk).to eq("1")
25
+ expect(entities[1].attributes[1].pk).to eq("0")
26
+ expect(entities[1].attributes[2].pk).to eq("0")
27
+ expect(entities[1].attributes[3].pk).to eq("1")
24
28
  end
25
29
  end
@@ -44,11 +44,11 @@ bbb]]></comment>
44
44
  <column name="created_at" not-null="true" default-value="current_timestamp">
45
45
  <type name="timestamptz" length="0"/>
46
46
  </column>
47
- <column name="company_uuid">
47
+ <column name="company_uuid" not-null="true">
48
48
  <type name="uuid" length="0"/>
49
49
  </column>
50
50
  <constraint name="users_pk" type="pk-constr" table="public.users">
51
- <columns names="uuid" ref-type="src-columns"/>
51
+ <columns names="uuid,company_uuid" ref-type="src-columns"/>
52
52
  </constraint>
53
53
  </table>
54
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - aoyagikouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler