webdriver-firefox 0.0.8 → 0.0.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.
@@ -3,6 +3,7 @@
3
3
  require 'selenium/webdriver'
4
4
 
5
5
  require 'webdriver-firefox/port_pool'
6
+ require 'webdriver-firefox/launcher'
6
7
  require 'webdriver-firefox/no_lock_firefox_bridge'
7
8
  require 'webdriver-firefox/no_lock_driver'
8
9
  require 'webdriver-firefox/firefox_binary'
@@ -0,0 +1,24 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Firefox
4
+
5
+ # @api private
6
+ class Launcher
7
+ def find_free_port
8
+ pool = ::NoLockFirefox::PortPool.new
9
+ @port = pool.find_free_port
10
+ end
11
+
12
+ def launch
13
+ find_free_port
14
+ create_profile
15
+ start_silent_and_wait
16
+ start
17
+ connect_until_stable
18
+
19
+ self
20
+ end
21
+ end # Launcher
22
+ end # Firefox
23
+ end # WebDriver
24
+ end # Selenium
@@ -7,9 +7,7 @@ module NoLockFirefox
7
7
  HOST = "127.0.0.1"
8
8
  START_PORT = 24576
9
9
 
10
- def initialize(path=nil)
11
- @path_ports = path
12
- @path_ports ||= "/tmp/webdriver-firefox.ports.json"
10
+ def initialize
13
11
  @random = Random.new
14
12
  end
15
13
 
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2013 Solano Labs All Rights Reserved
2
2
 
3
3
  module WebdriverFirefox
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdriver-firefox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-11-13 00:00:00.000000000 Z
12
+ date: 2014-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver
@@ -36,6 +36,7 @@ extra_rdoc_files: []
36
36
  files:
37
37
  - lib/webdriver-firefox.rb
38
38
  - lib/webdriver-firefox/firefox_binary.rb
39
+ - lib/webdriver-firefox/launcher.rb
39
40
  - lib/webdriver-firefox/no_lock_driver.rb
40
41
  - lib/webdriver-firefox/no_lock_firefox_bridge.rb
41
42
  - lib/webdriver-firefox/port_pool.rb
@@ -60,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  version: '0'
61
62
  requirements: []
62
63
  rubyforge_project: tddium
63
- rubygems_version: 1.8.23
64
+ rubygems_version: 1.8.25
64
65
  signing_key:
65
66
  specification_version: 3
66
67
  summary: WebdriverFirefox