standard 1.35.0 → 1.35.0.1

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: 004d9175f91e69b61ef4e92f6c2730d74612713bea9429d7e8e99535dbd872ef
4
- data.tar.gz: d78dc5bc2b4bde1c03a8537df714fc5bce8bf47dc29b85e4237be9fd13280081
3
+ metadata.gz: fe603f8a2c3b1ded10bac8238309f4ec614ae524aab8e45a000fbe235db60b45
4
+ data.tar.gz: fe477292d91a2c8e44b2ec692b848c9eb51567cf8c87a2a93bf3b8493500e75c
5
5
  SHA512:
6
- metadata.gz: e3c31147963ae7ac24b0c95a954a957564a660109783a73fca276220cc40d8019a5ed8c4b4cee46f10f693c7ab174d349c557df4da40def3d1ef6a1e6721134b
7
- data.tar.gz: bb2863dd9231f593290cea3461606db3182995506d74f355d782eda6d020711b63b7b1ad676c7b2ffe93aad37712f929b0d05f4e4b7b9056e2cac930842684d7
6
+ metadata.gz: 8bac5ce823d01c63159448a512adbc4ad0aea826ffb7af09019266ea52f024fb2b37babcafee8cfa98156ef4ce610e57d3f866c036ab6ba1383a1995405d5072
7
+ data.tar.gz: 6fb8a1f30f4807ab18d20ccf12c1945bcc558aa9f423e1ca78c4577855ce176443dd20d4bce7399b7ca25fe20c1c5cc4e9e9d21938abe67949b66074b2c35d28
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.35.1
4
+
5
+ * Corrects rubocop constraint to the patch version, not minor version.
6
+
3
7
  ## 1.35.0
4
8
 
5
9
  * Updates rubocop to [1.62](https://github.com/rubocop/rubocop/releases/tag/v1.62.1)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.35.0)
4
+ standard (1.35.0.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
7
  rubocop (~> 1.62)
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
@@ -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.35.0 of Standard was set to depend on `~> 1.62' 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.35.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.35.0")
2
+ VERSION = Gem::Version.new("1.35.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"
@@ -29,6 +30,8 @@ Gem::Specification.new do |spec|
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.35.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
@@ -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.35.0 of Standard was set to depend on `~> 1.62' 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.35.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