rubocop-lts 2.0.0 → 2.0.3

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: c392174bac591ecc43ef42936c7b6ab8e5da13b8c957b36e49d8b9793fddd5d5
4
- data.tar.gz: 95787af3239a09bb23472ea3bf691735bc0f3fdcae0121cdb60ce2b99cc3f1b8
3
+ metadata.gz: 28d506391566433bfa8be899ed985814496dbe110c2601e87f81cbc79df70557
4
+ data.tar.gz: 9fb9a48b574f5e75ee26c2f3cafd64161af4b0d69e53c8a3564ba0cfc1d592f5
5
5
  SHA512:
6
- metadata.gz: 2972882044c1111153538b701834dcfd313da4c48989ef5cdbb7379faf011975f8d85e4edbf4550f720a32e291157596f12d099aa6a344486ba57e0b4675e842
7
- data.tar.gz: b2957b1ebe19a3c4225e7eb51816e3b57306f5e4f67ec8b903c2f6847748168f1ffe3c3f6959df365c1536b3db698dcc95a209b8e3ba7fc4838815c6918f4d6e
6
+ metadata.gz: e4f3c4ce0f324afd346f5bc87a29e96597453aa247255aeb0e9108c2633c5999dfab6e49b03acb289ead12633dcadbb6ae4ce96f17c9e4be95f411d95c9c74ba
7
+ data.tar.gz: ae409d1efc14bdfa22a80a22d77d25bd789059988453c32277b3716faa9238e71f73621e342e96c72842b01ede83466243f44febbe5a44f69ee81f8b7bcc4a30
data/CHANGELOG.md CHANGED
@@ -13,6 +13,48 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Removed
15
15
 
16
+ ## [2.0.3] - 2022-05-23
17
+ ### Fixed
18
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
19
+
20
+ ## [2.0.2] - 2022-05-23
21
+ ### Fixed
22
+ - Ship rubocop config files in gem
23
+ - rubocop-lts.yml
24
+ - rubocop-lts1_8.yml
25
+
26
+ ## [2.0.1] - 2022-05-22
27
+ ### Fixed
28
+ - Documentation typos & gemspec URLs
29
+
30
+ ## [2.0.0] - 2022-05-22
31
+ ### Added
32
+ - Initial even release supporting Ruby >= 1.9
33
+
34
+ ## [1.0.3] - 2022-05-23
35
+ ### Fixed
36
+ - Make rubocop config files load ruby specific config from relevant rubocop-ruby*_* gem
37
+
38
+ ## [1.0.2] - 2022-05-23
39
+ ### Fixed
40
+ - Ship rubocop config files in gem
41
+ - rubocop-lts.yml
42
+ - rubocop-lts1_8.yml
43
+
44
+ ## [1.0.1] - 2022-05-22
45
+ ### Fixed
46
+ - Documentation typos & gemspec URLs
47
+
16
48
  ## [1.0.0] - 2022-05-22
17
49
  ### Added
18
50
  - Initial odd release supporting Ruby ~> 1.9
