active_record_schema_scrapper 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: b0261a688a5b528f4a5d8b2f922fdb7171de34e4
4
- data.tar.gz: 7114a739b6a62c5ebabd8204072db81f750a05a2
3
+ metadata.gz: b30ab975b2fde2278bbcb781695eb31fbe412d8b
4
+ data.tar.gz: 2fefff39882473cefae570d02977e33c36e0fe3b
5
5
  SHA512:
6
- metadata.gz: c0a6346779dffe3efede7bccf053ca6223541a9b20ece0cb71a400f26a80c4e5e3f60a66d0ca9d15fdb7bf4554f07c5495a95cdf077db834497fde69eb3334a0
7
- data.tar.gz: f3a20ad4b4b402e6318ddb6a1576e5f5ce3612b169164d638785fc9cf9d445a95817e0af099d1ac42b394ad6262f7741dca438b4c0a4891e0db685c8c6709cc2
6
+ metadata.gz: baa3be29426090ac7d35437f637fd86aaddd7a35d103873518f2c8bd81d9b504cd191b0d56521ad083830430f2af90d0856d7ffe5661dbd0d632348d8b6603b0
7
+ data.tar.gz: 0bcba13cf3033ffe54e41bfb4b0feadc7479c4e8c2dbc256d306ead288322c6f09c6c8149abd5fdc7ec1f69ebe7782f2f0ac551ae9ae8d0ed6dfdff018f2b9d0
@@ -56,6 +56,15 @@ class ActiveRecordSchemaScrapper
56
56
  message: "#{model.name} is not a valid ActiveRecord model.",
57
57
  original_error: e,
58
58
  level: :error)
59
+ []
60
+ rescue ActiveRecord::StatementInvalid => e
61
+ level = model.abstract_class? ? :warn : :error
62
+ message = model.abstract_class? ? "Could not find table for abstract_class" : e.message
63
+ @errors << OpenStruct.new(class_name: model.name,
64
+ message: message,
65
+ original_error: e,
66
+ level: level)
67
+ []
59
68
  end
60
69
  end
61
70
  end
@@ -1,3 +1,3 @@
1
1
  class ActiveRecordSchemaScrapper
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_schema_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-28 00:00:00.000000000 Z
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus