Commit 9294068
feat: unflag Ruby gem support and add e2e bundler tests (#41)
* feat: unflag Ruby gem support and add e2e bundler tests
Remove the `gem` feature flag so Ruby gem support is always compiled in,
matching npm and PyPI which are already default-on. This ensures gem
support ships in every release binary built with `cargo build --release`.
- Remove `gem = []` from both Cargo.toml feature sections
- Remove all `#[cfg(feature = "gem")]` gates from crawler module,
Ecosystem enum, PURL functions, and ecosystem dispatch
- Rewrite e2e_gem.rs with full bundler lifecycle tests targeting
activestorage@5.2.0 (CVE-2022-21831) with 3-file hash verification
- Add Ruby 3.2 setup step in CI for e2e_gem suite
- Update READMEs to reflect gem as default, not feature-flagged
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: split clippy into own CI job and fix broken update.rs tests
- Move clippy into a dedicated `clippy` job so it runs independently
from tests and is separately visible in PR checks
- Remove `components: clippy` from the test job (no longer needed)
- Fix 2 pre-existing test failures in package_json::update::tests:
assertions checked for "socket patch apply" (space) but the
SOCKET_PATCH_COMMAND writes "socket-patch apply" (hyphen)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: pin ruby/setup-ruby action to full commit SHA
GitHub org policy requires all actions to be pinned to full-length
commit SHAs. Pin ruby/setup-ruby@v1 to its current SHA.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use dynamic hash verification in gem e2e tests
Instead of hardcoded before/after hashes (which were incorrect
placeholders), read expected hashes from the manifest after `get`
and record original hashes dynamically after install. This matches
the pattern used by the pypi e2e tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 90c5fb6 commit 9294068
File tree
12 files changed
+393
-57
lines changed- .github/workflows
- crates
- socket-patch-cli
- src
- tests
- socket-patch-core
- src
- crawlers
- package_json
- utils
12 files changed
+393
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
12 | 37 | | |
13 | 38 | | |
14 | 39 | | |
| |||
22 | 47 | | |
23 | 48 | | |
24 | 49 | | |
25 | | - | |
26 | 50 | | |
27 | 51 | | |
28 | 52 | | |
| |||
34 | 58 | | |
35 | 59 | | |
36 | 60 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
| |||
120 | 141 | | |
121 | 142 | | |
122 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
123 | 151 | | |
124 | 152 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | | - | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
326 | | - | |
327 | 324 | | |
328 | 325 | | |
329 | 326 | | |
| |||
468 | 465 | | |
469 | 466 | | |
470 | 467 | | |
471 | | - | |
472 | 468 | | |
473 | 469 | | |
474 | 470 | | |
| |||
0 commit comments