deprecation_toolkit 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +39 -0
- data/.rubocop.yml +3 -3
- data/CHANGELOG.md +17 -1
- data/Gemfile +11 -4
- data/Gemfile.lock +48 -44
- data/README.md +5 -0
- data/RELEASE.md +21 -0
- data/deprecation_toolkit.gemspec +7 -10
- data/gemfiles/activesupport_5.2.gemfile +2 -8
- data/gemfiles/activesupport_6.0.gemfile +5 -0
- data/gemfiles/activesupport_6.1.gemfile +5 -0
- data/gemfiles/activesupport_7.0.gemfile +5 -0
- data/gemfiles/activesupport_edge.gemfile +5 -0
- data/gemfiles/test/deprecations +1 -1
- data/lib/deprecation_toolkit/behaviors/ci_record_helper.rb +2 -2
- data/lib/deprecation_toolkit/collector.rb +1 -1
- data/lib/deprecation_toolkit/deprecation_subscriber.rb +1 -1
- data/lib/deprecation_toolkit/rspec_plugin.rb +1 -1
- data/lib/deprecation_toolkit/version.rb +1 -1
- data/lib/deprecation_toolkit/warning.rb +43 -32
- data/lib/deprecation_toolkit.rb +4 -5
- data/lib/minitest/deprecation_toolkit_plugin.rb +9 -2
- data/lib/tasks/ci_recorder.rake +10 -9
- data/spec/deprecation_toolkit/behaviors/disabled_spec.rb +2 -2
- data/spec/deprecation_toolkit/behaviors/raise_spec.rb +4 -4
- data/spec/deprecation_toolkit/behaviors/record_spec.rb +1 -1
- data/spec/rspec/plugin_env_options_spec.rb +3 -3
- data/spec/rspec/plugin_spec.rb +1 -1
- metadata +14 -69
- data/.rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml +0 -1178
- data/.travis.yml +0 -20
- data/gemfiles/activesupport_4.2.gemfile +0 -11
- data/gemfiles/activesupport_5.0.gemfile +0 -11
- data/gemfiles/activesupport_5.1.gemfile +0 -11
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
# This needs to be set before we require `spec_helper` to simulate setting an ENV when running a spec like:
|
4
4
|
# `DEPRECATION_BEHAVIOR="record" bundle exec rspec path/to/spec.rb`
|
5
|
-
ENV[
|
5
|
+
ENV["DEPRECATION_BEHAVIOR"] = "record"
|
6
6
|
|
7
|
-
require
|
7
|
+
require "spec_helper"
|
8
8
|
|
9
9
|
RSpec.describe("DeprecationToolkit::RSpecPlugin ENV options") do
|
10
|
-
it
|
10
|
+
it "should set the behavior to `Record` when ENV variable is set" do
|
11
11
|
expect(DeprecationToolkit::Configuration.behavior).to(eq(DeprecationToolkit::Behaviors::Record))
|
12
12
|
end
|
13
13
|
end
|
data/spec/rspec/plugin_spec.rb
CHANGED
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,70 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
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: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.16'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.16'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '10.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '10.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.0'
|
26
|
+
version: '5.2'
|
83
27
|
description:
|
84
28
|
email:
|
85
29
|
- rails@shopify.com
|
@@ -87,22 +31,23 @@ executables: []
|
|
87
31
|
extensions: []
|
88
32
|
extra_rdoc_files: []
|
89
33
|
files:
|
34
|
+
- ".github/workflows/ci.yml"
|
90
35
|
- ".gitignore"
|
91
36
|
- ".rspec"
|
92
|
-
- ".rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml"
|
93
37
|
- ".rubocop.yml"
|
94
|
-
- ".travis.yml"
|
95
38
|
- CHANGELOG.md
|
96
39
|
- Gemfile
|
97
40
|
- Gemfile.lock
|
98
41
|
- LICENSE.txt
|
99
42
|
- README.md
|
43
|
+
- RELEASE.md
|
100
44
|
- Rakefile
|
101
45
|
- deprecation_toolkit.gemspec
|
102
|
-
- gemfiles/activesupport_4.2.gemfile
|
103
|
-
- gemfiles/activesupport_5.0.gemfile
|
104
|
-
- gemfiles/activesupport_5.1.gemfile
|
105
46
|
- gemfiles/activesupport_5.2.gemfile
|
47
|
+
- gemfiles/activesupport_6.0.gemfile
|
48
|
+
- gemfiles/activesupport_6.1.gemfile
|
49
|
+
- gemfiles/activesupport_7.0.gemfile
|
50
|
+
- gemfiles/activesupport_edge.gemfile
|
106
51
|
- gemfiles/spec/deprecations/deprecation_toolkit/behaviors/raise.yml
|
107
52
|
- gemfiles/test/deprecations
|
108
53
|
- lib/deprecation_toolkit.rb
|
@@ -136,7 +81,8 @@ licenses:
|
|
136
81
|
metadata:
|
137
82
|
homepage_uri: https://github.com/shopify/deprecation_toolkit
|
138
83
|
source_code_uri: https://github.com/shopify/deprecation_toolkit
|
139
|
-
changelog_uri: https://github.com/Shopify/deprecation_toolkit/blob/
|
84
|
+
changelog_uri: https://github.com/Shopify/deprecation_toolkit/blob/main/CHANGELOG.md
|
85
|
+
allowed_push_host: https://rubygems.org
|
140
86
|
post_install_message:
|
141
87
|
rdoc_options: []
|
142
88
|
require_paths:
|
@@ -145,15 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
91
|
requirements:
|
146
92
|
- - ">="
|
147
93
|
- !ruby/object:Gem::Version
|
148
|
-
version: '2.
|
94
|
+
version: '2.6'
|
149
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
96
|
requirements:
|
151
97
|
- - ">="
|
152
98
|
- !ruby/object:Gem::Version
|
153
99
|
version: '0'
|
154
100
|
requirements: []
|
155
|
-
|
156
|
-
rubygems_version: 2.7.6
|
101
|
+
rubygems_version: 3.2.20
|
157
102
|
signing_key:
|
158
103
|
specification_version: 4
|
159
104
|
summary: Deprecation Toolkit around ActiveSupport::Deprecation
|