standard 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: b1ffe5112549df3b2c10c013937dc42d459d6ee098971d214ece1d00482d3b97
4
- data.tar.gz: e796e1c215cc354d9098583b5d1f69860852096c79d293ff935b9c4d3fda9fe6
3
+ metadata.gz: 329cd3a8f071049a128d6a37daee7ee43a9ce158a9a22d16b1bcafa3f6be94b9
4
+ data.tar.gz: 683aa6c815d57a6abc69c0ca5b210baf51202aaa3f8c9de219182f7d9c88865f
5
5
  SHA512:
6
- metadata.gz: 7925123a27c8140624f9ec4903f3546c7e7aa9e0ba48244f362e570ed4a4a2a34304621f78e964d6445e15ef1046ee4fd410e80e05ff308886be1d77d2324d6c
7
- data.tar.gz: f00df60430fabfddd8e2f389a5b7e4d8701d2ce0b0ca92c828e28331d64ee5ca2616053a04094f23ab3d5a340e276561be6a97d0f21bd351d407e2bd94b2598e
6
+ metadata.gz: bddf78f8851ff8d27dd06964c43632b67124e95768e0f36fc6ce04c6f36ee1b19cc7b891ea59302ee922ac8b683cd7fc67d65b37ce87bac21ca7b50c18ddac44
7
+ data.tar.gz: a6cfbe765f4cea6a9383aa94cf86569ede7b7a98bad491044a316a22f08a05c10cdc7f2ad0f6eb0d19ac62e7b30911db7c7bb34061b51136181c3350c128d583
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.4
4
+
5
+ * Workaround RuboCop's CLI from erroring when it detects a cop named
6
+ BlockDelimiters by renaming it to BlockSingleLineBraces
7
+ ([#271](https://github.com/testdouble/standard/issues/271)0
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  * Fix an exit code bug introduced in 1.0.2
6
- ([#271](https://github.com/testdouble/standard/pull/272)
12
+ ([#272](https://github.com/testdouble/standard/pull/272)
7
13
 
8
14
  ## 1.0.2
9
15
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.0.3)
4
+ standard (1.0.4)
5
5
  rubocop (= 1.11.0)
6
6
  rubocop-performance (= 1.10.1)
7
7
 
data/LICENSE.txt CHANGED
@@ -2,7 +2,7 @@ Copyright (c) 2019 Test Double, LLC
2
2
 
3
3
  Portions of these files Copyright (c) 2012-18 Bozhidar Batsov:
4
4
  - config/base.yml
5
- - lib/standard/cop/block_delimiters.rb
5
+ - lib/standard/cop/block_single_line_braces.rb
6
6
  - test/cop_invoker.rb
7
7
 
8
8
  Permission is hereby granted, free of charge, to any person obtaining
data/README.md CHANGED
@@ -290,7 +290,7 @@ rules to ignore for a particular glob:
290
290
  ```yaml
291
291
  ignore:
292
292
  - 'test/**/*':
293
- - Style/BlockDelimiters
293
+ - Layout/EndAlignment
294
294
  ```
295
295
 
296
296
  ## How do I disable a warning within my source code?
data/config/base.yml CHANGED
@@ -738,7 +738,7 @@ Security/YAMLLoad:
738
738
  Enabled: true
739
739
  SafeAutoCorrect: false
740
740
 
741
- Standard/BlockDelimiters:
741
+ Standard/BlockSingleLineBraces:
742
742
  Enabled: true
743
743
 
744
744
  Style/Alias:
data/lib/standard.rb CHANGED
@@ -7,7 +7,7 @@ require "standard/cli"
7
7
  require "standard/railtie" if defined?(Rails) && defined?(Rails::Railtie)
8
8
 
9
9
  require "standard/formatter"
10
- require "standard/cop/block_delimiters"
10
+ require "standard/cop/block_single_line_braces"
11
11
 
12
12
  module Standard
13
13
  end
@@ -10,7 +10,7 @@ module RuboCop::Cop
10
10
  # # good - single line block
11
11
  # items.each { |item| item / 5 }
12
12
  #
13
- class BlockDelimiters < RuboCop::Cop::Base
13
+ class BlockSingleLineBraces < RuboCop::Cop::Base
14
14
  extend RuboCop::Cop::AutoCorrector
15
15
 
16
16
  def on_send(node)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.0.3")
2
+ VERSION = Gem::Version.new("1.0.4")
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
@@ -69,7 +69,7 @@ files:
69
69
  - lib/standard.rb
70
70
  - lib/standard/builds_config.rb
71
71
  - lib/standard/cli.rb
72
- - lib/standard/cop/block_delimiters.rb
72
+ - lib/standard/cop/block_single_line_braces.rb
73
73
  - lib/standard/creates_config_store.rb
74
74
  - lib/standard/creates_config_store/assigns_rubocop_yaml.rb
75
75
  - lib/standard/creates_config_store/configures_ignored_paths.rb