pivotal-selenium-rc 1.7.20090512 → 1.8.20090512

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.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 1.8.20090512
2
+ Fixed bug where bin/selenium-rc did not stay open
3
+
1
4
  1.7.20090512
2
5
  Properly handling Errno::EADDRNOTAVAIL when starting on windows.
3
6
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 7
3
+ :minor: 8
4
4
  :patch: 20090512
5
5
  :jar_url: http://nexus.openqa.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-remote-control/1.0-SNAPSHOT/selenium-remote-control-1.0-20090512.181627-79-dist.zip
data/bin/selenium-rc CHANGED
@@ -3,4 +3,6 @@
3
3
  dir = File.dirname(__FILE__)
4
4
  require "rubygems"
5
5
  require File.expand_path("#{dir}/../lib/selenium_rc")
6
- SeleniumRC::Server.boot(ARGV)
6
+ server = SeleniumRC::Server.boot(ARGV)
7
+
8
+ sleep
@@ -3,7 +3,9 @@ module SeleniumRC
3
3
  class Server
4
4
  class << self
5
5
  def boot(*argv)
6
- new.boot(argv)
6
+ instance = new
7
+ instance.boot(argv)
8
+ instance
7
9
  end
8
10
 
9
11
  def host
@@ -42,7 +44,7 @@ module SeleniumRC
42
44
  command << " -port #{self.class.port}"
43
45
  command << " #{argv.join(' ')}" if argv.length > 0
44
46
  log "Running: #{command}"
45
- Thread.start do
47
+ fork do
46
48
  system(command)
47
49
  end
48
50
  end
@@ -17,9 +17,9 @@ describe "bin/selenium-rc" do
17
17
  system("bin/selenium-rc") || raise("bin/selenium-server failed")
18
18
  end
19
19
  end
20
-
21
20
  timeout {SeleniumRC::Server.service_is_running?}
22
21
  thread.kill
22
+ Lsof.kill(4444)
23
23
  timeout {!SeleniumRC::Server.service_is_running?}
24
24
  end
25
25
 
@@ -6,6 +6,7 @@ module SeleniumRC
6
6
  before do
7
7
  @server = Server.new
8
8
  stub(@server).log
9
+ stub(@server).fork.yields
9
10
  end
10
11
 
11
12
  describe "#start" do
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ require "fileutils"
5
5
  require "timeout"
6
6
  require "tcp_socket_extension"
7
7
  require "rr"
8
+ require "lsof"
8
9
 
9
10
  dir = File.dirname(__FILE__)
10
11
  $:.unshift(File.expand_path("#{dir}/../lib"))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-selenium-rc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.20090512
4
+ version: 1.8.20090512
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-05-13 00:00:00 -07:00
15
+ date: 2009-06-13 00:00:00 -07:00
16
16
  default_executable: selenium-rc
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -41,12 +41,12 @@ files:
41
41
  - bin/selenium-rc
42
42
  - lib/selenium_rc.rb
43
43
  - lib/selenium_rc/server.rb
44
- - spec/install_and_run_spec.rb
44
+ - spec/bin_selenium_rc_spec.rb
45
45
  - spec/selenium_rc/server_spec.rb
46
46
  - spec/spec_helper.rb
47
47
  - spec/spec_suite.rb
48
48
  - vendor/empty.txt
49
- has_rdoc: false
49
+ has_rdoc: true
50
50
  homepage: http://github.com/pivotal/selenium-rc
51
51
  post_install_message:
52
52
  rdoc_options:
@@ -70,10 +70,10 @@ requirements: []
70
70
  rubyforge_project:
71
71
  rubygems_version: 1.2.0
72
72
  signing_key:
73
- specification_version: 3
73
+ specification_version: 2
74
74
  summary: The Selenium RC Server packaged as a gem.
75
75
  test_files:
76
- - spec/install_and_run_spec.rb
77
76
  - spec/selenium_rc/server_spec.rb
78
- - spec/spec_helper.rb
79
77
  - spec/spec_suite.rb
78
+ - spec/bin_selenium_rc_spec.rb
79
+ - spec/spec_helper.rb