rubocop-ruby3_0 1.1.1 → 1.1.2

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: 614b1aa95b632f0420a2318fc9d305629c05669c2e247d2933670663454ddb1b
4
- data.tar.gz: 83d17814caa4881e8c20254987b4e6bf1ce124dfb04287bf4bedce694efa87b4
3
+ metadata.gz: 217dd141a2b56af2db16cc695a4ff686a24dd489e1f1ebdb65f5c3faa753be15
4
+ data.tar.gz: cc5dd03f6ac71b46ea148123b64fce098afd0ae4573cecc9096e96cc22ea5714
5
5
  SHA512:
6
- metadata.gz: 0a823264c7ccc62d1c54783f01d892f85c80d0eaa9fd715ccc7dec99cebb7c58af4fcd1971e40a4e0dbbdd0ea2821ddb9f5e2aecc5d29cb90fbc5653f79f876c
7
- data.tar.gz: '0694bfa9003227cf5848fe8eb059e1f87b65858a8d2e17f3c0144915c05feb27a5abcec2edc6763b4766352787a63a8ee98b45a5bc1b547c796a2df725c9e24a'
6
+ metadata.gz: 41c2815e44c5bec45bb9b907690d601a025d06c8285c68f0a87ae0d7309db2b8a7fd88149713cd2d4ca34c8dd88afda2c9d9ef8c5f564328b38ffaab4f6b5852
7
+ data.tar.gz: a5bf34fa9de6034abd1532ebefc0fcd75138cc624c1af6206f0c87f15571009670bccf31d85f59b29d715c3bac7f17e02584aa5c895893d9b88d8080c9fb633c
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [1.1.2] 2023-03-17
14
+ ### Added
15
+ * GitLab CI config
16
+ ### Changed
17
+ * Upgraded to RuboCop v1.48.1
18
+ * Compatible with rubocop-packaging ~> 0.5.2
19
+ * Improved development documentation
20
+ * Improved documentation on SemVer adherence
21
+ ### Fixed
22
+ * Stop defining global variable in version.rb
23
+
13
24
  ## [1.1.1] 2022-12-20
14
25
  ### Fixed
15
26
  * Do not require version.rb from gemspec so code coverage is accurate from both `rake` and `rspec`
@@ -60,7 +71,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
71
  ### Added
61
72
  * Initial release
62
73
 
63
- [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.1...HEAD
74
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.2...HEAD
75
+ [1.1.2]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.1...v1.1.2
64
76
  [1.1.1]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.0...v1.1.1
65
77
  [1.1.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.6...v1.1.0
66
78
  [1.0.6]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.5...v1.0.6
data/CONTRIBUTING.md CHANGED
@@ -11,13 +11,14 @@ and post a message to the [gitter chat][🏘chat].
11
11
 
12
12
  To release a new version:
13
13
 
14
- 1. update the version number in `version.rb`
15
- 2. run `bundle exec rake build:checksum`
16
- 3. move the built gem to project root
17
- 4. run `bin/checksum` to create the missing SHA256 checksum
18
- 5. move the built gem back to `pkg/`
19
- 6. commit the changes
20
- 7. 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].
14
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check.
15
+ 2. update the version number in `version.rb`
16
+ 3. run `bundle exec rake build:checksum`
17
+ 4. move the built gem to project root
18
+ 5. run `bin/checksum` to create the missing SHA256 checksum
19
+ 6. move the built gem back to `pkg/`
20
+ 7. commit the changes
21
+ 8. 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].
21
22
 
22
23
  NOTE: You will need to have a public key in `certs/`, and list your cert in the
23
24
  `gemspec`, in order to sign the new release.
@@ -25,13 +26,12 @@ See: [RubyGems Security Guide][rubygems-security-guide]
25
26
 
26
27
  ## Contributors
27
28
 
