rubocop-replaypoker 1.0.1 → 1.1.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: 3ec4ebc7f57d16e94193dfa604bb9e93f5ef7c4aa632feb448b8def6e2537fa0
4
- data.tar.gz: b6e558bd717e6d6d3070e0fbdcf3e41ef3ae4a08329229e99446044295ded07a
3
+ metadata.gz: afac3692c0d4d5b205e11211697d92e5c36f57a63d7f46ea05fcf5d7e85324c7
4
+ data.tar.gz: 787dbd0881766205efecd9852138c3148959d7ac2c3c12fa53683b26c1cd31a0
5
5
  SHA512:
6
- metadata.gz: bbb6a3ceca322010c4cc7f7736992e407425c31fba80f614103a3d7ae12be23ff6aef7680c0f1315c5c5f7668404449e12fe24071692ff64ec4f48a363a157cc
7
- data.tar.gz: a518108db18afe22b4663d9f5743ddf55b21007e7b5402e93e2f569354d58fabc707b735dc277657f735b0ea39fccd707172b42f988b6a7b8be60fb481017256
6
+ metadata.gz: 318609718216e8562318fb3cec2ed5e0eb98d443f9eb673cba65a1c794372de0df2f315f5075d55dfb70fdde7c478510965c6d9b8930f8e082c1473c8d890628
7
+ data.tar.gz: 06a41fb9281eaa1b822d9b435d6e52c9f06d58c07cb152d6e94d58068bf334f7e4901e078e0020fb339ee3c43feaa5df675713fda89f955e266c7827524a0f65
data/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  # Rubocop::Replaypoker
4
4
 
5
- Common Ruby style settings.
5
+ Common Ruby style settings. This gem takes all the settings and version controls
6
+ still giving to the developer the ability to make per project adjustments.
6
7
 
7
8
  ## Installation
8
9
 
@@ -22,7 +23,25 @@ Or install it yourself as:
22
23
 
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
26
+ This gem assume that it will be used in the project with the linter settings
27
+ inheritance would be something like this:
28
+
29
+ 0. Rubocop gem defaults, [link](https://github.com/rubocop/rubocop/blob/master/config/default.yml)
30
+ 1. The settings from this gem, [link](https://github.com/replaygaming/rubocop-replaypoker/blob/master/config/default.yml)
31
+ 2. The auto-gen-config (see in your project `.rubocop_todo.yml`)
32
+ * This file is auto generated by rubocop with the command `bundler exec rubocop --auto-gen-config` and stub all the warnings from rubocop.
33
+ * Keep this file empty in the `master` branch
34
+ 3. Project specific settings (see in your project `.rubocop_local_overrides.yml`)
35
+ * rubocop gem have the variety of extra addons which might be added and require some extra settings or the project might require some adjustments against the already defined settings. All of it should be in here.
36
+
37
+ To apply this structure copy [link](https://github.com/rubocop/rubocop/blob/master/templates/.rubocop.yml)
38
+ to your project root.
39
+
40
+ ### Notes && gotchas
41
+
42
+ * Rubocop gem have an awesome auto-correction feature. There are 2 modes: safe & ricky. To run safe option use `bundle exec rubocop -a` and for ricky use `bundle exec rubocop -A`.
43
+ * Some rubocop cops depend on the settings from another cops (`Layout/LineLength` cop is a great example), so if you added some code which break this cop and there is no way to auto-correct it and then executed `bundler exec rubocop auto-gen-config` it produce the new cop `Max` setting and it would be applied all the dependencies. It might produce a lot of unwanted changes.
44
+ * Because of the previous trait i recommend to `git commit` all your changes and run rubocop afterwards, and then apply the changes with something like `git add . && git commit --amend --no-edit`
26
45
 
27
46
  ## Development
28
47
 
@@ -34,7 +53,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
34
53
 
35
54
  Bug reports and pull requests are welcome on GitHub at https://github.com/replaypoker/rubocop-replaypoker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/replaypoker/rubocop-replaypoker/blob/master/CODE_OF_CONDUCT.md).
36
55
 
37
-
38
56
  ## License
39
57
 
40
58
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Replaypoker
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_runtime_dependency 'rubocop', '~> 1.15.0'
28
- spec.add_runtime_dependency 'rubocop-rspec', '~> 2.3.0'
27
+ spec.add_runtime_dependency 'rubocop', '~> 1.22.0'
28
+ spec.add_runtime_dependency 'rubocop-rspec', '~> 2.6.0'
29
29
  end
30
30
 
@@ -0,0 +1,13 @@
1
+ ---
2
+ inherit_mode:
3
+ merge:
4
+ - Exclude
5
+ - IgnoredMethods
6
+
7
+ inherit_gem:
8
+ rubocop-replaypoker:
9
+ - config/default.yml
10
+
11
+ inherit_from:
12
+ - .rubocop_todo.yml
13
+ - .rubocop_local_overrides.yml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-replaypoker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.15.0
19
+ version: 1.22.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.15.0
26
+ version: 1.22.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.0
33
+ version: 2.6.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: 2.3.0
40
+ version: 2.6.0
41
41
  description: Replaypoker rubocop config.
42
42
  email:
43
43
  - kvokka@yahoo.com
@@ -63,6 +63,7 @@ files:
63
63
  - lib/rubocop/replaypoker/inject.rb
64
64
  - lib/rubocop/replaypoker/version.rb
65
65
  - rubocop-replaypoker.gemspec
66
+ - templates/.rubocop.yml
66
67
  homepage: https://github.com/replaygaming/rubocop-replaypoker
67
68
  licenses:
68
69
  - MIT