warning 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +6 -0
  3. data/README.rdoc +1 -0
  4. data/lib/warning.rb +5 -2
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2af0fa1becb10a11e209630c73fdb0f1184352cdb174edbf2ce8eabeff2d1763
4
- data.tar.gz: 51b04db9d1bcdfd9432c7501d3cfe15043bad6556940aea4214154791cee3964
3
+ metadata.gz: 6054dca1a00f1d10743d33a9763485b627d28308c6f3ea759c13dc3d1dc93ee9
4
+ data.tar.gz: b6a1dbed6106cf3fda161ea834b198bce4576e140891043437fb1e857a2117a8
5
5
  SHA512:
6
- metadata.gz: bc4fe66b7efc5066225ad74b947bc7d32113651112a88ff12a9d8888dea60ed7b22ba54bc6cc156eb19f85f8cfe0c3199cbb7e041af44c54db08a9fda4fb4738
7
- data.tar.gz: dc243ded2132d05c9e926a59577c978a10169253419ba6e1aa1cfbc9c96a2628b1360991dac9dce7ab4ac11e29683e129a52eb9859b9a61eb07f9492f8ae089a
6
+ metadata.gz: 23f51a39800e815957754d82f090e4372e1709176eedc4e905151d81848ebdc1173049f570d74d65be3a360358d6a2786191e58ba3edfcb5f88edb27296325c5
7
+ data.tar.gz: 4212dde6557469b9b9e1ab37200a4d27e84f629b803a533fc9fd52645efb9ed2b8382dde7e115b80d54fef187819c9c169cc09c90f71be8136540e6a41ef0659
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.5.0 (2024-12-18)
2
+
3
+ * Handle warning formats produced by prism compiler (jeremyevans)
4
+
5
+ * Add support for :default_gem_removal as regexp argument to Warning.ignore (jamiemccarthy, jeremyevans) (#24)
6
+
1
7
  === 1.4.0 (2024-05-24)
2
8
 
3
9
  * Add support for :ignored_block as regexp argument to Warning.ignore (jeremyevans)
data/README.rdoc CHANGED
@@ -30,6 +30,7 @@ appropriate regexp. The supported symbols are:
30
30
  * :arg_prefix
31
31
  * :ambiguous_slash
32
32
  * :bignum
33
+ * :default_gem_removal
33
34
  * :fixnum
34
35
  * :ignored_block
35
36
  * :keyword_separation
data/lib/warning.rb CHANGED
@@ -4,9 +4,10 @@ module Warning
4
4
  module Processor
5
5
  # Map of symbols to regexps for warning messages to ignore.
6
6
  IGNORE_MAP = {
7
- ambiguous_slash: /: warning: ambiguous first argument; put parentheses or a space even after [`']\/' operator\n\z|: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after [`']\/' operator\n\z/,
8
- arg_prefix: /: warning: [`'][&\*]' interpreted as argument prefix\n\z/,
7
+ ambiguous_slash: /: warning: ambiguous first argument; put parentheses or a space even after [`']\/' operator\n\z|: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after [`']\/' operator\n\z|ambiguous `\/`; wrap regexp in parentheses or add a space after `\/` operator\n\z/,
8
+ arg_prefix: /: warning: ([`'][&\*]'||ambiguous `[\*&]` has been) interpreted as( an)? argument prefix\n\z/,
9
9
  bignum: /: warning: constant ::Bignum is deprecated\n\z/,
10
+ default_gem_removal: /: warning: .+? was loaded from the standard library, but will no longer be part of the default gems starting from Ruby [\d.]+\./,
10
11
  fixnum: /: warning: constant ::Fixnum is deprecated\n\z/,
11
12
  ignored_block: /: warning: the block passed to '.+' defined at .+:\d+ may be ignored\n\z/,
12
13
  method_redefined: /: warning: method redefined; discarding old .+\n\z|: warning: previous definition of .+ was here\n\z/,
@@ -95,6 +96,8 @@ module Warning
95
96
  # :arg_prefix :: Ignore warnings when using * or & as an argument prefix
96
97
  # :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt>
97
98
  # :bignum :: Ignore warnings when referencing the ::Bignum constant.
99
+ # :default_gem_removal :: Ignore warnings that a gem will be removed from the default gems
100
+ # in a future Ruby version.
98
101
  # :fixnum :: Ignore warnings when referencing the ::Fixnum constant.
99
102
  # :keyword_separation :: Ignore warnings related to keyword argument separation.
100
103
  # :method_redefined :: Ignore warnings when defining a method in a class/module where a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest-global_expectations
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.5.9
75
+ rubygems_version: 3.5.22
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Add custom processing for warnings