datarockets-style 0.6.1 → 0.6.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 +5 -5
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +6 -6
- data/README.md +6 -0
- data/config/base.yml +4 -4
- data/doc/STYLE_GUIDE_RSPEC.md +32 -0
- data/lib/datarockets/style/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cf58c59e6d4a4035c60796ef26a8c999cd2003ea58f0b4c3f018a49fd3d5a9c0
|
4
|
+
data.tar.gz: 993b7f3c7e99e6a959c328c9f76630eea7227be1fd53038295c1c2d30a0f1507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8ab4c6b3988709ca2d096defb42478ba657f03603dcd0ca63800769f3106478d228c7e41a208771ffae7a34d53386c5052bc7f0e9dde7c60676be6e7ad48223
|
7
|
+
data.tar.gz: 7b42a8646ba555a70aa9e77b99b729e6fb9f9f8abde73199a219672d5afcbedd02c608461f99a9d7d58a077b6df94188b2b82dace0e517f0613fc32f52b13181
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,17 @@ The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-
|
|
4
4
|
|
5
5
|
## master (unreleased)
|
6
6
|
|
7
|
+
|
8
|
+
## 0.6.2(2019-12-05)
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
* Update rubocop to `0.77.0`.
|
13
|
+
|
14
|
+
## Fixed
|
15
|
+
|
16
|
+
* [#137](https://github.com/datarockets/datarockets-style/issues/137): Usage of rubocop 0.77.0 version causes errors. ([@d.kachur][])
|
17
|
+
|
7
18
|
## 0.6.1 (2019-11-06)
|
8
19
|
|
9
20
|
### Fixed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
datarockets-style (0.6.
|
4
|
+
datarockets-style (0.6.2)
|
5
5
|
rubocop (~> 0.76)
|
6
6
|
rubocop-rspec (~> 1.36)
|
7
7
|
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
diff-lcs (1.3)
|
15
15
|
jaro_winkler (1.5.4)
|
16
16
|
method_source (0.9.2)
|
17
|
-
parallel (1.
|
17
|
+
parallel (1.19.1)
|
18
18
|
parser (2.6.5.0)
|
19
19
|
ast (~> 2.4.0)
|
20
20
|
pry (0.12.2)
|
@@ -24,7 +24,7 @@ GEM
|
|
24
24
|
byebug (~> 11.0)
|
25
25
|
pry (~> 0.10)
|
26
26
|
rainbow (3.0.0)
|
27
|
-
rake (13.0.
|
27
|
+
rake (13.0.1)
|
28
28
|
rspec (3.9.0)
|
29
29
|
rspec-core (~> 3.9.0)
|
30
30
|
rspec-expectations (~> 3.9.0)
|
@@ -38,14 +38,14 @@ GEM
|
|
38
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
39
|
rspec-support (~> 3.9.0)
|
40
40
|
rspec-support (3.9.0)
|
41
|
-
rubocop (0.
|
41
|
+
rubocop (0.77.0)
|
42
42
|
jaro_winkler (~> 1.5.1)
|
43
43
|
parallel (~> 1.10)
|
44
44
|
parser (>= 2.6)
|
45
45
|
rainbow (>= 2.2.2, < 4.0)
|
46
46
|
ruby-progressbar (~> 1.7)
|
47
47
|
unicode-display_width (>= 1.4.0, < 1.7)
|
48
|
-
rubocop-rspec (1.
|
48
|
+
rubocop-rspec (1.37.0)
|
49
49
|
rubocop (>= 0.68.1)
|
50
50
|
ruby-progressbar (1.10.1)
|
51
51
|
unicode-display_width (1.6.0)
|
@@ -60,4 +60,4 @@ DEPENDENCIES
|
|
60
60
|
rspec (~> 3.7)
|
61
61
|
|
62
62
|
BUNDLED WITH
|
63
|
-
1.16.
|
63
|
+
1.16.3
|
data/README.md
CHANGED
@@ -148,6 +148,12 @@ Style/Documentation:
|
|
148
148
|
- 'lib/datarockets/style/formatter/todo_list_formatter.rb' # 1
|
149
149
|
```
|
150
150
|
|
151
|
+
## Non-goals of RuboCop
|
152
|
+
|
153
|
+
### Rspec configuration
|
154
|
+
|
155
|
+
RSpec-core library provides some configuration rules which provides some linting rules itself. Read more about it in [RuboCop Rspec non-goals topic](https://github.com/rubocop-hq/rubocop-rspec#non-goals-of-rubocop-rspec).
|
156
|
+
|
151
157
|
## Changelog
|
152
158
|
|
153
159
|
Datarockets Style's changelog is available [here](CHANGELOG.md).
|
data/config/base.yml
CHANGED
@@ -4,13 +4,13 @@ Bundler/DuplicatedGem:
|
|
4
4
|
Bundler/OrderedGems:
|
5
5
|
TreatCommentsAsGroupSeparators: true
|
6
6
|
|
7
|
-
Layout/
|
7
|
+
Layout/ArgumentAlignment:
|
8
8
|
EnforcedStyle: with_fixed_indentation
|
9
9
|
|
10
|
-
Layout/
|
10
|
+
Layout/HashAlignment:
|
11
11
|
EnforcedLastArgumentHashStyle: always_ignore
|
12
12
|
|
13
|
-
Layout/
|
13
|
+
Layout/ParameterAlignment:
|
14
14
|
EnforcedStyle: with_fixed_indentation
|
15
15
|
IndentationWidth: 2
|
16
16
|
|
@@ -20,7 +20,7 @@ Layout/EndAlignment:
|
|
20
20
|
Layout/IndentationConsistency:
|
21
21
|
EnforcedStyle: normal
|
22
22
|
|
23
|
-
Layout/
|
23
|
+
Layout/FirstHashElementIndentation:
|
24
24
|
EnforcedStyle: consistent
|
25
25
|
|
26
26
|
Layout/MultilineMethodCallIndentation:
|
data/doc/STYLE_GUIDE_RSPEC.md
CHANGED
@@ -121,3 +121,35 @@ foo.bar
|
|
121
121
|
foo.bar
|
122
122
|
expect(foo).to have_received(:bar)
|
123
123
|
```
|
124
|
+
|
125
|
+
* <a name="rspec-prefer-expect"></a>
|
126
|
+
Prefer using `expect` instead of `should` matchers.
|
127
|
+
<sup>[[link](#rspec-prefer-expect)]</sup>
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
# bad
|
131
|
+
calculator.compute(line_item).should == 5
|
132
|
+
|
133
|
+
# good
|
134
|
+
expect(calculator.compute(line_item)).to eq(5)
|
135
|
+
```
|
136
|
+
|
137
|
+
**Note:** this is a Part of Rspec configuration. Read more [by link](https://github.com/rubocop-hq/rubocop-rspec#enforcing-should-vs-expect-syntax).
|
138
|
+
|
139
|
+
* <a name="rspec-top-rspec"></a>
|
140
|
+
Not to use `Rspec.describe` in your test and just write `describe` instead.
|
141
|
+
<sup>[[link](#rspec-top-rspec)]</sup>
|
142
|
+
|
143
|
+
```ruby
|
144
|
+
# bad
|
145
|
+
RSpec.describe MyClass do
|
146
|
+
# ...
|
147
|
+
end
|
148
|
+
|
149
|
+
# good
|
150
|
+
describe MyClass do
|
151
|
+
# ...
|
152
|
+
end
|
153
|
+
```
|
154
|
+
|
155
|
+
**Note:** this is a Part of Rspec configuration. Read more [by link](https://github.com/rubocop-hq/rubocop-rspec#enforcing-an-explicit-rspec-receiver-for-top-level-methods-disabling-monkey-patching).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datarockets-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Dubrovsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.6
|
98
|
+
rubygems_version: 2.7.6
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Datarockets style guides and shared style configs
|