rf-stylez 0.4.1 → 0.5.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/README.md +11 -3
- data/lib/rf/stylez/version.rb +1 -1
- data/rails/rubocop.yml +1 -0
- data/rf-stylez.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05a16ca2326a623f6caff7a3989ceca3d08ba53324de71c0c34fe780821aaebb
|
|
4
|
+
data.tar.gz: 8139f2d31d10c1ad17fb616bd5a91b17dbeaf1d68fe24bf47590d7dc673fca34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8a9ebb0ed26c14273c17368d7b2ad697ddf26159a15c743673bcaf3bdd0bbc72498eff11a72ea7a56534130084b630ace98bd647bd9555584093eadd3640a30
|
|
7
|
+
data.tar.gz: 18ea1dc2f36c0357963809b5c2ad43d680af5d0bc963c263602b0a94b3fa56179fb7800c869e40413575736001fb7e80b0e014b9ced8adb09593b697becef9b6
|
data/README.md
CHANGED
|
@@ -13,15 +13,23 @@ This is a place for style configurations for [Rainforest QA](https://www.rainfor
|
|
|
13
13
|
|
|
14
14
|
## Adding `rf-stylez` to a new project
|
|
15
15
|
|
|
16
|
+
### For Ruby projects
|
|
16
17
|
Create a `.rubocop.yml` in the root project directory and paste the following:
|
|
17
18
|
```yml
|
|
18
19
|
inherit_gem:
|
|
19
20
|
rf-stylez: ruby/rubocop.yml
|
|
20
|
-
Style/HashSyntax:
|
|
21
|
-
Enabled: true
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
### For Rails projects
|
|
24
|
+
Create a `.rubocop.yml` in the root project directory and paste the following:
|
|
25
|
+
```yml
|
|
26
|
+
inherit_gem:
|
|
27
|
+
rf-stylez:
|
|
28
|
+
- ruby/rubocop.yml
|
|
29
|
+
- rails/rubocop.yml
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
To use it you'll need to install rf-stylez locally:
|
|
25
33
|
```bash
|
|
26
34
|
gem install rf-stylez
|
|
27
35
|
```
|
data/lib/rf/stylez/version.rb
CHANGED
data/rails/rubocop.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require: rubocop-rails
|
data/rf-stylez.gemspec
CHANGED
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
21
|
|
|
22
22
|
spec.add_runtime_dependency 'rubocop', '>= 0.59', '< 0.81'
|
|
23
|
+
spec.add_runtime_dependency 'rubocop-rails', '~> 2.5.0'
|
|
23
24
|
|
|
24
25
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
|
25
26
|
spec.add_development_dependency 'rake', '~> 13.0'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rf-stylez
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emanuel Evans
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -30,6 +30,20 @@ dependencies:
|
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '0.81'
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: rubocop-rails
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: 2.5.0
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 2.5.0
|
|
33
47
|
- !ruby/object:Gem::Dependency
|
|
34
48
|
name: bundler
|
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,6 +142,7 @@ files:
|
|
|
128
142
|
- lib/rubocop/cop/lint/no_untyped_raise.rb
|
|
129
143
|
- lib/rubocop/cop/lint/obscure.rb
|
|
130
144
|
- lib/rubocop/cop/lint/use_positive_int32_validator.rb
|
|
145
|
+
- rails/rubocop.yml
|
|
131
146
|
- rf-stylez.gemspec
|
|
132
147
|
- ruby/rubocop.yml
|
|
133
148
|
- ruby/rubocop_lint.yml
|