wonder-ruby-style 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 9bb7d3d657d37861a7a48884b6d9b9908ebaa70d
4
- data.tar.gz: c25031e17b39874994c80e5c487e6cf2b6eed39c
3
+ metadata.gz: 2c81256409090df395fb10601b3f4c1def2278f6
4
+ data.tar.gz: 3c39a21235fb78f41be5038f6d3673b38c9856ca
5
5
  SHA512:
6
- metadata.gz: 3fe79351c7c43368bc96a0d92c2ec83fa0c236eb202c66482306f1062c9c03cb8ecb0236dca42371e285a1d67567f63b4b06daf7c7cbf308edd702a36f5a42b2
7
- data.tar.gz: 6bbf2e4730354afbb4a7de02b9952cdf4344633a6a38ab662cb6c1c3b4118e52599d6fff517af8629da06510c245a08c739d87fbd9760142a47758698204cb06
6
+ metadata.gz: 4d028f0d7ce054d77f2ef138beb48b2e9f5ea86b320e861ab605cd973fa94769292a684cf565e21be9ae4afa63c4641a6f6ce28c73148816f1bfeaa88ef75797
7
+ data.tar.gz: e921d62adc6cf7f2e2bd814b9fad1ec26127130c967c39d2380080019e96db43c0968fed3f16f378b8fcfd4a1e8397ec3b54505c6ebb5ec1ba65f77f8d3d2a22
@@ -5,7 +5,7 @@ AllCops:
5
5
  - Rakefile
6
6
  - lib/**/*.rake
7
7
  DisabledByDefault: true
8
- TargetRubyVersion: 2.4.1
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 'percy-style'
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.
@@ -1,7 +1,7 @@
1
1
  module Wonder
2
2
  module Ruby
3
3
  module Style
4
- VERSION = '0.0.1'.freeze
4
+ VERSION = '0.0.2'.freeze
5
5
  end
6
6
  end
7
7
  end
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.1
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-21 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop