is_this_used 0.1.11 → 0.1.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b45e5ae45262a6793a2d31dbc938dc1ca7dce14c41badab9f098281010c0fd7
|
4
|
+
data.tar.gz: 83027360fc9f6ea7eb6f5209bf76e26f812acc1a6f017d25ae8c102e8dc384d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a563b281bf91261a8796ee3cf96ca7b93856f40e97db803aff7139bf554cfbf9fb9965bee06afa7e8b27f1571d14067aa6f9fbce087cb070dabeaad7c143e37
|
7
|
+
data.tar.gz: 0116de239d46752d0240b6b76aadc56c7962f3e64b7e19f39080e7fa1a11eee73d9f7bd8a61287eb53b71d24604706f303529e0b6bd1d3a0941cc2719221ab78
|
@@ -107,12 +107,16 @@ module IsThisUsed
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|
110
|
-
rescue ActiveRecord::StatementInvalid
|
110
|
+
rescue ActiveRecord::StatementInvalid => e
|
111
111
|
raise unless e.cause.present? && e.cause.instance_of?(Mysql2::Error)
|
112
112
|
|
113
113
|
Rails.logger.warn(
|
114
114
|
'There was an error recording potential cruft. Does the potential_crufts table exist? Have migrations been run?'
|
115
115
|
)
|
116
|
+
rescue NoMethodError
|
117
|
+
Rails.logger.warn(
|
118
|
+
'There was an error recording potential cruft. Have migrations been run?'
|
119
|
+
)
|
116
120
|
rescue Mysql2::Error::ConnectionError, ActiveRecord::ConnectionNotEstablished
|
117
121
|
Rails.logger.warn(
|
118
122
|
'There was an error recording potential cruft due to being unable to connect to the database. This may be a non-issue in cases where the database is intentionally not available.'
|
data/lib/is_this_used/version.rb
CHANGED