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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b30ab975b2fde2278bbcb781695eb31fbe412d8b
|
4
|
+
data.tar.gz: 2fefff39882473cefae570d02977e33c36e0fe3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|