wonder-ruby-style 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c81256409090df395fb10601b3f4c1def2278f6
4
- data.tar.gz: 3c39a21235fb78f41be5038f6d3673b38c9856ca
3
+ metadata.gz: 3c3cec009334f4c254026eeea60610baa72369ea
4
+ data.tar.gz: 3900dd319595b9190970a6fc41ffd10d5c4ecd70
5
5
  SHA512:
6
- metadata.gz: 4d028f0d7ce054d77f2ef138beb48b2e9f5ea86b320e861ab605cd973fa94769292a684cf565e21be9ae4afa63c4641a6f6ce28c73148816f1bfeaa88ef75797
7
- data.tar.gz: e921d62adc6cf7f2e2bd814b9fad1ec26127130c967c39d2380080019e96db43c0968fed3f16f378b8fcfd4a1e8397ec3b54505c6ebb5ec1ba65f77f8d3d2a22
6
+ metadata.gz: a2952c4398073929e811dbbc192f6bec6e6a8e14d1b98c057bcd9b8136e77563a5711178a5d6b27299d8ce2705c8232fb3f271c6888a23e5bd751efa852b7bfa
7
+ data.tar.gz: 14a6f48ba345e8f0a3273a828997aefd01705d2215b9330cbb1980f09d427e65d719905bbc77f7306dc7f12c20951766a9c57bf0c5648ea4d57634a664be98f4
@@ -13,6 +13,7 @@ AllCops:
13
13
  - 'spec/fixtures/**/*'
14
14
  - 'tmp/**/*'
15
15
  - 'vendor/**/*'
16
+ - 'lib/datasource_config.rb'
16
17
 
17
18
  #################### Lint ################################
18
19
 
@@ -29,11 +30,6 @@ Lint/AmbiguousRegexpLiteral:
29
30
  a method invocation without parenthesis.
30
31
  Enabled: true
31
32
 
32
- Lint/AmbiguousBlockAssociation:
33
- Enabled: true
34
- Exclude:
35
- - 'spec/**/*.rb'
36
-
37
33
  Lint/AssignmentInCondition:
38
34
  Description: "Don't use assignment in conditions."
39
35
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
@@ -223,14 +219,6 @@ Lint/Void:
223
219
 
224
220
  ###################### Metrics ####################################
225
221
 
226
- Metrics/AbcSize:
227
- Description: >-
228
- A calculated magnitude based on number of assignments,
229
- branches, and conditions.
230
- Reference: 'http://c2.com/cgi/wiki?AbcMetric'
231
- Enabled: true
232
- Max: 20
233
-
234
222
  Metrics/BlockNesting:
235
223
  Description: 'Avoid excessive block nesting'
236
224
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
@@ -777,13 +765,6 @@ Layout/MultilineOperationIndentation:
777
765
  one line.
778
766
  Enabled: true
779
767
 
780
- Style/MultilineTernaryOperator:
781
- Description: >-
782
- Avoid multi-line ?: (the ternary operator);
783
- use if/unless instead.
784
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
785
- Enabled: true
786
-
787
768
  Style/NegatedIf:
788
769
  Description: >-
789
770
  Favor unless over if for negative conditions
data/README.md CHANGED
@@ -49,6 +49,12 @@ prepare:
49
49
  fetch:
50
50
  - url: "https://raw.githubusercontent.com/wondersistemas/wonder-ruby-style/master/.rubocop.yml"
51
51
  path: ".rubocop.yml"
52
+
53
+ # necessário também alterar a versão do rubocop para 0.49.1
54
+ engines:
55
+ rubocop:
56
+ enabled: true
57
+ channel: rubocop-0-49-1
52
58
  ```
53
59
 
54
60
  O serviço então irá baixar e reescrever o arquivo `.rubocop.yml` com o conteúdo da url.
@@ -1,7 +1,7 @@
1
1
  module Wonder
2
2
  module Ruby
3
3
  module Style
4
- VERSION = '0.0.2'.freeze
4
+ VERSION = '0.0.3'.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.2
4
+ version: 0.0.3
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-26 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop