rudra 1.0.15 → 1.0.16

This diff has not been reviewed by any users.
Log in in order to be able to vote.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rudra.rb +8 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18f80bbed760fbf34d622b60e647507bab5ddfea167a6d144430dae84ed35a98
4
- data.tar.gz: '04965c6ea61ea288861f22c6fabbb61240f384faf99b9a9402e51273d201caa4'
3
+ metadata.gz: 425842a9405ec0a244bca0e722f6eb25cdb881b355346f3d61318a2fde111a25
4
+ data.tar.gz: 4ed27b935bd5a3192d421fad516fa024fc9783f1f10c2b75da85679717511a70
5
5
  SHA512:
6
- metadata.gz: 55a6791c2d89ecb33b3833ac41ef6f1514b482ac13525070aa246166bc5d530c7dc23bf09d353630f4205ab5959dc8202a49cee271e96554e485e19a5ca24f6e
7
- data.tar.gz: 1e9d5d7c2fd2cfa29aa3baa80145647e3088096a3af625f5e49d7baf931d2a72082d73abfeb7e12e44995a8d29607d08693e0533bbffdb5a34995e1182b7ee44
6
+ metadata.gz: 0aa62d7dcfa60e50e74fcc61a11a264a5e1b20f77355e4776e6821d75d06a4b3ecf9ff89c1a4197d72ace5175fe25163b7b68309f05d5ff64c60aa86e33f1aaa
7
+ data.tar.gz: 8f4353692ce71ef0276786a0bad7a062c1d88095184947a1d2f682f5ddae0d515764bb958726fe9dfafcc704b9ac40b129659b1a0a277e673e38ffd3e8cf6edc
@@ -13,6 +13,9 @@ require 'webdrivers/iedriver'
13
13
  # of the chosen browser
14
14
  # @attr_reader [String] install_dir The install directory of WebDrivers
15
15
  # @attr_reader [String] locale The browser locale
16
+ # @attr_reader [Boolean] headless Headless mode for Google Chrome
17
+ # @attr_reader [String] screen_dir The screenshot directory of save_screenshot
18
+ # @attr_reader [String] log_prefix Prefix for logging executed methods
16
19
  # @attr_reader [Integer] timeout The driver timeout
17
20
  # @attr_reader [Boolean] verbose Verbose mode
18
21
  class Rudra
@@ -28,7 +31,8 @@ class Rudra
28
31
  # Attributes
29
32
  ATTRIBUTES = %i[
30
33
  browser driver install_dir locale
31
- headless log_prefix timeout verbose
34
+ headless screen_dir log_prefix
35
+ timeout verbose
32
36
  ].freeze
33
37
 
34
38
  attr_reader :browser, :driver, :install_dir, :locale,
@@ -43,14 +47,14 @@ class Rudra
43
47
  # directory of WebDrivers
44
48
  # @option options [Symbol] :locale (:en) the browser locale
45
49
  # @option options [Boolean] :headless (false) headless mode
46
- # @option options [String] :screen_dir ('.//') the location of screenshots
47
- # @option options [String] :log_prefix (' - ') log prefix
50
+ # @option options [String] :screen_dir ('./screens/') the location of screenshots
51
+ # @option options [String] :log_prefix (' - ') prefix for logging executed methods
48
52
  # @option options [Integer] :timeout (30) implicit_wait timeout
49
53
  # @option options [Boolean] :verbose (true) verbose mode
50
54
  def initialize(options = {})
51
55
  self.browser = options.fetch(:browser, :chrome)
52
56
  self.install_dir = options.fetch(:install_dir, './webdrivers/')
53
- self.locale = options.fetch(:locale, :enscreens)
57
+ self.locale = options.fetch(:locale, :en)
54
58
  self.headless = options.fetch(:headless, false)
55
59
  self.screen_dir = options.fetch(:screen_dir, './screens/')
56
60
  self.log_prefix = options.fetch(:log_prefix, ' - ')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Chen