sauce 3.5.3 → 3.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGNlNmFjY2VlYWNlNmJhMTcxZTI5NjhkMjkwZDJkNTA4ZjBmMjdjNQ==
5
- data.tar.gz: !binary |-
6
- ODFmOTdiNGEyY2I1YWQ2MThlMmI0MGQ2NDU1MmJmZmViOWJkMzQ2Yw==
2
+ SHA1:
3
+ metadata.gz: 060e2f66bba9e22cf9a6cb260095dee8607d0f88
4
+ data.tar.gz: 31d86392cc10aa84f5bd150f5245453cd89c92d6
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- M2FjZGY2YTc0MTYwYzk5NmZkZWUxZWE2YzFmZGU4NjFiM2U0ZDU5YTM2Y2I3
10
- ODJjMWM1MGQwYzY5ZGQ5NWZjY2QxZjlhYjUwNGRjMGJkZGIyY2NjMjYwYTlj
11
- YmQyNzcxNjM1YTQyMzY4ZmM5OWQ4Y2MxMDU1OGIyZmQzMWJhYTE=
12
- data.tar.gz: !binary |-
13
- YTQ1MTA3Y2MyMTFmY2Y1OWM0N2NmZWJhYTc4NTcyMWVkYjJkMWFiZWE1NmQ4
14
- ZGUyMDFiZjNhYzQxMDkwYzQ3YzE1YzA1YWIxNjk0NWM4OWMwYjhlNmYxYTZl
15
- YTAxY2FmNzk5YTQ3MmRlOTBlYzU3NjBlYWIwM2JhMzE5ZjhlYzE=
6
+ metadata.gz: 6c4214b22a08f7fd8a8db56b99a5e5d9fc005f6991420ecaea7d94a949f53f47a59cc35f12bba2247cd8a158331ba4063c7becde05bce9f2ebd96a0a8b831034
7
+ data.tar.gz: 79c81c8915e5567672b4d4564153c7047263403d4bfec824b536117833a9fd76f771d29d470da44c31cdff93d48324f974dfd1986f6b1f057bc84d9b81e1dd15
@@ -73,8 +73,16 @@ module Sauce
73
73
  end
74
74
  end
75
75
 
76
+ # Oh gods why didn't I comment these when I wrote them?
77
+ # These are what I think I'm doing.
78
+ #
79
+ # Returns the browser currently being used or fetches a new
80
+ # browser, either from the RSpec integration or by creating
81
+ # one.
76
82
  def browser
83
+ # Return the existing browser if we have it
77
84
  unless existing_browser?
85
+ # Try to get a driver from the driver pool
78
86
  @browser = rspec_browser
79
87
  unless @browser
80
88
  @browser = Sauce::Selenium2.new
@@ -86,6 +94,7 @@ module Sauce
86
94
  @browser
87
95
  end
88
96
 
97
+ # Returns the rspec created browser if it exists
89
98
  def rspec_browser
90
99
  if browser = Sauce.driver_pool[Thread.current.object_id]
91
100
  @using_rspec_browser = true
@@ -95,6 +104,8 @@ module Sauce
95
104
  browser
96
105
  end
97
106
 
107
+ # If a browser has been created OR RSpec has put one in the diriver pool
108
+ # and we're using that browser, returns true.
98
109
  def existing_browser?
99
110
  if @using_rspec_browser
100
111
  @browser == Sauce.driver_pool[Thread.current.object_id]
@@ -106,6 +117,10 @@ module Sauce
106
117
  def finish!
107
118
  @browser.quit if existing_browser?
108
119
  @browser = nil
120
+
121
+ # Rethink how to do this. RSpec still references the driver pool.
122
+ Sauce.driver_pool[Thread.current.object_id] = nil
123
+ @using_rspec_browser = nil
109
124
  end
110
125
 
111
126
  def render(path)
data/lib/sauce/config.rb CHANGED
@@ -67,7 +67,7 @@ module Sauce
67
67
  sauce-advisor single-window user-extensions-url firefox-profile-url
68
68
  max-duration idle-timeout build custom-data tunnel-identifier
69
69
  selenium-version command-timeout prerun prerun-args screen-resolution
70
- disable-popup-handler avoid-proxy public name iedriver-version}
70
+ disable-popup-handler avoid-proxy public name iedriver-version parent-tunnel}
71
71
 
72
72
  def self.get_application_port
73
73
  port_index = ENV["TEST_ENV_NUMBER"].to_i
@@ -87,8 +87,9 @@ module Sauce
87
87
 
88
88
  configuration_file = self.find_config_file(primary_files, secondary_files)
89
89
  unless configuration_file
90
+ possible_config_files = primary_files + secondary_files
90
91
  error_message = "Could not find Sauce configuration. Please make sure one of the following files exists:\n"
91
- error_message << POSSIBLE_CONFIGURATION_FILES.map { |file_path| " - #{file_path}" }.join("\n")
92
+ error_message << possible_config_files.map { |file_path| " - #{file_path}" }.join("\n")
92
93
  raise error_message
93
94
  end
94
95
  require configuration_file
@@ -20,8 +20,8 @@ Sauce.config do |config|
20
20
  end
21
21
  ENDFILE
22
22
  if Object.const_defined? "Capybara"
23
- helper_text << "Capybara.default_driver = :sauce "
24
- helper_text << "Capybara.javascript_driver = :sauce "
23
+ helper_text << "Capybara.default_driver = :sauce \n"
24
+ helper_text << "Capybara.javascript_driver = :sauce"
25
25
  end
26
26
 
27
27
  return helper_text
data/lib/sauce/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.5'
3
- PATCH_VERSION = '3'
3
+ PATCH_VERSION = '4'
4
4
 
5
5
  def version
6
6
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Lacey
@@ -14,202 +14,202 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2014-09-11 00:00:00.000000000 Z
17
+ date: 2015-01-14 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec
21
21
  requirement: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - ~>
23
+ - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: 2.14.0
26
26
  type: :development
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - ~>
30
+ - - "~>"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.14.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: simplecov
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ! '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ! '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: capybara
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ! '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 2.2.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ! '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 2.2.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: yard
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ! '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ! '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: redcarpet
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ! '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ! '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: net-http-persistent
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ! '>='
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ! '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rest-client
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ! '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ! '>='
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: net-ssh
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - ! '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ! '>='
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: net-ssh-gateway
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ! '>='
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ! '>='
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: selenium-webdriver
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - ! '>='
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
151
  version: 0.1.2
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - ! '>='
156
+ - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: 0.1.2
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: childprocess
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - ! '>='
163
+ - - ">="
164
164
  - !ruby/object:Gem::Version
165
165
  version: 0.1.6
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - ! '>='
170
+ - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: 0.1.6
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: json
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - ! '>='
177
+ - - ">="
178
178
  - !ruby/object:Gem::Version
179
179
  version: 1.2.0
180
180
  type: :runtime
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
- - - ! '>='
184
+ - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: 1.2.0
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: cmdparse
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - ! '>='
191
+ - - ">="
192
192
  - !ruby/object:Gem::Version
193
193
  version: 2.0.2
194
194
  type: :runtime
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
- - - ! '>='
198
+ - - ">="
199
199
  - !ruby/object:Gem::Version
200
200
  version: 2.0.2
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: highline
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - ! '>='
205
+ - - ">="
206
206
  - !ruby/object:Gem::Version
207
207
  version: 1.5.0
208
208
  type: :runtime
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - ! '>='
212
+ - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: 1.5.0
215
215
  - !ruby/object:Gem::Dependency
@@ -230,14 +230,14 @@ dependencies:
230
230
  name: sauce_whisk
231
231
  requirement: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - ~>
233
+ - - "~>"
234
234
  - !ruby/object:Gem::Version
235
235
  version: 0.0.11
236
236
  type: :runtime
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
- - - ~>
240
+ - - "~>"
241
241
  - !ruby/object:Gem::Version
242
242
  version: 0.0.11
243
243
  description: A Ruby helper for running tests in Sauce Labs' browser testing cloud
@@ -326,17 +326,17 @@ require_paths:
326
326
  - lib
327
327
  required_ruby_version: !ruby/object:Gem::Requirement
328
328
  requirements:
329
- - - ! '>='
329
+ - - ">="
330
330
  - !ruby/object:Gem::Version
331
331
  version: '0'
332
332
  required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  requirements:
334
- - - ! '>='
334
+ - - ">="
335
335
  - !ruby/object:Gem::Version
336
336
  version: '0'
337
337
  requirements: []
338
338
  rubyforge_project:
339
- rubygems_version: 2.2.1
339
+ rubygems_version: 2.2.2
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: A Ruby helper for running tests in Sauce Labs