deprecation_collector 0.7.0 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5a792b37d7fef7db54b766c8486202f0058019c3fbe668dc62a3b0845cdd18
|
4
|
+
data.tar.gz: e9bf64acfd1113253f65b24d85927e4a1c8ccb6252d2286d8589f09ac6ed0d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8a04a651d8ba60c16c88c1c9e094929567b7bfae8a0f15884aeb0c673cfff8ec351dd444a7daa28b3431e08a9ed29ebe22d4bb64406d8e8fec6dc39f2bcd5b3
|
7
|
+
data.tar.gz: 5619c9376153423a2573a18cc16bfa37ea5c1053eab7c79d782c66a44bdaea97cf6d2ecac5e7f0f3a6ba2ed74eec3fd6fd594289ed1d228010c7b29dec5fa4e5
|
data/CHANGELOG.md
CHANGED
@@ -40,7 +40,7 @@ class DeprecationCollector
|
|
40
40
|
def tap_activesupport
|
41
41
|
# TODO: a more polite hook
|
42
42
|
# not polite to turn off all other possible behaviors, but otherwise may get duplicate calls
|
43
|
-
if Rails.respond_to?(:gem_version) && Rails.gem_version >= "7.1"
|
43
|
+
if Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new("7.1")
|
44
44
|
Rails.application.deprecators.behavior = ACTIVE_SUPPORT_BEHAVIORS[:rails71] if Rails.application&.deprecators
|
45
45
|
# Rails.application.deprecators.behavior only captures new-style deprecations, but we need all:
|
46
46
|
if ActiveSupport::Deprecation.respond_to?(:_instance)
|
@@ -51,7 +51,7 @@ class DeprecationCollector
|
|
51
51
|
return unless defined?(ActiveSupport::Deprecation)
|
52
52
|
|
53
53
|
deprecator = ActiveSupport::Deprecation
|
54
|
-
deprecator = ActiveSupport::Deprecation.new("0.0", "deprecation_collector") if Rails.gem_version >= "7.1"
|
54
|
+
deprecator = ActiveSupport::Deprecation.new("0.0", "deprecation_collector") if Rails.gem_version >= Gem::Version.new("7.1")
|
55
55
|
|
56
56
|
-> { deprecator.warn("Test deprecation") } []
|
57
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprecation_collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Fedoseyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.1.6
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Collector for ruby/rails deprecations and warnings, suitable for production
|