ruby_raider 0.7.8 → 0.7.9

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: d790461636733d2acae878ca6201cad8759018559340708f33921939f36fbcf7
4
- data.tar.gz: 9dbe3b8fd22ac6e27c32ff25ca1f9f4e6b63cec9dc4c4c2a575d4be88b741a4b
3
+ metadata.gz: d7c0a06c991fd4bbbf94bdf2ed6081b2177fa40d9ee7df174ff2d9bf5698c794
4
+ data.tar.gz: 3ea6fb9b0d3b7aa19b77b8f8815b709b75ec14aee59dafd6a8dbfc98659abe38
5
5
  SHA512:
6
- metadata.gz: 405dc47ab5b2c395e491da7877b06a3838822a6bd72fddcedc5c525c3097a75d18947e6e169855d8e48187fb1394a3bb678e26364c4bdc1c9550bf23a90e1036
7
- data.tar.gz: 5a7fcdccc72bb01f47e06226c93a29f3dbb3e1cee1f0f069ff56de94549d80e77b1397228e73debb706c6564692f79e6466a2c20dc48e95d376e28a361d9ff46
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 -%>
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'yaml'
4
- require 'selenium-webdriver'
5
4
  require 'watir'
6
- require 'webdrivers'
7
5
 
8
6
  module BrowserHelper
9
7
 
@@ -24,7 +24,7 @@ end
24
24
  require 'yaml'
25
25
  <% if automation == 'selenium' -%>
26
26
  require 'active_support/inflector'
27
- require 'webdrivers'
27
+ require 'selenium-webdriver'
28
28
  <% else -%>
29
29
  require 'appium_lib'
30
30
  <% 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, capabilities: browser_options(*opts))
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
- caps = "Selenium::WebDriver::#{browser}::Options".constantize.new
18
- opts.each { |option| caps.add_argument(option) }
19
- caps
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.8, Happy testing!'
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.8'
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.8
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-07-17 00:00:00.000000000 Z
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.13
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