gnar-style 0.5.0 → 0.6.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: c222fc1471d241fe62e1afe3046348625896a2aef836a28eca5684a7622e680d
4
- data.tar.gz: 47dba4a6d06015d7d11296fd852a5cd1fc5c7ca1197612e2f329f4e791358c8e
3
+ metadata.gz: 914d7ad97c12ec17319105f392c94eb1a438ca6af3ae13596d332c6fc588f55e
4
+ data.tar.gz: 89f4fd1fb7ba1e97f2b576d1391f801e8eb279169505448b740e7af7193f3287
5
5
  SHA512:
6
- metadata.gz: 3efe3411beb63fc6cb5b2430e34f7e45ccf74919d5db2247d7cae55a057d52886f41b089bdee82a35f8b46d754036e2993007c4c5d3a4ae96432fd6dd4c26f1a
7
- data.tar.gz: 9e159330e68ffa66a74270a5448d702508998789f73deb753c741117a4fcfe19e9ab36b7481d2afa84a2578e920e6d4caa167d37261d654f7e612d3ffe7a6048
6
+ metadata.gz: 5e02261cd29fc55d57fd3ba8e9c7472c4142fa8507184089c2a7ff4751c12a4fc867119907f1e5200474c7b0aa08171a8515db75dd4801b2d68c4aa996892641
7
+ data.tar.gz: 41a466d4a3b62cc98a1538b77dd17db86a9586b60c680193e3f8ba12b6d1a9f97889522e02e461d4c56415cd94a2bb34c310bcf6d189ca74338d5c21b5e3c9b0
@@ -0,0 +1,36 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ - image: circleci/ruby:2.6.2
10
+ environment:
11
+ RAILS_ENV: test
12
+ steps:
13
+ - checkout
14
+
15
+ # Download and cache dependencies
16
+ - restore_cache:
17
+ keys:
18
+ - gnar-style-{{ checksum "gnar-style.gemspec" }}
19
+ # fallback to using the latest cache if no exact match is found
20
+ - gnar-style-
21
+
22
+ # Bundle install dependencies
23
+ - run:
24
+ name: install dependencies
25
+ command: bundle install --path vendor/bundle
26
+
27
+ # Store bundle cache
28
+ - save_cache:
29
+ paths:
30
+ - vendor/bundle
31
+ key: gnar-style-{{ checksum "gnar-style.gemspec" }}
32
+
33
+ # Tests
34
+ - run:
35
+ name: RSpec
36
+ command: bundle exec rspec
@@ -1,13 +1,41 @@
1
1
  ## Current release (in development)
2
2
 
3
+ ## 0.6.0 - 2019-04-23
4
+
5
+ * Remove Style/IfUnlessModifier cop. [#33](https://github.com/TheGnarCo/gnar-style/pull/33)
6
+
7
+ [Kevin Murphy](https://github.com/kevin-j-m)
8
+
9
+ * Allow conditional assignment in ternaries. [#30](https://github.com/TheGnarCo/gnar-style/pull/30)
10
+
11
+ [Andrew Palmer](https://github.com/apalmer0)
12
+
13
+ * Remove non-null database validation default value cop. [#29](https://github.com/TheGnarCo/gnar-style/pull/29)
14
+
15
+ [Andrew Palmer](https://github.com/apalmer0)
16
+
17
+ * Enforce consistent array indentation. [#28](https://github.com/TheGnarCo/gnar-style/pull/28)
18
+
19
+ [Andrew Palmer](https://github.com/apalmer0)
20
+
21
+ * Exclude `bin/` and `node_modules` directories. [#26](https://github.com/TheGnarCo/gnar-style/pull/26)
22
+
23
+ [Zach Fletcher](https://github.com/zfletch)
24
+
25
+ * Expand empty methods. [#23](https://github.com/TheGnarCo/gnar-style/pull/23)
26
+
27
+ [Blake Williams](https://github.com/BlakeWilliams)
28
+
3
29
  ## 0.5.0 - 2018-07-17
4
30
 
5
31
  * Update conditional assignment preferred style. [#20](https://github.com/TheGnarCo/gnar-style/pull/20)
32
+
6
33
  [Kevin Murphy](https://github.com/kevin-j-m)
7
34
 
8
35
  ## 0.4.0 - 2018-03-05
9
36
 
10
37
  * Update trailing comma literal cops for new rubocop version. [#17](https://github.com/TheGnarCo/gnar-style/pull/17)
38
+
11
39
  [Kevin Murphy](https://github.com/kevin-j-m)
12
40
 
13
41
  ## 0.3.0 - 2017-11-03
data/README.md CHANGED
@@ -120,6 +120,10 @@ gnar-style provides defaults for three different scenarios. You can specify whic
120
120
  * `rubocop_rails.yml` - Styling for use in a rails project.
121
121
  * `rubocop_gem.yml` - Styling for use in a gem.
122
122
 
123
+ ## Philosophy
124
+
125
+ Our adherence to our style guide is based on the general case, and not to ensure there are no exceptions. Our philosophy is to use the guide precisely in that way - as a guide. It's not meant as a command that must be taken, but a suggestion to be considered. To the extent that deviations make sense sometimes - great, deviate. However, having rubocop start the discussion and if nothing else, having the author justify to themselves why this deviation is warranted, can be valuable.
126
+
123
127
  ## Contributing
124
128
 
125
129
  Bug reports and pull requests are welcome on GitHub at https://github.com/TheGnarCo/gnar-style. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -1,5 +1,5 @@
1
1
  module Gnar
2
2
  module Style
3
- VERSION = "0.5.0".freeze
3
+ VERSION = "0.6.0".freeze
4
4
  end
5
5
  end
@@ -1,21 +1,54 @@
1
- Style/StringLiterals:
2
- EnforcedStyle: double_quotes
1
+ Layout/AlignParameters:
2
+ EnforcedStyle: with_fixed_indentation
3
+
4
+ Layout/IndentArray:
5
+ EnforcedStyle: consistent
6
+
7
+ Layout/MultilineMethodCallIndentation:
8
+ EnforcedStyle: indented
9
+
10
+ Metrics/BlockLength:
3
11
  Exclude:
4
- - 'Gemfile'
12
+ - 'spec/**/*'
5
13
 
6
14
  Metrics/LineLength:
7
15
  Max: 100
8
16
  Severity: refactor
9
17
 
18
+ Metrics/ModuleLength:
19
+ Exclude:
20
+ - 'spec/**/*'
21
+
22
+ Rails/NotNullColumn:
23
+ Enabled: false
24
+
10
25
  Style/ConditionalAssignment:
11
26
  EnforcedStyle: assign_inside_condition
27
+ IncludeTernaryExpressions: false
28
+
29
+ Style/Documentation:
30
+ Enabled: false
31
+
32
+ Style/EmptyMethod:
33
+ EnforcedStyle: expanded
12
34
 
13
35
  Style/FrozenStringLiteralComment:
14
36
  Enabled: false
15
37
 
16
- Style/Documentation:
38
+ Style/IfUnlessModifier:
39
+ Enabled: false
40
+
41
+ Style/ParenthesesAroundCondition:
17
42
  Enabled: false
18
43
 
44
+ Style/StringLiterals:
45
+ EnforcedStyle: double_quotes
46
+ Exclude:
47
+ - 'Gemfile'
48
+
49
+ Style/SymbolArray:
50
+ EnforcedStyle: brackets
51
+
19
52
  Style/TrailingCommaInArguments:
20
53
  EnforcedStyleForMultiline: comma
21
54
 
@@ -24,23 +57,3 @@ Style/TrailingCommaInArrayLiteral:
24
57
 
25
58
  Style/TrailingCommaInHashLiteral:
26
59
  EnforcedStyleForMultiline: comma
27
-
28
- Style/SymbolArray:
29
- EnforcedStyle: brackets
30
-
31
- Style/ParenthesesAroundCondition:
32
- Enabled: false
33
-
34
- Layout/MultilineMethodCallIndentation:
35
- EnforcedStyle: indented
36
-
37
- Layout/AlignParameters:
38
- EnforcedStyle: with_fixed_indentation
39
-
40
- Metrics/BlockLength:
41
- Exclude:
42
- - 'spec/**/*'
43
-
44
- Metrics/ModuleLength:
45
- Exclude:
46
- - 'spec/**/*'
@@ -3,6 +3,8 @@ inherit_from: rubocop.yml
3
3
  AllCops:
4
4
  Exclude:
5
5
  - db/schema.rb
6
+ - 'bin/**/*'
7
+ - 'node_modules/**/*'
6
8
  - 'vendor/**/*'
7
9
 
8
10
  Rails:
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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Gnar Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-17 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -88,6 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - ".circleci/config.yml"
91
92
  - ".gitignore"
92
93
  - ".rspec"
93
94
  - ".rubocop.yml"
@@ -126,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  - !ruby/object:Gem::Version
127
128
  version: '0'
128
129
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.7.7
130
+ rubygems_version: 3.0.3
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Style guide default configuration for The Gnar Company