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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9b252c9b1e318ece69deb47f2e0bc1db4431964e45a4aa444c11c6f07f3dd57
4
- data.tar.gz: 1ac204185c6ed17674f7f2a288ab114c23884b78d9c9f494d5a8cb12752fd52f
3
+ metadata.gz: 7775573bfe5efa60bef060a2c8bfc7582dd64ce5c294c5a8b6f660cf9ee19620
4
+ data.tar.gz: '094ca940026450e7a55038da2be9bcbab44987247209db0a064ecf4f72bf712e'
5
5
  SHA512:
6
- metadata.gz: 21d6fff8e2d676242ab3390a391f37ed4b5d3e1eccdb09d1b250ff52e7407f9f5aaf7c9c6074bad64859bd9874bddd44a180967de2c0f53818568f8983cbfd0b
7
- data.tar.gz: db75514a582e84392a9053c4e174930d1fede8001ff5b4147b0f7bedb3cbe1bce3bc0b7f1e0d0e2a5ba57e7a8d3d72a44e3a60a7f196068b3fbd37a3516a4903
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,8 @@
1
+ Description:
2
+ Generate the derived Spicerack::Styleguide rubocop file
3
+
4
+ Example:
5
+ `rails generate spicerack:styleguide`
6
+
7
+ Generates:
8
+ Rubocop: .rubocop.yml
@@ -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
@@ -0,0 +1,3 @@
1
+ inherit_gem:
2
+ spicerack-styleguide:
3
+ - rubocop.yml
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "spicerack/styleguide/version"
2
4
 
3
5
  module Spicerack
@@ -3,6 +3,6 @@
3
3
  module Spicerack
4
4
  module Styleguide
5
5
  # This constant is managed by spicerack
6
- VERSION = "0.22.2"
6
+ VERSION = "0.22.3.1"
7
7
  end
8
8
  end
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.2
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-01-29 00:00:00.000000000 Z
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.2
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: