spicerack-styleguide 0.22.2 → 0.22.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/generators/spicerack/styleguide/USAGE +8 -0
- data/lib/generators/spicerack/styleguide/styleguide_generator.rb +13 -0
- data/lib/generators/spicerack/styleguide/templates/.rubocop.yml.erb +3 -0
- data/lib/spicerack/styleguide.rb +2 -0
- data/lib/spicerack/styleguide/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7775573bfe5efa60bef060a2c8bfc7582dd64ce5c294c5a8b6f660cf9ee19620
|
4
|
+
data.tar.gz: '094ca940026450e7a55038da2be9bcbab44987247209db0a064ecf4f72bf712e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342625c20502ec8a9c725ebc79dc9912a24f75efa71f2cf39d1a59bcdcc2a198be4e14324213da8faa9b06515ec15ee323ebf9c8df1a69aee556dfb80c5f9441
|
7
|
+
data.tar.gz: af6d2775b03f9f7e1961c8c55e7fcccca5f7b6bbbf905ec687df8030559c2effbb1ee8bee976ad66dc29e3eb5ea790dc4ae5288e11d7f7c2535fc66c216e3d8a
|
data/README.md
CHANGED
@@ -31,6 +31,12 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
## Usage
|
33
33
|
|
34
|
+
If your project doesn't have a rubocop file yet (and it's a Rails project), this generator will your life a little easier:
|
35
|
+
```
|
36
|
+
$ rails g spicerack:spicerack
|
37
|
+
create .rubocop.yml
|
38
|
+
```
|
39
|
+
|
34
40
|
Add the following to the top of your rubocop.yml file - this will set your default Rubocop rules to anything we've set (which is most everything).
|
35
41
|
|
36
42
|
```yaml
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spicerack
|
4
|
+
module Generators
|
5
|
+
class StyleguideGenerator < Rails::Generators::Base
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
def create_initializer
|
9
|
+
template ".rubocop.yml.erb", File.join(".rubocop.yml")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/spicerack/styleguide.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spicerack-styleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.
|
4
|
+
version: 0.22.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Rettberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -77,6 +77,9 @@ files:
|
|
77
77
|
- ".yardopts"
|
78
78
|
- LICENSE.txt
|
79
79
|
- README.md
|
80
|
+
- lib/generators/spicerack/styleguide/USAGE
|
81
|
+
- lib/generators/spicerack/styleguide/styleguide_generator.rb
|
82
|
+
- lib/generators/spicerack/styleguide/templates/.rubocop.yml.erb
|
80
83
|
- lib/spicerack/styleguide.rb
|
81
84
|
- lib/spicerack/styleguide/version.rb
|
82
85
|
- rubocop.yml
|
@@ -87,7 +90,7 @@ metadata:
|
|
87
90
|
homepage_uri: https://github.com/Freshly/spicerack/tree/master/spicerack-styleguide
|
88
91
|
source_code_uri: https://github.com/Freshly/spicerack/tree/master/spicerack-styleguide
|
89
92
|
changelog_uri: https://github.com/Freshly/spicerack/blob/master/spicerack-styleguide/CHANGELOG.md
|
90
|
-
documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.22.
|
93
|
+
documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.22.3.1
|
91
94
|
post_install_message:
|
92
95
|
rdoc_options: []
|
93
96
|
require_paths:
|