bbc-capybara-mechanize 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,10 @@ class Capybara::Mechanize::Browser < Capybara::RackTest::Browser
14
14
  @agent.redirect_ok = false
15
15
  @agent.user_agent = default_user_agent
16
16
  if !driver.options.empty?
17
+ if driver.options[:certificate] && driver.options[:certificate][:key] && driver.options[:certificate][:cer]
18
+ @agent.cert = driver.options[:certificate][:cer]
19
+ @agent.key = driver.options[:certificate][:key]
20
+ end
17
21
  if driver.options[:proxy] && !driver.options[:proxy].empty?
18
22
  proxy = nil
19
23
  begin
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Mechanize
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-capybara-mechanize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeroen van Dijk
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-18 00:00:00 Z
19
+ date: 2012-02-06 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -30,10 +30,10 @@ dependencies:
30
30
  - 0
31
31
  - 0
32
32
  version: 1.0.0
33
- requirement: *id001
34
- type: :runtime
35
33
  prerelease: false
34
+ requirement: *id001
36
35
  name: mechanize
36
+ type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
38
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
@@ -46,10 +46,10 @@ dependencies:
46
46
  - 1
47
47
  - 2
48
48
  version: 1.1.2
49
- requirement: *id002
50
- type: :runtime
51
49
  prerelease: false
50
+ requirement: *id002
52
51
  name: capybara
52
+ type: :runtime
53
53
  description: RackTest driver for Capybara, but with remote request support thanks to mechanize
54
54
  email: jeroen@jeevidee.nl
55
55
  executables: []
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements: []
101
101
 
102
102
  rubyforge_project:
103
- rubygems_version: 1.8.10
103
+ rubygems_version: 1.8.15
104
104
  signing_key:
105
105
  specification_version: 3
106
106
  summary: RackTest driver for Capybara with remote request support