deprecation_toolkit 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml +3 -3
- data/.rubocop.yml +1 -1
- data/.travis.yml +3 -5
- data/Gemfile.lock +3 -3
- data/deprecation_toolkit.gemspec +1 -1
- data/gemfiles/{activesupport_4.2.gemfile → activesupport_6.0.gemfile} +1 -1
- data/lib/deprecation_toolkit/version.rb +1 -1
- data/lib/deprecation_toolkit/warning.rb +9 -2
- metadata +4 -6
- data/gemfiles/activesupport_5.0.gemfile +0 -11
- data/gemfiles/activesupport_5.1.gemfile +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eca1e15cbf4dde5f24f61b66b118b7e1c5e532794e639aab745716f479c3ed8b
|
4
|
+
data.tar.gz: fbdc94772c27097404d9e815e4b0885c4106f697e5b865e300eea0c88c1d5c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d8b667e37f01a1ae8bb9b458b96d0f01da9710eea1b2dee2273b3624f21d3a6f6158188469da164b7136341d8f57d0cc21e8dd525eb37d8ade6ac8ae24b7ae2
|
7
|
+
data.tar.gz: 8576131199145519aedd34382d8dbed2e14cb9135a4fe12b2c3f9a22d14fdb8fb43b84f19477b94ef5c14a0511d43218cc16bae4e8d1da177b2217b7b86766cf
|
@@ -659,6 +659,9 @@ Style/IfWithSemicolon:
|
|
659
659
|
Style/IdenticalConditionalBranches:
|
660
660
|
Enabled: true
|
661
661
|
|
662
|
+
Layout/IndentationStyle:
|
663
|
+
Enabled: true
|
664
|
+
|
662
665
|
Style/InfiniteLoop:
|
663
666
|
Enabled: true
|
664
667
|
|
@@ -803,9 +806,6 @@ Layout/SpaceInsideRangeLiteral:
|
|
803
806
|
Style/SymbolLiteral:
|
804
807
|
Enabled: true
|
805
808
|
|
806
|
-
Layout/Tab:
|
807
|
-
Enabled: true
|
808
|
-
|
809
809
|
Layout/TrailingWhitespace:
|
810
810
|
Enabled: true
|
811
811
|
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -4,14 +4,12 @@ language: ruby
|
|
4
4
|
before_install:
|
5
5
|
- gem update bundler
|
6
6
|
rvm:
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
7
|
- 2.5
|
8
|
+
- 2.6
|
9
|
+
- 2.7
|
10
10
|
gemfile:
|
11
|
-
- gemfiles/activesupport_4.2.gemfile
|
12
|
-
- gemfiles/activesupport_5.0.gemfile
|
13
|
-
- gemfiles/activesupport_5.1.gemfile
|
14
11
|
- gemfiles/activesupport_5.2.gemfile
|
12
|
+
- gemfiles/activesupport_6.0.gemfile
|
15
13
|
script:
|
16
14
|
- bundle exec rubocop --config .rubocop.yml
|
17
15
|
- bundle exec rake test
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deprecation_toolkit (1.5.
|
4
|
+
deprecation_toolkit (1.5.1)
|
5
5
|
activesupport (>= 4.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
jaro_winkler (1.5.4)
|
22
22
|
minitest (5.11.3)
|
23
23
|
parallel (1.19.1)
|
24
|
-
parser (2.7.1.
|
24
|
+
parser (2.7.1.1)
|
25
25
|
ast (~> 2.4.0)
|
26
26
|
rainbow (3.0.0)
|
27
27
|
rake (12.3.2)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
40
|
rspec-support (~> 3.8.0)
|
41
41
|
rspec-support (3.8.0)
|
42
|
-
rubocop (0.
|
42
|
+
rubocop (0.82.0)
|
43
43
|
jaro_winkler (~> 1.5.1)
|
44
44
|
parallel (~> 1.10)
|
45
45
|
parser (>= 2.7.0.1)
|
data/deprecation_toolkit.gemspec
CHANGED
@@ -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.
|
23
|
+
spec.required_ruby_version = '>= 2.5'
|
24
24
|
|
25
25
|
spec.files = %x(git ls-files -z).split("\x0").reject do |f|
|
26
26
|
f.match(%r{^(test)/})
|
@@ -6,13 +6,20 @@ module DeprecationToolkit
|
|
6
6
|
|
7
7
|
@buffer = nil
|
8
8
|
|
9
|
-
# Ruby 2.7 has
|
9
|
+
# Ruby 2.7 has two warnings for improper use of keyword arguments that are sent in two parts
|
10
10
|
# Example:
|
11
|
+
#
|
11
12
|
# /path/to/caller.rb:1: warning: Using the last argument as keyword parameters is deprecated; \
|
12
13
|
# maybe ** should be added to the call
|
13
14
|
# /path/to/calleee.rb:1: warning: The called method `method_name' is defined here
|
15
|
+
#
|
16
|
+
# /path/to/caller.rb:1: warning: Passing the keyword argument as the last hash parameter is deprecated
|
17
|
+
# /path/to/calleee.rb:1: warning: The called method `method_name' is defined here
|
14
18
|
def two_part_warning?(str)
|
15
|
-
str.end_with?(
|
19
|
+
str.end_with?(
|
20
|
+
"maybe ** should be added to the call\n",
|
21
|
+
"Passing the keyword argument as the last hash parameter is deprecated\n",
|
22
|
+
)
|
16
23
|
end
|
17
24
|
|
18
25
|
def handle_multipart(str)
|
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: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -99,10 +99,8 @@ files:
|
|
99
99
|
- README.md
|
100
100
|
- Rakefile
|
101
101
|
- deprecation_toolkit.gemspec
|
102
|
-
- gemfiles/activesupport_4.2.gemfile
|
103
|
-
- gemfiles/activesupport_5.0.gemfile
|
104
|
-
- gemfiles/activesupport_5.1.gemfile
|
105
102
|
- gemfiles/activesupport_5.2.gemfile
|
103
|
+
- gemfiles/activesupport_6.0.gemfile
|
106
104
|
- gemfiles/spec/deprecations/deprecation_toolkit/behaviors/raise.yml
|
107
105
|
- gemfiles/test/deprecations
|
108
106
|
- lib/deprecation_toolkit.rb
|
@@ -146,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
144
|
requirements:
|
147
145
|
- - ">="
|
148
146
|
- !ruby/object:Gem::Version
|
149
|
-
version: '2.
|
147
|
+
version: '2.5'
|
150
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
149
|
requirements:
|
152
150
|
- - ">="
|