51
+
52
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.3...HEAD
53
+ [2.0.3]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.2...v2.0.3
54
+ [2.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.1...v2.0.2
55
+ [2.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v2.0.0...v2.0.1
56
+ [2.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.3...v2.0.0
57
+ [1.0.3]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.2...v1.0.3
58
+ [1.0.2]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.1...v1.0.2
59
+ [1.0.1]: https://github.com/rubocop-lts/rubocop-lts/compare/v1.0.0...v1.0.1
60
+ [1.0.0]: https://github.com/rubocop-lts/rubocop-lts/compare/f0fcf8e7dbb4d884a01c7191e7f26ef8bf3b22af...v1.0.0
data/README.md CHANGED
@@ -35,12 +35,12 @@ Projects that support a single version of Ruby (like many closed-source applicat
35
35
  Projects that support multiple versions of Ruby simultaneously (like many open-source applications and libraries) will use the [Even releases][even-release].
36
36
 
37
37
  <!-- FIND VERSION -->
38
- **This README is for the odd release of `rubocop-lts` supporting only Ruby 1.9.**
38
+ **This README is for the even release of `rubocop-lts` supporting Ruby >= 1.9.**
39
39
 
40
40
  [odd-release]: https://github.com/rubocop-lts/rubocop-lts#odd-major-release
41
41
  [even-release]: https://github.com/rubocop-lts/rubocop-lts#even-major-release
42
42
 
43
- ## Version Conventions
43
+ ## Version Conventions
44
44
 
45
45
  ### Odd Major Release
46
46
 
@@ -118,7 +118,7 @@ Each major version will have a tracking branch named accordingly, [for developme
118
118
 
119
119
  ### 🪢 How To Untie Gorgon's Knot
120
120
 
121
- > NOTE: `rubocop-lts` is under active development, and hasn't had any releases yet. The ruby specific versions, e.g. `rubocop-ruby2_7`, are complete already, and you can use them! Keep scrolling down for links to each of them.
121
+ > NOTE: The ruby specific versions, e.g. `rubocop-ruby2_7`, can be used if you won't be upgrading ruby. Keep scrolling down for links to each of them.
122
122
 
123
123
  How to upgrade a project from yesterday, to today.
124
124
 
@@ -202,7 +202,7 @@ Add this line to your application's Gemfile:
202
202
 
203
203
  <!-- FIND VERSION -->
204
204
  ```ruby
205
- gem 'rubocop-lts', '~> 1.0', require: false
205
+ gem 'rubocop-lts', '~> 2.0', require: false
206
206
  ```
207
207
 
208
208
  And then execute:
@@ -288,13 +288,32 @@ The gem is available as open source under the terms of
288
288
  the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
289
289
  See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
290
290
 
291
- * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
291
+ <details>
292
+ <summary>Project Logos (rubocop-lts)</summary>
292
293
 
293
- [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
294
+ See [docs/images/logo/README.txt][project-logos]
295
+ </details>
296
+
297
+ <details>
298
+ <summary>Organization Logo (rubocop-semver)</summary>
299
+
300
+ Author: [Yusuf Evli][org-logo-author]
301
+ Source: [Unsplash][org-logo-source]
302
+ License: [Unsplash License][org-logo-license]
303
+ </details>
304
+
305
+ [project-logos]: https://github.com/rubocop-lts/rubocop-lts/blob/main/docs/images/logo/README.txt
306
+ [org-logo-author]: https://unsplash.com/@yusufevli
307
+ [org-logo-source]: https://unsplash.com/photos/yaSLNLtKRIU
308
+ [org-logo-license]: https://unsplash.com/license
309
+
310
+ ### © Copyright
311
+
312
+ * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
294
313
 
295
314
  ## 🤝 Code of Conduct
296
315
 
297
- Everyone interacting in the Rubocop::Ruby19 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md).
316
+ Everyone interacting in Rubocop LTS codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-lts/blob/main/CODE_OF_CONDUCT.md).
298
317
 
299
318
  ## 📌 Versioning
300
319
 
@@ -310,7 +329,7 @@ For example:
310
329
 
311
330
  <!-- FIND VERSION -->
312
331
  ```ruby
313
- spec.add_dependency "rubocop-lts", "~> 1.0"
332
+ spec.add_dependency "rubocop-lts", "~> 2.0"
314
333
  ```
315
334
 
316
335
 
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Rubocop
5
5
  module Lts
6
- VERSION = "2.0.0".freeze
6
+ VERSION = "2.0.3".freeze
7
7
  end
8
8
  end
data/rubocop-lts.yml ADDED
@@ -0,0 +1,19 @@
1
+ inherit_gem:
2
+ rubocop-ruby1_9: rubocop.yml
3
+
4
+ # Removed as of 0.80.0
5
+ # braces setting is for compatibility with Ruby 2.7+
6
+ # See:
7
+ # * https://github.com/rubocop/rubocop/issues/7641
8
+ # * https://github.com/rubocop/rubocop/pull/7643
9
+ Style/BracesAroundHashParameters:
10
+ Enabled: true
11
+ EnforcedStyle: context_dependent
12
+
13
+ # The encoding comments can be removed once the project drops Ruby 1.9 support (and this gem!).
14
+ # Whole file UTF-8 Encoding is default in Ruby 2+, so the Encoding comment is usually not needed there.
15
+ # See:
16
+ # * https://www.rubydoc.info/gems/rubocop/0.49.0/RuboCop/Cop/Style/Encoding
17
+ Style/Encoding:
18
+ Enabled: true
19
+ EnforcedStyle: always
@@ -0,0 +1,34 @@
1
+ inherit_gem:
2
+ rubocop-ruby1_9: rubocop-ruby1_8.yml
3
+
4
+ ###################################################################
5
+ # Rules that allow preservation of ruby 1.8.7 / ree compatibility #
6
+ ###################################################################
7
+
8
+ Style/Documentation:
9
+ Enabled: false
10
+
11
+ # Ruby 1.8.7 needs the . on chain of method calls at the end of a line
12
+ Style/DotPosition:
13
+ EnforcedStyle: trailing
14
+
15
+ Style/FrozenStringLiteralComment:
16
+ Enabled: true
17
+
18
+ # Ruby 1.8.7 doesn't have 1.9 style hash syntax
19
+ Style/HashSyntax:
20
+ EnforcedStyle: hash_rockets
21
+
22
+ # Ruby 1.8.7 doesn't have the -> lambda
23
+ Style/Lambda:
24
+ Enabled: false
25
+
26
+ Style/PercentLiteralDelimiters:
27
+ Enabled: false
28
+
29
+ Style/SymbolArray:
30
+ EnforcedStyle: brackets
31
+
32
+ Style/WordArray:
33
+ EnforcedStyle: brackets
34
+
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # This gem
5
- require "rubocop/ruby1_9"
5
+ require "rubocop/lts"
6
6
 
7
7
  # RSpec Configs
8
8
  require "config/rspec/rspec_core"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-lts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-22 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop-ruby1_9
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.3
19
+ version: 1.0.5
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.0.3
26
+ version: 1.0.5
27
27
  description: Rubocop LTS - Chaos Reduction In a Bottle
28
28
  email:
29
29
  - peter.boling@gmail.com
@@ -39,6 +39,8 @@ files:
39
39
  - SECURITY.md
40
40
  - lib/rubocop/lts.rb
41
41
  - lib/rubocop/lts/version.rb
42
+ - rubocop-lts.yml
43
+ - rubocop-lts1_8.yml
42
44
  - sig/rubocop/lts.rbs
43
45
  - spec/config/rspec/rspec_core.rb
44
46
  - spec/rubocop/lts_spec.rb
@@ -48,10 +50,10 @@ licenses:
48
50
  - MIT
49
51
  metadata:
50
52
  homepage_uri: https://github.com/rubocop-lts/rubocop-lts
51
- source_code_uri: https://github.com/rubocop-lts/rubocop-lts/tree/v2.0.0
52
- changelog_uri: https://github.com/rubocop-lts/rubocop-lts/blob/v2.0.0/CHANGELOG.md
53
+ source_code_uri: https://github.com/rubocop-lts/rubocop-lts/tree/v2.0.3
54
+ changelog_uri: https://github.com/rubocop-lts/rubocop-lts/blob/v2.0.3/CHANGELOG.md
53
55
  bug_tracker_uri: https://github.com/rubocop-lts/rubocop-lts/issues
54
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby1_9/2.0.0
56
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-lts/2.0.3
55
57
  wiki_uri: https://github.com/rubocop-lts/rubocop-lts/wiki
56
58
  rubygems_mfa_required: 'true'
57
59
  post_install_message: