sauce 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWIzMDNhNjYzZGQ5ZmMyMDY0YmEzYzY4NTE1NjRlYWQxMDk0NGVlMw==
4
+ OGMxNjkzMzRmZDEyYmNmZTZkZWYxMWIwYzIxNjkzYjA4MzE1NmM0MQ==
5
5
  data.tar.gz: !binary |-
6
- ZWVjMDM0NjE2MTQzYmRmMzFmOGNhY2U0MDJmMzI2MmFlNzI3YmRjMg==
6
+ YzU3NmRmMWNjNTE2ZjhlZmYyYzQ0MGJkYzFmZjQ1MzA0ODM3ZWMyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWM4NTFiZDg1MzQ2OTQ1M2E4MzQyNjYzYzlhZjJiZjNmNzQxNTYxNDdhNzRl
10
- N2U5MDdiZDY5Mjg5MjQ0ODM0MWQ3MmYyMjk0MDRhNWMyM2U1ZjEyNDY1NzBi
11
- N2U2M2E4Y2FjYjA0YjIwMTRjZjA3NmEwMzljMDQ3MzAwNzA2ODE=
9
+ M2JjMmJiNDFhYmE5NGM4OWM5NDM0ZTI0NzExMzUwNTNjZDIxY2Y0YzdiNWU4
10
+ Y2M4OGM3Y2FhNGFhMjYyMTRmNjYzZmI1YmFkNDllNmM5ZjIzZTJhNDU5MWU5
11
+ OWQxNDJlZWQ5OGM3NmFjNzJjNTJhYjBmNTM2OTdiMTVhYWJjODE=
12
12
  data.tar.gz: !binary |-
13
- NjhlNmRlNDk5Y2IzMzdhZGJhZTAwYjc3NDU2ZTU1NzEzMmYwN2IwMTlkOGU1
14
- MTg0NGVhY2NkYzZjNjEzOWVjZDM1MjUyOWVlNGI5MGRlYjhhMTI0YzY4OGE3
15
- MDM4OWZjYWZmMWM1ZmQxODczZDIwYzI2OWE2OTVjZGI0OTlhNjQ=
13
+ MzI0NGVkYjg4ODJiMDljZWI0YmZkZTM3YjU2ZDlkZDFmNzQ4N2QwOGJjYjgz
14
+ YTI0MTM4ODNjYzM2MzFiNWY1YTI2MDUyNDJkZmZiNDZhNDhkMDdhZWMyY2U5
15
+ MmI4NzI4M2U5NDg1MzU1MjkxZTM1YzVkZmI4MmFiZTFjNmU1YzE=
@@ -115,7 +115,9 @@ module Sauce
115
115
 
116
116
  def self.configure_capybara
117
117
  ::Capybara.configure do |config|
118
- config.server_port = Sauce::Config.get_application_port
118
+ if Sauce::Config.new[:start_local_application]
119
+ config.server_port = Sauce::Config.get_application_port
120
+ end
119
121
  begin
120
122
  #config.always_include_port = true
121
123
  rescue
data/lib/sauce/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.4'
3
- PATCH_VERSION = '0'
3
+ PATCH_VERSION = '1'
4
4
 
5
5
  def version
6
6
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
@@ -329,6 +329,23 @@ describe Sauce::Capybara do
329
329
  used_port = Capybara.current_session.driver.rack_server.port
330
330
  Sauce::Config::POTENTIAL_PORTS.should include used_port
331
331
  end
332
+
333
+ describe "when start_local_application is false" do
334
+ before do
335
+ @start_local_application = Sauce::Config.new[:start_local_application]
336
+ end
337
+
338
+ after do
339
+ Sauce.config do |c|
340
+ c[:start_local_application] = @start_local_application
341
+ end
342
+ end
343
+ it "should not use Sauce Connect ports if start_local_application is true" do
344
+ Sauce.config { |c| c[:start_local_application] = false }
345
+ reset_capybara(2.0)
346
+ Capybara.server_port.should eq nil
347
+ end
348
+ end
332
349
  end
333
350
 
334
351
  def reset_capybara(capy_version)
@@ -353,6 +370,7 @@ describe Sauce::Capybara do
353
370
  config.visible_text_only = false
354
371
  config.automatic_reload = true
355
372
  config.ignore_hidden_elements = true
373
+ config.server_port = nil
356
374
  end
357
375
 
358
376
  config.run_server = true
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.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Lacey
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2014-03-16 00:00:00.000000000 Z
17
+ date: 2014-03-27 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec