ruby_raider 0.6.3 → 0.6.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2cbfa0720b9c50ab489138363df3c82e41015b12da7fe9be816b100dc6979d
|
4
|
+
data.tar.gz: 71dc2dd9695ab3deae1c4c3f190263d8a1377c86632600ea1a9978f88aee2146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2426dac44cd6f86b5bf853e3decada1a8940ab0b88f8a119130e70a27943bc394bf5e42d4368f58c9453e6e722acbee3352bff581ed4658cef314b7b4586dc
|
7
|
+
data.tar.gz: ff123bf6adb33b426fa831087b107dadffb203db2a889ba0baf4cc89d33a23f5435afbaca0c4256949041c16aa08b9965e77a8962ba529a75c96bfacc9ea85c9
|
data/README.md
CHANGED
@@ -97,6 +97,7 @@ Commands :
|
|
97
97
|
raider generate # Provides access to all the generators commands
|
98
98
|
raider help [COMMAND] # Describe available commands or one specific command
|
99
99
|
raider new [PROJECT_NAME] # Creates a new framework based on settings picked
|
100
|
+
raider open # It opens the desktop runner
|
100
101
|
raider open_ai # Provides access to all the open ai commands
|
101
102
|
raider utility # Provides access to all the utility commands
|
102
103
|
raider version # It shows the version of Ruby Raider you are currently using
|
@@ -55,7 +55,7 @@ class RunnerComponents < BaseComponent
|
|
55
55
|
left 3
|
56
56
|
halign :end
|
57
57
|
on_clicked do
|
58
|
-
system 'allure serve allure-
|
58
|
+
system 'allure serve allure-results'
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -104,9 +104,12 @@ class RunnerComponents < BaseComponent
|
|
104
104
|
horizontal_box do
|
105
105
|
vertical_box do
|
106
106
|
horizontal_box do
|
107
|
-
|
107
|
+
button_test_name = "Create #{@folder.capitalize}"
|
108
|
+
button(button_test_name) do
|
108
109
|
on_clicked do
|
109
110
|
Scaffolding.new([@test_name.text]).generate_spec
|
111
|
+
extension = @folder == 'spec' ? '.rb' : '.feature'
|
112
|
+
@editable_files.selected_item = "#{@folder}/#{@helper_name.text}#{extension}"
|
110
113
|
end
|
111
114
|
end
|
112
115
|
@test_name = entry do
|
@@ -117,6 +120,10 @@ class RunnerComponents < BaseComponent
|
|
117
120
|
button('Create Page') do
|
118
121
|
on_clicked do
|
119
122
|
Scaffolding.new([@page_name.text]).generate_class
|
123
|
+
page_item = "page_objects/pages/#{@page_name.text}_page.rb"
|
124
|
+
@all_files.push(page_item)
|
125
|
+
@editable_files.items.append(page_item)
|
126
|
+
@editable_files.selected_item = page_item
|
120
127
|
end
|
121
128
|
end
|
122
129
|
@page_name = entry do
|
@@ -127,6 +134,7 @@ class RunnerComponents < BaseComponent
|
|
127
134
|
button('Create Helper') do
|
128
135
|
on_clicked do
|
129
136
|
Scaffolding.new([@helper_name.text]).generate_helper
|
137
|
+
@editable_files.selected_item = "helpers/#{@helper_name.text}_helper.rb"
|
130
138
|
end
|
131
139
|
end
|
132
140
|
@helper_name = entry do
|
@@ -147,14 +155,15 @@ class RunnerComponents < BaseComponent
|
|
147
155
|
|
148
156
|
on_selected do |items|
|
149
157
|
if @folder_exist
|
150
|
-
|
158
|
+
@selected_path = @editable_files.selected_item
|
159
|
+
path = @selected_path || @editable_files.items.last
|
151
160
|
@edit_file = File.open(path)
|
152
161
|
@edit_box.text = @edit_file.read
|
153
162
|
end
|
154
163
|
end
|
155
164
|
end
|
156
165
|
@edit_box = multiline_entry do
|
157
|
-
text File.read(@all_files
|
166
|
+
text File.read(@all_files&.first) if @folder_exist
|
158
167
|
|
159
168
|
on_changed do |e|
|
160
169
|
if @folder_exist
|
@@ -26,7 +26,7 @@ gem 'rubocop'
|
|
26
26
|
<% if framework == 'rspec' -%>
|
27
27
|
gem 'rubocop-rspec'
|
28
28
|
<% end -%>
|
29
|
-
gem 'ruby_raider', '
|
29
|
+
gem 'ruby_raider', '=> 0.6.4'
|
30
30
|
<%= ERB.new(File.read(File.expand_path('./partials/automation_gems.tt', __dir__))).result(binding).strip! %>
|
31
31
|
<% if %w[selenium watir].include? automation -%>
|
32
32
|
gem 'webdrivers'
|
@@ -93,6 +93,7 @@ Commands :
|
|
93
93
|
raider generate # Provides access to all the generators commands
|
94
94
|
raider help [COMMAND] # Describe available commands or one specific command
|
95
95
|
raider new [PROJECT_NAME] # Creates a new framework based on settings picked
|
96
|
+
raider open # It opens the desktop runner
|
96
97
|
raider open_ai # Provides access to all the open ai commands
|
97
98
|
raider utility # Provides access to all the utility commands
|
98
99
|
raider version # It shows the version of Ruby Raider you are currently using
|
data/ruby_raider.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'ruby_raider'
|
5
|
-
s.version = '0.6.
|
5
|
+
s.version = '0.6.5'
|
6
6
|
s.summary = 'A gem to make setup and start of UI automation projects easier'
|
7
7
|
s.description = 'This gem has everything you need to start working with test automation'
|
8
8
|
s.authors = ['Agustin Pequeno']
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# :reek:FeatureEnvy { enabled: false }
|
2
|
+
# :reek:UtilityFunction { enabled: false }
|
3
|
+
|
4
|
+
module SettingsHelper
|
5
|
+
def create_settings(options)
|
6
|
+
automation = options[:automation]
|
7
|
+
examples = options[:examples]
|
8
|
+
visual = options[:visual]
|
9
|
+
framework = options[:framework]
|
10
|
+
{
|
11
|
+
automation: automation,
|
12
|
+
examples: examples,
|
13
|
+
framework: framework,
|
14
|
+
name: "#{framework}_#{automation}#{'_visual' if visual}#{'_without_examples' unless examples}",
|
15
|
+
visual: visual
|
16
|
+
}
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_raider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agustin Pequeno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -297,6 +297,7 @@ files:
|
|
297
297
|
- spec/ruby_raider_spec.rb
|
298
298
|
- spec/scaffolding_commands_spec.rb
|
299
299
|
- spec/spec_helper.rb
|
300
|
+
- spec/support/settings_helper.rb
|
300
301
|
- spec/utility_commands_spec.rb
|
301
302
|
homepage: https://github.com/RubyRaider/ruby_raider
|
302
303
|
licenses:
|