best_practice_project 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +20 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/VERSION +1 -1
- data/lib/best_practice_project/config/rubocop.yml +20 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1262566147fb0ec6caedafa693311370b98693a0
|
4
|
+
data.tar.gz: ad0204d78688a0784a360b3d286fd122312a0829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3285a4e458b85ed4073c20a30935e09dad13a4da2de41219ad7521a04d3b3d888341d085877b9328576785b44fcbf5be8ed2667dc701491fdc5036c26f58d6d6
|
7
|
+
data.tar.gz: 90ba417526a15e2a3bf350bf4a91e9a5bc0ce6387605d74897e7995d9552bef880ddf982f87540a7d6ae205825be923ffbd0e937ddc7397bf06a3abf0209a517
|
data/.rubocop.yml
CHANGED
@@ -9,6 +9,9 @@ AllCops:
|
|
9
9
|
Style/FileName:
|
10
10
|
Enabled: false
|
11
11
|
|
12
|
+
Metrics/CyclomaticComplexity:
|
13
|
+
Max: 10
|
14
|
+
|
12
15
|
Metrics/LineLength:
|
13
16
|
Max: 160
|
14
17
|
|
@@ -21,9 +24,16 @@ Metrics/AbcSize:
|
|
21
24
|
Metrics/ClassLength:
|
22
25
|
Max: 250
|
23
26
|
|
27
|
+
# .find_each is not the same as .each
|
28
|
+
Rails/FindEach:
|
29
|
+
Enabled: false
|
30
|
+
|
24
31
|
Style/AccessModifierIndentation:
|
25
32
|
EnforcedStyle: outdent
|
26
33
|
|
34
|
+
Style/AlignParameters:
|
35
|
+
EnforcedStyle: with_fixed_indentation
|
36
|
+
|
27
37
|
Style/ClassAndModuleChildren:
|
28
38
|
EnforcedStyle: compact
|
29
39
|
|
@@ -36,6 +46,16 @@ Style/Documentation:
|
|
36
46
|
Style/EmptyLines:
|
37
47
|
Enabled: false
|
38
48
|
|
49
|
+
# Will report offences for many places that are much more readable without using a guard clause
|
50
|
+
Style/GuardClause:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Style/MultilineMethodCallIndentation:
|
54
|
+
EnforcedStyle: indented
|
55
|
+
|
56
|
+
Style/MultilineOperationIndentation:
|
57
|
+
EnforcedStyle: indented
|
58
|
+
|
39
59
|
Style/StringLiterals:
|
40
60
|
EnforcedStyle: double_quotes
|
41
61
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
addressable (2.3.8)
|
5
|
-
auto_autoloader (0.0.
|
5
|
+
auto_autoloader (0.0.5)
|
6
6
|
string-cases
|
7
7
|
builder (3.2.2)
|
8
8
|
descendants_tracker (0.0.4)
|
@@ -62,14 +62,14 @@ GEM
|
|
62
62
|
json (~> 1.8)
|
63
63
|
simplecov-html (~> 0.10.0)
|
64
64
|
simplecov-html (0.10.0)
|
65
|
-
string-cases (0.0.
|
65
|
+
string-cases (0.0.4)
|
66
66
|
thread_safe (0.3.5)
|
67
67
|
|
68
68
|
PLATFORMS
|
69
69
|
ruby
|
70
70
|
|
71
71
|
DEPENDENCIES
|
72
|
-
auto_autoloader
|
72
|
+
auto_autoloader (>= 0.0.5)
|
73
73
|
bundler (~> 1.0)
|
74
74
|
jeweler (~> 2.0.1)
|
75
75
|
rdoc (~> 3.12)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -9,6 +9,9 @@ AllCops:
|
|
9
9
|
Style/FileName:
|
10
10
|
Enabled: false
|
11
11
|
|
12
|
+
Metrics/CyclomaticComplexity:
|
13
|
+
Max: 10
|
14
|
+
|
12
15
|
Metrics/LineLength:
|
13
16
|
Max: 160
|
14
17
|
|
@@ -21,9 +24,16 @@ Metrics/AbcSize:
|
|
21
24
|
Metrics/ClassLength:
|
22
25
|
Max: 250
|
23
26
|
|
27
|
+
# .find_each is not the same as .each
|
28
|
+
Rails/FindEach:
|
29
|
+
Enabled: false
|
30
|
+
|
24
31
|
Style/AccessModifierIndentation:
|
25
32
|
EnforcedStyle: outdent
|
26
33
|
|
34
|
+
Style/AlignParameters:
|
35
|
+
EnforcedStyle: with_fixed_indentation
|
36
|
+
|
27
37
|
Style/ClassAndModuleChildren:
|
28
38
|
EnforcedStyle: compact
|
29
39
|
|
@@ -36,6 +46,16 @@ Style/Documentation:
|
|
36
46
|
Style/EmptyLines:
|
37
47
|
Enabled: false
|
38
48
|
|
49
|
+
# Will report offences for many places that are much more readable without using a guard clause
|
50
|
+
Style/GuardClause:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Style/MultilineMethodCallIndentation:
|
54
|
+
EnforcedStyle: indented
|
55
|
+
|
56
|
+
Style/MultilineOperationIndentation:
|
57
|
+
EnforcedStyle: indented
|
58
|
+
|
39
59
|
Style/StringLiterals:
|
40
60
|
EnforcedStyle: double_quotes
|
41
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: best_practice_project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: auto_autoloader
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.0.5
|
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:
|
26
|
+
version: 0.0.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|