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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdf2257c35693ff529171b7d55f649898587df1b3d4ffb6c4e9e07722ca227ac
4
- data.tar.gz: a14bd057747fa2ca3f496b404ab9973e7a3a2eed7ea5d46532b2b6b89e812969
3
+ metadata.gz: ba7d1f9dad2352f61f7a82ceda39e4b627cb4b73e0884b608cfcf367fc1a8df4
4
+ data.tar.gz: 839ec8f1b9e00d5ae5aa4adc6fc3661f393582b17925e60f7610c141c6527ae2
5
5
  SHA512:
6
- metadata.gz: 8709ac8e7add37f506b4703094a025f9e0be68b4f3c406513e3a2524bcbf1034039313aea11f5a9e201811dcf490e714dbde4c920d8225665d824d52fba28483
7
- data.tar.gz: 5ba5173d91246d5a595f6092322feedf26643ecef32075a167310d436a2a372b2f3362d060458b71bc82f05105877c11d8bc7a51af2f1289c2be9a26e8d06cfe
6
+ metadata.gz: 6c4df893d7f2915b02579782f8a2b923d35923d58730e51e44195bcc504e17887427a44ec2d5db865c44098fa2569e009538a3ddee6ebae6ffa82d683b14a545
7
+ data.tar.gz: 8ac07d070df68ff97aa166a54a9e8d9dc8dfb6d1e01263afe1854de95f99f88d55a81057f2d1cedde3fc3f4cf98cc9dde86ceea98194299369ef9044048b9a06
@@ -11,6 +11,11 @@ rvm:
11
11
 
12
12
  before_install: gem install bundler -v 2.1.4
13
13
 
14
+ script:
15
+ # - bundle exec reek .
16
+ - bundle exec rubocop -P .
17
+ - bundle exec rspec spec
18
+
14
19
  notifications:
15
20
  email:
16
21
  recipients:
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
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
@@ -3,6 +3,6 @@
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
5
 
6
- RSpec::Core::RakeTask.new(:spec) # rubocop:disable Require/MissingRequireStatement
6
+ RSpec::Core::RakeTask.new(:spec)
7
7
 
8
8
  task default: :spec
@@ -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
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Mhenrixon
5
- VERSION = '0.79.4'
5
+ VERSION = '0.80.0'
6
6
  end
7
7
  end
@@ -1,37 +1,38 @@
1
+ # frozen_string_literal: true
1
2
 
2
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "rubocop/mhenrixon/version"
5
+ require 'rubocop/mhenrixon/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "rubocop-mhenrixon"
8
+ spec.name = 'rubocop-mhenrixon'
8
9
  spec.version = Rubocop::Mhenrixon::VERSION
9
- spec.authors = ["mhenrixon"]
10
- spec.email = ["mikael@mhenrixon.com"]
10
+ spec.authors = ['mhenrixon']
11
+ spec.email = ['mikael@mhenrixon.com']
11
12
 
12
- spec.summary = %q{Shared rubocop configuration for open source gems.}
13
- spec.description = %q{Convenience gem to handle my rubocop configuration in multiple projects.}
14
- spec.homepage = "https://github.com/mhenrixon/rubocop-mhenrixon"
15
- spec.license = "MIT"
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["allowed_push_host"] = 'https://rubygems.org'
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/mhenrixon/rubocop-mhenrixon"
21
- spec.metadata["changelog_uri"] = "https://github.com/mhenrixon/rubocop-mhenrixon"
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 "RubyGems 2.0 or newer is required to protect against " \
24
- "public gem pushes."
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 = Dir.chdir(File.expand_path('..', __FILE__)) do
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 = "bin"
33
+ spec.bindir = 'bin'
33
34
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
34
- spec.require_paths = ["lib"]
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 "bundler", "~> 2.1"
43
- spec.add_development_dependency "gem-release", "~> 2.1"
44
- spec.add_development_dependency "rake", "~> 13.0"
45
- spec.add_development_dependency "rspec", "~> 3.9"
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.79.4
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-02 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop