deprecation_toolkit 2.0.1 → 2.0.2

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: c2d0b00fe8e8b87b77af20209fac4531b7d2faebdecc55a8cdbd1b490cd65089
4
- data.tar.gz: 4ed23c378e87023b0303839edaaa99265929c2b4eb5e7c1b56156992c24ba8e7
3
+ metadata.gz: 430ddfb053000146af52b971363780be4bf691de293a25a290a9c3fd96b11d66
4
+ data.tar.gz: f336c225f3b20bb345b44147262c9b90a2ef461fe4c1843928c84485fcf6d182
5
5
  SHA512:
6
- metadata.gz: 947cd740128e855612cc94917760cf00160adeda014fb4727153a811ea3e2b4cec4e563c61c02729c4eabdebdbf28307787f727feefa4a76e273c4b534c0fc40
7
- data.tar.gz: e46958cb158e2ede1139cabb445462349ceb8bc4de06b4084d6af1f086aacba390e86c9cba7c07a23d074d899cd669ef775c790263632be66b88990164404cd2
6
+ metadata.gz: e34959cdf54a5c8db25012249424ccf98ab87aee835c14cdfed3eddb24d46cde2e9711f49d896cb16c2d6f5ef8904d5ded5cb726a00a7d0334dee3e94ca2932d
7
+ data.tar.gz: b2cf482a05aa1f093a9d3ede4d47f8365601a83d3a48dd3f3c91f850828357b1d03d7d9f9381beea1aadf28fc1ddaae530fe56859c94e69a175d0d93b1d6b57d
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  matrix:
11
11
  gemfile: [gemfiles/activesupport_5.2.gemfile, gemfiles/activesupport_6.0.gemfile, gemfiles/activesupport_6.1.gemfile, gemfiles/activesupport_7.0.gemfile, gemfiles/activesupport_edge.gemfile]
12
- ruby: ["2.6", "2.7", "3.0", "3.1"]
12
+ ruby: ["2.7", "3.0", "3.1", "3.2"]
13
13
  exclude:
14
14
  # Active Support requires Ruby >= 2.7 as of 7.0
15
15
  - gemfile: "gemfiles/activesupport_7.0.gemfile"
@@ -43,7 +43,7 @@ jobs:
43
43
 
44
44
  - uses: ruby/setup-ruby@v1
45
45
  with:
46
- ruby-version: "3.1"
46
+ ruby-version: "3.2"
47
47
  bundler-cache: true
48
48
 
49
49
  - name: RuboCop
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## main (unreleased)
4
4
 
5
+ ## 2.0.2 (2023-02-08)
6
+
7
+ * [#78](https://github.com/Shopify/deprecation_toolkit/pull/78): Show deprecations without stacktrace. (@shioyama)
8
+
5
9
  ## 2.0.1 (2022-11-18)
6
10
 
7
11
  * [#74](https://github.com/Shopify/deprecation_toolkit/pull/74): Add support for `Rails.application.deprecators`. (@gmcgibbon)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deprecation_toolkit (2.0.1)
4
+ deprecation_toolkit (2.0.2)
5
5
  activesupport (>= 5.2)
6
6
 
7
7
  GEM
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  rubocop-shopify
69
69
 
70
70
  BUNDLED WITH
71
- 2.2.22
71
+ 2.4.4
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
22
 
23
- spec.required_ruby_version = ">= 2.6"
23
+ spec.required_ruby_version = ">= 2.7"
24
24
 
25
25
  spec.files = %x(git ls-files -z).split("\x0").reject do |f|
26
26
  f.match(%r{^(test)/})
@@ -77,9 +77,9 @@ module DeprecationToolkit
77
77
  #{record_message}
78
78
 
79
79
  ===== Expected
80
- #{recorded_deprecations.deprecations.join("\n")}
80
+ #{recorded_deprecations.deprecations_without_stacktrace.join("\n")}
81
81
  ===== Actual
82
- #{current_deprecations.deprecations.join("\n")}
82
+ #{current_deprecations.deprecations_without_stacktrace.join("\n")}
83
83
  EOM
84
84
 
85
85
  super(message)
@@ -58,7 +58,7 @@ module DeprecationToolkit
58
58
  end
59
59
 
60
60
  def test_location(test)
61
- test.method(test_name(test)).source_location[0]
61
+ Kernel.const_source_location(test.class.name)[0]
62
62
  rescue NameError
63
63
  "unknown"
64
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeprecationToolkit
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
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.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: '2.6'
95
+ version: '2.7'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="