28
- [![Contributors][🖐contributors-img]][🖐contributors]
29
+ See: [https://gitlab.com/rubocop-lts/rubocop-ruby3_)/-/graphs/main][🖐contributors]
29
30
 
30
31
  [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
31
32
 
32
33
  [conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/blob/main/CODE_OF_CONDUCT.md
33
34
  [🖐contributors]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/graphs/main
34
- [🖐contributors-img]: https://img.shields.io/github/contributors-anon/rubocop-lts/rubocop-ruby3_0
35
35
  [🚎src-main]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/tree/main
36
36
  [🏘chat]: https://gitter.im/rubocop-lts/community
37
37
  [rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Peter Boling
3
+ Copyright (c) 2022 - 2023 Peter Boling
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -86,10 +86,14 @@ This gem requires no other gems. It depends on `rubocop`, but does not `require
86
86
 
87
87
  Awareness of `rubocop`'s lack of [SemVer][semver] adherence isn't evenly dispersed in the Ruby community.
88
88
 
89
- The RuboCop team [has real reasons](https://github.com/semver/semver/issues/317)
90
- for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243), but if you've
91
- found this project their reasons likely weigh less, in your context (e.g. running `rubocop` from command line), than
92
- what brought you here.
89
+ The RuboCop team [has reasons](https://github.com/semver/semver/issues/317)
90
+ for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243).
91
+
92
+ NOTE: They think they are following SemVer,
93
+ but their interpretation differs from mine, and seems to differ from the
94
+ [intent of SemVer's creator][major-versions-not-sacred].
95
+
96
+ If you need to run `rubocop` from command line in an older version of Ruby, you've come to the right place.
93
97
 
94
98
  <p align="left">
95
99
  <a href="https://metaredux.com/posts/2022/04/21/rubocop-turns-10.html" target="_blank" rel="noopener">
@@ -98,26 +102,39 @@ what brought you here.
98
102
  </p>
99
103
 
100
104
  The purpose of this gem is to constrain the `rubocop` dependency of a project in
101
- a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns with the the desired minimum
102
- compatible/supported Ruby version.
105
+ a [SemVer compliant][semver]
106
+ (Semantic Versioning, [Major Versions are Not Sacred][major-versions-not-sacred])
107
+ way that aligns with the the desired minimum compatible/supported Ruby version.
103
108
 
104
109
  ## Ruby Version Support
105
110
 
106
111
  Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
107
112
  minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
108
- official [compatibility matrix][rubocop-matrix] for `rubocop`.
113
+ official [compatibility matrix][rubocop-support-matrix] for `rubocop`.
109
114
 
110
115
  ### Three Guarantees
111
116
 
112
- `rubocop-ruby3_0` (this gem) will install a version of `rubocop` which will
113
- **install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 3.0.
117
+ This gem will install a version of `rubocop` which will
118
+ **install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.7.
114
119
 
115
120
  Any change to any of those three abilities would require a major version bump.
116
- Each [spring `rubocop` drops][rubocop-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
121
+ Each [spring `rubocop` drops][rubocop-support-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
117
122
  Eventually `rubocop` will drop the ability to **analyze code** intended to support an EOL'd Ruby,
118
123
  as they already have for Ruby 1.8 and 1.9.
119
- When the `rubocop` team makes any of these changes they typically only bump the minor version of ruby,
120
- in violation of SemVer. This is a primary _raison d’être_ for this project.
124
+ When the `rubocop` team makes _any_ of these changes they
125
+ [only bump the minor version][rubocop-versioning] of RuboCop,
126
+ in violation of SemVer ([they disagree][rubocop-release-policy]).
127
+ In other words, RuboCop intentionally does not bump the major version when they drop
128
+ _analysis_, _runtime_, or _installation_ support for a given version of Ruby.
129
+ This is a primary _raison d’être_ for this project.
130
+ To get a better understanding of how SemVer is intended to work read this article from the creator of SemVer:
131
+
132
+ - ["Major Version Numbers are Not Sacred"][major-versions-not-sacred]
133
+
134
+ [rubocop-support-matrix]: https://docs.rubocop.org/rubocop/compatibility.html#support-matrix
135
+ [rubocop-versioning]: https://docs.rubocop.org/rubocop/versioning.html
136
+ [rubocop-release-policy]: https://docs.rubocop.org/rubocop/versioning.html#release-policy
137
+ [major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
121
138
 
122
139
  ### A Gem Family
123
140
 
@@ -203,9 +220,12 @@ But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If y
203
220
 
204
221
  ## Development
205
222
 
206
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
223
+ After checking out the repo, run `bin/setup` to install dependencies.
224
+ Then, run `rake spec` to run the tests w/ coverage,
225
+ or `bin/rake` to run tests w/ coverage, and linting.
226
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
207
227
 
208
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
228
+ To install this gem onto your local machine, run `bundle exec rake install`.
209
229
 
210
230
  ## ⚡️ Contributing
211
231
 
@@ -244,7 +264,7 @@ License: [Unsplash License][org-logo-license]
244
264
 
245
265
  ### © Copyright
246
266
 
247
- * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
267
+ * Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
248
268
 
249
269
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
250
270
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Ruby30
5
- VERSION = "1.1.1"
5
+ VERSION = "1.1.2"
6
6
  end
7
7
  end
data/rubocop.yml CHANGED
@@ -1,3 +1,10 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 3.0
3
3
  NewCops: enable
4
+
5
+ Gemspec/DevelopmentDependencies:
6
+ EnforcedStyle: Gemfile
7
+ AllowedGems:
8
+ - rake
9
+ - rspec
10
+ - yard
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ruby3_0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -36,7 +36,7 @@ cert_chain:
36
36
  gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
37
37
  4/bR9A==
38
38
  -----END CERTIFICATE-----
39
- date: 2022-12-20 00:00:00.000000000 Z
39
+ date: 2023-03-17 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.40.0
47
+ version: 1.48.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.40.0
54
+ version: 1.48.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.9'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.9'
97
97
  description: Links dependency on minimum Ruby version to maximum RuboCop version
98
98
  email:
99
99
  - peter.boling@gmail.com
@@ -116,10 +116,10 @@ licenses:
116
116
  - MIT
117
117
  metadata:
118
118
  homepage_uri: https://github.com/rubocop-lts/rubocop-ruby3_0
119
- source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.1.1
120
- changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.1.1/CHANGELOG.md
119
+ source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.1.2
120
+ changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.1.2/CHANGELOG.md
121
121
  bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
122
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.1.1
122
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.1.2
123
123
  funding_uri: https://liberapay.com/pboling
124
124
  wiki_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/wiki
125
125
  rubygems_mfa_required: 'true'
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.2.33
141
+ rubygems_version: 3.4.8
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Semantically Versioned RuboCop Dependency
metadata.gz.sig CHANGED
Binary file