bbc-capybara-mechanize 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -188,7 +188,7 @@ class Capybara::Mechanize::Browser < Capybara::RackTest::Browser
188
188
  if remote_uri.host.nil?
189
189
  remote_host = @last_remote_host || Capybara.app_host || Capybara.default_host
190
190
  url = File.join(remote_host, url)
191
- url = "http://#{url}" unless url.include?("http")
191
+ url = "http://#{url}" unless url =~ /^http(s?):/
192
192
  else
193
193
  @last_remote_host = "#{remote_uri.host}:#{remote_uri.port}"
194
194
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Mechanize
3
- VERSION = '0.3.5'
3
+ VERSION = '0.3.6'
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
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-02-06 00:00:00 Z
19
+ date: 2012-02-20 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement