Commit e346593
Phase 3: Move RSC utility methods to Pro gem
- Remove RSC utility methods from ReactOnRails::Utils:
- rsc_bundle_js_file_path
- react_client_manifest_file_path
- react_server_client_manifest_file_path
- Add these methods to ReactOnRailsPro::Utils with same functionality
- Update rsc_support_enabled? in open-source to delegate to Pro gem
- Update all internal Pro gem references to use ReactOnRailsPro::Utils:
- react_on_rails_pro/lib/react_on_rails_pro/request.rb
- react_on_rails_pro/lib/react_on_rails_pro/utils.rb
- Update webpack_assets_status_checker.rb to call ReactOnRailsPro::Utils
- Remove RSC utility tests from open-source spec (lines 452-839)
- Removed rsc_bundle_js_file_path tests
- Removed react_client_manifest_file_path tests
- Removed react_server_client_manifest_file_path tests
- Update Pro gem test mocks to reference ReactOnRailsPro::Utils:
- react_on_rails_pro/spec/react_on_rails_pro/utils_spec.rb
- react_on_rails_pro/spec/react_on_rails_pro/request_spec.rb
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent bb35666 commit e346593
File tree
7 files changed
+64
-252
lines changed- lib/react_on_rails
- test_helper
- react_on_rails_pro
- lib/react_on_rails_pro
- spec/react_on_rails_pro
- spec/react_on_rails
7 files changed
+64
-252
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 156 | | |
185 | 157 | | |
186 | 158 | | |
| |||
261 | 233 | | |
262 | 234 | | |
263 | 235 | | |
| 236 | + | |
| 237 | + | |
264 | 238 | | |
265 | 239 | | |
266 | 240 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 241 | + | |
271 | 242 | | |
272 | 243 | | |
273 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
19 | 57 | | |
20 | 58 | | |
21 | 59 | | |
| |||
66 | 104 | | |
67 | 105 | | |
68 | 106 | | |
69 | | - | |
| 107 | + | |
70 | 108 | | |
71 | 109 | | |
72 | 110 | | |
| |||
114 | 152 | | |
115 | 153 | | |
116 | 154 | | |
117 | | - | |
| 155 | + | |
118 | 156 | | |
119 | 157 | | |
120 | 158 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
0 commit comments