Commit 19fbaaa
Fix bin/dev NameError by requiring PackerUtils in PackGenerator
Problem:
- bin/dev was failing with: uninitialized constant ReactOnRails::PackerUtils (NameError)
- pack_generator.rb was using PackerUtils without requiring it
- This broke bin/dev for all generated apps and spec/dummy
Solution:
- Add require_relative "../packer_utils" to pack_generator.rb
- Add integration tests to verify all required modules are accessible
- Add test to ensure PackerUtils is available when loading react_on_rails/dev
Testing:
- Added integration test in dev_spec.rb to verify bin/dev dependencies
- Added module dependencies test in pack_generator_spec.rb
- All tests pass without NameError
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent b547ef9 commit 19fbaaa
File tree
3 files changed
+35
-0
lines changed- lib/react_on_rails/dev
- spec/react_on_rails
- binstubs
- dev
3 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
61 | 86 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
| |||
0 commit comments