sauce 0.12.10 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,8 @@ begin
14
14
  gem.add_runtime_dependency "rest-client", ">= 0"
15
15
  gem.add_runtime_dependency "net-ssh", ">= 0"
16
16
  gem.add_runtime_dependency "net-ssh-gateway", ">= 0"
17
- gem.add_runtime_dependency "selenium-client", ">= 1.2.18"
17
+ gem.add_runtime_dependency "selenium-webdriver", ">= 0.1.2"
18
+ gem.add_runtime_dependency "childprocess", ">= 0.1.6"
18
19
  gem.add_runtime_dependency "json", ">= 1.4.6"
19
20
  gem.add_runtime_dependency "cmdparse", ">= 2.0.2"
20
21
  gem.add_runtime_dependency "highline", ">= 1.5.0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.10
1
+ 0.13.0
data/lib/sauce/connect.rb CHANGED
@@ -26,7 +26,7 @@ module Sauce
26
26
  if line =~ /Tunnel host is (.*) (\.\.|at)/
27
27
  @status = $1
28
28
  end
29
- if line =~/You may start your tests/
29
+ if line =~/You may start your tests\./
30
30
  @ready = true
31
31
  end
32
32
  if line =~ /- (Problem.*)$/
@@ -1,5 +1,7 @@
1
1
  require 'timeout'
2
2
  require 'socket'
3
+ require 'childprocess'
4
+ require 'net/http'
3
5
 
4
6
  module Sauce
5
7
  module Utilities
@@ -31,17 +33,17 @@ module Sauce
31
33
  def with_selenium_rc
32
34
  ENV['LOCAL_SELENIUM'] = "true"
33
35
  STDERR.puts "Starting Selenium RC server on port 4444..."
34
- server = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", 4444)
35
- server.jar_file = File.expand_path(File.dirname(__FILE__) + "/../../support/selenium-server.jar")
36
- silence_stream(STDOUT) do
37
- server.start :background => true
38
- wait_for_server_on_port(4444)
39
- end
36
+
37
+ jar_file = File.expand_path(File.dirname(__FILE__) + "/../../support/selenium-server.jar")
38
+ command = ["java", "-jar", jar_file, "-port", "4444"]
39
+ server = ChildProcess.build(*command)
40
+ server.start
41
+ wait_for_server_on_port(4444)
40
42
  STDERR.puts "Selenium RC running!"
41
43
  begin
42
44
  yield
43
45
  ensure
44
- server.stop
46
+ Net::HTTP.get("127.0.0.1", "/selenium-server/driver/?cmd=shutDownSeleniumServer", 4444)
45
47
  end
46
48
  end
47
49
 
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: 59
5
- prerelease:
4
+ hash: 43
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 12
9
- - 10
10
- version: 0.12.10
8
+ - 13
9
+ - 0
10
+ version: 0.13.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Grove
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-01-21 00:00:00 -03:00
20
+ date: 2011-01-21 00:00:00 -08:00
21
21
  default_executable: sauce
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -77,25 +77,41 @@ dependencies:
77
77
  type: :runtime
78
78
  version_requirements: *id004
79
79
  - !ruby/object:Gem::Dependency
80
- name: selenium-client
80
+ name: selenium-webdriver
81
81
  prerelease: false
82
82
  requirement: &id005 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ">="
86
86
  - !ruby/object:Gem::Version
87
- hash: 59
87
+ hash: 31
88
88
  segments:
89
+ - 0
89
90
  - 1
90
91
  - 2
91
- - 18
92
- version: 1.2.18
92
+ version: 0.1.2
93
93
  type: :runtime
94
94
  version_requirements: *id005
95
95
  - !ruby/object:Gem::Dependency
96
- name: json
96
+ name: childprocess
97
97
  prerelease: false
98
98
  requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 23
104
+ segments:
105
+ - 0
106
+ - 1
107
+ - 6
108
+ version: 0.1.6
109
+ type: :runtime
110
+ version_requirements: *id006
111
+ - !ruby/object:Gem::Dependency
112
+ name: json
113
+ prerelease: false
114
+ requirement: &id007 !ruby/object:Gem::Requirement
99
115
  none: false
100
116
  requirements:
101
117
  - - ">="
@@ -107,11 +123,11 @@ dependencies:
107
123
  - 6
108
124
  version: 1.4.6
109
125
  type: :runtime
110
- version_requirements: *id006
126
+ version_requirements: *id007
111
127
  - !ruby/object:Gem::Dependency
112
128
  name: cmdparse
113
129
  prerelease: false
114
- requirement: &id007 !ruby/object:Gem::Requirement
130
+ requirement: &id008 !ruby/object:Gem::Requirement
115
131
  none: false
116
132
  requirements:
117
133
  - - ">="
@@ -123,11 +139,11 @@ dependencies:
123
139
  - 2
124
140
  version: 2.0.2
125
141
  type: :runtime
126
- version_requirements: *id007
142
+ version_requirements: *id008
127
143
  - !ruby/object:Gem::Dependency
128
144
  name: highline
129
145
  prerelease: false
130
- requirement: &id008 !ruby/object:Gem::Requirement
146
+ requirement: &id009 !ruby/object:Gem::Requirement
131
147
  none: false
132
148
  requirements:
133
149
  - - ">="
@@ -139,7 +155,7 @@ dependencies:
139
155
  - 0
140
156
  version: 1.5.0
141
157
  type: :runtime
142
- version_requirements: *id008
158
+ version_requirements: *id009
143
159
  description: A Ruby interface to Sauce Labs' services. Start/stop tunnels, retrieve Selenium logs, access video replays, etc.
144
160
  email: help@saucelabs.com
145
161
  executables:
@@ -222,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
238
  requirements: []
223
239
 
224
240
  rubyforge_project:
225
- rubygems_version: 1.4.2
241
+ rubygems_version: 1.3.7
226
242
  signing_key:
227
243
  specification_version: 3
228
244
  summary: Ruby access to Sauce Labs' features