ruby_raider 2.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/e2e_tests.yml +58 -0
  3. data/.github/workflows/steep.yml +21 -0
  4. data/.gitignore +1 -1
  5. data/.reek.yml +46 -4
  6. data/.ruby-version +1 -1
  7. data/README.md +138 -77
  8. data/Steepfile +22 -0
  9. data/assets/ruby_raider_logo.svg +51 -0
  10. data/lib/adopter/adopt_menu.rb +11 -15
  11. data/lib/adopter/converters/base_converter.rb +1 -2
  12. data/lib/adopter/converters/identity_converter.rb +3 -6
  13. data/lib/adopter/migration_plan.rb +0 -1
  14. data/lib/adopter/plan_builder.rb +2 -5
  15. data/lib/adopter/project_analyzer.rb +1 -5
  16. data/lib/adopter/project_detector.rb +3 -5
  17. data/lib/commands/adopt_commands.rb +0 -1
  18. data/lib/commands/plugin_commands.rb +0 -2
  19. data/lib/commands/scaffolding_commands.rb +246 -38
  20. data/lib/commands/utility_commands.rb +92 -3
  21. data/lib/generators/automation/automation_generator.rb +0 -7
  22. data/lib/generators/automation/templates/partials/element.tt +1 -1
  23. data/lib/generators/automation/templates/partials/initialize_selector.tt +0 -7
  24. data/lib/generators/automation/templates/partials/url_methods.tt +0 -1
  25. data/lib/generators/common_generator.rb +12 -0
  26. data/lib/generators/cucumber/cucumber_generator.rb +36 -0
  27. data/lib/generators/cucumber/templates/accessibility_feature.tt +5 -0
  28. data/lib/generators/cucumber/templates/accessibility_steps.tt +21 -0
  29. data/lib/generators/cucumber/templates/cucumber.tt +8 -1
  30. data/lib/generators/cucumber/templates/feature.tt +0 -4
  31. data/lib/generators/cucumber/templates/partials/appium_env.tt +5 -0
  32. data/lib/generators/cucumber/templates/partials/capybara_env.tt +19 -1
  33. data/lib/generators/cucumber/templates/partials/driver_world.tt +1 -4
  34. data/lib/generators/cucumber/templates/partials/selenium_env.tt +22 -35
  35. data/lib/generators/cucumber/templates/partials/watir_env.tt +20 -1
  36. data/lib/generators/cucumber/templates/partials/web_steps.tt +6 -12
  37. data/lib/generators/cucumber/templates/performance_feature.tt +5 -0
  38. data/lib/generators/cucumber/templates/performance_steps.tt +17 -0
  39. data/lib/generators/cucumber/templates/visual_feature.tt +5 -0
  40. data/lib/generators/cucumber/templates/visual_steps.tt +19 -0
  41. data/lib/generators/generator.rb +38 -7
  42. data/lib/generators/helper_generator.rb +24 -7
  43. data/lib/generators/infrastructure/templates/github.tt +1 -1
  44. data/lib/generators/infrastructure/templates/github_appium.tt +2 -2
  45. data/lib/generators/infrastructure/templates/gitlab.tt +1 -1
  46. data/lib/generators/invoke_generators.rb +42 -9
  47. data/lib/generators/menu_generator.rb +120 -11
  48. data/lib/generators/minitest/minitest_generator.rb +16 -4
  49. data/lib/generators/minitest/templates/accessibility_test.tt +26 -0
  50. data/lib/generators/minitest/templates/performance_test.tt +18 -0
  51. data/lib/generators/minitest/templates/test.tt +5 -34
  52. data/lib/generators/minitest/templates/visual_test.tt +23 -0
  53. data/lib/generators/rspec/rspec_generator.rb +16 -4
  54. data/lib/generators/rspec/templates/accessibility_spec.tt +25 -0
  55. data/lib/generators/rspec/templates/performance_spec.tt +18 -0
  56. data/lib/generators/rspec/templates/spec.tt +5 -35
  57. data/lib/generators/rspec/templates/visual_spec.tt +20 -0
  58. data/lib/generators/template_renderer/partial_cache.rb +11 -1
  59. data/lib/generators/template_renderer/partial_resolver.rb +17 -10
  60. data/lib/generators/template_renderer.rb +17 -1
  61. data/lib/generators/templates/common/gemfile.tt +21 -6
  62. data/lib/generators/templates/common/git_ignore.tt +6 -1
  63. data/lib/generators/templates/common/partials/mobile_config.tt +5 -1
  64. data/lib/generators/templates/common/partials/web_config.tt +16 -7
  65. data/lib/generators/templates/common/rakefile.tt +36 -0
  66. data/lib/generators/templates/common/read_me.tt +41 -91
  67. data/lib/generators/templates/common/rspec.tt +3 -0
  68. data/lib/generators/templates/common/ruby_version.tt +1 -0
  69. data/lib/generators/templates/helpers/allure_helper.tt +11 -0
  70. data/lib/generators/templates/helpers/browser_helper.tt +13 -3
  71. data/lib/generators/templates/helpers/capybara_helper.tt +6 -2
  72. data/lib/generators/templates/helpers/debug_helper.tt +190 -0
  73. data/lib/generators/templates/helpers/driver_helper.tt +2 -10
  74. data/lib/generators/templates/helpers/partials/appium_driver.tt +0 -2
  75. data/lib/generators/templates/helpers/partials/debug_diagnostics.tt +7 -0
  76. data/lib/generators/templates/helpers/partials/debug_start.tt +7 -0
  77. data/lib/generators/templates/helpers/partials/driver_and_options.tt +1 -3
  78. data/lib/generators/templates/helpers/partials/selenium_driver.tt +9 -8
  79. data/lib/generators/templates/helpers/partials/video_start.tt +9 -0
  80. data/lib/generators/templates/helpers/partials/video_stop.tt +4 -0
  81. data/lib/generators/templates/helpers/performance_helper.tt +57 -0
  82. data/lib/generators/templates/helpers/spec_helper.tt +57 -8
  83. data/lib/generators/templates/helpers/test_helper.tt +69 -1
  84. data/lib/generators/templates/helpers/video_helper.tt +270 -0
  85. data/lib/generators/templates/helpers/visual_helper.tt +39 -46
  86. data/lib/llm/client.rb +79 -0
  87. data/lib/llm/config.rb +57 -0
  88. data/lib/llm/prompts.rb +84 -0
  89. data/lib/llm/provider.rb +27 -0
  90. data/lib/llm/providers/anthropic_provider.rb +43 -0
  91. data/lib/llm/providers/ollama_provider.rb +56 -0
  92. data/lib/llm/providers/openai_provider.rb +42 -0
  93. data/lib/llm/response_parser.rb +67 -0
  94. data/lib/plugin/plugin.rb +22 -20
  95. data/lib/plugin/plugin_exposer.rb +16 -38
  96. data/lib/ruby_raider.rb +47 -12
  97. data/lib/scaffolding/crud_generator.rb +94 -0
  98. data/lib/scaffolding/dry_run_presenter.rb +16 -0
  99. data/lib/scaffolding/name_normalizer.rb +63 -0
  100. data/lib/scaffolding/page_introspector.rb +45 -0
  101. data/lib/scaffolding/project_detector.rb +96 -0
  102. data/lib/scaffolding/scaffold_menu.rb +103 -0
  103. data/lib/scaffolding/scaffolding.rb +158 -11
  104. data/lib/scaffolding/templates/component.tt +30 -0
  105. data/lib/scaffolding/templates/feature.tt +4 -4
  106. data/lib/scaffolding/templates/helper.tt +15 -1
  107. data/lib/scaffolding/templates/page_from_url.tt +75 -0
  108. data/lib/scaffolding/templates/page_object.tt +50 -1
  109. data/lib/scaffolding/templates/spec.tt +33 -2
  110. data/lib/scaffolding/templates/spec_from_page.tt +31 -0
  111. data/lib/scaffolding/templates/spec_from_url.tt +46 -0
  112. data/lib/scaffolding/templates/steps.tt +17 -5
  113. data/lib/scaffolding/url_analyzer.rb +179 -0
  114. data/lib/utilities/desktop_downloader.rb +177 -0
  115. data/lib/utilities/logo.rb +83 -0
  116. data/lib/utilities/utilities.rb +61 -20
  117. data/lib/version +1 -1
  118. data/ruby_raider.gemspec +1 -0
  119. data/sig/adopter/adopt_menu.rbs +25 -0
  120. data/sig/adopter/converters/base_converter.rbs +23 -0
  121. data/sig/adopter/converters/identity_converter.rbs +16 -0
  122. data/sig/adopter/migration_plan.rbs +34 -0
  123. data/sig/adopter/migrator.rbs +21 -0
  124. data/sig/adopter/plan_builder.rbs +38 -0
  125. data/sig/adopter/project_analyzer.rbs +39 -0
  126. data/sig/adopter/project_detector.rbs +26 -0
  127. data/sig/commands/adopt_commands.rbs +8 -0
  128. data/sig/commands/loaded_commands.rbs +5 -0
  129. data/sig/commands/plugin_commands.rbs +9 -0
  130. data/sig/commands/scaffolding_commands.rbs +28 -0
  131. data/sig/commands/utility_commands.rbs +21 -0
  132. data/sig/generators/automation/automation_generator.rbs +20 -0
  133. data/sig/generators/common_generator.rbs +12 -0
  134. data/sig/generators/cucumber/cucumber_generator.rbs +16 -0
  135. data/sig/generators/generator.rbs +40 -0
  136. data/sig/generators/helper_generator.rbs +18 -0
  137. data/sig/generators/infrastructure/github_generator.rbs +5 -0
  138. data/sig/generators/infrastructure/gitlab_generator.rbs +4 -0
  139. data/sig/generators/invoke_generators.rbs +10 -0
  140. data/sig/generators/menu_generator.rbs +29 -0
  141. data/sig/generators/minitest/minitest_generator.rbs +8 -0
  142. data/sig/generators/rspec/rspec_generator.rbs +8 -0
  143. data/sig/generators/template_renderer/partial_cache.rbs +20 -0
  144. data/sig/generators/template_renderer/partial_resolver.rbs +20 -0
  145. data/sig/generators/template_renderer/template_error.rbs +19 -0
  146. data/sig/generators/template_renderer.rbs +10 -0
  147. data/sig/llm/client.rbs +15 -0
  148. data/sig/llm/config.rbs +20 -0
  149. data/sig/llm/prompts.rbs +8 -0
  150. data/sig/llm/provider.rbs +12 -0
  151. data/sig/llm/providers/anthropic_provider.rbs +16 -0
  152. data/sig/llm/providers/ollama_provider.rbs +18 -0
  153. data/sig/llm/providers/openai_provider.rbs +16 -0
  154. data/sig/llm/response_parser.rbs +13 -0
  155. data/sig/plugin/plugin.rbs +24 -0
  156. data/sig/plugin/plugin_exposer.rbs +20 -0
  157. data/sig/ruby_raider.rbs +15 -0
  158. data/sig/scaffolding/crud_generator.rbs +16 -0
  159. data/sig/scaffolding/dry_run_presenter.rbs +4 -0
  160. data/sig/scaffolding/name_normalizer.rbs +17 -0
  161. data/sig/scaffolding/page_introspector.rbs +14 -0
  162. data/sig/scaffolding/project_detector.rbs +14 -0
  163. data/sig/scaffolding/scaffold_menu.rbs +18 -0
  164. data/sig/scaffolding/scaffolding.rbs +55 -0
  165. data/sig/scaffolding/url_analyzer.rbs +28 -0
  166. data/sig/utilities/desktop_downloader.rbs +23 -0
  167. data/sig/utilities/logger.rbs +13 -0
  168. data/sig/utilities/logo.rbs +16 -0
  169. data/sig/utilities/utilities.rbs +30 -0
  170. data/sig/vendor/thor.rbs +34 -0
  171. data/sig/vendor/tty_prompt.rbs +15 -0
  172. data/spec/adopter/adopt_menu_spec.rb +12 -12
  173. data/spec/adopter/migration_plan_spec.rb +1 -1
  174. data/spec/adopter/migrator_spec.rb +2 -2
  175. data/spec/adopter/project_detector_spec.rb +1 -1
  176. data/spec/commands/raider_commands_spec.rb +129 -0
  177. data/spec/commands/scaffolding_commands_spec.rb +22 -0
  178. data/spec/generators/generator_spec.rb +23 -0
  179. data/spec/integration/commands/scaffolding_commands_spec.rb +1 -1
  180. data/spec/integration/commands/utility_commands_spec.rb +29 -9
  181. data/spec/integration/content/ci_content_spec.rb +119 -0
  182. data/spec/integration/content/common_content_spec.rb +288 -0
  183. data/spec/integration/content/config_content_spec.rb +175 -0
  184. data/spec/integration/content/content_helper.rb +32 -0
  185. data/spec/integration/content/gemfile_content_spec.rb +209 -0
  186. data/spec/integration/content/helper_content_spec.rb +485 -0
  187. data/spec/integration/content/page_content_spec.rb +259 -0
  188. data/spec/integration/content/reporter_content_spec.rb +236 -0
  189. data/spec/integration/content/skip_flags_content_spec.rb +206 -0
  190. data/spec/integration/content/syntax_validation_spec.rb +30 -0
  191. data/spec/integration/content/test_content_spec.rb +266 -0
  192. data/spec/integration/end_to_end_features_spec.rb +690 -0
  193. data/spec/integration/end_to_end_spec.rb +52 -16
  194. data/spec/integration/generators/automation_generator_spec.rb +0 -12
  195. data/spec/integration/generators/axe_addon_spec.rb +150 -0
  196. data/spec/integration/generators/common_generator_spec.rb +12 -13
  197. data/spec/integration/generators/config_features_spec.rb +155 -0
  198. data/spec/integration/generators/debug_helper_spec.rb +68 -0
  199. data/spec/integration/generators/helpers_generator_spec.rb +0 -12
  200. data/spec/integration/generators/lighthouse_addon_spec.rb +132 -0
  201. data/spec/integration/generators/minitest_generator_spec.rb +0 -6
  202. data/spec/integration/generators/reporter_spec.rb +159 -0
  203. data/spec/integration/generators/skip_flags_spec.rb +134 -0
  204. data/spec/integration/generators/visual_addon_spec.rb +148 -0
  205. data/spec/integration/scaffolding_e2e_spec.rb +775 -0
  206. data/spec/integration/settings_helper.rb +0 -3
  207. data/spec/integration/spec_helper.rb +30 -13
  208. data/spec/llm/client_spec.rb +79 -0
  209. data/spec/llm/config_spec.rb +92 -0
  210. data/spec/llm/prompts_spec.rb +49 -0
  211. data/spec/llm/response_parser_spec.rb +92 -0
  212. data/spec/menus/adopter_adopt_menu_spec.rb +97 -0
  213. data/spec/menus/menu_generator_spec.rb +263 -0
  214. data/spec/scaffolding/name_normalizer_spec.rb +113 -0
  215. data/spec/scaffolding/page_introspector_spec.rb +82 -0
  216. data/spec/scaffolding/scaffold_project_detector_spec.rb +142 -0
  217. data/spec/scaffolding/scaffolding_features_spec.rb +311 -0
  218. data/spec/scaffolding/url_analyzer_spec.rb +110 -0
  219. data/spec/system/adopt_matrix_spec.rb +537 -0
  220. data/spec/system/adopt_spec.rb +225 -0
  221. data/spec/system/support/system_test_helper.rb +0 -2
  222. data/spec/utilities/desktop_downloader_spec.rb +92 -0
  223. data/spec/utilities/headless_config_spec.rb +89 -0
  224. data/spec/utilities/utilities_spec.rb +105 -0
  225. metadata +154 -5
  226. data/lib/generators/automation/templates/visual_options.tt +0 -16
  227. data/lib/generators/templates/helpers/partials/axe_driver.tt +0 -10
  228. data/lib/generators/templates/helpers/visual_spec_helper.tt +0 -35
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_raider
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-03-11 00:00:00.000000000 Z
10
+ date: 2026-03-13 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -93,6 +93,20 @@ dependencies:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: 2.9.0
96
+ - !ruby/object:Gem::Dependency
97
+ name: steep
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.9'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.9'
96
110
  - !ruby/object:Gem::Dependency
97
111
  name: thor
98
112
  requirement: !ruby/object:Gem::Requirement
@@ -132,10 +146,12 @@ files:
132
146
  - ".github/ISSUE_TEMPLATE/bug_report.md"
133
147
  - ".github/ISSUE_TEMPLATE/feature_request.md"
134
148
  - ".github/auto_assign-issues.yml"
149
+ - ".github/workflows/e2e_tests.yml"
135
150
  - ".github/workflows/integration.yml"
136
151
  - ".github/workflows/reek.yml"
137
152
  - ".github/workflows/release.yml"
138
153
  - ".github/workflows/rubocop.yml"
154
+ - ".github/workflows/steep.yml"
139
155
  - ".github/workflows/system_tests.yml"
140
156
  - ".gitignore"
141
157
  - ".reek.yml"
@@ -149,6 +165,8 @@ files:
149
165
  - RELEASE.md
150
166
  - RELEASE_QUICK_GUIDE.md
151
167
  - Rakefile
168
+ - Steepfile
169
+ - assets/ruby_raider_logo.svg
152
170
  - bin/raider
153
171
  - bin/release
154
172
  - lib/adopter/adopt_menu.rb
@@ -179,9 +197,10 @@ files:
179
197
  - lib/generators/automation/templates/partials/url_methods.tt
180
198
  - lib/generators/automation/templates/partials/visit_method.tt
181
199
  - lib/generators/automation/templates/pdp.tt
182
- - lib/generators/automation/templates/visual_options.tt
183
200
  - lib/generators/common_generator.rb
184
201
  - lib/generators/cucumber/cucumber_generator.rb
202
+ - lib/generators/cucumber/templates/accessibility_feature.tt
203
+ - lib/generators/cucumber/templates/accessibility_steps.tt
185
204
  - lib/generators/cucumber/templates/cucumber.tt
186
205
  - lib/generators/cucumber/templates/env.tt
187
206
  - lib/generators/cucumber/templates/feature.tt
@@ -194,8 +213,12 @@ files:
194
213
  - lib/generators/cucumber/templates/partials/watir_env.tt
195
214
  - lib/generators/cucumber/templates/partials/watir_world.tt
196
215
  - lib/generators/cucumber/templates/partials/web_steps.tt
216
+ - lib/generators/cucumber/templates/performance_feature.tt
217
+ - lib/generators/cucumber/templates/performance_steps.tt
197
218
  - lib/generators/cucumber/templates/steps.tt
198
219
  - lib/generators/cucumber/templates/user_factory.tt
220
+ - lib/generators/cucumber/templates/visual_feature.tt
221
+ - lib/generators/cucumber/templates/visual_steps.tt
199
222
  - lib/generators/cucumber/templates/world.tt
200
223
  - lib/generators/generator.rb
201
224
  - lib/generators/helper_generator.rb
@@ -207,11 +230,17 @@ files:
207
230
  - lib/generators/invoke_generators.rb
208
231
  - lib/generators/menu_generator.rb
209
232
  - lib/generators/minitest/minitest_generator.rb
233
+ - lib/generators/minitest/templates/accessibility_test.tt
234
+ - lib/generators/minitest/templates/performance_test.tt
210
235
  - lib/generators/minitest/templates/test.tt
236
+ - lib/generators/minitest/templates/visual_test.tt
211
237
  - lib/generators/rspec/rspec_generator.rb
238
+ - lib/generators/rspec/templates/accessibility_spec.tt
212
239
  - lib/generators/rspec/templates/data.tt
213
240
  - lib/generators/rspec/templates/factory.tt
241
+ - lib/generators/rspec/templates/performance_spec.tt
214
242
  - lib/generators/rspec/templates/spec.tt
243
+ - lib/generators/rspec/templates/visual_spec.tt
215
244
  - lib/generators/template_renderer.rb
216
245
  - lib/generators/template_renderer/partial_cache.rb
217
246
  - lib/generators/template_renderer/partial_resolver.rb
@@ -224,39 +253,120 @@ files:
224
253
  - lib/generators/templates/common/rakefile.tt
