rubocop-mhenrixon 0.79.4 → 0.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile +4 -2
- data/Rakefile +1 -1
- data/config/default.yml +18 -2
- data/lib/rubocop/mhenrixon.rb +5 -2
- data/lib/rubocop/mhenrixon/version.rb +1 -1
- data/rubocop-mhenrixon.gemspec +23 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7d1f9dad2352f61f7a82ceda39e4b627cb4b73e0884b608cfcf367fc1a8df4
|
4
|
+
data.tar.gz: 839ec8f1b9e00d5ae5aa4adc6fc3661f393582b17925e60f7610c141c6527ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c4df893d7f2915b02579782f8a2b923d35923d58730e51e44195bcc504e17887427a44ec2d5db865c44098fa2569e009538a3ddee6ebae6ffa82d683b14a545
|
7
|
+
data.tar.gz: 8ac07d070df68ff97aa166a54a9e8d9dc8dfb6d1e01263afe1854de95f99f88d55a81057f2d1cedde3fc3f4cf98cc9dde86ceea98194299369ef9044048b9a06
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
6
|
|
5
7
|
# Specify your gem's dependencies in rubocop-mhenrixon.gemspec
|
6
8
|
gemspec
|
data/Rakefile
CHANGED
data/config/default.yml
CHANGED
@@ -7,22 +7,26 @@ require:
|
|
7
7
|
inherit_mode:
|
8
8
|
merge:
|
9
9
|
- Exclude
|
10
|
+
- Include
|
10
11
|
|
11
12
|
AllCops:
|
12
13
|
DisplayCopNames: true
|
13
14
|
DisplayStyleGuide: true
|
14
15
|
Include:
|
16
|
+
- "Rakefile"
|
17
|
+
- "Gemfile"
|
18
|
+
- "*.gemspec"
|
15
19
|
- 'Rakefile'
|
16
20
|
- 'lib/**/*'
|
17
21
|
- 'bin/**/*'
|
18
22
|
- 'spec/**/*.rb'
|
23
|
+
- '.simplecov'
|
19
24
|
Exclude:
|
20
25
|
- 'bin/setup'
|
21
26
|
- 'Gemfile.lock'
|
22
|
-
- 'Gemfile'
|
23
27
|
- 'gemfiles/**/*'
|
24
28
|
- '**/*.json'
|
25
|
-
- '**/*.yml'
|
29
|
+
# - '**/*.yml'
|
26
30
|
- 'vendor/bundle/**/*'
|
27
31
|
|
28
32
|
Layout/LineLength:
|
@@ -44,4 +48,16 @@ Metrics/ParameterLists:
|
|
44
48
|
CountKeywordArgs: false
|
45
49
|
|
46
50
|
RSpec/AlignLeftLetBrace:
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
RSpec/ExampleLength:
|
54
|
+
Max: 10
|
55
|
+
|
56
|
+
Style/HashEachMethods:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Style/HashTransformKeys:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Style/HashTransformValues:
|
47
63
|
Enabled: true
|
data/lib/rubocop/mhenrixon.rb
CHANGED
@@ -3,8 +3,11 @@
|
|
3
3
|
require 'rubocop/mhenrixon/version'
|
4
4
|
|
5
5
|
module Rubocop
|
6
|
+
#
|
7
|
+
# This is just a place holder for the module
|
8
|
+
#
|
9
|
+
# @author Mikael Henriksson <mikael@mhenrixon.com>
|
10
|
+
#
|
6
11
|
module Mhenrixon
|
7
|
-
class Error < StandardError; end
|
8
|
-
# Your code goes here...
|
9
12
|
end
|
10
13
|
end
|
data/rubocop-mhenrixon.gemspec
CHANGED
@@ -1,37 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
lib = File.expand_path(
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
+
require 'rubocop/mhenrixon/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'rubocop-mhenrixon'
|
8
9
|
spec.version = Rubocop::Mhenrixon::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
10
|
+
spec.authors = ['mhenrixon']
|
11
|
+
spec.email = ['mikael@mhenrixon.com']
|
11
12
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
13
|
+
spec.summary = 'Shared rubocop configuration for open source gems.'
|
14
|
+
spec.description = 'Convenience gem to handle my rubocop configuration in multiple projects.'
|
15
|
+
spec.homepage = 'https://github.com/mhenrixon/rubocop-mhenrixon'
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
18
|
if spec.respond_to?(:metadata)
|
18
|
-
spec.metadata[
|
19
|
-
spec.metadata[
|
20
|
-
spec.metadata[
|
21
|
-
spec.metadata[
|
19
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
21
|
+
spec.metadata['source_code_uri'] = 'https://github.com/mhenrixon/rubocop-mhenrixon'
|
22
|
+
spec.metadata['changelog_uri'] = 'https://github.com/mhenrixon/rubocop-mhenrixon'
|
22
23
|
else
|
23
|
-
raise
|
24
|
-
|
24
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
25
|
+
'public gem pushes.'
|
25
26
|
end
|
26
27
|
|
27
28
|
# Specify which files should be added to the gem when it is released.
|
28
29
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
-
spec.files
|
30
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
30
31
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
|
31
32
|
end
|
32
|
-
spec.bindir =
|
33
|
+
spec.bindir = 'bin'
|
33
34
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
34
|
-
spec.require_paths = [
|
35
|
+
spec.require_paths = ['lib']
|
35
36
|
|
36
37
|
spec.add_dependency 'rubocop', '~> 0.79'
|
37
38
|
spec.add_dependency 'rubocop-performance', '~> 1.5'
|
@@ -39,8 +40,8 @@ Gem::Specification.new do |spec|
|
|
39
40
|
spec.add_dependency 'rubocop-rspec', '~> 1.37'
|
40
41
|
spec.add_dependency 'rubocop-thread_safety', '~> 0.3'
|
41
42
|
|
42
|
-
spec.add_development_dependency
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency
|
45
|
-
spec.add_development_dependency
|
43
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
44
|
+
spec.add_development_dependency 'gem-release', '~> 2.1'
|
45
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
46
|
+
spec.add_development_dependency 'rspec', '~> 3.9'
|
46
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-mhenrixon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.80.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mhenrixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|