deprecation_toolkit 2.1.0 → 2.2.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/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +2 -2
- data/README.md +8 -0
- data/deprecation_toolkit.gemspec +1 -1
- data/lib/deprecation_toolkit/version.rb +1 -1
- data/lib/deprecation_toolkit/warning.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 562db3c54971f9c7513f6777b6b351325772a467f3a12b9467aee8ae09faea7b
|
|
4
|
+
data.tar.gz: 5d8bfeb8af3b883747c4b72a168e7504080f9e87260b65a67f9ecabe99071016
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a801c1cd12e35a705b89ecb7e3f2863be8ef488f29efb8537f7a858d86f68355cd571f22e4b16cd8b50b3c08b7b63e6ac187a12e9bcda184f268b41695b2a14
|
|
7
|
+
data.tar.gz: 940e38840d651bd4cb2432b8d99c0cbdd78257fc8a5cce2175c60fbd40c0bca45a4ad66e6201e3699fdaaf4b6867c7c02257762dec942e1a3b1e29fd89bef9b0
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## main (unreleased)
|
|
4
4
|
|
|
5
|
+
## 2.2.0 (2024-02-05)
|
|
6
|
+
|
|
7
|
+
* Restore Rails 6.1 compatibility.
|
|
8
|
+
* Accept anything that responds to `===` in `Configuration.warnings_treated_as_deprecation`.
|
|
9
|
+
|
|
5
10
|
## 2.1.0 (2024-01-19)
|
|
6
11
|
|
|
7
12
|
* [#99](https://github.com/Shopify/deprecation_toolkit/pull/99): Fix `Warning.warn` hook to accept a category.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -117,6 +117,14 @@ This setting accepts an array of regular expressions. To match on all warnings,
|
|
|
117
117
|
DeprecationToolkit::Configuration.warnings_treated_as_deprecation = [//]
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
In addition to regexps, anything that responds to `===` can be a matcher, for instance a proc:
|
|
121
|
+
|
|
122
|
+
```ruby
|
|
123
|
+
DeprecationToolkit::Configuration.warnings_treated_as_deprecation = [
|
|
124
|
+
->(warning) { !warning.match?(/not a deprecation/)}
|
|
125
|
+
]
|
|
126
|
+
```
|
|
127
|
+
|
|
120
128
|
### 🔨 `#DeprecationToolkit::Configuration#deprecation_file_path_format`
|
|
121
129
|
|
|
122
130
|
DeprecationToolkit allows you to choose the file path format for deprecation files.
|
data/deprecation_toolkit.gemspec
CHANGED
|
@@ -38,7 +38,7 @@ module DeprecationToolkit
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def deprecation_triggered?(str)
|
|
41
|
-
DeprecationToolkit::Configuration.warnings_treated_as_deprecation.any? { |warning| warning
|
|
41
|
+
DeprecationToolkit::Configuration.warnings_treated_as_deprecation.any? { |warning| warning === str }
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def deprecator
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deprecation_toolkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '6.1'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '6.1'
|
|
27
27
|
description:
|
|
28
28
|
email:
|
|
29
29
|
- rails@shopify.com
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
84
|
version: '0'
|
|
85
85
|
requirements: []
|
|
86
|
-
rubygems_version: 3.5.
|
|
86
|
+
rubygems_version: 3.5.5
|
|
87
87
|
signing_key:
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: Deprecation Toolkit around ActiveSupport::Deprecation
|