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.
- checksums.yaml +4 -4
- data/.github/workflows/e2e_tests.yml +58 -0
- data/.github/workflows/steep.yml +21 -0
- data/.gitignore +1 -1
- data/.reek.yml +46 -4
- data/.ruby-version +1 -1
- data/README.md +138 -77
- data/Steepfile +22 -0
- data/assets/ruby_raider_logo.svg +51 -0
- data/lib/adopter/adopt_menu.rb +11 -15
- data/lib/adopter/converters/base_converter.rb +1 -2
- data/lib/adopter/converters/identity_converter.rb +3 -6
- data/lib/adopter/migration_plan.rb +0 -1
- data/lib/adopter/plan_builder.rb +2 -5
- data/lib/adopter/project_analyzer.rb +1 -5
- data/lib/adopter/project_detector.rb +3 -5
- data/lib/commands/adopt_commands.rb +0 -1
- data/lib/commands/plugin_commands.rb +0 -2
- data/lib/commands/scaffolding_commands.rb +246 -38
- data/lib/commands/utility_commands.rb +92 -3
- data/lib/generators/automation/automation_generator.rb +0 -7
- data/lib/generators/automation/templates/partials/element.tt +1 -1
- data/lib/generators/automation/templates/partials/initialize_selector.tt +0 -7
- data/lib/generators/automation/templates/partials/url_methods.tt +0 -1
- data/lib/generators/common_generator.rb +12 -0
- data/lib/generators/cucumber/cucumber_generator.rb +36 -0
- data/lib/generators/cucumber/templates/accessibility_feature.tt +5 -0
- data/lib/generators/cucumber/templates/accessibility_steps.tt +21 -0
- data/lib/generators/cucumber/templates/cucumber.tt +8 -1
- data/lib/generators/cucumber/templates/feature.tt +0 -4
- data/lib/generators/cucumber/templates/partials/appium_env.tt +5 -0
- data/lib/generators/cucumber/templates/partials/capybara_env.tt +19 -1
- data/lib/generators/cucumber/templates/partials/driver_world.tt +1 -4
- data/lib/generators/cucumber/templates/partials/selenium_env.tt +22 -35
- data/lib/generators/cucumber/templates/partials/watir_env.tt +20 -1
- data/lib/generators/cucumber/templates/partials/web_steps.tt +6 -12
- data/lib/generators/cucumber/templates/performance_feature.tt +5 -0
- data/lib/generators/cucumber/templates/performance_steps.tt +17 -0
- data/lib/generators/cucumber/templates/visual_feature.tt +5 -0
- data/lib/generators/cucumber/templates/visual_steps.tt +19 -0
- data/lib/generators/generator.rb +38 -7
- data/lib/generators/helper_generator.rb +24 -7
- data/lib/generators/infrastructure/templates/github.tt +1 -1
- data/lib/generators/infrastructure/templates/github_appium.tt +2 -2
- data/lib/generators/infrastructure/templates/gitlab.tt +1 -1
- data/lib/generators/invoke_generators.rb +42 -9
- data/lib/generators/menu_generator.rb +120 -11
- data/lib/generators/minitest/minitest_generator.rb +16 -4
- data/lib/generators/minitest/templates/accessibility_test.tt +26 -0
- data/lib/generators/minitest/templates/performance_test.tt +18 -0
- data/lib/generators/minitest/templates/test.tt +5 -34
- data/lib/generators/minitest/templates/visual_test.tt +23 -0
- data/lib/generators/rspec/rspec_generator.rb +16 -4
- data/lib/generators/rspec/templates/accessibility_spec.tt +25 -0
- data/lib/generators/rspec/templates/performance_spec.tt +18 -0
- data/lib/generators/rspec/templates/spec.tt +5 -35
- data/lib/generators/rspec/templates/visual_spec.tt +20 -0
- data/lib/generators/template_renderer/partial_cache.rb +11 -1
- data/lib/generators/template_renderer/partial_resolver.rb +17 -10
- data/lib/generators/template_renderer.rb +17 -1
- data/lib/generators/templates/common/gemfile.tt +21 -6
- data/lib/generators/templates/common/git_ignore.tt +6 -1
- data/lib/generators/templates/common/partials/mobile_config.tt +5 -1
- data/lib/generators/templates/common/partials/web_config.tt +16 -7
- data/lib/generators/templates/common/rakefile.tt +36 -0
- data/lib/generators/templates/common/read_me.tt +41 -91
- data/lib/generators/templates/common/rspec.tt +3 -0
- data/lib/generators/templates/common/ruby_version.tt +1 -0
- data/lib/generators/templates/helpers/allure_helper.tt +11 -0
- data/lib/generators/templates/helpers/browser_helper.tt +13 -3
- data/lib/generators/templates/helpers/capybara_helper.tt +6 -2
- data/lib/generators/templates/helpers/debug_helper.tt +190 -0
- data/lib/generators/templates/helpers/driver_helper.tt +2 -10
- data/lib/generators/templates/helpers/partials/appium_driver.tt +0 -2
- data/lib/generators/templates/helpers/partials/debug_diagnostics.tt +7 -0
- data/lib/generators/templates/helpers/partials/debug_start.tt +7 -0
- data/lib/generators/templates/helpers/partials/driver_and_options.tt +1 -3
- data/lib/generators/templates/helpers/partials/selenium_driver.tt +9 -8
- data/lib/generators/templates/helpers/partials/video_start.tt +9 -0
- data/lib/generators/templates/helpers/partials/video_stop.tt +4 -0
- data/lib/generators/templates/helpers/performance_helper.tt +57 -0
- data/lib/generators/templates/helpers/spec_helper.tt +57 -8
- data/lib/generators/templates/helpers/test_helper.tt +69 -1
- data/lib/generators/templates/helpers/video_helper.tt +270 -0
- data/lib/generators/templates/helpers/visual_helper.tt +39 -46
- data/lib/llm/client.rb +79 -0
- data/lib/llm/config.rb +57 -0
- data/lib/llm/prompts.rb +84 -0
- data/lib/llm/provider.rb +27 -0
- data/lib/llm/providers/anthropic_provider.rb +43 -0
- data/lib/llm/providers/ollama_provider.rb +56 -0
- data/lib/llm/providers/openai_provider.rb +42 -0
- data/lib/llm/response_parser.rb +67 -0
- data/lib/plugin/plugin.rb +22 -20
- data/lib/plugin/plugin_exposer.rb +16 -38
- data/lib/ruby_raider.rb +47 -12
- data/lib/scaffolding/crud_generator.rb +94 -0
- data/lib/scaffolding/dry_run_presenter.rb +16 -0
- data/lib/scaffolding/name_normalizer.rb +63 -0
- data/lib/scaffolding/page_introspector.rb +45 -0
- data/lib/scaffolding/project_detector.rb +96 -0
- data/lib/scaffolding/scaffold_menu.rb +103 -0
- data/lib/scaffolding/scaffolding.rb +158 -11
- data/lib/scaffolding/templates/component.tt +30 -0
- data/lib/scaffolding/templates/feature.tt +4 -4
- data/lib/scaffolding/templates/helper.tt +15 -1
- data/lib/scaffolding/templates/page_from_url.tt +75 -0
- data/lib/scaffolding/templates/page_object.tt +50 -1
- data/lib/scaffolding/templates/spec.tt +33 -2
- data/lib/scaffolding/templates/spec_from_page.tt +31 -0
- data/lib/scaffolding/templates/spec_from_url.tt +46 -0
- data/lib/scaffolding/templates/steps.tt +17 -5
- data/lib/scaffolding/url_analyzer.rb +179 -0
- data/lib/utilities/desktop_downloader.rb +177 -0
- data/lib/utilities/logo.rb +83 -0
- data/lib/utilities/utilities.rb +61 -20
- data/lib/version +1 -1
- data/ruby_raider.gemspec +1 -0
- data/sig/adopter/adopt_menu.rbs +25 -0
- data/sig/adopter/converters/base_converter.rbs +23 -0
- data/sig/adopter/converters/identity_converter.rbs +16 -0
- data/sig/adopter/migration_plan.rbs +34 -0
- data/sig/adopter/migrator.rbs +21 -0
- data/sig/adopter/plan_builder.rbs +38 -0
- data/sig/adopter/project_analyzer.rbs +39 -0
- data/sig/adopter/project_detector.rbs +26 -0
- data/sig/commands/adopt_commands.rbs +8 -0
- data/sig/commands/loaded_commands.rbs +5 -0
- data/sig/commands/plugin_commands.rbs +9 -0
- data/sig/commands/scaffolding_commands.rbs +28 -0
- data/sig/commands/utility_commands.rbs +21 -0
- data/sig/generators/automation/automation_generator.rbs +20 -0
- data/sig/generators/common_generator.rbs +12 -0
- data/sig/generators/cucumber/cucumber_generator.rbs +16 -0
- data/sig/generators/generator.rbs +40 -0
- data/sig/generators/helper_generator.rbs +18 -0
- data/sig/generators/infrastructure/github_generator.rbs +5 -0
- data/sig/generators/infrastructure/gitlab_generator.rbs +4 -0
- data/sig/generators/invoke_generators.rbs +10 -0
- data/sig/generators/menu_generator.rbs +29 -0
- data/sig/generators/minitest/minitest_generator.rbs +8 -0
- data/sig/generators/rspec/rspec_generator.rbs +8 -0
- data/sig/generators/template_renderer/partial_cache.rbs +20 -0
- data/sig/generators/template_renderer/partial_resolver.rbs +20 -0
- data/sig/generators/template_renderer/template_error.rbs +19 -0
- data/sig/generators/template_renderer.rbs +10 -0
- data/sig/llm/client.rbs +15 -0
- data/sig/llm/config.rbs +20 -0
- data/sig/llm/prompts.rbs +8 -0
- data/sig/llm/provider.rbs +12 -0
- data/sig/llm/providers/anthropic_provider.rbs +16 -0
- data/sig/llm/providers/ollama_provider.rbs +18 -0
- data/sig/llm/providers/openai_provider.rbs +16 -0
- data/sig/llm/response_parser.rbs +13 -0
- data/sig/plugin/plugin.rbs +24 -0
- data/sig/plugin/plugin_exposer.rbs +20 -0
- data/sig/ruby_raider.rbs +15 -0
- data/sig/scaffolding/crud_generator.rbs +16 -0
- data/sig/scaffolding/dry_run_presenter.rbs +4 -0
- data/sig/scaffolding/name_normalizer.rbs +17 -0
- data/sig/scaffolding/page_introspector.rbs +14 -0
- data/sig/scaffolding/project_detector.rbs +14 -0
- data/sig/scaffolding/scaffold_menu.rbs +18 -0
- data/sig/scaffolding/scaffolding.rbs +55 -0
- data/sig/scaffolding/url_analyzer.rbs +28 -0
- data/sig/utilities/desktop_downloader.rbs +23 -0
- data/sig/utilities/logger.rbs +13 -0
- data/sig/utilities/logo.rbs +16 -0
- data/sig/utilities/utilities.rbs +30 -0
- data/sig/vendor/thor.rbs +34 -0
- data/sig/vendor/tty_prompt.rbs +15 -0
- data/spec/adopter/adopt_menu_spec.rb +12 -12
- data/spec/adopter/migration_plan_spec.rb +1 -1
- data/spec/adopter/migrator_spec.rb +2 -2
- data/spec/adopter/project_detector_spec.rb +1 -1
- data/spec/commands/raider_commands_spec.rb +129 -0
- data/spec/commands/scaffolding_commands_spec.rb +22 -0
- data/spec/generators/generator_spec.rb +23 -0
- data/spec/integration/commands/scaffolding_commands_spec.rb +1 -1
- data/spec/integration/commands/utility_commands_spec.rb +29 -9
- data/spec/integration/content/ci_content_spec.rb +119 -0
- data/spec/integration/content/common_content_spec.rb +288 -0
- data/spec/integration/content/config_content_spec.rb +175 -0
- data/spec/integration/content/content_helper.rb +32 -0
- data/spec/integration/content/gemfile_content_spec.rb +209 -0
- data/spec/integration/content/helper_content_spec.rb +485 -0
- data/spec/integration/content/page_content_spec.rb +259 -0
- data/spec/integration/content/reporter_content_spec.rb +236 -0
- data/spec/integration/content/skip_flags_content_spec.rb +206 -0
- data/spec/integration/content/syntax_validation_spec.rb +30 -0
- data/spec/integration/content/test_content_spec.rb +266 -0
- data/spec/integration/end_to_end_features_spec.rb +690 -0
- data/spec/integration/end_to_end_spec.rb +52 -16
- data/spec/integration/generators/automation_generator_spec.rb +0 -12
- data/spec/integration/generators/axe_addon_spec.rb +150 -0
- data/spec/integration/generators/common_generator_spec.rb +12 -13
- data/spec/integration/generators/config_features_spec.rb +155 -0
- data/spec/integration/generators/debug_helper_spec.rb +68 -0
- data/spec/integration/generators/helpers_generator_spec.rb +0 -12
- data/spec/integration/generators/lighthouse_addon_spec.rb +132 -0
- data/spec/integration/generators/minitest_generator_spec.rb +0 -6
- data/spec/integration/generators/reporter_spec.rb +159 -0
- data/spec/integration/generators/skip_flags_spec.rb +134 -0
- data/spec/integration/generators/visual_addon_spec.rb +148 -0
- data/spec/integration/scaffolding_e2e_spec.rb +775 -0
- data/spec/integration/settings_helper.rb +0 -3
- data/spec/integration/spec_helper.rb +30 -13
- data/spec/llm/client_spec.rb +79 -0
- data/spec/llm/config_spec.rb +92 -0
- data/spec/llm/prompts_spec.rb +49 -0
- data/spec/llm/response_parser_spec.rb +92 -0
- data/spec/menus/adopter_adopt_menu_spec.rb +97 -0
- data/spec/menus/menu_generator_spec.rb +263 -0
- data/spec/scaffolding/name_normalizer_spec.rb +113 -0
- data/spec/scaffolding/page_introspector_spec.rb +82 -0
- data/spec/scaffolding/scaffold_project_detector_spec.rb +142 -0
- data/spec/scaffolding/scaffolding_features_spec.rb +311 -0
- data/spec/scaffolding/url_analyzer_spec.rb +110 -0
- data/spec/system/adopt_matrix_spec.rb +537 -0
- data/spec/system/adopt_spec.rb +225 -0
- data/spec/system/support/system_test_helper.rb +0 -2
- data/spec/utilities/desktop_downloader_spec.rb +92 -0
- data/spec/utilities/headless_config_spec.rb +89 -0
- data/spec/utilities/utilities_spec.rb +105 -0
- metadata +154 -5
- data/lib/generators/automation/templates/visual_options.tt +0 -16
- data/lib/generators/templates/helpers/partials/axe_driver.tt +0 -10
- 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:
|
|
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-
|
|
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/
|
|
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,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
|