standard 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: 9a1d48a29d01f42554b68a91638e571285e43eaea03c871f294b574b85db1e27
4
- data.tar.gz: d403ef2354ea46b1c40cdeb9e26b2a2453f46c715b4f18f908720604f8ec8e77
3
+ metadata.gz: 35445fe31a2b7b18bf702640924595668420e3c30298473f62b0ca525de02a66
4
+ data.tar.gz: 0e1fb5bb32f80b6fe73c6b4ee94a99201490b1c6fbf8b0d6214048f5ef0285b9
5
5
  SHA512:
6
- metadata.gz: 7eea82df958008fbad1511ebef51bba50058fc2e4eaf4e8bdb1d41a183ab67c133216d9d40201a75cfc0a3df94da2ebdf80701f6cd541610f1b42036e34aec26
7
- data.tar.gz: 0ed05fe98cd6363a0c583ce0350b8ed7beab5b2d008c7bbb75c6a8fe3047029b90e3492a20c7731496aa264ba23e691dd0abafdce224dc275904bd4cba48f02c
6
+ metadata.gz: 9bc475f0adb2049092b9b32d257fd61a6054cc4b666aa79f041b8ad7e872928fb89716d7bbd318edd99506c33877100ea7aee48283f5572af25503d3dd0dcb77
7
+ data.tar.gz: 2b482aa2000b7d4f8c514e01182e41e54f98419fda13a16edc60a3454e1dc4a86501dd6c38fdf63e7ba841e9c34a7713287ac32e176696a3c08d5ad73375d1ae
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+ * Track Rubocop
6
+ [0.83.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0830-2020-05-11)
7
+ * Update our default to allow trailing whitespace in heredocs
8
+ * Disable auto-correct for a cop that changed `:true` to `true`, as that's not
9
+ safe
10
+ * Allow comments in empty `when` blocks
11
+
12
+
3
13
  ## 0.4.1
4
14
 
5
15
  * add given/given! as `{}` friendly blocks [#172](https://github.com/testdouble/standard/pull/172)
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.4.1)
5
- rubocop (~> 0.82.0)
4
+ standard (0.4.2)
5
+ rubocop (~> 0.83.0)
6
6
  rubocop-performance (~> 1.5.2)
7
7
 
8
8
  GEM
@@ -12,7 +12,6 @@ GEM
12
12
  coderay (1.1.2)
13
13
  docile (1.3.2)
14
14
  gimme (0.5.0)
15
- jaro_winkler (1.5.4)
16
15
  method_source (0.9.2)
17
16
  minitest (5.14.0)
18
17
  parallel (1.19.1)
@@ -24,8 +23,7 @@ GEM
24
23
  rainbow (3.0.0)
25
24
  rake (13.0.1)
26
25
  rexml (3.2.4)
27
- rubocop (0.82.0)
28
- jaro_winkler (~> 1.5.1)
26
+ rubocop (0.83.0)
29
27
  parallel (~> 1.10)
30
28
  parser (>= 2.7.0.1)
31
29
  rainbow (>= 2.2.2, < 4.0)
data/README.md CHANGED
@@ -47,7 +47,7 @@ flag.
47
47
  - **Leading dots on multi-line method chains** - chosen for
