gless 1.4.0 → 1.4.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.
@@ -11,6 +11,8 @@
11
11
  # :url: "http://rlpowell:[snip]@ondemand.saucelabs.com:80/wd/hub" # The URL Sauce gives you
12
12
  # :version: 27 # The browser version to use
13
13
  # :platform: 'Windows 7' # The OS to use
14
+ # :idle_timeout: 600 # Sauce specific
15
+ # :max_duration: 5400 # Sauce specific
14
16
  :verbose: false # Whether to engage in more verbose/info level logging
15
17
  :debug: false # Whether to engage in debug logging
16
18
  :screenshots: false # Whether, if debugging is on, to create screenshots as part of the replay log
data/lib/gless/browser.rb CHANGED
@@ -25,6 +25,8 @@ module Gless
25
25
  url=@config.get_default false, :global, :browser, :url
26
26
  browser_version=@config.get_default '', :global, :browser, :version
27
27
  platform=@config.get_default :any, :global, :browser, :platform
28
+ max_duration=@config.get_default 1800, :global, :browser, :max_duration
29
+ idle_timeout=@config.get_default 90, :global, :browser, :idle_timeout
28
30
 
29
31
  if browser =~ %r{^\s*ie\s*$} or browser =~ %r{^\s*internet\s*_?\s*explorer\s*$}
30
32
  browser = 'internet explorer'
@@ -39,6 +41,8 @@ module Gless
39
41
  :javascript_enabled=>true,
40
42
  :css_selectors_enabled=>true,
41
43
  :takes_screenshot=>true,
44
+ :'max-duration' => max_duration,
45
+ :'idle-timeout' => idle_timeout,
42
46
  :version => browser_version,
43
47
  :platform => platform
44
48
  )
data/lib/gless.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # project.
7
7
  module Gless
8
8
  # The current version number.
9
- VERSION = '1.4.0'
9
+ VERSION = '1.4.1'
10
10
 
11
11
  # Sets up the config, logger and browser instances, the ordering
12
12
  # of which is slightly tricky. If a block is given, the config, after being
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-10 00:00:00.000000000 Z
12
+ date: 2013-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec