appraisal2-rubocop 0.1.0 → 0.2.0
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 +18 -1
- data/README.md +33 -3
- data/lib/appraisal2/rubocop/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +10 -10
- 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: 1eba506136e2bc2f2303ae3ad6728392fac875231cb436ceee4426d2b88420d4
|
|
4
|
+
data.tar.gz: 5e5deda5e798f5599b722ad67a3e1a6e8a1e0d279b63216c4f08daa202ecbe11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1aaefdba6b25900baabd180ac066d57002175b1738418926b3999d1dce0686350ebbcbf453957ad384cfc12f945827282e0337c3236e2a03fa46f79915f7f7df
|
|
7
|
+
data.tar.gz: 4f73c877c3c74584007f77ae45b6f65d6647ec071360345816f9a45861068e14d7de90161963356202864e86a91bb743fea065e6edb9da3fcc8098ef1e39d760
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -28,8 +28,23 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
28
28
|
|
|
29
29
|
### Fixed
|
|
30
30
|
|
|
31
|
+
- Avoid loading the Ruby-3.2+-only style toolchain from `Appraisal.root.gemfile`
|
|
32
|
+
on Ruby 3.1, fixing Ruby 3.1 CI dependency resolution.
|
|
33
|
+
|
|
31
34
|
### Security
|
|
32
35
|
|
|
36
|
+
## [0.2.0] - 2026-06-06
|
|
37
|
+
|
|
38
|
+
- TAG: [v0.2.0][0.2.0t]
|
|
39
|
+
- COVERAGE: 98.04% -- 50/51 lines in 3 files
|
|
40
|
+
- BRANCH COVERAGE: 80.00% -- 8/10 branches in 3 files
|
|
41
|
+
- 20.00% documented
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- Raised the Appraisal2 dependency floor to 3.1.1 and documented the
|
|
46
|
+
`plugin`/`generator_only` integration shape.
|
|
47
|
+
|
|
33
48
|
## [0.1.0] - 2026-06-06
|
|
34
49
|
|
|
35
50
|
- TAG: [v0.1.0][0.1.0t]
|
|
@@ -54,6 +69,8 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
54
69
|
- Replaced the hardcoded local `appraisal2` Gemfile path with ENV-driven
|
|
55
70
|
`nomono` sibling workspace wiring.
|
|
56
71
|
|
|
57
|
-
[Unreleased]: https://github.com/appraisal-rb/appraisal2-rubocop/compare/v0.
|
|
72
|
+
[Unreleased]: https://github.com/appraisal-rb/appraisal2-rubocop/compare/v0.2.0...HEAD
|
|
73
|
+
[0.2.0]: https://github.com/appraisal-rb/appraisal2-rubocop/compare/v0.1.0...v0.2.0
|
|
74
|
+
[0.2.0t]: https://github.com/appraisal-rb/appraisal2-rubocop/releases/tag/v0.2.0
|
|
58
75
|
[0.1.0]: https://github.com/appraisal-rb/appraisal2-rubocop/compare/93b1188d679a0d56f960a9cd85b48b2c1e2d1a9f...v0.1.0
|
|
59
76
|
[0.1.0t]: https://github.com/appraisal-rb/appraisal2-rubocop/releases/tag/v0.1.0
|
data/README.md
CHANGED
|
@@ -26,7 +26,8 @@ Runs RuboCop against Appraisal2-generated gemfiles via Appraisal2 lifecycle hook
|
|
|
26
26
|
This plugin is intended for modern Ruby style-maintenance environments. It does
|
|
27
27
|
not match Appraisal2's legacy runtime floor.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Load it as an Appraisal2 generator plugin, and make its RuboCop toolchain
|
|
30
|
+
available only to the generator bundle.
|
|
30
31
|
|
|
31
32
|
## 💡 Info you can shake a stick at
|
|
32
33
|
|
|
@@ -117,8 +118,37 @@ gem install appraisal2-rubocop
|
|
|
117
118
|
|
|
118
119
|
## 🔧 Basic Usage
|
|
119
120
|
|
|
121
|
+
Add the plugin to the style toolchain used by the Appraisal root bundle:
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
# gemfiles/modular/style.gemfile
|
|
125
|
+
gem "appraisal2-rubocop", "~> 0.1", ">= 0.1.0", require: false
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Expose that style toolchain only to the Appraisal generator bundle:
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
# Appraisal.root.gemfile
|
|
132
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.2")
|
|
133
|
+
if respond_to?(:generator_only)
|
|
134
|
+
generator_only do
|
|
135
|
+
eval_gemfile "gemfiles/modular/style.gemfile"
|
|
136
|
+
end
|
|
137
|
+
else
|
|
138
|
+
eval_gemfile "gemfiles/modular/style.gemfile"
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The `respond_to?(:generator_only)` split is for the two DSLs that read this
|
|
144
|
+
file: Appraisal2 uses the `generator_only` block when building generated
|
|
145
|
+
appraisal gemfiles, while Bundler evaluates the same file to install the
|
|
146
|
+
generator bundle.
|
|
147
|
+
|
|
148
|
+
Load the plugin from `Appraisals`:
|
|
149
|
+
|
|
120
150
|
```ruby
|
|
121
|
-
require "appraisal2/rubocop"
|
|
151
|
+
plugin "appraisal2-rubocop", require: "appraisal2/rubocop", optional: true
|
|
122
152
|
```
|
|
123
153
|
|
|
124
154
|
By default each generated gemfile is processed in memory with:
|
|
@@ -133,7 +163,7 @@ rubocop --stdin path/to/generated.gemfile --autocorrect --stderr --format quiet
|
|
|
133
163
|
| Package | appraisal2-rubocop |
|
|
134
164
|
| Description | 💎 Appraisal2::Rubocop registers Appraisal2 generation hooks that run RuboCop against generated appraisal gemfiles. |
|
|
135
165
|
| Homepage | https://github.com/appraisal-rb/appraisal2-rubocop |
|
|
136
|
-
| Source | https://github.com/appraisal-rb/appraisal2-rubocop/tree/v0.
|
|
166
|
+
| Source | https://github.com/appraisal-rb/appraisal2-rubocop/tree/v0.2.0 |
|
|
137
167
|
| License | `MIT` |
|
|
138
168
|
| Funding | https://github.com/sponsors/pboling, https://issuehunt.io/u/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/appraisal-rb, https://patreon.com/galtzo, https://polar.sh/pboling, https://thanks.dev/u/gh/pboling, https://tidelift.com/funding/github/rubygems/appraisal2-rubocop, https://www.buymeacoffee.com/pboling |
|
|
139
169
|
<!-- kettle-jem:metadata:end -->
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appraisal2-rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Boling
|
|
@@ -43,14 +43,14 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 3.1.
|
|
46
|
+
version: 3.1.1
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 3.1.
|
|
53
|
+
version: 3.1.1
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: rubocop
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -91,20 +91,20 @@ dependencies:
|
|
|
91
91
|
requirements:
|
|
92
92
|
- - "~>"
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '2.
|
|
94
|
+
version: '2.1'
|
|
95
95
|
- - ">="
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: 2.0
|
|
97
|
+
version: 2.1.0
|
|
98
98
|
type: :development
|
|
99
99
|
prerelease: false
|
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
|
102
102
|
- - "~>"
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
version: '2.
|
|
104
|
+
version: '2.1'
|
|
105
105
|
- - ">="
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
|
-
version: 2.0
|
|
107
|
+
version: 2.1.0
|
|
108
108
|
- !ruby/object:Gem::Dependency
|
|
109
109
|
name: bundler-audit
|
|
110
110
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -298,10 +298,10 @@ licenses:
|
|
|
298
298
|
- MIT
|
|
299
299
|
metadata:
|
|
300
300
|
homepage_uri: https://appraisal2-rubocop.galtzo.com
|
|
301
|
-
source_code_uri: https://github.com/appraisal-rb/appraisal2-rubocop/tree/v0.
|
|
302
|
-
changelog_uri: https://github.com/appraisal-rb/appraisal2-rubocop/blob/v0.
|
|
301
|
+
source_code_uri: https://github.com/appraisal-rb/appraisal2-rubocop/tree/v0.2.0
|
|
302
|
+
changelog_uri: https://github.com/appraisal-rb/appraisal2-rubocop/blob/v0.2.0/CHANGELOG.md
|
|
303
303
|
bug_tracker_uri: https://github.com/appraisal-rb/appraisal2-rubocop/issues
|
|
304
|
-
documentation_uri: https://www.rubydoc.info/gems/appraisal2-rubocop/0.
|
|
304
|
+
documentation_uri: https://www.rubydoc.info/gems/appraisal2-rubocop/0.2.0
|
|
305
305
|
funding_uri: https://github.com/sponsors/pboling
|
|
306
306
|
wiki_uri: https://github.com/appraisal-rb/appraisal2-rubocop/wiki
|
|
307
307
|
news_uri: https://www.railsbling.com/tags/appraisal2-rubocop
|
metadata.gz.sig
CHANGED
|
Binary file
|