wonder-ruby-style 0.0.1 → 0.0.2
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/.rubocop.yml +1 -6
- data/README.md +14 -1
- data/lib/wonder/ruby/style/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c81256409090df395fb10601b3f4c1def2278f6
|
|
4
|
+
data.tar.gz: 3c39a21235fb78f41be5038f6d3673b38c9856ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d028f0d7ce054d77f2ef138beb48b2e9f5ea86b320e861ab605cd973fa94769292a684cf565e21be9ae4afa63c4641a6f6ce28c73148816f1bfeaa88ef75797
|
|
7
|
+
data.tar.gz: e921d62adc6cf7f2e2bd814b9fad1ec26127130c967c39d2380080019e96db43c0968fed3f16f378b8fcfd4a1e8397ec3b54505c6ebb5ec1ba65f77f8d3d2a22
|
data/.rubocop.yml
CHANGED
|
@@ -5,7 +5,7 @@ AllCops:
|
|
|
5
5
|
- Rakefile
|
|
6
6
|
- lib/**/*.rake
|
|
7
7
|
DisabledByDefault: true
|
|
8
|
-
TargetRubyVersion: 2.4
|
|
8
|
+
TargetRubyVersion: 2.4
|
|
9
9
|
Exclude:
|
|
10
10
|
- '*.gemspec'
|
|
11
11
|
- 'coverage/**/*'
|
|
@@ -671,11 +671,6 @@ Style/GlobalVars:
|
|
|
671
671
|
Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
|
|
672
672
|
Enabled: true
|
|
673
673
|
|
|
674
|
-
Style/GuardClause:
|
|
675
|
-
Description: 'Check for conditionals that can be replaced with guard clauses'
|
|
676
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
|
677
|
-
Enabled: true
|
|
678
|
-
|
|
679
674
|
Style/HashSyntax:
|
|
680
675
|
Description: >-
|
|
681
676
|
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ end
|
|
|
15
15
|
Ou, se for uma biblioteca Ruby, adicione ao gemspec:
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
spec.add_development_dependency '
|
|
18
|
+
spec.add_development_dependency 'wonder-ruby-style'
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
E então execute:
|
|
@@ -40,4 +40,17 @@ E então execute:
|
|
|
40
40
|
$ bundle exec rubocop
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
# CodeClimate
|
|
44
|
+
|
|
45
|
+
Para manter compatibilidade com o serviço do CodeClimate é necessário adicionar uma regra ao arquivo `.codeclimate.yml`.
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
prepare:
|
|
49
|
+
fetch:
|
|
50
|
+
- url: "https://raw.githubusercontent.com/wondersistemas/wonder-ruby-style/master/.rubocop.yml"
|
|
51
|
+
path: ".rubocop.yml"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
O serviço então irá baixar e reescrever o arquivo `.rubocop.yml` com o conteúdo da url.
|
|
55
|
+
|
|
43
56
|
Não é necessário incluir a gem rubocop nas dependências da sua aplicação.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wonder-ruby-style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wonder Sistemas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|