saucelabs-adapter 0.8.8 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -2
- data/VERSION +1 -1
- data/generators/saucelabs_adapter/templates/selenium.yml +1 -1
- data/lib/saucelabs_adapter/selenium_config.rb +4 -1
- data/spec/selenium_config_spec.rb +7 -0
- data/spec/spec_helper.rb +4 -1
- metadata +43 -24
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.10
|
@@ -47,7 +47,7 @@ saucelabs: &saucelabs
|
|
47
47
|
# application_port: 12345 # or can be a range XXXX-YYYY
|
48
48
|
# tunnel_to_localhost_port: 4000 # Warning: application_port and tunnel_to_localhost_port must be identical if you are using Webrat
|
49
49
|
# tunnel_username: fred
|
50
|
-
# tunnel_keyfile: "/
|
50
|
+
# tunnel_keyfile: "/Users/<%= ENV['USER'] %>/.ssh/id_rsa" # or tunnel_password: "password"
|
51
51
|
#
|
52
52
|
# tunnel_method: :othertunnel You're managing your tunnel independently
|
53
53
|
|
@@ -99,7 +99,10 @@ module SaucelabsAdapter
|
|
99
99
|
|
100
100
|
def self.parse_yaml(selenium_yml_path)
|
101
101
|
raise "[saucelabs-adapter] could not open #{selenium_yml_path}" unless File.exist?(selenium_yml_path)
|
102
|
-
|
102
|
+
file_contents = File.open(selenium_yml_path).read
|
103
|
+
erb_parsed_file_contents = ERB.new(%{#{file_contents}}).result
|
104
|
+
configs = YAML.load(erb_parsed_file_contents)
|
105
|
+
@@selenium_configs ||= configs
|
103
106
|
end
|
104
107
|
|
105
108
|
private
|
@@ -26,6 +26,13 @@ describe "SeleniumConfig" do
|
|
26
26
|
@selenium_config = SaucelabsAdapter::SeleniumConfig.new('local', SELENIUM_YML_FIXTURE_FILE)
|
27
27
|
end
|
28
28
|
|
29
|
+
describe "#tunnel_keyfile" do
|
30
|
+
it "should parse erb" do
|
31
|
+
expected_value = "/path/with/erb/#{ENV['USER']}"
|
32
|
+
@selenium_config.tunnel_keyfile.should == expected_value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
29
36
|
describe "#start_tunnel?" do
|
30
37
|
it "should return false" do
|
31
38
|
@selenium_config.start_tunnel?.should be_false
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucelabs-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 43
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 8
|
8
|
-
-
|
9
|
-
version: 0.8.
|
9
|
+
- 10
|
10
|
+
version: 0.8.10
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Kelly Felkins, Chad Woolley, Sam Pierson, Nate Clark
|
@@ -14,79 +15,89 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-21 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
+
type: :runtime
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
+
name: rest-client
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 31
|
27
31
|
segments:
|
28
32
|
- 1
|
29
33
|
- 2
|
30
34
|
- 0
|
31
35
|
version: 1.2.0
|
32
|
-
|
33
|
-
version_requirements: *id001
|
36
|
+
requirement: *id001
|
34
37
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
38
|
+
type: :runtime
|
36
39
|
prerelease: false
|
37
|
-
|
40
|
+
name: net-ssh
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
44
|
- - ">="
|
40
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 23
|
41
47
|
segments:
|
42
48
|
- 2
|
43
49
|
- 0
|
44
50
|
- 12
|
45
51
|
version: 2.0.12
|
46
|
-
|
47
|
-
version_requirements: *id002
|
52
|
+
requirement: *id002
|
48
53
|
- !ruby/object:Gem::Dependency
|
49
|
-
|
54
|
+
type: :runtime
|
50
55
|
prerelease: false
|
51
|
-
|
56
|
+
name: net-ssh-gateway
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
60
|
- - ">="
|
54
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 21
|
55
63
|
segments:
|
56
64
|
- 1
|
57
65
|
- 0
|
58
66
|
- 1
|
59
67
|
version: 1.0.1
|
60
|
-
|
61
|
-
version_requirements: *id003
|
68
|
+
requirement: *id003
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
70
|
+
type: :runtime
|
64
71
|
prerelease: false
|
65
|
-
|
72
|
+
name: selenium-client
|
73
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
76
|
- - ">="
|
68
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 61
|
69
79
|
segments:
|
70
80
|
- 1
|
71
81
|
- 2
|
72
82
|
- 17
|
73
83
|
version: 1.2.17
|
74
|
-
|
75
|
-
version_requirements: *id004
|
84
|
+
requirement: *id004
|
76
85
|
- !ruby/object:Gem::Dependency
|
77
|
-
|
86
|
+
type: :runtime
|
78
87
|
prerelease: false
|
79
|
-
|
88
|
+
name: lsof
|
89
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
92
|
- - ">="
|
82
93
|
- !ruby/object:Gem::Version
|
94
|
+
hash: 19
|
83
95
|
segments:
|
84
96
|
- 0
|
85
97
|
- 3
|
86
98
|
- 0
|
87
99
|
version: 0.3.0
|
88
|
-
|
89
|
-
version_requirements: *id005
|
100
|
+
requirement: *id005
|
90
101
|
description: "This gem augments Test::Unit and Polonium/Webrat to run Selenium tests in the cloud. "
|
91
102
|
email: pair+kelly+sam@pivotallabs.com
|
92
103
|
executables: []
|
@@ -119,6 +130,10 @@ files:
|
|
119
130
|
- lib/saucerest-ruby/gateway.rb
|
120
131
|
- lib/saucerest-ruby/saucerest.rb
|
121
132
|
- README.markdown
|
133
|
+
- spec/selenium_config_spec.rb
|
134
|
+
- spec/spec_helper.rb
|
135
|
+
- test/helper.rb
|
136
|
+
- test/test_saucelabs-adapter.rb
|
122
137
|
has_rdoc: true
|
123
138
|
homepage: http://github.com/pivotal/saucelabs-adapter
|
124
139
|
licenses: []
|
@@ -129,23 +144,27 @@ rdoc_options:
|
|
129
144
|
require_paths:
|
130
145
|
- lib
|
131
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
132
148
|
requirements:
|
133
149
|
- - ">="
|
134
150
|
- !ruby/object:Gem::Version
|
151
|
+
hash: 3
|
135
152
|
segments:
|
136
153
|
- 0
|
137
154
|
version: "0"
|
138
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
139
157
|
requirements:
|
140
158
|
- - ">="
|
141
159
|
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
142
161
|
segments:
|
143
162
|
- 0
|
144
163
|
version: "0"
|
145
164
|
requirements: []
|
146
165
|
|
147
166
|
rubyforge_project:
|
148
|
-
rubygems_version: 1.3.
|
167
|
+
rubygems_version: 1.3.7
|
149
168
|
signing_key:
|
150
169
|
specification_version: 3
|
151
170
|
summary: Adapter for running Selenium tests using SauceLabs.com
|