standard-rubocop-lts 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -1
- data/CONTRIBUTING.md +7 -6
- data/README.md +6 -86
- data/config/ruby-1.8.yml +4 -19
- data/config/ruby-1.9.yml +13 -1
- data/config/ruby-2.2.yml +0 -1
- data/lib/standard/rubocop/lts/version.rb +3 -1
- data/lib/standard/rubocop/lts.rb +7 -0
- data/sig/standard/rubocop/lts.rbs +4 -2
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b60bb51f07d8329038e61bb4320bb5bda83f0c89c2b8db2115ba1eca278cc37
|
4
|
+
data.tar.gz: 4cf060ee1593fc3e98b8e32bccc48ebea0653d3a437198a35090da4aa9f43592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a5c3949e0cdee94abc6b4de21e23a1b18f265c5eb91ad55bf7c5a29ce232abfc12157ebd990b5872ee7f376d207f12e520082f136397181d2f41ac91cff4e37
|
7
|
+
data.tar.gz: 34befe7440fc6ebe5f7782f5230efdd0f9411b2ba41fee342fc884a62db9654361c537e6cb234f953abf4ccdbfca5edc9f7f7fe731328f3cf64c7f1ce3d1f8b2
|
data/CHANGELOG.md
CHANGED
@@ -10,13 +10,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
10
10
|
### Fixed
|
11
11
|
### Removed
|
12
12
|
|
13
|
+
## [1.0.2] 2023-05-29
|
14
|
+
### Added
|
15
|
+
- `version_gem` for library version introspection
|
16
|
+
### Changed
|
17
|
+
- Set Style/SymbolArray to brackets for Ruby < 2.0 compat
|
18
|
+
- Previously only set for Ruby 1.8
|
19
|
+
- Set Style/WordArray to brackets for Ruby < 2.0 compat
|
20
|
+
- Previously only set for Ruby 1.8
|
21
|
+
- Disable Style/PercentLiteralDelimiters for Ruby < 2.0 compat
|
22
|
+
- `Standard::Rubocop::Lts::VERSION` refactored to `Standard::Rubocop::Lts::Version::VERSION`
|
23
|
+
### Fixed
|
24
|
+
- Removed obsolete loading of `standard-custom`'s now defunct `config/ruby-2.2.yml`
|
25
|
+
- See: https://github.com/standardrb/standard-custom/issues/2
|
26
|
+
### Removed
|
27
|
+
- Duplicated lines from `README.md`
|
28
|
+
- Circular dependency in gemspec (on `standard-rubocop-lts`, which is this gem)
|
29
|
+
|
13
30
|
## [1.0.1] 2023-04-16
|
14
31
|
### Fixed
|
15
32
|
- config/*.yml rubocop configs were not shipped with v1.0.0
|
16
33
|
### Changed
|
17
34
|
- Minimum Ruby Version is 2.7
|
18
35
|
|
19
|
-
## [1.0.0] 2023-04-16
|
36
|
+
## [1.0.0] 2023-04-16 [YANKED]
|
20
37
|
### Added
|
21
38
|
- Initial release
|
22
39
|
|
data/CONTRIBUTING.md
CHANGED
@@ -13,12 +13,13 @@ To release a new version:
|
|
13
13
|
|
14
14
|
1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check.
|
15
15
|
2. update the version number in `version.rb`
|
16
|
-
3.
|
17
|
-
4.
|
18
|
-
5.
|
19
|
-
6.
|
20
|
-
7.
|
21
|
-
8.
|
16
|
+
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`.
|
17
|
+
4. run `bundle exec rake build:checksum`
|
18
|
+
5. move the built gem to project root
|
19
|
+
6. run `bin/checksum` to create the missing SHA256 checksum
|
20
|
+
7. move the built gem back to `pkg/`
|
21
|
+
8. commit the changes
|
22
|
+
9. run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org][rubygems].
|
22
23
|
|
23
24
|
NOTE: You will need to have a public key in `certs/`, and list your cert in the
|
24
25
|
`gemspec`, in order to sign the new release.
|
data/README.md
CHANGED
@@ -18,7 +18,8 @@
|
|
18
18
|
|
19
19
|
---
|
20
20
|
|
21
|
-
NOTE: You might be interested in [`rubocop-lts`][rlts] which sits as a higher level than
|
21
|
+
NOTE: You might be interested in [`rubocop-lts`][rlts] which sits as a higher level than, and depends on, this gem.
|
22
|
+
It will enable your Ruby style rules to keep pace with whatever version of Ruby your project happens to be on!
|
22
23
|
|
23
24
|
| Gem Name | Version | Downloads | CI | Activity |
|
24
25
|
|-------------------------------|-------------------------------------|----------------------------------------------------------------------|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
|
@@ -78,10 +79,10 @@ NOTE: You might be interested in [`rubocop-lts`][rlts] which sits as a higher le
|
|
78
79
|
[⛳️ini-g]: https://rubygems.org/gems/standard-rubocop-lts
|
79
80
|
[⛳️ini-gh]: https://github.com/rubocop-lts/standard-rubocop-lts
|
80
81
|
|
81
|
-
# Standard::Rubocop::Lts
|
82
|
+
# 🦾 Standard::Rubocop::Lts
|
82
83
|
|
83
84
|
Extended [standard (Standard Ruby)][standardrb] config shims for all your finely-aged rubies,
|
84
|
-
back to version 1.8. Compatible with the `rubocop-lts` [gem family](#a-gem-family).
|
85
|
+
back to Ruby version 1.8. Compatible with the `rubocop-lts` [gem family](#a-gem-family).
|
85
86
|
|
86
87
|
Use the rules standard gives you, and then add more,
|
87
88
|
to increase your code's compatibility across multiple versions of Ruby.
|
@@ -177,6 +178,8 @@ inherit_gem:
|
|
177
178
|
standard: config/base.yml
|
178
179
|
standard-performance: config/base.yml
|
179
180
|
standard-custom: config/base.yml
|
181
|
+
# Plus: Any ruby-version-specific configs provided by any of the standard gems
|
182
|
+
# Plus+: Many ruby-version-specific configs that standard does not have
|
180
183
|
|
181
184
|
AllCops:
|
182
185
|
NewCops: enable
|
@@ -205,89 +208,6 @@ See [CONTRIBUTING.md][contributing]
|
|
205
208
|
|
206
209
|
Made with [contributors-img](https://contrib.rocks).
|
207
210
|
|
208
|
-
## License
|
209
|
-
|
210
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
211
|
-
|
212
|
-
## 📄 License
|
213
|
-
|
214
|
-
The gem is available as open source under the terms of
|
215
|
-
the [MIT License][license] [![License: MIT][license-img]][license-ref].
|
216
|
-
See [LICENSE.txt][license] for the official [Copyright Notice][copyright-notice-explainer].
|
217
|
-
|
218
|
-
<details>
|
219
|
-
<summary>Project Logos (standard-rubocop-lts)</summary>
|
220
|
-
|
221
|
-
See [docs/images/logo/README.txt][project-logos]
|
222
|
-
</details>
|
223
|
-
|
224
|
-
<details>
|
225
|
-
<summary>Organization Logo (rubocop-lts)</summary>
|
226
|
-
|
227
|
-
Author: [Yusuf Evli][org-logo-author]
|
228
|
-
Source: [Unsplash][org-logo-source]
|
229
|
-
License: [Unsplash License][org-logo-license]
|
230
|
-
</details>
|
231
|
-
|
232
|
-
[project-logos]: https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/docs/images/logo/README.txt
|
233
|
-
[org-logo-author]: https://unsplash.com/@yusufevli
|
234
|
-
[org-logo-source]: https://unsplash.com/photos/yaSLNLtKRIU
|
235
|
-
[org-logo-license]: https://unsplash.com/license
|
236
|
-
|
237
|
-
### © Copyright
|
238
|
-
|
239
|
-
* Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
240
|
-
|
241
|
-
## 🤝 Code of Conduct
|
242
|
-
|
243
|
-
Everyone interacting in this project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/CODE_OF_CONDUCT.md).
|
244
|
-
|
245
|
-
## 📌 Versioning
|
246
|
-
|
247
|
-
This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
|
248
|
-
bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
|
249
|
-
immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new
|
250
|
-
major versions.
|
251
|
-
|
252
|
-
As a result of this policy, you can (and should) specify a dependency on this gem using
|
253
|
-
the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
254
|
-
|
255
|
-
For example:
|
256
|
-
|
257
|
-
```ruby
|
258
|
-
spec.add_dependency "standard-rubocop-lts", "~> 1.0"
|
259
|
-
```
|
260
|
-
|
261
|
-
[aboutme]: https://about.me/peter.boling
|
262
|
-
[actions]: https://github.com/rubocop-lts/standard-rubocop-lts/actions
|
263
|
-
[angelme]: https://angel.co/peter-boling
|
264
|
-
[blogpage]: http://www.railsbling.com/tags/standard-rubocop-lts/
|
265
|
-
[codecov_coverage]: https://codecov.io/gh/rubocop-lts/standard-rubocop-lts
|
266
|
-
[code_triage]: https://www.codetriage.com/rubocop-lts/standard-rubocop-lts
|
267
|
-
[chat]: https://gitter.im/rubocop-lts/standard-rubocop-lts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
268
|
-
[climate_coverage]: https://codeclimate.com/github/rubocop-lts/standard-rubocop-lts/test_coverage
|
269
|
-
[climate_maintainability]: https://codeclimate.com/github/rubocop-lts/standard-rubocop-lts/maintainability
|
270
|
-
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
271
|
-
[conduct]: https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/CODE_OF_CONDUCT.md
|
272
|
-
[contributing]: https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/CONTRIBUTING.md
|
273
|
-
[devto]: https://dev.to/galtzo
|
274
|
-
[documentation]: https://rubydoc.info/github/rubocop-lts/standard-rubocop-lts/main
|
275
|
-
[followme]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
276
|
-
[gh_discussions]: https://github.com/rubocop-lts/standard-rubocop-lts/discussions
|
277
|
-
[gh_sponsors]: https://github.com/sponsors/pboling
|
278
|
-
[issues]: https://github.com/rubocop-lts/standard-rubocop-lts/issues
|
279
|
-
[liberapay_donate]: https://liberapay.com/pboling/donate
|
280
|
-
[license]: LICENSE.txt
|
281
|
-
[license-ref]: https://opensource.org/licenses/MIT
|
282
|
-
[license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
283
|
-
[peterboling]: http://www.peterboling.com
|
284
|
-
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
285
|
-
[railsbling]: http://www.railsbling.com
|
286
|
-
[rubygems]: https://rubygems.org/gems/standard-rubocop-lts
|
287
|
-
[security]: https://github.com/rubocop-lts/standard-rubocop-lts/blob/main/SECURITY.md
|
288
|
-
[semver]: http://semver.org/
|
289
|
-
[source]: https://github.com/rubocop-lts/standard-rubocop-lts/
|
290
|
-
[tweetme]: http://twitter.com/galtzo
|
291
211
|
## 📄 License
|
292
212
|
|
293
213
|
The gem is available as open source under the terms of
|
data/config/ruby-1.8.yml
CHANGED
@@ -14,28 +14,13 @@ inherit_gem:
|
|
14
14
|
##############################################################################
|
15
15
|
|
16
16
|
# Ruby 1.8.7 needs the . on chain of method calls at the end of a line
|
17
|
+
# This cop is disabled for Ruby 1.8 in Standard, which is doesn't help
|
18
|
+
# RuboCop/Standard users ensure their codebase remains compatible with Ruby 1.8
|
19
|
+
# As such we override here!
|
20
|
+
# See: https://github.com/standardrb/standard/issues/561
|
17
21
|
Layout/DotPosition:
|
18
22
|
EnforcedStyle: trailing
|
19
23
|
|
20
24
|
# Disabled in standard's base.yml. Keeping here in case it is removed from base.
|
21
25
|
Style/Documentation:
|
22
26
|
Enabled: false
|
23
|
-
|
24
|
-
# Set in standard's base.yml. Keeping here in case it is changed in base.
|
25
|
-
Style/PercentLiteralDelimiters:
|
26
|
-
Enabled: true
|
27
|
-
PreferredDelimiters:
|
28
|
-
default: ()
|
29
|
-
'%i': '[]'
|
30
|
-
'%I': '[]'
|
31
|
-
'%r': '{}'
|
32
|
-
'%w': '[]'
|
33
|
-
'%W': '[]'
|
34
|
-
|
35
|
-
# Missing from standard's base.yml. Works in concert with Style/PercentLiteralDelimiters
|
36
|
-
Style/SymbolArray:
|
37
|
-
EnforcedStyle: brackets
|
38
|
-
|
39
|
-
# Missing from standard's base.yml. Works in concert with Style/PercentLiteralDelimiters
|
40
|
-
Style/WordArray:
|
41
|
-
EnforcedStyle: brackets
|
data/config/ruby-1.9.yml
CHANGED
@@ -8,9 +8,21 @@ inherit_from: ./ruby-2.0.yml
|
|
8
8
|
inherit_gem:
|
9
9
|
standard: config/ruby-1.9.yml
|
10
10
|
|
11
|
+
# Standard's rules in base.yml do not work with Ruby < 2.0, so overriding.
|
12
|
+
# See: https://github.com/standardrb/standard/pull/563
|
13
|
+
# Percent delimiters are not supported until Ruby 2.0
|
14
|
+
Style/PercentLiteralDelimiters:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Style/SymbolArray:
|
18
|
+
EnforcedStyle: brackets
|
19
|
+
|
20
|
+
Style/WordArray:
|
21
|
+
EnforcedStyle: brackets
|
22
|
+
|
11
23
|
##############################################################################
|
12
24
|
# Additional rules that allow preservation of ruby 1.8.7 / ree compatibility #
|
13
|
-
# These are not in standard, and are
|
25
|
+
# These are not in standard, and are a secondary reason this gem exists. #
|
14
26
|
##############################################################################
|
15
27
|
|
16
28
|
# Disabled in standard's base.yml, which allows magic encoding comments to live on.
|
data/config/ruby-2.2.yml
CHANGED
@@ -12,7 +12,6 @@ inherit_gem:
|
|
12
12
|
rubocop-performance: config/default.yml
|
13
13
|
# Ruby version-specific overrides for specific additional gems.
|
14
14
|
standard: config/ruby-2.2.yml
|
15
|
-
standard-custom: config/ruby-2.2.yml
|
16
15
|
standard-performance: config/ruby-2.2.yml
|
17
16
|
|
18
17
|
# Disabled in standard's base.yml. Keeping here in case removed from base.
|
data/lib/standard/rubocop/lts.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# external libs
|
4
|
+
require "version_gem"
|
5
|
+
|
3
6
|
require_relative "lts/version"
|
4
7
|
|
5
8
|
module Standard
|
@@ -10,3 +13,7 @@ module Standard
|
|
10
13
|
end
|
11
14
|
end
|
12
15
|
end
|
16
|
+
|
17
|
+
Standard::Rubocop::Lts::Version.class_eval do
|
18
|
+
extend VersionGem::Basic
|
19
|
+
end
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module Standard
|
2
2
|
module Rubocop
|
3
3
|
module Lts
|
4
|
-
|
5
|
-
|
4
|
+
module Version
|
5
|
+
VERSION: String
|
6
|
+
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
|
7
|
+
end
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard-rubocop-lts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: version_gem
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.2
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.1.2
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: standard
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,26 +174,6 @@ dependencies:
|
|
154
174
|
- - "~>"
|
155
175
|
- !ruby/object:Gem::Version
|
156
176
|
version: '0.5'
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: standard-rubocop-lts
|
159
|
-
requirement: !ruby/object:Gem::Requirement
|
160
|
-
requirements:
|
161
|
-
- - "~>"
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: '1.0'
|
164
|
-
- - "<"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '2'
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.0'
|
174
|
-
- - "<"
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: '2'
|
177
177
|
description: Extended Standard Ruby Configs for Finely Aged Rubies; Compatible with
|
178
178
|
rubocop-lts
|
179
179
|
email:
|
@@ -211,10 +211,10 @@ licenses:
|
|
211
211
|
- MIT
|
212
212
|
metadata:
|
213
213
|
homepage_uri: https://rubocop-lts.gitlab.io/
|
214
|
-
source_code_uri: https://rubocop-lts.gitlab.io//tree/v1.0.
|
215
|
-
changelog_uri: https://rubocop-lts.gitlab.io//blob/v1.0.
|
214
|
+
source_code_uri: https://rubocop-lts.gitlab.io//tree/v1.0.2
|
215
|
+
changelog_uri: https://rubocop-lts.gitlab.io//blob/v1.0.2/CHANGELOG.md
|
216
216
|
bug_tracker_uri: https://rubocop-lts.gitlab.io//issues
|
217
|
-
documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.
|
217
|
+
documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.2
|
218
218
|
funding_uri: https://liberapay.com/pboling
|
219
219
|
wiki_uri: https://rubocop-lts.gitlab.io//wiki
|
220
220
|
rubygems_mfa_required: 'true'
|