standard 1.25.0 → 1.25.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: 62f07904722bcfbbb854cb836adab694bb8e8c17462815746c43a9fc7efeec25
4
- data.tar.gz: eb29fb518070108bb06c5935a674f7e4bc790bdf9ed1fb61f1b4b4c62e981678
3
+ metadata.gz: 38e0d9ee5414f1b426d6ebf6576344c0cb4e11230006a2abc4d0747c773d81cb
4
+ data.tar.gz: f5cbad01395c8935b31644131edcf7935c4ef016275f12b40e8ff9a399fede08
5
5
  SHA512:
6
- metadata.gz: 6f6a1c87fe29092994d039226b2724372b47d7108a2b10fbb32aa3da6d10c07301a2013553c1532bacc5e3d6a144bc741254c3e80abb14fc8b76704d011b79f9
7
- data.tar.gz: ac43fa3bda8577a7bbc8b3f5dfb9b8ae949681b0c98da4bdfbd80bdf93ecb8b92e38a16358a935223e5b5c00045893540645eae5b43b8f8bbb6ad9ad0e04c3ed
6
+ metadata.gz: 793810774f3dae6d6bdc2fe3a3de9f09e5d8a858c189a4853895efca2cea29050862fa863f1100822f160cf647c0865d4c7a67093d854d0a0907d3273a5bc590
7
+ data.tar.gz: 643f5bfe2714f9f68f064fa706af04b25190e32e4d4e5bddb0819297ead92856015484ff063cacb0790b53cebd55f53e6e95d2b080b3d7e5e9980ee57fab1a55
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.25.2
4
+
5
+ * Disable Style/RedundantFetchBlock due to concerns the performance benefit
6
+ isn't worth the inconsistency it causes and the fact it is incompatible with
7
+ ActiveSupport [#527](https://github.com/testdouble/standard/issues/527)
8
+
9
+ ## 1.25.1
10
+
11
+ * When in `stdin` mode, don't invoke the RuboCop runner with `parallel: true` to
12
+ avoid an interaction that breaks auto-fixing
13
+ [#530](https://github.com/testdouble/standard/issues/530),
14
+ [#536](https://github.com/testdouble/standard/issues/536)
15
+
3
16
  ## 1.25.0
4
17
 
5
18
  * Update rubocop-performance from 1.15.2 to [1.16.0](https://github.com/rubocop/rubocop-performance/releases/tag/v1.16.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.25.0)
4
+ standard (1.25.2)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  rubocop (= 1.48.1)
7
7
  rubocop-performance (= 1.16.0)
data/config/base.yml CHANGED
@@ -1693,7 +1693,7 @@ Style/RedundantException:
1693
1693
  Enabled: true
1694
1694
 
1695
1695
  Style/RedundantFetchBlock:
1696
- Enabled: true
1696
+ Enabled: false
1697
1697
 
1698
1698
  Style/RedundantFileExtensionInRequire:
1699
1699
  Enabled: true
@@ -6,7 +6,7 @@ module Standard
6
6
  def call(config)
7
7
  rubocop_runner = RuboCop::CLI::Command::ExecuteRunner.new(
8
8
  RuboCop::CLI::Environment.new(
9
- config.rubocop_options,
9
+ without_parallelizing_in_stdin_mode(config.rubocop_options),
10
10
  config.rubocop_config_store,
11
11
  config.paths
12
12
  )
@@ -14,6 +14,19 @@ module Standard
14
14
 
15
15
  rubocop_runner.run
16
16
  end
17
+
18
+ private
19
+
20
+ # This is a workaround for an issue with how `parallel` and `stdin`
21
+ # interact when invoked in this way. See:
22
+ # https://github.com/testdouble/standard/issues/536
23
+ def without_parallelizing_in_stdin_mode(options)
24
+ if options[:stdin]
25
+ options.delete(:parallel)
26
+ end
27
+
28
+ options
29
+ end
17
30
  end
18
31
  end
19
32
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.25.0")
2
+ VERSION = Gem::Version.new("1.25.2")
3
3
  end
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: 1.25.0
4
+ version: 1.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.17.0.2
55
- description:
55
+ description:
56
56
  email:
57
57
  - searls@gmail.com
58
58
  executables:
@@ -123,7 +123,7 @@ files:
123
123
  homepage: https://github.com/testdouble/standard
124
124
  licenses: []
125
125
  metadata: {}
126
- post_install_message:
126
+ post_install_message:
127
127
  rdoc_options: []
128
128
  require_paths:
129
129
  - lib
@@ -138,8 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.1.6
142
- signing_key:
141
+ rubygems_version: 3.4.6
142
+ signing_key:
143
143
  specification_version: 4
144
144
  summary: Ruby Style Guide, with linter & automatic code fixer
145
145
  test_files: []