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 +4 -4
- data/README.md +0 -1
- data/lib/erdb/cli.rb +7 -0
- data/lib/erdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0307e8ec28a91d13810f3c57b8a2d018fdc9a150288cc52873bd6e0aa0c2bb30
|
4
|
+
data.tar.gz: 4b4334a4317eb3fe8ccfd7342ebbccd958bd4232e3182797ffe68ea46f0d4d34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7eeb962417fab2407479ec254feaea25945f01f07eb20ae5bd5293d2a952ec73b676646b3721879808f65a7a4c8c4765438f85dbb8ed0777e413cb67252fe24
|
7
|
+
data.tar.gz: 81b3d88b749591513dcae160d0e62bf9eeb4d7e8d1cc4eccbf674a298b242f4b92b19b4797cc7ee80cae364c3bd9256a20029440d28b543b197f81338e9cd468
|
data/README.md
CHANGED
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
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.
|
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-
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|