Commit eabd2ff
Address code review feedback
Changes based on PR review comments:
1. Add logging when skipping generate_packs due to shakapacker hook
- Now prints message during assets:precompile to inform users
2. Document PackGenerator design decisions
- Explain why it delegates to Rake task (stable interface)
- Clarify two execution strategies (direct vs bundle exec)
- Justify class naming as semantic wrapper
3. Improve error handling documentation
- Explain why errors are swallowed (fail-safe approach)
- List possible error types (NoMethodError, TypeError, etc.)
- Add debug warning when detection fails
4. Add comprehensive test documentation
- Overview of PackGenerator responsibilities
- Explanation of what tests cover and why
- Clear structure for future contributors
5. Reduce cyclomatic complexity
- Extract helper methods for hook detection
- Separate concerns (extraction vs validation)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 2ecec4a commit eabd2ff
File tree
4 files changed
+54
-6
lines changed- lib/react_on_rails
- dev
- spec/react_on_rails/dev
4 files changed
+54
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
8 | 26 | | |
9 | 27 | | |
10 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
175 | 192 | | |
176 | 193 | | |
177 | 194 | | |
178 | 195 | | |
179 | 196 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 197 | + | |
| 198 | + | |
183 | 199 | | |
| 200 | + | |
184 | 201 | | |
185 | 202 | | |
186 | 203 | | |
187 | | - | |
188 | | - | |
189 | 204 | | |
190 | 205 | | |
191 | 206 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
6 | 19 | | |
7 | 20 | | |
8 | 21 | | |
| |||
0 commit comments