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 +4 -4
- data/CHANGES.md +8 -0
- data/README.md +0 -1
- data/lib/erdb/cli.rb +7 -3
- 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: 290243fdf73ae67ca7e00a56eeb0ca349151d91a790b18239f48b21a21943ab4
|
4
|
+
data.tar.gz: 634235ef5e172d15966d58718199c3b990d0a056c56524a68c6b476fd5d90356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96446fa6475e30215879bc5bf1a88fbff41740e99253f159df50142ce1c7702c28733ea6569fff70402140e71e9422991c5788f4ff1be4cf9c5fc434d4bb798
|
7
|
+
data.tar.gz: 0c8070088d064b59a71ee20f755e1407f1f5c382b616400b73dadb3b8badb25f1fff7b53c346348446fb78849665c6e18227b0300786614084aa08dc45d04b80
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
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
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.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-
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|