sauce 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,8 @@ module Sauce
23
23
  :browser => "firefox",
24
24
  :browser_version => "3.6.",
25
25
  :job_name => "Unnamed Ruby job",
26
- :local_application_port => "3001"
26
+ :local_application_port => "3001",
27
+ :capture_traffic => false
27
28
  }
28
29
 
29
30
  ENVIRONMENT_VARIABLES = %w{SAUCE_HOST SAUCE_PORT SAUCE_BROWSER_URL SAUCE_USERNAME
@@ -54,7 +54,7 @@ begin
54
54
  @selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version,
55
55
  :job_name => "#{description}"})
56
56
  end
57
- @selenium.start
57
+ @selenium.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
58
58
  super(*args)
59
59
  @selenium.stop
60
60
  end
@@ -95,7 +95,7 @@ begin
95
95
  @selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version,
96
96
  :job_name => "#{description}"})
97
97
  end
98
- @selenium.start
98
+ @selenium.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
99
99
  begin
100
100
  the_test.run
101
101
  ensure
@@ -195,9 +195,9 @@ module Sauce
195
195
  @browser = Sauce::Selenium.new(options)
196
196
  end
197
197
  if self.class.selenium_flags
198
- @browser.start_new_browser_session(self.class.selenium_flags)
198
+ @browser.start_new_browser_session(self.class.selenium_flags.merge(:captureNetworkTraffic => config.capture_traffic?))
199
199
  else
200
- @browser.start_new_browser_session
200
+ @browser.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
201
201
  end
202
202
  super(*args, &blk)
203
203
  @browser.stop
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sauce}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Eric Allen", "Sean Grove", "Steven Hazel"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Allen