225
254
  - lib/generators/templates/common/read_me.tt
226
255
  - lib/generators/templates/common/reek.tt
256
+ - lib/generators/templates/common/rspec.tt
227
257
  - lib/generators/templates/common/rubocop.tt
258
+ - lib/generators/templates/common/ruby_version.tt
228
259
  - lib/generators/templates/helpers/allure_helper.tt
229
260
  - lib/generators/templates/helpers/appium_helper.tt
230
261
  - lib/generators/templates/helpers/browser_helper.tt
231
262
  - lib/generators/templates/helpers/capybara_helper.tt
263
+ - lib/generators/templates/helpers/debug_helper.tt
232
264
  - lib/generators/templates/helpers/driver_helper.tt
233
265
  - lib/generators/templates/helpers/partials/allure_imports.tt
234
266
  - lib/generators/templates/helpers/partials/allure_requirements.tt
235
267
  - lib/generators/templates/helpers/partials/appium_driver.tt
236
- - lib/generators/templates/helpers/partials/axe_driver.tt
237
268
  - lib/generators/templates/helpers/partials/browserstack_config.tt
269
+ - lib/generators/templates/helpers/partials/debug_diagnostics.tt
270
+ - lib/generators/templates/helpers/partials/debug_start.tt
238
271
  - lib/generators/templates/helpers/partials/driver_and_options.tt
