selenium-server 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- selenium-server (1.1.1)
4
+ selenium-server (1.1.2)
5
5
  rake
6
6
  selenium-webdriver
7
7
 
data/example.rb CHANGED
@@ -11,6 +11,4 @@ end
11
11
 
12
12
  @driver.get "http://www.google.com"
13
13
 
14
- @driver.quit
15
-
16
14
  SeleniumServer.finish
@@ -9,7 +9,7 @@ module SeleniumServer
9
9
  @configuration = Configuration.new
10
10
  end
11
11
 
12
- attr_reader :server
12
+ attr_reader :server, :driver
13
13
 
14
14
  def localhost?
15
15
  case @configuration.host
@@ -23,10 +23,11 @@ module SeleniumServer
23
23
  @server = Server.new(@configuration)
24
24
  server.start
25
25
  end
26
- Runner.new(@configuration).driver
26
+ @driver = Runner.new(@configuration).driver
27
27
  end
28
28
 
29
29
  def finish
30
+ driver.quit
30
31
  if localhost? then server.stop end
31
32
  end
32
33
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'selenium-server'
3
- s.version = '1.1.2'
3
+ s.version = '1.2.0'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ['Dave Haeffner']
6
6
  s.email = ['dave@arrgyle.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: