erdb 1.0.0 → 1.0.1

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: 25ee47da83fb1accfed1d03d3c4fa6b0639640961180bfe86985a9f272bac629
4
- data.tar.gz: 345bc5e3caf6f76a70dbc7af2c237770c9e7938e5bd39eddfeb34d5f14cba870
3
+ metadata.gz: 0307e8ec28a91d13810f3c57b8a2d018fdc9a150288cc52873bd6e0aa0c2bb30
4
+ data.tar.gz: 4b4334a4317eb3fe8ccfd7342ebbccd958bd4232e3182797ffe68ea46f0d4d34
5
5
  SHA512:
6
- metadata.gz: 6da4c1fc2b88e3507e6e364edc27f6bb9abe7d6a3d01002224294cb2c7c302edd594cbeea0efa5d06fdb7ab7516f1c0ac0b34db9084acf488b718b26429a8970
7
- data.tar.gz: 72beed6a8e53f9e1bd19360f1796980797bdfb35e5df889294602df85105cb3d5fe9773abeed0fabdcac20e69ce1f74f1709f7f3c1ff5efe5fbd6519a5c12aec
6
+ metadata.gz: f7eeb962417fab2407479ec254feaea25945f01f07eb20ae5bd5293d2a952ec73b676646b3721879808f65a7a4c8c4765438f85dbb8ed0777e413cb67252fe24
7
+ data.tar.gz: 81b3d88b749591513dcae160d0e62bf9eeb4d7e8d1cc4eccbf674a298b242f4b92b19b4797cc7ee80cae364c3bd9256a20029440d28b543b197f81338e9cd468
data/README.md CHANGED
@@ -63,7 +63,6 @@ If I want to generate local database using `Azimutt`, I have to setup `Azimutt`
63
63
  - [x] Generate ERD using Azimutt
64
64
  - [x] Generate ERD using DBDiagram
65
65
  - [ ] Support `MongoDB` database.
66
- - [ ] Generate ERD using Graphviz
67
66
 
68
67
  ## Contributing
69
68
 
data/lib/erdb/cli.rb CHANGED
@@ -22,9 +22,16 @@ module ERDB
22
22
  db.connect
23
23
 
24
24
  erd_builder.create(db.to_erdb)
25
+ rescue ActiveRecord::NoDatabaseError
26
+ puts "\nError: Database not found."
27
+ puts "Please make sure the database exists."
28
+ exit 1
25
29
  rescue RuntimeError => e
26
30
  puts "Error: #{e.message}"
27
31
  exit 1
32
+ rescue StandardError => e
33
+ puts "Error: #{e.message}"
34
+ exit 1
28
35
  rescue Interrupt
29
36
  puts "\n\nThank you for using ERDB!"
30
37
  exit 0
data/lib/erdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ERDB
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wai Yan Phyo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-01 00:00:00.000000000 Z
11
+ date: 2023-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord