rubochief 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce02d4a886b8ed0c62f0e83cd2a3e493d2bcd2b8
4
- data.tar.gz: a22cc58f95c97da32873bbf23c07cab870d86ef7
3
+ metadata.gz: 70225d141fb275ec559979224cdf6c3561f6eebf
4
+ data.tar.gz: 4afaccfdeb697328100df1c3bc601d15ce0601a0
5
5
  SHA512:
6
- metadata.gz: b813d4819d5a7563f29766411fac5eeea2f39f7532e600a2faf903bd1a7860643ee22f9bac48343f1ed91d91942cc1ba48c3f5169a659e014b32af6ffad4e776
7
- data.tar.gz: 7eb0780fd2543a8ee84e296ede95123002b1e3e3e42c30b719dd00c33d189ca28f9ac491805ee249674d4f6d03c2336646682bd40b4021dc2e89379da004f546
6
+ metadata.gz: cde7eefaf09f1735e32f57d61010264e8b929c4b31e1fa716bc8b11e00c7cfd2b7f27a2e1cf37e2bcb66f0cee3921815ee2b6593d4992d02d671e24be2fde5c1
7
+ data.tar.gz: 1abd03d32d562acdc1a1b84560ef90466a2bf051ed576c8574d068be5744ef2092cf5b84417709253b404ddddf13653ffaf5d927afedaf0ad7bb6315e961a5cc
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ [![Gem Version](https://badge.fury.io/rb/rubochief.svg)](https://badge.fury.io/rb/rubochief)
2
+
3
+ # Rubochief
4
+
5
+ Keep your rubocop config in one place and share it across all your Ruby projects.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rubochief'
13
+ ```
14
+
15
+ And then execute:
16
+ ```bash
17
+ $ bundle
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Add the following to the top of `.rubocop.yml` in the route of your project.
23
+
24
+ ```yaml
25
+ inherit_gem:
26
+ rubochief: .rubocop.yml
27
+ ```
28
+
29
+ See https://github.com/bbatsov/ruby-style-guide for style recommendations and http://rubocop.readthedocs.io/en/latest/basic_usage/ for full instructions on how to use the [rubocop](https://github.com/bbatsov/rubocop/) gem.
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Petecass/rubochief.
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/rubochief.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rubochief'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.date = '2017-05-18'
5
5
  s.summary = 'A centralized rubocop config'
6
6
  s.description = 'Configuration files for rubocop to keep styles consistent' \
data/rubochief.yml ADDED
@@ -0,0 +1,72 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+ DisplayStyleGuide: true
4
+ ExtraDetails: true
5
+ UseCache: true
6
+ Exclude:
7
+ - db/**
8
+
9
+ Rails/ActionFilter:
10
+ Enabled: true
11
+ Rails/Blank:
12
+ Enabled: true
13
+ Rails/Delegate:
14
+ Enabled: true
15
+ Rails/DelegateAllowBlank:
16
+ Enabled: true
17
+ Rails/DynamicFindBy:
18
+ Enabled: true
19
+ Rails/Exit:
20
+ Enabled: true
21
+ Rails/FilePath:
22
+ Enabled: true
23
+ Rails/FindBy:
24
+ Enabled: true
25
+ Rails/FindEach:
26
+ Enabled: true
27
+ Rails/HasAndBelongsToMany:
28
+ Enabled: true
29
+ Rails/NotNullColumn:
30
+ Enabled: true
31
+ Rails/Output:
32
+ Enabled: true
33
+ Rails/OutputSafety:
34
+ Enabled: true
35
+ Rails/Present:
36
+ Enabled: true
37
+ Rails/ReadWriteAttribute:
38
+ Enabled: true
39
+ Rails/RelativeDateConstant:
40
+ Enabled: true
41
+ Rails/ReversibleMigration:
42
+ Enabled: true
43
+ Rails/SaveBang:
44
+ Enabled: true
45
+ Rails/ScopeArgs:
46
+ Enabled: true
47
+ Rails/SkipsModelValidations:
48
+ Enabled: true
49
+ Rails/UniqBeforePluck:
50
+ Enabled: true
51
+ Rails/Validation:
52
+ Enabled: true
53
+
54
+ Metrics/BlockLength:
55
+ Exclude:
56
+ - test/**/**
57
+
58
+ Metrics/ClassLength:
59
+ Exclude:
60
+ - test/**/**
61
+
62
+ Metrics/LineLength:
63
+ Max: 120
64
+
65
+ Metrics/MethodLength:
66
+ Max: 10
67
+
68
+ Style/ClassAndModuleChildren:
69
+ Enabled: false
70
+
71
+ Style/SpaceAroundEqualsInParameterDefault:
72
+ EnforcedStyle: no_space
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubochief
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
  - Pete Cass
@@ -60,8 +60,9 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
- - ".rubocop.yml"
63
+ - README.md
64
64
  - rubochief.gemspec
65
+ - rubochief.yml
65
66
  homepage: https://github.com/Petecass/rubochief
66
67
  licenses:
67
68
  - MIT
data/.rubocop.yml DELETED
@@ -1,15 +0,0 @@
1
- AllCops:
2
- DisplayCopNames: true
3
- DisplayStyleGuide: true
4
- ExtraDetails: true
5
- UseCache: true
6
-
7
- Metrics/LineLength:
8
- Max: 120
9
- Metrics/MethodLength:
10
- Max: 10
11
-
12
- # No space makes the method definition shorter and differentiates
13
- # from a regular assignment.
14
- Style/SpaceAroundEqualsInParameterDefault:
15
- EnforcedStyle: no_space