standard 1.25.0 → 1.25.1

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: 62f07904722bcfbbb854cb836adab694bb8e8c17462815746c43a9fc7efeec25
4
- data.tar.gz: eb29fb518070108bb06c5935a674f7e4bc790bdf9ed1fb61f1b4b4c62e981678
3
+ metadata.gz: a1aeeafd87f77c4ff9e85dfb6a1bd37cb31126086348e99e429fedfd09683723
4
+ data.tar.gz: 647e17d2a36f4260e6fb66122f92328b6ad374bc25408b06a4923b75f2b4211d
5
5
  SHA512:
6
- metadata.gz: 6f6a1c87fe29092994d039226b2724372b47d7108a2b10fbb32aa3da6d10c07301a2013553c1532bacc5e3d6a144bc741254c3e80abb14fc8b76704d011b79f9
7
- data.tar.gz: ac43fa3bda8577a7bbc8b3f5dfb9b8ae949681b0c98da4bdfbd80bdf93ecb8b92e38a16358a935223e5b5c00045893540645eae5b43b8f8bbb6ad9ad0e04c3ed
6
+ metadata.gz: 3761917ccc794b141953b287307db706f911d7fba8aaed24222916c50d66fc0c24e24a8e8669ab05e2b3ce2820e2b1094257a963b3b724ce575681ff9dd4a8d8
7
+ data.tar.gz: 50f7c207a9935792796d2ac8fa9797f1afda8062c4ac54482390f62ae46b3d34f5c2a4533dddaad7d12dad8f7201179bf06ea09f1f35d6ff70f8b78396dac63f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.25.1
4
+
5
+ * When in `stdin` mode, don't invoke the RuboCop runner with `parallel: true` to
6
+ avoid an interaction that breaks auto-fixing
7
+ [#530](https://github.com/testdouble/standard/issues/530),
8
+ [#536](https://github.com/testdouble/standard/issues/536)
9
+
3
10
  ## 1.25.0
4
11
 
5
12
  * 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.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  rubocop (= 1.48.1)
7
7
  rubocop-performance (= 1.16.0)
@@ -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.1")
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.1
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-18 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: []