rubocop-cask 0.16.0 → 0.17.0

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: 2ac6a5d268b98862401e58b0085e4efa060c0583
4
- data.tar.gz: 566a249832eabe03dd177f584915918a076c87d3
3
+ metadata.gz: 202a5e8f37ed13fd88e1b14e6dbe6aef8c64f8ef
4
+ data.tar.gz: e7b5fdf0a781ef8cc3b34e99e0ce593609276ff1
5
5
  SHA512:
6
- metadata.gz: d2e4d8eacaf06880cd78e9889b2f62936a69145d9cb1a3ced0b1712ee54bf31904f20c82a737179132a8ff865fe7fc5cd285bdadc61ce76f92515f9b0606ee2f
7
- data.tar.gz: e81e01ee41c0ac1dbb3e76fa6aa45cecd2d6fb25634dc351e93ed32de67b80e572b0305816dde37ea92f8c09e3264e2f1bb48cb3a58e33a1163e5421c6164973
6
+ metadata.gz: 14da2e18c17149cc2708749127790ba48f51a50a22ee6844c95ec37802b5e76acdc85b49d71069881ee32c8ae0b483e3eac4576a23edb3945248d440a1975ab8
7
+ data.tar.gz: 368f6fdcee5eadea1f5865ae1d9b8b8f07521716482badd052cb976036123c9b26dfc3d863c09d648ac2bbff073d3a5a14614fa23f53cd79aab086fb09c72522
data/config/default.yml CHANGED
@@ -84,7 +84,10 @@ Style/RegexpLiteral:
84
84
  Style/SymbolArray:
85
85
  EnforcedStyle: brackets
86
86
 
87
- Style/TrailingCommaInLiteral:
87
+ Style/TrailingCommaInArrayLiteral:
88
+ EnforcedStyleForMultiline: comma
89
+
90
+ Style/TrailingCommaInHashLiteral:
88
91
  EnforcedStyleForMultiline: comma
89
92
 
90
93
  Style/WordArray:
@@ -3,6 +3,6 @@ require 'rubygems'
3
3
  module RuboCop
4
4
  module Cask
5
5
  # Version information for the Cask RuboCop plugin.
6
- VERSION = '0.16.0'.freeze
6
+ VERSION = '0.17.0'.freeze
7
7
  end
8
8
  end
@@ -9,6 +9,7 @@ module RuboCop
9
9
  class StanzaGrouping < Cop
10
10
  extend Forwardable
11
11
  include CaskHelp
12
+ include RangeHelp
12
13
 
13
14
  MISSING_LINE_MSG = 'stanza groups should be separated by a single ' \
14
15
  'empty line'.freeze
@@ -84,6 +85,8 @@ module RuboCop
84
85
  end
85
86
 
86
87
  def add_offense(line_index, message:)
88
+ puts inspect
89
+
87
90
  line_length = [processed_source[line_index].size, 1].max
88
91
  range = source_range(processed_source.buffer, line_index + 1, 0,
89
92
  line_length)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-cask
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hagins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: public_suffix
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.52.1
33
+ version: 0.53.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.52.1
40
+ version: 0.53.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement