standard 1.33.0 → 1.34.0.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: d2d9b2d176cfaf42632e3007ae0520736726fe7bf4d0b8cf2bbfcace98bffbc3
4
- data.tar.gz: 4f200b152f0d8bee0cce4540d3b19b4270180598fe4f534563875736f2beff9d
3
+ metadata.gz: 26cc21c803ce960050d22665750e4626e07654e49a6081290726fe9db93d5637
4
+ data.tar.gz: f2ae7c9b66a93a38e65e0c897229c57391a997c613e1d33bcdeac6cbfc505831
5
5
  SHA512:
6
- metadata.gz: 93430778d9de63b32a445825e4d68ad9fe9f7d4afc86b090482d1459ecd3c4a440326688287c3148ddec14a17755b82b9dfd119476d09737e62e1e5e1791aa92
7
- data.tar.gz: e0d6055c79a0e81d236183f30a50edf4b4136c37525d182747155da6a67c29444477583fd223f72a2c54aa26f5fe94cc1326d4b9f6899b510d5aa0a2564872b4
6
+ metadata.gz: fa186a48405a85bec2eafd4dcd4a8e1ef9323a0ce26e9106288b4027fc0e55587da8b46aed1a0313204d50071bc9991b97e8bcfac406db578403f34647b9ee7e
7
+ data.tar.gz: b01edbd2c8cf5f6b0681c489ba45d650e37d299676d81c1a235f857396acb4616da6eae9b46a1345e999ae4cf925a197e6c2415288ab07b93efcc155e9d01ca8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.35.1
4
+
5
+ * Corrects rubocop constraint to the patch version, not minor version.
6
+
7
+ ## 1.35.0
8
+
9
+ * Updates rubocop to [1.62](https://github.com/rubocop/rubocop/releases/tag/v1.62.1)
10
+
11
+ ## 1.34.0
12
+
13
+ * Updates rubocop to [1.60.2](https://github.com/rubocop/rubocop/releases/tag/v1.60.2)
14
+
3
15
  ## 1.33.0
4
16
 
5
17
  * Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0)
@@ -59,9 +71,9 @@ plugin that mirrors a rubocop extension
59
71
  ## 1.28.3
60
72
 
61
73
  * Older ruby support fixes from [@pboling](https://github.com/pboling):
62
- - [#559](https://github.com/standardrb/standard/issues/559)
63
- - [#561](https://github.com/standardrb/standard/issues/560)
64
- - [#561](https://github.com/standardrb/standard/issues/561)
74
+ * [#559](https://github.com/standardrb/standard/issues/559)
75
+ * [#561](https://github.com/standardrb/standard/issues/560)
76
+ * [#561](https://github.com/standardrb/standard/issues/561)
65
77
 
66
78
  ## 1.28.2
67
79
 
@@ -546,7 +558,6 @@ mutations to RuboCop's default configuration)
546
558
  * [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
547
559
  * [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
548
560
 
549
-
550
561
  ## 0.4.6
551
562
 
552
563
  * Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method
@@ -578,7 +589,6 @@ mutations to RuboCop's default configuration)
578
589
  safe
579
590
  * Allow comments in empty `when` blocks
580
591
 
581
-
582
592
  ## 0.4.1
583
593
 
584
594
  * add given/given! as `{}` friendly blocks [#172](https://github.com/testdouble/standard/pull/172)
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gemspec
5
5
  gem "bundler"
6
6
  gem "minitest", "~> 5.0"
7
7
  gem "rake", "~> 13.0"
8
- gem "gimme"
9
8
  gem "m"
10
9
 
11
10
  # You may want to run these off path locally:
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.33.0)
4
+ standard (1.34.0.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.59.0)
7
+ rubocop (~> 1.60)
8
8
  standard-custom (~> 1.0.0)
9
9
  standard-performance (~> 1.3)
10
10
 
@@ -13,7 +13,6 @@ GEM
13
13
  specs:
14
14
  ast (2.4.2)
15
15
  docile (1.4.0)
16
- gimme (0.5.0)
17
16
  json (2.6.3)
18
17
  language_server-protocol (3.17.0.3)
19
18
  lint_roller (1.1.0)
@@ -23,7 +22,7 @@ GEM
23
22
  method_source (1.0.0)
24
23
  minitest (5.20.0)
25
24
  parallel (1.23.0)
26
- parser (3.2.2.4)
25
+ parser (3.3.0.5)
27
26
  ast (~> 2.4.1)
28
27
  racc
29
28
  racc (1.7.1)
@@ -31,11 +30,11 @@ GEM
31
30
  rake (13.0.6)
32
31
  regexp_parser (2.8.2)
33
32
  rexml (3.2.6)
34
- rubocop (1.59.0)
33
+ rubocop (1.60.2)
35
34
  json (~> 2.3)
36
35
  language_server-protocol (>= 3.17.0)
37
36
  parallel (~> 1.10)
38
- parser (>= 3.2.2.4)
37
+ parser (>= 3.3.0.2)
39
38
  rainbow (>= 2.2.2, < 4.0)
40
39
  regexp_parser (>= 1.8, < 3.0)
41
40
  rexml (>= 3.2.5, < 4.0)
@@ -68,7 +67,6 @@ PLATFORMS
68
67
 
69
68
  DEPENDENCIES
70
69
  bundler
71
- gimme
72
70
  m
73
71
  minitest (~> 5.0)
74
72
  rake (~> 13.0)
data/README.md CHANGED
@@ -156,6 +156,7 @@ We've added a number of editing guides for getting started:
156
156
  - [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
157
157
  - [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
158
158
  - [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
159
+ - [Helix](https://github.com/helix-editor/helix/wiki/External-formatter-configuration#standardrb)
159
160
  - [Atom](https://github.com/standardrb/standard/wiki/IDE:-Atom)
160
161
 
161
162
  If you'd like to help by creating a guide, please draft one [in an
@@ -172,7 +173,7 @@ editors can support natively, even without a Standard-specific plugin.
172
173
  You can run the server by supplying the `--lsp` flag:
173
174
 
174
175
  ```
175
- standard --lsp
176
+ standardrb --lsp
176
177
  ```
177
178
 
178
179
  If your editor offers LSP support, it probably has a place to configure the
data/config/base.yml CHANGED
@@ -1566,7 +1566,7 @@ Style/RedundantHeredocDelimiterQuotes:
1566
1566
  Enabled: true
1567
1567
 
1568
1568
  Style/RedundantInitialize:
1569
- Enabled: true
1569
+ Enabled: false
1570
1570
 
1571
1571
  Style/RedundantInterpolation:
1572
1572
  Enabled: true
data/lib/standard/cli.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require_relative "builds_config"
2
2
  require_relative "loads_runner"
3
+ require_relative "prints_big_hairy_version_warning"
3
4
 
4
5
  module Standard
5
6
  class Cli
@@ -10,8 +11,8 @@ module Standard
10
11
  end
11
12
 
12
13
  def run
13
- config = @builds_config.call(@argv)
14
- @loads_runner.call(config.runner).call(config).to_i
14
+ PrintsBigHairyVersionWarning.new.call
15
+ exit 1
15
16
  end
16
17
  end
17
18
  end
@@ -13,7 +13,7 @@ module Standard
13
13
  end
14
14
 
15
15
  def self.handle(name, &block)
16
- define_method("handle_#{name}", &block)
16
+ define_method(:"handle_#{name}", &block)
17
17
  end
18
18
 
19
19
  def for(name)
@@ -0,0 +1,45 @@
1
+ module Standard
2
+ class PrintsBigHairyVersionWarning
3
+ WARNING = <<~MSG.gsub(/^ {6}/, "")
4
+ ============================================================================
5
+ = WARNING: You do not want to run this version of Standard! =
6
+ ============================================================================
7
+
8
+ What's going on here?
9
+ ---------------------
10
+ Version 1.34.0 of Standard was set to depend on `~> 1.60' of RuboCop. This
11
+ constraint is too loose, and covers all minor versions of RuboCop 1.x.
12
+
13
+ "How do I fix this?", you might be asking.
14
+
15
+ How to fix this
16
+ ---------------
17
+ If you add a version specifier pinning `standard' to a version newer
18
+ than 1.35.1, Bundler will resolve appropriate versions of `standard',
19
+ `rubocop', and any other rubocop-dependent gems you may have installed.
20
+
21
+ 1. Update your Gemfile to pin standard to be at least one such version:
22
+
23
+ gem "standard", ">= 1.35.1"
24
+
25
+ 2. Run `bundle`, which will install and lock more appropriate versions
26
+
27
+ Example output:
28
+ Using rubocop 1.48.1 (was 1.49.0)
29
+ Using standard 1.26.0 (was 0.0.36)
30
+
31
+ This version (1.34.0.1) is an inoperative placeholder gem that exists
32
+ solely to print this message.
33
+
34
+ We're very sorry for this inconvenience!
35
+
36
+ ============================================================================
37
+ = END OF BIG SCARY WARNING =
38
+ ============================================================================
39
+ MSG
40
+
41
+ def call
42
+ warn WARNING
43
+ end
44
+ end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.33.0")
2
+ VERSION = Gem::Version.new("1.34.0.1")
3
3
  end
data/standard.gemspec CHANGED
@@ -1,6 +1,7 @@
1
1
  lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require "standard/version"
4
+ require "standard/prints_big_hairy_version_warning"
4
5
 
5
6
  Gem::Specification.new do |spec|
6
7
  spec.name = "standard"
@@ -23,12 +24,14 @@ Gem::Specification.new do |spec|
23
24
  spec.require_paths = ["lib"]
24
25
  spec.metadata["rubygems_mfa_required"] = "true"
25
26
 
26
- spec.add_dependency "rubocop", "~> 1.59.0"
27
+ spec.add_dependency "rubocop", "~> 1.60"
27
28
 
28
29
  spec.add_dependency "lint_roller", "~> 1.0"
29
30
  spec.add_dependency "standard-custom", "~> 1.0.0"
30
31
  spec.add_dependency "standard-performance", "~> 1.3"
31
32
 
33
+ spec.post_install_message = Standard::PrintsBigHairyVersionWarning::WARNING
34
+
32
35
  # not semver: first three are lsp protocol version, last is patch
33
36
  spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
34
37
  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.33.0
4
+ version: 1.34.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
11
+ date: 2024-03-12 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: 1.59.0
19
+ version: '1.60'
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: 1.59.0
26
+ version: '1.60'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lint_roller
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -149,6 +149,7 @@ files:
149
149
  - lib/standard/plugin/initializes_plugins.rb
150
150
  - lib/standard/plugin/merges_plugins_into_rubocop_config.rb
151
151
  - lib/standard/plugin/standardizes_configured_plugins.rb
152
+ - lib/standard/prints_big_hairy_version_warning.rb
152
153
  - lib/standard/railtie.rb
153
154
  - lib/standard/rake.rb
154
155
  - lib/standard/resolves_yaml_option.rb
@@ -168,7 +169,42 @@ metadata:
168
169
  source_code_uri: https://github.com/standardrb/standard
169
170
  changelog_uri: https://github.com/standardrb/standard/blob/main/CHANGELOG.md
170
171
  rubygems_mfa_required: 'true'
171
- post_install_message:
172
+ post_install_message: |
173
+ ============================================================================
174
+ = WARNING: You do not want to run this version of Standard! =
175
+ ============================================================================
176
+
177
+ What's going on here?
178
+ ---------------------
179
+ Version 1.34.0 of Standard was set to depend on `~> 1.60' of RuboCop. This
180
+ constraint is too loose, and covers all minor versions of RuboCop 1.x.
181
+
182
+ "How do I fix this?", you might be asking.
183
+
184
+ How to fix this
185
+ ---------------
186
+ If you add a version specifier pinning `standard' to a version newer
187
+ than 1.35.1, Bundler will resolve appropriate versions of `standard',
188
+ `rubocop', and any other rubocop-dependent gems you may have installed.
189
+
190
+ 1. Update your Gemfile to pin standard to be at least one such version:
191
+
192
+ gem "standard", ">= 1.35.1"
193
+
194
+ 2. Run `bundle`, which will install and lock more appropriate versions
195
+
196
+ Example output:
197
+ Using rubocop 1.48.1 (was 1.49.0)
198
+ Using standard 1.26.0 (was 0.0.36)
199
+
200
+ This version (1.34.0.1) is an inoperative placeholder gem that exists
201
+ solely to print this message.
202
+
203
+ We're very sorry for this inconvenience!
204
+
205
+ ============================================================================
206
+ = END OF BIG SCARY WARNING =
207
+ ============================================================================
172
208
  rdoc_options: []
173
209
  require_paths:
174
210
  - lib