ezcater_rubocop 0.51.8 → 0.52.0.rc0

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
  SHA1:
3
- metadata.gz: 5683d320c51681dfd661e5fc78698a0341cbdca2
4
- data.tar.gz: 17c4374ba2f3aabbb61feac019fc09102237d878
3
+ metadata.gz: 05d6e3d50eb98a00a4b603f17b4658be0f4dc2be
4
+ data.tar.gz: e4a3b650b1bab0eaff75e34de90a3f8fdb6e562d
5
5
  SHA512:
6
- metadata.gz: a41d8ba0b33b7ad2aedc9d731039cb57b3512726f9f2466b20eb238cf1f7191002cafdb96507d765d3c395e0a899763fb9c81d4629d540337115f4b1bc235156
7
- data.tar.gz: a73cadc8fbff8c9a94d80d41d0d6f3d02ff2a3cfa3275af85092ef5162936638672aae6f128b90d616a56b7ac74a6bbb26c335c803e2c4bcb339ee82a2426371
6
+ metadata.gz: d51dfe107dbcd415b8d86a636ae9f859263f1601a16b474705b17b2b6e7a38cc276b559a638ce941c19f4a31ff1822703dd0dc77ab2bcc7bef6d298f32cd5252
7
+ data.tar.gz: 905ace6e0f420c44dca8719b19f01fdafb85ce7c9f74c1bda3f9053cc188e53c0b3a268dd2e4cf960773e1a99ea352d2e210730f50c6dc1732d471ccef887aa5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ezcater_rubocop
2
2
 
3
+ ## v0.52.0 (unreleased)
4
+ - Update to rubocop v0.52.1 and rubocop-rspec v1.22.2.
5
+
3
6
  ## v0.51.8
4
7
  - Disable `RSpec/LetSetup` cop.
5
8
 
@@ -15,3 +15,7 @@ Rails/RelativeDateConstant:
15
15
  # constant but does not update references to it.
16
16
  AutoCorrect: false
17
17
 
18
+ Style/MixinUsage:
19
+ Exclude:
20
+ - "bin/**/*"
21
+
@@ -46,6 +46,6 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency "rspec", "~> 3.0"
47
47
  spec.add_development_dependency "rspec_junit_formatter"
48
48
 
49
- spec.add_runtime_dependency "rubocop", "~> 0.51.0"
50
- spec.add_runtime_dependency "rubocop-rspec", "~> 1.20.0"
49
+ spec.add_runtime_dependency "rubocop", "~> 0.52.1"
50
+ spec.add_runtime_dependency "rubocop-rspec", "~> 1.22.2"
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module EzcaterRubocop
2
- VERSION = "0.51.8".freeze
2
+ VERSION = "0.52.0.rc0".freeze
3
3
  end
@@ -42,7 +42,7 @@ module RuboCop
42
42
 
43
43
  ACCESS_AFFECTED_METHODS = (ATTR_METHODS + %i(alias_method)).to_set.freeze
44
44
 
45
- MSG = "Use `%s_%s` instead".freeze
45
+ MSG = "Use `%<visibility>s_%<method_name>s` instead".freeze
46
46
 
47
47
  def on_class(node)
48
48
  check_node(node.children[2]) # class body
@@ -61,7 +61,7 @@ module RuboCop
61
61
  end
62
62
 
63
63
  def format_message(visibility, method_name)
64
- format(MSG, visibility, method_name)
64
+ format(MSG, visibility: visibility, method_name: method_name)
65
65
  end
66
66
 
67
67
  def check_scope(node, current_visibility = :public)
@@ -18,7 +18,7 @@ module RuboCop
18
18
  # allow(Browser).to receive...
19
19
  # allow(EzBrowser).to receive...
20
20
  class RspecRequireBrowserMock < Cop
21
- MSG = "Use the mocks provided by `BrowserHelpers` instead of mocking `%s`".freeze
21
+ MSG = "Use the mocks provided by `BrowserHelpers` instead of mocking `%<node_source>s`".freeze
22
22
 
23
23
  def_node_matcher :browser_const?, <<~PATTERN
24
24
  (const _ {:Browser :EzBrowser})
@@ -37,7 +37,9 @@ module RuboCop
37
37
 
38
38
  # Finish tree navigation to full line for highlighting
39
39
  match_node = match_node.parent while match_node.parent
40
- add_offense(match_node, location: :expression, message: MSG % node.source)
40
+ add_offense(match_node,
41
+ location: :expression,
42
+ message: format(MSG, node_source: node.source))
41
43
  end
42
44
 
43
45
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezcater_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.8
4
+ version: 0.52.0.rc0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-07 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.51.0
89
+ version: 0.52.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.51.0
96
+ version: 0.52.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.20.0
103
+ version: 1.22.2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.20.0
110
+ version: 1.22.2
111
111
  description: ezCater custom cops and shared configuration
112
112
  email:
113
113
  - engineering@ezcater.com
@@ -151,12 +151,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - ">="
154
+ - - ">"
155
155
  - !ruby/object:Gem::Version
156
- version: '0'
156
+ version: 1.3.1
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.6.11
159
+ rubygems_version: 2.6.13
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: ezCater custom cops and shared configuration