erdb 1.0.1 → 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: 0307e8ec28a91d13810f3c57b8a2d018fdc9a150288cc52873bd6e0aa0c2bb30
4
- data.tar.gz: 4b4334a4317eb3fe8ccfd7342ebbccd958bd4232e3182797ffe68ea46f0d4d34
3
+ metadata.gz: 290243fdf73ae67ca7e00a56eeb0ca349151d91a790b18239f48b21a21943ab4
4
+ data.tar.gz: 634235ef5e172d15966d58718199c3b990d0a056c56524a68c6b476fd5d90356
5
5
  SHA512:
6
- metadata.gz: f7eeb962417fab2407479ec254feaea25945f01f07eb20ae5bd5293d2a952ec73b676646b3721879808f65a7a4c8c4765438f85dbb8ed0777e413cb67252fe24
7
- data.tar.gz: 81b3d88b749591513dcae160d0e62bf9eeb4d7e8d1cc4eccbf674a298b242f4b92b19b4797cc7ee80cae364c3bd9256a20029440d28b543b197f81338e9cd468
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/lib/erdb/cli.rb CHANGED
@@ -22,19 +22,16 @@ module ERDB
22
22
  db.connect
23
23
 
24
24
  erd_builder.create(db.to_erdb)
25
+ rescue Interrupt
26
+ puts "\n\nThank you for using ERDB!"
27
+ exit 0
25
28
  rescue ActiveRecord::NoDatabaseError
26
29
  puts "\nError: Database not found."
27
30
  puts "Please make sure the database exists."
28
31
  exit 1
29
- rescue RuntimeError => e
30
- puts "Error: #{e.message}"
31
- exit 1
32
32
  rescue StandardError => e
33
33
  puts "Error: #{e.message}"
34
34
  exit 1
35
- rescue Interrupt
36
- puts "\n\nThank you for using ERDB!"
37
- exit 0
38
35
  end
39
36
 
40
37
  private
data/lib/erdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ERDB
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "1.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wai Yan Phyo