ruby_raider 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/templates/common/gemfile.tt +0 -3
- data/lib/generators/templates/helpers/browser_helper.tt +0 -2
- data/lib/generators/templates/helpers/driver_helper.tt +1 -1
- data/lib/generators/templates/helpers/partials/driver_and_options.tt +4 -4
- data/lib/ruby_raider.rb +1 -1
- data/ruby_raider.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7c0a06c991fd4bbbf94bdf2ed6081b2177fa40d9ee7df174ff2d9bf5698c794
|
4
|
+
data.tar.gz: 3ea6fb9b0d3b7aa19b77b8f8815b709b75ec14aee59dafd6a8dbfc98659abe38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9194bd0c1e51230f6458e4aa038729e68301511227c4034130310894b278f57704a3fe9dc13e206b9df8ff419c9697370a1930a02a803e660bfa9409bfb11b01
|
7
|
+
data.tar.gz: b8c71e244cc25bb7c2b95d82abf37c1fbf1a0af32460ef4e514daf974bb7d1071deba7636df89279e80c9bb3d95eab5778fbd561a15947be2eba6719d972e475
|
@@ -27,9 +27,6 @@ gem 'rubocop-rspec'
|
|
27
27
|
<% end -%>
|
28
28
|
gem 'ruby_raider', '~> 0.7.0'
|
29
29
|
<%= ERB.new(File.read(File.expand_path('./partials/automation_gems.tt', __dir__))).result(binding).strip! %>
|
30
|
-
<% if %w[selenium watir].include? automation -%>
|
31
|
-
gem 'webdrivers'
|
32
|
-
<% end -%>
|
33
30
|
<% if automation == 'sparkling_ios' -%>
|
34
31
|
gem 'sparkling_watir'
|
35
32
|
<% end -%>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
def create_driver(*opts)
|
3
3
|
@config = YAML.load_file('config/config.yml')
|
4
4
|
browser = @config['browser'].to_sym
|
5
|
-
Selenium::WebDriver.for(browser,
|
5
|
+
Selenium::WebDriver.for(browser, options: browser_options(*opts))
|
6
6
|
end
|
7
7
|
|
8
8
|
def browser_options(*opts)
|
@@ -14,9 +14,9 @@
|
|
14
14
|
def create_options(*opts)
|
15
15
|
load_browser = @config['browser'].to_s
|
16
16
|
browser = load_browser == 'ie' ? load_browser.upcase : load_browser.capitalize
|
17
|
-
|
18
|
-
opts.each { |option|
|
19
|
-
|
17
|
+
options = "Selenium::WebDriver::#{browser}::Options".constantize.new
|
18
|
+
opts.each { |option| options.add_argument(option) }
|
19
|
+
options
|
20
20
|
end
|
21
21
|
|
22
22
|
<% elsif automation == 'cross_platform' -%>
|
data/lib/ruby_raider.rb
CHANGED
@@ -19,7 +19,7 @@ module RubyRaider
|
|
19
19
|
desc 'version', 'It shows the version of Ruby Raider you are currently using'
|
20
20
|
|
21
21
|
def version
|
22
|
-
puts 'The Ruby Raider version is 0.7.
|
22
|
+
puts 'The Ruby Raider version is 0.7.9, Happy testing!'
|
23
23
|
end
|
24
24
|
|
25
25
|
map 'v' => 'version'
|
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.7.
|
5
|
+
s.version = '0.7.9'
|
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']
|
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.7.
|
4
|
+
version: 0.7.9
|
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-
|
11
|
+
date: 2023-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
304
|
- !ruby/object:Gem::Version
|
305
305
|
version: '0'
|
306
306
|
requirements: []
|
307
|
-
rubygems_version: 3.4.
|
307
|
+
rubygems_version: 3.4.17
|
308
308
|
signing_key:
|
309
309
|
specification_version: 4
|
310
310
|
summary: A gem to make setup and start of UI automation projects easier
|