48
48
  [these](https://github.com/testdouble/standard/issues/75) reasons.
49
49
  - **Spaces inside blocks, but not hash literals** - In Ruby, the `{` and `}`
50
- characters do a lot of heavy lifting. To visually distinguish array literals
50
+ characters do a lot of heavy lifting. To visually distinguish hash literals
51
51
  from blocks, Standard enforces that (like arrays), no leading or trailing
52
52
  spaces be added to pad hashes
53
53
  - **And a good deal more**
@@ -134,7 +134,7 @@ $ rake standard STANDARDOPTS="lib \"app/**/*\""
134
134
  ## What you might do if you're clever
135
135
 
136
136
  If you want or need to configure Standard, there are a _handful_ of options
137
- are available creating a `.standard.yml` file in the root of your project.
137
+ available by creating a `.standard.yml` file in the root of your project.
138
138
 
139
139
  Here's an example yaml file with every option set:
140
140
 
@@ -163,7 +163,7 @@ Similarly, for the `.standard_todo.yml` file, you can specify `--todo path/to/.s
163
163
 
164
164
  Because StandardRB is essentially a wrapper on top of
165
165
  [RuboCop](https://github.com/rubocop-hq/rubocop), it will actually forward the
166
- vast majority of CLI and ENV arguments forward to RuboCop.
166
+ vast majority of CLI and ENV arguments to RuboCop.
167
167
 
168
168
  You can see a list of
169
169
  [RuboCop](https://docs.rubocop.org/en/latest/basic_usage/#other-useful-command-line-flags)'s
@@ -257,7 +257,12 @@ problems are fixable, but some errors must be fixed manually.
257
257
 
258
258
  ## Can I override the `fix: true` config setting?
259
259
 
260
- Also yes! You can use `standardrb --no-fix`. Not `fix`ing is the default behavior, but this flag will override the `fix: true` setting in your [`.standard.yml` config](#what-you-might-do-if-youre-clever). This is especially useful for checking your projects compliance with `standardrb` in CI environments while keeping the `fix: true` option enabled locally.
260
+ Also yes! You can use `standardrb --no-fix`. Not `fix`ing is the default
261
+ behavior, but this flag will override the `fix: true` setting in your
262
+ [`.standard.yml` config](#what-you-might-do-if-youre-clever).
263
+ This is especially useful for checking your project's compliance with
264
+ `standardrb` in CI environments while keeping the `fix: true` option enabled
265
+ locally.
261
266
 
262
267
  ## How do I ignore files?
263
268
 
@@ -377,6 +382,7 @@ from editor plugins:
377
382
 
378
383
  * [Pronto](https://github.com/julianrubisch/pronto-standardrb)
379
384
  * [Spring](https://github.com/lakim/spring-commands-standard)
385
+ * [Guard](https://github.com/JodyVanden/guard-standardrb)
380
386
 
381
387
  ## Contributing
382
388
 
@@ -312,7 +312,7 @@ Layout/TrailingEmptyLines:
312
312
 
313
313
  Layout/TrailingWhitespace:
314
314
  Enabled: true
315
- AllowInHeredoc: false
315
+ AllowInHeredoc: true
316
316
 
317
317
  Lint/AmbiguousOperator:
318
318
  Enabled: true
@@ -329,7 +329,6 @@ Lint/BigDecimalNew:
329
329
 
330
330
  Lint/BooleanSymbol:
331
331
  Enabled: true
332
- AutoCorrect: true
333
332
 
334
333
  Lint/CircularArgumentReference:
335
334
  Enabled: true
@@ -367,6 +366,7 @@ Lint/EmptyInterpolation:
367
366
 
368
367
  Lint/EmptyWhen:
369
368
  Enabled: true
369
+ AllowComments: true
370
370
 
371
371
  Lint/EnsureReturn:
372
372
  Enabled: true
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.4.1")
2
+ VERSION = Gem::Version.new("0.4.2")
3
3
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = Standard::VERSION
8
8
  spec.authors = ["Justin Searls"]
9
9
  spec.email = ["searls@gmail.com"]
10
+ spec.required_ruby_version = ">= 2.4.0"
10
11
 
11
12
  spec.summary = "Ruby Style Guide, with linter & automatic code fixer"
12
13
  spec.homepage = "https://github.com/testdouble/standard"
@@ -18,7 +19,7 @@ Gem::Specification.new do |spec|
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
20
  spec.require_paths = ["lib"]
20
21
 
21
- spec.add_dependency "rubocop", "~> 0.82.0"
22
+ spec.add_dependency "rubocop", "~> 0.83.0"
22
23
  spec.add_dependency "rubocop-performance", "~> 1.5.2"
23
24
 
24
25
  spec.add_development_dependency "bundler"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.82.0
19
+ version: 0.83.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.82.0
26
+ version: 0.83.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ">="
183
183
  - !ruby/object:Gem::Version
184
- version: '0'
184
+ version: 2.4.0
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="