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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05d6e3d50eb98a00a4b603f17b4658be0f4dc2be
|
4
|
+
data.tar.gz: e4a3b650b1bab0eaff75e34de90a3f8fdb6e562d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51dfe107dbcd415b8d86a636ae9f859263f1601a16b474705b17b2b6e7a38cc276b559a638ce941c19f4a31ff1822703dd0dc77ab2bcc7bef6d298f32cd5252
|
7
|
+
data.tar.gz: 905ace6e0f420c44dca8719b19f01fdafb85ce7c9f74c1bda3f9053cc188e53c0b3a268dd2e4cf960773e1a99ea352d2e210730f50c6dc1732d471ccef887aa5
|
data/CHANGELOG.md
CHANGED
data/conf/rubocop_rails.yml
CHANGED
data/ezcater_rubocop.gemspec
CHANGED
@@ -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.
|
50
|
-
spec.add_runtime_dependency "rubocop-rspec", "~> 1.
|
49
|
+
spec.add_runtime_dependency "rubocop", "~> 0.52.1"
|
50
|
+
spec.add_runtime_dependency "rubocop-rspec", "~> 1.22.2"
|
51
51
|
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
|
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
|
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,
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|
156
|
+
version: 1.3.1
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.6.
|
159
|
+
rubygems_version: 2.6.13
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: ezCater custom cops and shared configuration
|