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: 4abf2fd80c83d0bb580066755b650e74538f9f3b77494d400528b33efa03eedb
4
- data.tar.gz: 90185ef813d1d14182b20d1a4cbf4ea6d358867edd8e8b958c8f06ec82636ffe
3
+ metadata.gz: 2b45e5ae45262a6793a2d31dbc938dc1ca7dce14c41badab9f098281010c0fd7
4
+ data.tar.gz: 83027360fc9f6ea7eb6f5209bf76e26f812acc1a6f017d25ae8c102e8dc384d5
5
5
  SHA512:
6
- metadata.gz: 9f8139f3bdc1006462040512f875697043079c9acdf70738b8388afa1108bc7cb44b89e17f38b40b6d8dfac9138317cbaff645f42fa07b4c9782b1a821c32e3b
7
- data.tar.gz: 6d569fafa4e91e7d29727989e35386981a5f095b384cd4b38f230db22aead2d87dd125a6bbf364ae10a8b92fddf48f6cfbbd8be57087318ff62df24aaada795b
6
+ metadata.gz: 7a563b281bf91261a8796ee3cf96ca7b93856f40e97db803aff7139bf554cfbf9fb9965bee06afa7e8b27f1571d14067aa6f9fbce087cb070dabeaad7c143e37
7
+ data.tar.gz: 0116de239d46752d0240b6b76aadc56c7962f3e64b7e19f39080e7fa1a11eee73d9f7bd8a61287eb53b71d24604706f303529e0b6bd1d3a0941cc2719221ab78
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- is_this_used (0.1.11)
4
+ is_this_used (0.1.12)
5
5
  activerecord (>= 5.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- is_this_used (0.1.11)
4
+ is_this_used (0.1.12)
5
5
  activerecord (>= 5.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- is_this_used (0.1.11)
4
+ is_this_used (0.1.12)
5
5
  activerecord (>= 5.2)
6
6
 
7
7
  GEM
@@ -107,12 +107,16 @@ module IsThisUsed
107
107
  end
108
108
  end
109
109
  end
110
- rescue ActiveRecord::StatementInvalid, NoMethodError => e
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.'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IsThisUsed
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is_this_used
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Hughes