-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates a 1.34.0.1 version that is inoperable.
- Loading branch information
1 parent
689fb2c
commit 6b4c646
Showing
5 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module Standard | ||
class PrintsBigHairyVersionWarning | ||
WARNING = <<~MSG.gsub(/^ {6}/, "") | ||
============================================================================ | ||
= WARNING: You do not want to run this version of Standard! = | ||
============================================================================ | ||
What's going on here? | ||
--------------------- | ||
Version 1.34.0 of Standard was set to depend on `~> 1.60' of RuboCop. This | ||
constraint is too loose, and covers all minor versions of RuboCop 1.x. | ||
"How do I fix this?", you might be asking. | ||
How to fix this | ||
--------------- | ||
If you add a version specifier pinning `standard' to a version newer | ||
than 1.35.1, Bundler will resolve appropriate versions of `standard', | ||
`rubocop', and any other rubocop-dependent gems you may have installed. | ||
1. Update your Gemfile to pin standard to be at least one such version: | ||
gem "standard", ">= 1.35.1" | ||
2. Run `bundle`, which will install and lock more appropriate versions | ||
Example output: | ||
Using rubocop 1.48.1 (was 1.49.0) | ||
Using standard 1.26.0 (was 0.0.36) | ||
This version (1.34.0.1) is an inoperative placeholder gem that exists | ||
solely to print this message. | ||
We're very sorry for this inconvenience! | ||
============================================================================ | ||
= END OF BIG SCARY WARNING = | ||
============================================================================ | ||
MSG | ||
|
||
def call | ||
warn WARNING | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Standard | ||
VERSION = Gem::Version.new("1.35.1") | ||
VERSION = Gem::Version.new("1.34.0.1") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters