rubocop-performance 1.13.0 → 1.13.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: 874ce36b942ed539ead8c3329a7dd6831224459a286c2b3189605775e725fc60
4
- data.tar.gz: 584a851432d98e548151baa8afc1f9a30d5dcca05f8eae0d86c68f17bf933f34
3
+ metadata.gz: 7df725930fece6ca4b7ffd94e80b36095813fca1b646632d87bf7cc556b2e039
4
+ data.tar.gz: 75292501b62f29f90223ce6cc727a90dea11c37e5972c15197ddd81d6a2272ce
5
5
  SHA512:
6
- metadata.gz: 102cccbb3be2ba55702a2e7aff3c56c6325c80481d269f87921ca1d16a79fa12830c6f080f49bacdebf4b5726e4f4c42af2527c13a4abac5aae0cf4544fb018e
7
- data.tar.gz: 23c8beebceef175caf7e226a136bb3eaff500b71f5e3e26cba9fee9a84e36aa7a3b315b11216844b7980a421a82fff7a5346560ef1418f58fbe5261599fe4dec
6
+ metadata.gz: 60cffee092cca563bf9e87e4bfc1aa578a410c1caca1fc13a13b4b26e2002f766ef70afeef6c2011067b6fb7d79559318de320514a75538a89f180d26ceeaa6e
7
+ data.tar.gz: af8f26dcb82cc2f77cb6b4f9913117b211f100a48e6539ba108439ce22491664b54f9ad773a427d41f6a6ff5c07a9dee71676bc61f8f1bf90d825ffe5641bf9f
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-21 Bozhidar Batsov
1
+ Copyright (c) 2012-22 Bozhidar Batsov
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -27,8 +27,11 @@ module RuboCop
27
27
 
28
28
  MSG = 'Use `%<symbol_arg>s` instead of `%<string_arg>s`.'
29
29
 
30
+ # NOTE: `attr` method is not included in this list as it can cause false positives in Nokogiri API.
31
+ # And `attr` may not be used because `Style/Attr` registers an offense.
32
+ # https://github.com/rubocop/rubocop-performance/issues/278
30
33
  RESTRICT_ON_SEND = %i[
31
- alias_method attr attr_accessor attr_reader attr_writer autoload autoload?
34
+ alias_method attr_accessor attr_reader attr_writer autoload autoload?
32
35
  class_variable_defined? const_defined? const_get const_set const_source_location
33
36
  define_method instance_method method_defined? private_class_method? private_method_defined?
34
37
  protected_method_defined? public_class_method public_instance_method public_method_defined?
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Performance
5
5
  # This module holds the RuboCop Performance version information.
6
6
  module Version
7
- STRING = '1.13.0'
7
+ STRING = '1.13.1'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-12-25 00:00:00.000000000 Z
13
+ date: 2022-01-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.3.0
144
+ rubygems_version: 3.3.3
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Automatic performance checking tool for Ruby code.