rober 0.0.3 → 0.0.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: 896a3a288ed0ac41afb2397cfe864ac914ea5b05a3dcf2d108af1899329c98d1
4
- data.tar.gz: 80f50a15cc69547672b8041cf0da17f8922c081afbd42039355f6ad42f7ba329
3
+ metadata.gz: 2cccaa4f074430389d194fabdf5cff2c2a3cd47e946047d7dca391125caa9922
4
+ data.tar.gz: 3b26925d32c08ba5b3d5d24a33fe82333268796617002e283075f100a85f1af3
5
5
  SHA512:
6
- metadata.gz: 2861a9afa7fa7e066844199a6b620276d4801095e8d172c178ba706a8caa86ce5222af2c7b27a1c02b3c38571a722260046ff2c656ff2542cc3476b85108d7e4
7
- data.tar.gz: 4f682206b63f6b6d5aa187179549c1cfc1f7bb3f7b7e4a3df6b7339f7bc034d727fa31ae332c6b3557c462c0a9bd7cae858c8609a371b6adab2a28f4315f4396
6
+ metadata.gz: e1230636603141cf0c3126373240279494ab0c5b893ced763b37dcb79e9d5d55880e968f7bd5aaae9a10c2ff2d6cd1700ccc06bb0ae19ad7d203219dc7dee459
7
+ data.tar.gz: ef3cf0bf4b89fc571193f9e15a35a77869fd903f66f04edb234f95b7c677f23d0e8441dd5137940aaa1eba9f6b3913703de9e09a54129bad55e7f822389a509a
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.4
34
+ fix comment nil and path downcase
35
+
33
36
  2018-01-10 0.0.3
34
37
  add dbm file for pgmodeler
35
38
 
@@ -3,6 +3,7 @@ require 'nokogiri'
3
3
  module Rober
4
4
  class Reader
5
5
  def self.read(path)
6
+ path = path.downcase
6
7
  if path.end_with?("edm")
7
8
  read_edm(path)
8
9
  elsif path.end_with?("dbm")
@@ -51,7 +52,7 @@ module Rober
51
52
  entity.logical_name = it[:name]
52
53
  entity.physical_name = it[:name]
53
54
  list = it.xpath('./comment/text()')
54
- entity.comment = list.first.content unless list.empty?
55
+ entity.comment = list.empty? ? '' : list.first.content
55
56
  list = it.xpath('constraint[@type="pk-constr"]')
56
57
  pk_ary = []
57
58
  unless list.empty?
@@ -1,3 +1,3 @@
1
1
  module Rober
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - aoyagikouhei