warning_signs 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: 52cb05e7b564245d88a8ef7906fce215c31ebe482cdaaee537d738004f8c35c8
4
- data.tar.gz: e8ad757904f8c87f2a5afe3c486873ffb4b955cd711be81a6021390284c35691
3
+ metadata.gz: 1f21801f5c06e7f5c646ba63b5848fb7fa11eee423e53bcdb74cd16932cc683a
4
+ data.tar.gz: 746c5de984d08d217a4cebe9c8aaf89f403ffe7961ad299499be81f0147b6384
5
5
  SHA512:
6
- metadata.gz: 41cc8a65c3e4b37dab7904d8537459ae84f0badfc00b013cf15c888fc072c913e69963bf663e1c9a735274e1029b01f0fc782a4b76f1d98b693a333556667e0f
7
- data.tar.gz: 33d9f42ca6d9dabf5e8501805b4db5cc62b54a4264b542d5f2fa110b2b7df3edc6fbcafcaa89e1c7b4828515cfdae4c745154df0002e3f8880757d26a056683c
6
+ metadata.gz: e666ef9d2789d74761fe39d56af39495f151d389da2ad97c791027b8f71f1890476254822db03e1beb220e5268b870d45deccf147fcfddc034a4d891903fc6e5
7
+ data.tar.gz: c5e79fcd7beab816f16883d6e3ac6a0f5001f8426ab25cfe5a2a4411ec821f6aac56beccbf5cf911bb1e852abac43bfb3aa508c03a455ad51ff8fb0773904838
@@ -20,7 +20,7 @@ jobs:
20
20
  - "2.7"
21
21
 
22
22
  steps:
23
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
24
24
  - name: Set up Ruby
25
25
  uses: ruby/setup-ruby@v1
26
26
  with:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.6.1 Dec 15, 2023
2
+
3
+ * Warning Signs error message makes it clearer that Warning Signs is
4
+ triggering the error
5
+
1
6
  ## 0.6.0
2
7
 
3
8
  * Allow for format options in messages
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- warning_signs (0.6.0)
4
+ warning_signs (0.6.1)
5
5
  awesome_print
6
6
  railties (<= 7.1.0)
7
7
 
@@ -0,0 +1,9 @@
1
+ module WarningSigns
2
+ class UnhandledDeprecationError < StandardError
3
+ MESSAGE = "This error was raised by the Warning Signs gem in response to a deprecation warning in Ruby or Rails. If this warning is not causing problems, you can add it to the exceptions list in .warning_signs.yml."
4
+
5
+ def message
6
+ super + "\n\n" + MESSAGE
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module WarningSigns
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/lib/warning_signs.rb CHANGED
@@ -14,8 +14,6 @@ module WarningSigns
14
14
  SAMPLE_CONSTANT = "foobar"
15
15
 
16
16
  class InvalidHandlerError < StandardError; end
17
-
18
- class UnhandledDeprecationError < StandardError; end
19
17
  end
20
18
 
21
19
  loader.eager_load
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warning_signs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Rappin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -194,6 +194,7 @@ files:
194
194
  - lib/warning_signs/ruby_category_matcher.rb
195
195
  - lib/warning_signs/ruby_deprecation_catcher.rb
196
196
  - lib/warning_signs/string_pattern.rb
197
+ - lib/warning_signs/unhandled_deprecation_error.rb
197
198
  - lib/warning_signs/version.rb
198
199
  - lib/warning_signs/world.rb
199
200
  - warning_signs.gemspec