239
272
  - lib/generators/templates/helpers/partials/quit_driver.tt
240
273
  - lib/generators/templates/helpers/partials/screenshot.tt
241
274
  - lib/generators/templates/helpers/partials/selenium_driver.tt
275
+ - lib/generators/templates/helpers/partials/video_start.tt
276
+ - lib/generators/templates/helpers/partials/video_stop.tt
277
+ - lib/generators/templates/helpers/performance_helper.tt
242
278
  - lib/generators/templates/helpers/spec_helper.tt
243
279
  - lib/generators/templates/helpers/test_helper.tt
280
+ - lib/generators/templates/helpers/video_helper.tt
244
281
  - lib/generators/templates/helpers/visual_helper.tt
245
- - lib/generators/templates/helpers/visual_spec_helper.tt
282
+ - lib/llm/client.rb
283
+ - lib/llm/config.rb
284
+ - lib/llm/prompts.rb
285
+ - lib/llm/provider.rb
286
+ - lib/llm/providers/anthropic_provider.rb
287
+ - lib/llm/providers/ollama_provider.rb
288
+ - lib/llm/providers/openai_provider.rb
289
+ - lib/llm/response_parser.rb
246
290
  - lib/plugin/plugin.rb
247
291
  - lib/plugin/plugin_exposer.rb
248
292
  - lib/ruby_raider.rb
293
+ - lib/scaffolding/crud_generator.rb
294
+ - lib/scaffolding/dry_run_presenter.rb
295
+ - lib/scaffolding/name_normalizer.rb
296
+ - lib/scaffolding/page_introspector.rb
297
+ - lib/scaffolding/project_detector.rb
298
+ - lib/scaffolding/scaffold_menu.rb
249
299
  - lib/scaffolding/scaffolding.rb
300
+ - lib/scaffolding/templates/component.tt
250
301
  - lib/scaffolding/templates/feature.tt
251
302
  - lib/scaffolding/templates/helper.tt
303
+ - lib/scaffolding/templates/page_from_url.tt
252
304
  - lib/scaffolding/templates/page_object.tt
253
305
  - lib/scaffolding/templates/spec.tt
306
+ - lib/scaffolding/templates/spec_from_page.tt
307
+ - lib/scaffolding/templates/spec_from_url.tt
254
308
  - lib/scaffolding/templates/steps.tt
309
+ - lib/scaffolding/url_analyzer.rb
310
+ - lib/utilities/desktop_downloader.rb
255
311
  - lib/utilities/logger.rb
312
+ - lib/utilities/logo.rb
256
313
  - lib/utilities/utilities.rb
257
314
  - lib/version
258
315
  - plugins.yml
259
316
  - ruby_raider.gemspec
317
+ - sig/adopter/adopt_menu.rbs
318
+ - sig/adopter/converters/base_converter.rbs
319
+ - sig/adopter/converters/identity_converter.rbs
320
+ - sig/adopter/migration_plan.rbs
321
+ - sig/adopter/migrator.rbs
322
+ - sig/adopter/plan_builder.rbs
323
+ - sig/adopter/project_analyzer.rbs
324
+ - sig/adopter/project_detector.rbs
325
+ - sig/commands/adopt_commands.rbs
326
+ - sig/commands/loaded_commands.rbs
327
+ - sig/commands/plugin_commands.rbs
328
+ - sig/commands/scaffolding_commands.rbs
329
+ - sig/commands/utility_commands.rbs
330
+ - sig/generators/automation/automation_generator.rbs
331
+ - sig/generators/common_generator.rbs
332
+ - sig/generators/cucumber/cucumber_generator.rbs
333
+ - sig/generators/generator.rbs
334
+ - sig/generators/helper_generator.rbs
335
+ - sig/generators/infrastructure/github_generator.rbs
336
+ - sig/generators/infrastructure/gitlab_generator.rbs
337
+ - sig/generators/invoke_generators.rbs
338
+ - sig/generators/menu_generator.rbs
339
+ - sig/generators/minitest/minitest_generator.rbs
340
+ - sig/generators/rspec/rspec_generator.rbs
341
+ - sig/generators/template_renderer.rbs
342
+ - sig/generators/template_renderer/partial_cache.rbs
343
+ - sig/generators/template_renderer/partial_resolver.rbs
344
+ - sig/generators/template_renderer/template_error.rbs
345
+ - sig/llm/client.rbs
346
+ - sig/llm/config.rbs
347
+ - sig/llm/prompts.rbs
348
+ - sig/llm/provider.rbs
349
+ - sig/llm/providers/anthropic_provider.rbs
350
+ - sig/llm/providers/ollama_provider.rbs
351
+ - sig/llm/providers/openai_provider.rbs
352
+ - sig/llm/response_parser.rbs
353
+ - sig/plugin/plugin.rbs
354
+ - sig/plugin/plugin_exposer.rbs
355
+ - sig/ruby_raider.rbs
356
+ - sig/scaffolding/crud_generator.rbs
357
+ - sig/scaffolding/dry_run_presenter.rbs
358
+ - sig/scaffolding/name_normalizer.rbs
359
+ - sig/scaffolding/page_introspector.rbs
360
+ - sig/scaffolding/project_detector.rbs
361
+ - sig/scaffolding/scaffold_menu.rbs
362
+ - sig/scaffolding/scaffolding.rbs
363
+ - sig/scaffolding/url_analyzer.rbs
364
+ - sig/utilities/desktop_downloader.rbs
365
+ - sig/utilities/logger.rbs
366
+ - sig/utilities/logo.rbs
367
+ - sig/utilities/utilities.rbs
368
+ - sig/vendor/thor.rbs
369
+ - sig/vendor/tty_prompt.rbs
260
370
  - spec/adopter/adopt_menu_spec.rb
261
371
  - spec/adopter/converters/identity_converter_spec.rb
262
372
  - spec/adopter/migration_plan_spec.rb
@@ -264,26 +374,65 @@ files:
264
374
  - spec/adopter/plan_builder_spec.rb
265
375
  - spec/adopter/project_analyzer_spec.rb
266
376
  - spec/adopter/project_detector_spec.rb
377
+ - spec/commands/raider_commands_spec.rb
378
+ - spec/commands/scaffolding_commands_spec.rb
267
379
  - spec/generators/fixtures/templates/test.tt
268
380
  - spec/generators/fixtures/templates/test_partial.tt
381
+ - spec/generators/generator_spec.rb
269
382
  - spec/generators/template_renderer_spec.rb
270
383
  - spec/integration/commands/scaffolding_commands_spec.rb
271
384
  - spec/integration/commands/utility_commands_spec.rb
385
+ - spec/integration/content/ci_content_spec.rb
386
+ - spec/integration/content/common_content_spec.rb
387
+ - spec/integration/content/config_content_spec.rb
388
+ - spec/integration/content/content_helper.rb
389
+ - spec/integration/content/gemfile_content_spec.rb
390
+ - spec/integration/content/helper_content_spec.rb
391
+ - spec/integration/content/page_content_spec.rb
392
+ - spec/integration/content/reporter_content_spec.rb
393
+ - spec/integration/content/skip_flags_content_spec.rb
394
+ - spec/integration/content/syntax_validation_spec.rb
395
+ - spec/integration/content/test_content_spec.rb
396
+ - spec/integration/end_to_end_features_spec.rb
272
397
  - spec/integration/end_to_end_spec.rb
273
398
  - spec/integration/generators/automation_generator_spec.rb
399
+ - spec/integration/generators/axe_addon_spec.rb
274
400
  - spec/integration/generators/common_generator_spec.rb
