degica-style 0.1.0 → 0.1.1

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: e71c155429cd1d08623e30880a79a70fdcc5fa0c
4
- data.tar.gz: 985792a3cb5762504107e31ac94884c0a729f85e
3
+ metadata.gz: 0adc6af6a83250985074077d9791557e7544f71c
4
+ data.tar.gz: 1e37c3b0a800f578d38b5de264ce5358a792ed7d
5
5
  SHA512:
6
- metadata.gz: faffa0b30dd0c218c20efdb4a3af3b25ba02da606c0db00ae7028720295066f5ddfba5fad8b02e66287c4753c425f5d65143373b641329c66be7ffa7d3becd9d
7
- data.tar.gz: 1b013c8bef22dade626eec3c8256cdcf1fb6919624e01c5826b53ee5535a145c15ed6738b6058f02f5fe33a4bd10b0c44a5c20cc9017c6fd27bd0c5bd7e30d73
6
+ metadata.gz: 1b4abeb792e1c82b9d2dcf9f7ab3db61e66864b37a6eba33f6dd7aaf3c80283c59804d25392b50b8f43d11ade8c9348ecd65ebc8cb704165d3669a4518edb214
7
+ data.tar.gz: 3ccda5693df04547b3395e2ddf139c50291d1df9d36009bd715f8f5f1d55a2b92280a44453605f09bfc10b45817be02d688734c2d88fdb0ebf3b477a100fcea4
data/README.md CHANGED
@@ -24,6 +24,7 @@ Create a `.rubocop.yml` with the following directives:
24
24
  inherit_gem:
25
25
  degica-style:
26
26
  - default.yml
27
+ - rails.yml
27
28
  ```
28
29
 
29
30
  Run:
@@ -1,6 +1,3 @@
1
- Rails:
2
- Enabled: true
3
-
4
1
  AllCops:
5
2
  Exclude:
6
3
  - db/**/*
@@ -11,22 +8,10 @@ AllCops:
11
8
  - node_modules/**/*
12
9
  TargetRubyVersion: 2.4
13
10
 
14
- Rails/UniqBeforePluck:
15
- Enabled: true
16
- EnforcedStyle: aggressive
17
-
18
- Rails/SkipsModelValidations:
19
- Enabled: true
20
- Exclude:
21
- - 'lib/tasks/dev.rake'
22
- - 'spec/**/*'
23
- - 'drivers/*/spec/**/*'
24
-
25
- Rails/SafeNavigation:
11
+ Style/SafeNavigation:
26
12
  Enabled: true
27
- ConvertTry: true
28
13
 
29
- Metrics/LineLength:
14
+ Layout/LineLength:
30
15
  Max: 130
31
16
  IgnoreCopDirectives: true
32
17
  Exclude:
@@ -52,10 +37,6 @@ Style/TernaryParentheses:
52
37
  # CANNED RULES
53
38
  ########################
54
39
 
55
- Naming/PredicateName:
56
- NameWhitelist:
57
- - has_attachment
58
-
59
40
  # Style preference - Richard
60
41
  Layout/CaseIndentation:
61
42
  Enabled: false
@@ -85,11 +66,6 @@ Lint/AssignmentInCondition:
85
66
  Naming/MemoizedInstanceVariableName:
86
67
  Enabled: false
87
68
 
88
- # Preferred style - Nick
89
- # Rails guide uses explicit - Richard
90
- Rails/RedundantReceiverInWithOptions:
91
- Enabled: false
92
-
93
69
  # Use responsibly - Alessandro
94
70
  Style/ParallelAssignment:
95
71
  Enabled: false
@@ -112,7 +88,7 @@ Lint/AmbiguousBlockAssociation:
112
88
  - spec/**/*
113
89
  - drivers/*/spec/**/*
114
90
 
115
- Lint/HandleExceptions:
91
+ Lint/SuppressedException:
116
92
  Enabled: true
117
93
  Exclude:
118
94
  - spec/**/*
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'rubocop', '0.66.0'
23
+ spec.add_dependency 'rubocop', '0.86.0'
24
+ spec.add_dependency 'rubocop-rails', '2.6.0'
24
25
  spec.add_development_dependency 'rake', '~> 10.0'
25
26
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Degica
4
4
  module Style
5
- VERSION = '0.1.0'.freeze
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
@@ -0,0 +1,18 @@
1
+ require: rubocop-rails
2
+
3
+ Rails:
4
+ Enabled: true
5
+
6
+ Rails/UniqBeforePluck:
7
+ Enabled: true
8
+ EnforcedStyle: aggressive
9
+
10
+ Rails/SkipsModelValidations:
11
+ Enabled: true
12
+ Exclude:
13
+ - 'lib/tasks/dev.rake'
14
+ - 'spec/**/*'
15
+ - 'drivers/*/spec/**/*'
16
+
17
+ Rails/RedundantReceiverInWithOptions:
18
+ Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: degica-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Shirai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-14 00:00:00.000000000 Z
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.66.0
19
+ version: 0.86.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: 0.66.0
26
+ version: 0.86.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.6.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.6.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +67,7 @@ files:
53
67
  - default.yml
54
68
  - degica-style.gemspec
55
69
  - lib/degica/style/version.rb
70
+ - rails.yml
56
71
  homepage: https://github.com/degica/degica-style
57
72
  licenses: []
58
73
  metadata: {}