gnar-style 0.7.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +6 -1
- data/.gitignore +0 -1
- data/CHANGELOG.md +42 -0
- data/Gemfile.lock +66 -0
- data/RELEASE_PROCESS.md +1 -0
- data/gnar-style.gemspec +5 -3
- data/lib/gnar/style/version.rb +1 -1
- data/rubocop/rubocop.yml +12 -7
- data/rubocop/rubocop_rails.yml +5 -3
- metadata +42 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21b8d1f98a0a48f425ae8b51a893b4ca7334f7606d5967d53542f66cdfc6c15
|
4
|
+
data.tar.gz: d939908158767f0fc32eee5cea867502abe59b2b46a5a82592b15625f4326ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1657954b0066d0020195e54ac38d32e33ed5dddf07ccdfcfb9f92ee25a28dd38ac1c87a63762c0bb0a1226e04be00c03d2d438e896594906ee51bb4043da5b
|
7
|
+
data.tar.gz: 56467dad958db6b673f9c6aba8624fa5a26a3cf5b73fa9dd966f46428da0690cc40243095b9e1702630b694d384ff1547dbb1532417a943ff5205a394c9bfbc9
|
data/.circleci/config.yml
CHANGED
@@ -19,10 +19,15 @@ jobs:
|
|
19
19
|
# fallback to using the latest cache if no exact match is found
|
20
20
|
- gnar-style-
|
21
21
|
|
22
|
+
# update bundler
|
23
|
+
- run:
|
24
|
+
name: Update bundler
|
25
|
+
command: gem uninstall bundler && gem install bundler
|
26
|
+
|
22
27
|
# Bundle install dependencies
|
23
28
|
- run:
|
24
29
|
name: install dependencies
|
25
|
-
command: bundle
|
30
|
+
command: bundle config set path 'vendor/bundle' && bundle install
|
26
31
|
|
27
32
|
# Store bundle cache
|
28
33
|
- save_cache:
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,47 @@
|
|
1
1
|
## Current release (in development)
|
2
2
|
|
3
|
+
## 0.12.0 - 2020-06-29
|
4
|
+
|
5
|
+
* Enable pending rules by default. [#50](https://github.com/TheGnarCo/gnar-style/pull/50)
|
6
|
+
|
7
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
8
|
+
|
9
|
+
## 0.11.0 - 2020-04-16
|
10
|
+
|
11
|
+
* Enable pending cops from rubocop version 0.80. [#49](https://github.com/TheGnarCo/gnar-style/pull/49)
|
12
|
+
|
13
|
+
[Dan Frenette](https://github.com/danfrenette)
|
14
|
+
|
15
|
+
## 0.10.0 - 2020-01-06
|
16
|
+
|
17
|
+
* Rename Rename line length cop. [#45](https://github.com/TheGnarCo/gnar-style/pull/45)
|
18
|
+
|
19
|
+
[Zach Fletcher](https://github.com/zfletch)
|
20
|
+
|
21
|
+
* Check in Gemfile.lock. [#45](https://github.com/TheGnarCo/gnar-style/pull/45)
|
22
|
+
|
23
|
+
[Zach Fletcher](https://github.com/zfletch)
|
24
|
+
|
25
|
+
## 0.9.0 - 2019-11-27
|
26
|
+
|
27
|
+
* Rename AlignArguments, AlignParameters, IndentFirstArrayElement cops. [#42](https://github.com/TheGnarCo/gnar-style/pull/42)
|
28
|
+
|
29
|
+
[Mike Stone](https://github.com/mikestone14)
|
30
|
+
|
31
|
+
## 0.8.0 - 2019-08-08
|
32
|
+
|
33
|
+
* Include rubocop rails cops. [#41](https://github.com/TheGnarCo/gnar-style/pull/41)
|
34
|
+
|
35
|
+
[Zach Fletcher](https://github.com/zfletch)
|
36
|
+
|
37
|
+
* Remove guard clause cop. [#40](https://github.com/TheGnarCo/gnar-style/pull/40)
|
38
|
+
|
39
|
+
[Taylor Kearns](https://github.com/taylorkearns)
|
40
|
+
|
41
|
+
* Include rubocop performance cops. [#39](https://github.com/TheGnarCo/gnar-style/pull/39)
|
42
|
+
|
43
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
44
|
+
|
3
45
|
## 0.7.0 - 2019-05-21
|
4
46
|
|
5
47
|
* Align method arguments with fixed indentation. [#38](https://github.com/TheGnarCo/gnar-style/pull/38)
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gnar-style (0.12.0)
|
5
|
+
rubocop (~> 0.78)
|
6
|
+
rubocop-performance
|
7
|
+
rubocop-rails (~> 2.2.0)
|
8
|
+
thor
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
ast (2.4.1)
|
14
|
+
diff-lcs (1.3)
|
15
|
+
parallel (1.19.2)
|
16
|
+
parser (2.7.1.4)
|
17
|
+
ast (~> 2.4.1)
|
18
|
+
rack (2.2.3)
|
19
|
+
rainbow (3.0.0)
|
20
|
+
rake (13.0.1)
|
21
|
+
regexp_parser (1.7.1)
|
22
|
+
rexml (3.2.4)
|
23
|
+
rspec (3.9.0)
|
24
|
+
rspec-core (~> 3.9.0)
|
25
|
+
rspec-expectations (~> 3.9.0)
|
26
|
+
rspec-mocks (~> 3.9.0)
|
27
|
+
rspec-core (3.9.1)
|
28
|
+
rspec-support (~> 3.9.1)
|
29
|
+
rspec-expectations (3.9.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.9.0)
|
32
|
+
rspec-mocks (3.9.1)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.9.0)
|
35
|
+
rspec-support (3.9.2)
|
36
|
+
rubocop (0.86.0)
|
37
|
+
parallel (~> 1.10)
|
38
|
+
parser (>= 2.7.0.1)
|
39
|
+
rainbow (>= 2.2.2, < 4.0)
|
40
|
+
regexp_parser (>= 1.7)
|
41
|
+
rexml
|
42
|
+
rubocop-ast (>= 0.0.3, < 1.0)
|
43
|
+
ruby-progressbar (~> 1.7)
|
44
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
45
|
+
rubocop-ast (0.1.0)
|
46
|
+
parser (>= 2.7.0.1)
|
47
|
+
rubocop-performance (1.6.1)
|
48
|
+
rubocop (>= 0.71.0)
|
49
|
+
rubocop-rails (2.2.1)
|
50
|
+
rack (>= 1.1)
|
51
|
+
rubocop (>= 0.72.0)
|
52
|
+
ruby-progressbar (1.10.1)
|
53
|
+
thor (1.0.1)
|
54
|
+
unicode-display_width (1.7.0)
|
55
|
+
|
56
|
+
PLATFORMS
|
57
|
+
ruby
|
58
|
+
|
59
|
+
DEPENDENCIES
|
60
|
+
bundler (~> 2.1)
|
61
|
+
gnar-style!
|
62
|
+
rake (~> 13.0)
|
63
|
+
rspec (~> 3.0)
|
64
|
+
|
65
|
+
BUNDLED WITH
|
66
|
+
2.1.4
|
data/RELEASE_PROCESS.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
* Checkout master: `git checkout master`.
|
2
2
|
* Get latest: `git pull --rebase origin master`
|
3
3
|
* Bump version number in `lib/gnar-style/version.rb`.
|
4
|
+
* Run `bundle install` to ensure the version bump takes in the `Gemfile.lock` file.
|
4
5
|
* Update the [CHANGELOG](CHANGELOG.md), moving the current release work to under the version number.
|
5
6
|
* Create a commit, including the version number in the commit message: `git add
|
6
7
|
--all && git commit -m "Version x.y.z"`.
|
data/gnar-style.gemspec
CHANGED
@@ -19,10 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
22
|
+
spec.add_dependency "rubocop", "~> 0.78"
|
23
|
+
spec.add_dependency "rubocop-performance"
|
24
|
+
spec.add_dependency "rubocop-rails", "~> 2.2.0"
|
23
25
|
spec.add_dependency "thor"
|
24
26
|
|
25
|
-
spec.add_development_dependency "bundler", "~> 1
|
26
|
-
spec.add_development_dependency "rake", "~>
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
28
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
27
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
30
|
end
|
data/lib/gnar/style/version.rb
CHANGED
data/rubocop/rubocop.yml
CHANGED
@@ -1,10 +1,15 @@
|
|
1
|
-
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
|
4
|
+
require: rubocop-performance
|
5
|
+
|
6
|
+
Layout/ArgumentAlignment:
|
2
7
|
EnforcedStyle: with_fixed_indentation
|
3
8
|
|
4
|
-
Layout/
|
9
|
+
Layout/ParameterAlignment:
|
5
10
|
EnforcedStyle: with_fixed_indentation
|
6
11
|
|
7
|
-
Layout/
|
12
|
+
Layout/FirstArrayElementIndentation:
|
8
13
|
EnforcedStyle: consistent
|
9
14
|
|
10
15
|
Layout/MultilineMethodCallIndentation:
|
@@ -14,7 +19,7 @@ Metrics/BlockLength:
|
|
14
19
|
Exclude:
|
15
20
|
- 'spec/**/*'
|
16
21
|
|
17
|
-
|
22
|
+
Layout/LineLength:
|
18
23
|
Max: 100
|
19
24
|
Severity: refactor
|
20
25
|
|
@@ -22,9 +27,6 @@ Metrics/ModuleLength:
|
|
22
27
|
Exclude:
|
23
28
|
- 'spec/**/*'
|
24
29
|
|
25
|
-
Rails/NotNullColumn:
|
26
|
-
Enabled: false
|
27
|
-
|
28
30
|
Style/ConditionalAssignment:
|
29
31
|
EnforcedStyle: assign_inside_condition
|
30
32
|
IncludeTernaryExpressions: false
|
@@ -38,6 +40,9 @@ Style/EmptyMethod:
|
|
38
40
|
Style/FrozenStringLiteralComment:
|
39
41
|
Enabled: false
|
40
42
|
|
43
|
+
Style/GuardClause:
|
44
|
+
Enabled: false
|
45
|
+
|
41
46
|
Style/IfUnlessModifier:
|
42
47
|
Enabled: false
|
43
48
|
|
data/rubocop/rubocop_rails.yml
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
inherit_from: rubocop.yml
|
2
2
|
|
3
|
+
require: rubocop-rails
|
4
|
+
|
3
5
|
AllCops:
|
4
6
|
Exclude:
|
5
7
|
- db/schema.rb
|
@@ -7,9 +9,9 @@ AllCops:
|
|
7
9
|
- 'node_modules/**/*'
|
8
10
|
- 'vendor/**/*'
|
9
11
|
|
10
|
-
Rails:
|
11
|
-
Enabled: true
|
12
|
-
|
13
12
|
Metrics/MethodLength:
|
14
13
|
Exclude:
|
15
14
|
- 'db/migrate/**/*'
|
15
|
+
|
16
|
+
Rails/NotNullColumn:
|
17
|
+
Enabled: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnar-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Gnar Company
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.78'
|
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.
|
26
|
+
version: '0.78'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.2.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.2.0
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: thor
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +72,28 @@ dependencies:
|
|
44
72
|
requirements:
|
45
73
|
- - "~>"
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
75
|
+
version: '2.1'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
82
|
+
version: '2.1'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: rake
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
87
|
- - "~>"
|
60
88
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
89
|
+
version: '13.0'
|
62
90
|
type: :development
|
63
91
|
prerelease: false
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
94
|
- - "~>"
|
67
95
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
96
|
+
version: '13.0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rspec
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +108,7 @@ dependencies:
|
|
80
108
|
- - "~>"
|
81
109
|
- !ruby/object:Gem::Version
|
82
110
|
version: '3.0'
|
83
|
-
description:
|
111
|
+
description:
|
84
112
|
email:
|
85
113
|
- hi@thegnar.co
|
86
114
|
executables:
|
@@ -95,6 +123,7 @@ files:
|
|
95
123
|
- CHANGELOG.md
|
96
124
|
- CODE_OF_CONDUCT.md
|
97
125
|
- Gemfile
|
126
|
+
- Gemfile.lock
|
98
127
|
- LICENSE
|
99
128
|
- README.md
|
100
129
|
- RELEASE_PROCESS.md
|
@@ -113,7 +142,7 @@ homepage: https://github.com/TheGnarCo/gnar-style
|
|
113
142
|
licenses:
|
114
143
|
- MIT
|
115
144
|
metadata: {}
|
116
|
-
post_install_message:
|
145
|
+
post_install_message:
|
117
146
|
rdoc_options: []
|
118
147
|
require_paths:
|
119
148
|
- lib
|
@@ -128,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
157
|
- !ruby/object:Gem::Version
|
129
158
|
version: '0'
|
130
159
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
132
|
-
signing_key:
|
160
|
+
rubygems_version: 3.1.4
|
161
|
+
signing_key:
|
133
162
|
specification_version: 4
|
134
163
|
summary: Style guide default configuration for The Gnar Company
|
135
164
|
test_files: []
|