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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 360fe42fd8be7a46d83f88f62b43fe12823416d0c1d07415211f67b96142bd1e
4
- data.tar.gz: 78150fd7983ddff6c38dff085361ac6b78a8d1efae289c387b191bc4a7715194
3
+ metadata.gz: eca1e15cbf4dde5f24f61b66b118b7e1c5e532794e639aab745716f479c3ed8b
4
+ data.tar.gz: fbdc94772c27097404d9e815e4b0885c4106f697e5b865e300eea0c88c1d5c79
5
5
  SHA512:
6
- metadata.gz: d36f06b2190924517b16f5a6c06a2285de38cf1577b73639092149605a9a55de001766b878af270003c009f9990c1de5302ebf2083d26bb80b7ee552ba27fccf
7
- data.tar.gz: fc7d1f5101ffbf65eaae48e2029aa5feee4d373dbc98af29b88d837e0e3cdbc677d824b670d4165cd5ca8272d08e2e237a1d9ed761a4b3fdfa296529290ec46e
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
 
@@ -2,7 +2,7 @@ inherit_from:
2
2
  - https://shopify.github.io/ruby-style-guide/rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.3
5
+ TargetRubyVersion: 2.5
6
6
  Exclude:
7
7
  - gemfiles/vendor/**/*
8
8
 
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deprecation_toolkit (1.5.0)
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.0)
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.81.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)
@@ -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.3'
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)/})
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  source "https://rubygems.org"
3
3
 
4
- gem "activesupport", "~> 4.2"
4
+ gem "activesupport", "~> 6.0"
5
5
 
6
6
  group :deployment do
7
7
  gem "rake"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeprecationToolkit
4
- VERSION = "1.5.0"
4
+ VERSION = "1.5.1"
5
5
  end
@@ -6,13 +6,20 @@ module DeprecationToolkit
6
6
 
7
7
  @buffer = nil
8
8
 
9
- # Ruby 2.7 has a warning for improper use of keyword arguments that is sent as two parts
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?("maybe ** should be added to the call\n")
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.0
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-14 00:00:00.000000000 Z
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.3'
147
+ version: '2.5'
150
148
  required_rubygems_version: !ruby/object:Gem::Requirement
151
149
  requirements:
152
150
  - - ">="
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
- source "https://rubygems.org"
3
-
4
- gem "activesupport", "~> 5.0"
5
-
6
- group :deployment do
7
- gem "rake"
8
- gem "rubocop"
9
- end
10
-
11
- gemspec path: "../"
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
- source "https://rubygems.org"
3
-
4
- gem "activesupport", "~> 5.1"
5
-
6
- group :deployment do
7
- gem "rake"
8
- gem "rubocop"
9
- end
10
-
11
- gemspec path: "../"