Commit e329076
committed
Add Bundler check to prevent false Pro gem detection in sibling structure
In the sibling gem structure, both react_on_rails and react_on_rails_pro
gems are loaded from the root Gemfile, making both available via Gem.loaded_specs.
This caused the base dummy app to incorrectly detect Pro as installed, leading to:
- Package mismatch errors (base dummy has react-on-rails package, not Pro package)
- Potential double-engine loading issues
Solution: Check Bundler's actual dependencies to see if Pro is explicitly
requested in the application's Gemfile, not just if it's available in the load path.
This allows both gems to coexist in development while correctly identifying
which gem the application is actually using.1 parent 261244b commit e329076
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
251 | 260 | | |
252 | 261 | | |
253 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
254 | 266 | | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
259 | 271 | | |
260 | 272 | | |
| 273 | + | |
261 | 274 | | |
262 | 275 | | |
263 | 276 | | |
| |||
0 commit comments