warning 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +6 -0
- data/README.rdoc +1 -0
- data/lib/warning.rb +5 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6054dca1a00f1d10743d33a9763485b627d28308c6f3ea759c13dc3d1dc93ee9
|
4
|
+
data.tar.gz: b6a1dbed6106cf3fda161ea834b198bce4576e140891043437fb1e857a2117a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
+
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-
|
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.
|
75
|
+
rubygems_version: 3.5.22
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Add custom processing for warnings
|