rubocop-lts-ruby 0.1.1 → 0.1.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +32 -1
- data/README.md +1 -1
- data/lib/rubocop/lts/ruby/catalog.rb +1 -1
- data/lib/rubocop/lts/ruby/cop/lint_lts_ruby/unavailable_method.rb +16 -5
- data/lib/rubocop/lts/ruby/version.rb +1 -1
- data/rubocop-lts-ruby.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ec3eae97ac47cce60799e7bf78212eb547040f5c623603074e280eb5e09ced4
|
|
4
|
+
data.tar.gz: f7b66a223e7405c286ed9d9774f25d46104aaec99411a133bdc371d918d385c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d21a3ba66e4d5e1071374c7fe3968dd3548c81c7479a8222f7adde371697ef6a378d593c737d240d76149fa920f44f1d86d12f8754e9ed4e25438db692cb1c3
|
|
7
|
+
data.tar.gz: dc33958d02a565aa553e65907fbccf0534f48a8bfe891da6dfaea55a3fc177f6c3fc25a97e50db5772d239bf8daf55afc7590190bc68e30b666f7fc7634b873b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,33 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [0.1.3] - 2026-09-07
|
|
34
|
+
|
|
35
|
+
- TAG: [v0.1.3][0.1.3t]
|
|
36
|
+
- COVERAGE: 97.47% -- 77/79 lines in 6 files
|
|
37
|
+
- BRANCH COVERAGE: 78.57% -- 11/14 branches in 6 files
|
|
38
|
+
- 44.44% documented
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- [kc] kettle-jem/prepare: updated 6 project files:
|
|
43
|
+
- dependencies (6)
|
|
44
|
+
|
|
45
|
+
- [kc] kettle-jem/template: updated 5 project files:
|
|
46
|
+
- dependencies (3)
|
|
47
|
+
- other (2)
|
|
48
|
+
|
|
49
|
+
## [0.1.2] - 2026-09-07
|
|
50
|
+
|
|
51
|
+
- TAG: [v0.1.2][0.1.2t]
|
|
52
|
+
- COVERAGE: 97.47% -- 77/79 lines in 6 files
|
|
53
|
+
- BRANCH COVERAGE: 78.57% -- 11/14 branches in 6 files
|
|
54
|
+
- 44.44% documented
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
|
|
58
|
+
- Avoid false positives for ObjectSpace::WeakMap delete availability checks.
|
|
59
|
+
|
|
33
60
|
## [0.1.1] - 2026-09-07
|
|
34
61
|
|
|
35
62
|
- TAG: [v0.1.1][0.1.1t]
|
|
@@ -139,7 +166,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
139
166
|
|
|
140
167
|
- Generated dep-heads workflows now include their checked-in appraisal Gemfile, and Ruby 3.1 stdlib appraisal references resolve to an existing modular Gemfile.
|
|
141
168
|
|
|
142
|
-
[Unreleased]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/v0.1.
|
|
169
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/v0.1.3...HEAD
|
|
170
|
+
[0.1.3]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/v0.1.2...v0.1.3
|
|
171
|
+
[0.1.3t]: https://github.com/rubocop-lts/rubocop-lts-ruby/releases/tag/v0.1.3
|
|
172
|
+
[0.1.2]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/v0.1.1...v0.1.2
|
|
173
|
+
[0.1.2t]: https://github.com/rubocop-lts/rubocop-lts-ruby/releases/tag/v0.1.2
|
|
143
174
|
[0.1.1]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/v0.1.0...v0.1.1
|
|
144
175
|
[0.1.1t]: https://github.com/rubocop-lts/rubocop-lts-ruby/releases/tag/v0.1.1
|
|
145
176
|
[0.1.0]: https://github.com/rubocop-lts/rubocop-lts-ruby/compare/968b2f62d3056d967753b1ee4fcdc3c958553b87...v0.1.0
|
data/README.md
CHANGED
|
@@ -500,7 +500,7 @@ Thanks for RTFM. ☺️
|
|
|
500
500
|
[📌gitmoji]: https://gitmoji.dev
|
|
501
501
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
502
502
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
503
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.
|
|
503
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.079-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
504
504
|
[🔐security]: https://github.com/rubocop-lts/rubocop-lts-ruby/blob/main/SECURITY.md
|
|
505
505
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
506
506
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -237,7 +237,7 @@ module RuboCop
|
|
|
237
237
|
entry("Object", :then, "2.6"),
|
|
238
238
|
entry("Object", :yield_self, "2.5"),
|
|
239
239
|
entry("ObjectSpace", :reachable_objects_from, "2.0", receiver_type: :constant),
|
|
240
|
-
entry("ObjectSpace::WeakMap", :delete, "3.3"),
|
|
240
|
+
entry("ObjectSpace::WeakMap", :delete, "3.3", receiver_type: :constructed_instance),
|
|
241
241
|
entry("OpenStruct", :[], "2.0"),
|
|
242
242
|
entry("OpenStruct", :[]=, "2.0"),
|
|
243
243
|
entry("OpenStruct", :each_pair, "2.0"),
|
|
@@ -44,13 +44,24 @@ module RuboCop
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def entry_applies?(node, entry)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
case entry.receiver_type
|
|
48
|
+
when :instance
|
|
49
|
+
!node.receiver.const_type?
|
|
50
|
+
when :constant
|
|
51
|
+
node.receiver.const_type? && node.receiver.const_name == entry.owner
|
|
52
|
+
when :constructed_instance
|
|
53
|
+
constructed_instance_of?(node.receiver, entry.owner)
|
|
54
|
+
else
|
|
55
|
+
false
|
|
51
56
|
end
|
|
57
|
+
end
|
|
52
58
|
|
|
53
|
-
|
|
59
|
+
# A local receiver has no reliable static class in RuboCop's AST. Restrict
|
|
60
|
+
# constructor-only APIs to a directly visible `Owner.new` expression rather
|
|
61
|
+
# than treating every nonconstant receiver as an instance of that owner.
|
|
62
|
+
def constructed_instance_of?(receiver, owner)
|
|
63
|
+
receiver.send_type? && receiver.method?(:new) &&
|
|
64
|
+
receiver.receiver&.const_type? && receiver.receiver.const_name == owner
|
|
54
65
|
end
|
|
55
66
|
|
|
56
67
|
def report_unavailable(node, entries)
|
|
@@ -6,7 +6,7 @@ module RuboCop
|
|
|
6
6
|
# Version namespace for this gem.
|
|
7
7
|
module Version
|
|
8
8
|
# Current gem version.
|
|
9
|
-
VERSION = "0.1.
|
|
9
|
+
VERSION = "0.1.3"
|
|
10
10
|
end
|
|
11
11
|
# Current gem version exposed at the traditional constant location.
|
|
12
12
|
VERSION = Version::VERSION # Traditional Constant Location
|
data/rubocop-lts-ruby.gemspec
CHANGED
|
@@ -120,7 +120,7 @@ Gem::Specification.new do |spec|
|
|
|
120
120
|
# and preferably a modular one (see gemfiles/modular/*.gemfile).
|
|
121
121
|
|
|
122
122
|
# Dev, Test, & Release Tasks
|
|
123
|
-
spec.add_development_dependency("kettle-dev", "~> 3.0", ">= 3.0.
|
|
123
|
+
spec.add_development_dependency("kettle-dev", "~> 3.0", ">= 3.0.33") # ruby >= 3.2.0
|
|
124
124
|
|
|
125
125
|
# Security
|
|
126
126
|
spec.add_development_dependency("bundler-audit", "~> 0.9.3") # ruby >= 2.0.0
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-lts-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -100,7 +100,7 @@ dependencies:
|
|
|
100
100
|
version: '3.0'
|
|
101
101
|
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 3.0.
|
|
103
|
+
version: 3.0.33
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -110,7 +110,7 @@ dependencies:
|
|
|
110
110
|
version: '3.0'
|
|
111
111
|
- - ">="
|
|
112
112
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: 3.0.
|
|
113
|
+
version: 3.0.33
|
|
114
114
|
- !ruby/object:Gem::Dependency
|
|
115
115
|
name: bundler-audit
|
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -320,10 +320,10 @@ licenses:
|
|
|
320
320
|
- MIT
|
|
321
321
|
metadata:
|
|
322
322
|
homepage_uri: https://github.com/rubocop-lts/rubocop-lts-ruby
|
|
323
|
-
source_code_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/tree/v0.1.
|
|
324
|
-
changelog_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/blob/v0.1.
|
|
323
|
+
source_code_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/tree/v0.1.3
|
|
324
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/blob/v0.1.3/CHANGELOG.md
|
|
325
325
|
bug_tracker_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/issues
|
|
326
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-lts-ruby/0.1.
|
|
326
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-lts-ruby/0.1.3
|
|
327
327
|
funding_uri: https://github.com/sponsors/pboling
|
|
328
328
|
wiki_uri: https://github.com/rubocop-lts/rubocop-lts-ruby/wiki
|
|
329
329
|
news_uri: https://www.railsbling.com/tags/rubocop-lts-ruby
|
metadata.gz.sig
CHANGED
|
Binary file
|