401
+ - spec/integration/generators/config_features_spec.rb
275
402
  - spec/integration/generators/cucumber_generator_spec.rb
403
+ - spec/integration/generators/debug_helper_spec.rb
276
404
  - spec/integration/generators/github_generator_spec.rb
277
405
  - spec/integration/generators/gitlab_generator_spec.rb
278
406
  - spec/integration/generators/helpers_generator_spec.rb
407
+ - spec/integration/generators/lighthouse_addon_spec.rb
279
408
  - spec/integration/generators/minitest_generator_spec.rb
409
+ - spec/integration/generators/reporter_spec.rb
280
410
  - spec/integration/generators/rspec_generator_spec.rb
411
+ - spec/integration/generators/skip_flags_spec.rb
412
+ - spec/integration/generators/visual_addon_spec.rb
413
+ - spec/integration/scaffolding_e2e_spec.rb
281
414
  - spec/integration/settings_helper.rb
282
415
  - spec/integration/spec_helper.rb
416
+ - spec/llm/client_spec.rb
417
+ - spec/llm/config_spec.rb
418
+ - spec/llm/prompts_spec.rb
419
+ - spec/llm/response_parser_spec.rb
420
+ - spec/menus/adopter_adopt_menu_spec.rb
421
+ - spec/menus/menu_generator_spec.rb
422
+ - spec/scaffolding/name_normalizer_spec.rb
423
+ - spec/scaffolding/page_introspector_spec.rb
424
+ - spec/scaffolding/scaffold_project_detector_spec.rb
425
+ - spec/scaffolding/scaffolding_features_spec.rb
426
+ - spec/scaffolding/url_analyzer_spec.rb
427
+ - spec/system/adopt_matrix_spec.rb
428
+ - spec/system/adopt_spec.rb
283
429
  - spec/system/capybara_spec.rb
284
430
  - spec/system/selenium_spec.rb
285
431
  - spec/system/support/system_test_helper.rb
286
432
  - spec/system/watir_spec.rb
433
+ - spec/utilities/desktop_downloader_spec.rb
434
+ - spec/utilities/headless_config_spec.rb
435
+ - spec/utilities/utilities_spec.rb
287
436
  homepage: https://github.com/RubyRaider/ruby_raider
288
437
  licenses:
289
438
  - MIT
@@ -1,16 +0,0 @@
1
- :batch_name: test_batch
2
- :app_name: test_app
3
- :test_name: app_test
4
-
5
- :viewport_size:
6
- :height: 800
7
- :width: 600
8
-
9
- :browsers:
10
- - :name: chrome
11
- :height: 800
12
- :width: 600
13
-
14
- :devices:
15
- - :name: IPhoneX
16
- :orientation: PORTRAIT
@@ -1,10 +0,0 @@
1
- def create_driver(browser, js_path, skip_iframes)
2
- if ENV['HEADLESS']
3
- options = Selenium::WebDriver::Chrome::Options.new(args: ['--headless'])
4
- @driver = Selenium::WebDriver.for(browser, options:)
5
- end
6
- AxeSelenium.configure(@driver || browser) do |config|
7
- config.jslib_path = js_path if js_path
8
- config.skip_iframes = skip_iframes if skip_iframes
9
- end.page
10
- end
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rspec'
4
- require 'tmpdir'
5
- require 'eyes_selenium'
6
- require_relative 'allure_helper'
7
- require_relative 'driver_helper'
8
- require_relative 'visual_helper'
9
-
10
- module SpecHelper
11
- RSpec.configure do |config|
12
- config.include(DriverHelper)
13
- config.include(VisualHelper)
14
- config.before(:each) do
15
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
16
- @grid_runner = create_grid_runner
17
- @eyes = create_eyes(@grid_runner)
18
- configure_eyes @eyes
19
- @driver = @eyes.open(driver: driver)
20
- end
21
-
22
- config.after(:each) do |example|
23
- example_name = example.description
24
- Dir.mktmpdir do |temp_folder|
25
- <%= partial('screenshot', strip: true) %>
26
- AllureHelper.add_screenshot(example_name, screenshot)
27
- end
28
- @eyes.close
29
- @driver.quit
30
- @eyes.abort_async
31
- results = @grid_runner.get_all_test_results
32
- puts results
33
- end
34
- end
35
- end