Commit d5b153b
Improve shakapacker detection with robust multi-strategy approach
Enhanced shakapacker_in_gemfile? method to use layered detection:
1. Check Gem.loaded_specs (fastest)
2. Parse Gemfile.lock (most accurate, handles git/path gems)
3. Query Bundler.load.specs (reliable when available)
4. Fallback to Gemfile parsing
This approach is more efficient, avoids side effects from require(),
and handles edge cases better than the previous implementation.
Co-authored-by: User <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent d6ca545 commit d5b153b
1 file changed
+26
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
185 | 188 | | |
186 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | | - | |
189 | | - | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | | - | |
192 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
193 | 203 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
198 | 213 | | |
| 214 | + | |
| 215 | + | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
| |||
0 commit comments