capybara-webmock 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/webmock/proxied_request.rb +5 -11
- data/lib/capybara/webmock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450b7bf5f02a330c0b16a782ea81808fe8377a6a338762b37aa035054316b4c2
|
4
|
+
data.tar.gz: a8c2c65daee214cf9911d9fc1fdc9e39ad9e40d47b3b37df48c03ccd3505e5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89aceae8564772edfc9c64ee4c88a25e7c0f747acd970fcad61f6f155c6332baf5d0f757440284ef5ab4a5ea32a9e5dfb92c9809be63a6291234960c1c4eb37c
|
7
|
+
data.tar.gz: dc9ce238ba25cd475cd2eeb900f483bdfb6bc3b0763131c90326534d79133282ec5d98d7259e5599c5e1949e82feae989c26a1aaa7d897dbe8884cc4f1c32e6f
|
@@ -1,25 +1,19 @@
|
|
1
|
+
require 'forwardable'
|
1
2
|
require 'uri'
|
2
3
|
|
3
4
|
module Capybara
|
4
5
|
module Webmock
|
5
6
|
class ProxiedRequest
|
7
|
+
extend Forwardable
|
8
|
+
|
6
9
|
attr_reader :referrer, :uri
|
7
10
|
|
11
|
+
def_delegators :uri, :fragment, :host, :hostname, :password, :path, :port, :query, :scheme, :user, :userinfo
|
12
|
+
|
8
13
|
def initialize(raw_referrer, raw_uri)
|
9
14
|
@referrer = raw_referrer == "-" ? nil : URI.parse(raw_referrer)
|
10
15
|
@uri = URI.parse(raw_uri)
|
11
16
|
end
|
12
|
-
|
13
|
-
def fragment; @uri.fragment; end
|
14
|
-
def host; @uri.host; end
|
15
|
-
def hostname; @uri.hostname; end
|
16
|
-
def password; @uri.password; end
|
17
|
-
def path; @uri.path; end
|
18
|
-
def port; @uri.port; end
|
19
|
-
def query; @uri.query; end
|
20
|
-
def scheme; @uri.scheme; end
|
21
|
-
def user; @uri.user; end
|
22
|
-
def userinfo; @uri.userinfo; end
|
23
17
|
end
|
24
18
|
end
|
25
19
|
end
|