erdb 1.0.0 → 1.0.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: 25ee47da83fb1accfed1d03d3c4fa6b0639640961180bfe86985a9f272bac629
4
- data.tar.gz: 345bc5e3caf6f76a70dbc7af2c237770c9e7938e5bd39eddfeb34d5f14cba870
3
+ metadata.gz: 290243fdf73ae67ca7e00a56eeb0ca349151d91a790b18239f48b21a21943ab4
4
+ data.tar.gz: 634235ef5e172d15966d58718199c3b990d0a056c56524a68c6b476fd5d90356
5
5
  SHA512:
6
- metadata.gz: 6da4c1fc2b88e3507e6e364edc27f6bb9abe7d6a3d01002224294cb2c7c302edd594cbeea0efa5d06fdb7ab7516f1c0ac0b34db9084acf488b718b26429a8970
7
- data.tar.gz: 72beed6a8e53f9e1bd19360f1796980797bdfb35e5df889294602df85105cb3d5fe9773abeed0fabdcac20e69ce1f74f1709f7f3c1ff5efe5fbd6519a5c12aec
6
+ metadata.gz: c96446fa6475e30215879bc5bf1a88fbff41740e99253f159df50142ce1c7702c28733ea6569fff70402140e71e9422991c5788f4ff1be4cf9c5fc434d4bb798
7
+ data.tar.gz: 0c8070088d064b59a71ee20f755e1407f1f5c382b616400b73dadb3b8badb25f1fff7b53c346348446fb78849665c6e18227b0300786614084aa08dc45d04b80
data/CHANGES.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.0.1
2
+
3
+ - Prioritize Interruption over Error cuz ActiveRecord is lazy load.
4
+
5
+ ### 1.0.1
6
+
7
+ - Catch database error at runtime
8
+
1
9
  ### 1.0.0
2
10
 
3
11
  - Initial release
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,12 +22,16 @@ module ERDB
22
22
  db.connect
23
23
 
24
24
  erd_builder.create(db.to_erdb)
25
- rescue RuntimeError => e
26
- puts "Error: #{e.message}"
27
- exit 1
28
25
  rescue Interrupt
29
26
  puts "\n\nThank you for using ERDB!"
30
27
  exit 0
28
+ rescue ActiveRecord::NoDatabaseError
29
+ puts "\nError: Database not found."
30
+ puts "Please make sure the database exists."
31
+ exit 1
32
+ rescue StandardError => e
33
+ puts "Error: #{e.message}"
34
+ exit 1
31
35
  end
32
36
 
33
37
  private
data/lib/erdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ERDB
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.2".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.2
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