Commit 33a2a60
Address PR review feedback: fix bugs and improve version checking
- Fix wrong version in pro package install command (use pro gem version
instead of base gem version for react-on-rails-pro)
- Fix sync_versions skipping range specs (^16.5.0) when normalized version
already matches by tracking non_exact flag in parse_supported_spec
- Restrict strip_range_prefix to forward-looking ranges (^, ~, >=, >),
treating upper-bound constraints (<, <=) as unsupported
- Reorder auto_fix_versions before wildcard checks so FIX=true resolved
issues don't appear as errors
- Check all four dependency sections (including optionalDependencies and
peerDependencies) in doctor npm wildcard check
- Remove duplicate wildcard checks from system_checker (now solely in doctor)
- Skip workspace:/file:/link: specs in version sync check
- Use EXACT_VERSION_REGEX whitelist for npm version detection (catches tags
like "latest", "beta" that the old blacklist missed)
- Use Gem::Requirement.exact? for Gemfile constraint detection (catches
all non-exact operators including >, <, <=)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 68f1ce8 commit 33a2a60
4 files changed
Lines changed: 56 additions & 24 deletions
File tree
- react_on_rails
- lib/react_on_rails
- spec/lib/react_on_rails
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
| 148 | + | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
531 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
532 | 552 | | |
533 | 553 | | |
534 | 554 | | |
535 | 555 | | |
536 | | - | |
| 556 | + | |
537 | 557 | | |
538 | 558 | | |
539 | | - | |
| 559 | + | |
540 | 560 | | |
541 | | - | |
542 | | - | |
543 | 561 | | |
544 | 562 | | |
545 | 563 | | |
| |||
549 | 567 | | |
550 | 568 | | |
551 | 569 | | |
552 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
553 | 573 | | |
554 | 574 | | |
555 | 575 | | |
| |||
564 | 584 | | |
565 | 585 | | |
566 | 586 | | |
567 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
568 | 595 | | |
569 | | - | |
| 596 | + | |
570 | 597 | | |
571 | 598 | | |
572 | 599 | | |
| |||
577 | 604 | | |
578 | 605 | | |
579 | 606 | | |
580 | | - | |
581 | | - | |
582 | 607 | | |
583 | 608 | | |
584 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
233 | | - | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
154 | | - | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | | - | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
169 | | - | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | | - | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
449 | 451 | | |
450 | 452 | | |
451 | 453 | | |
| |||
0 commit comments