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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4754218b003e2fb67175efd329d6febdbb1417eb89f977adcb1687afcf18497e
4
- data.tar.gz: df5e63241fe2d2d19ccf86fb9dd29e1320efb5ae6c942b12f3547f887e1d048b
3
+ metadata.gz: 450b7bf5f02a330c0b16a782ea81808fe8377a6a338762b37aa035054316b4c2
4
+ data.tar.gz: a8c2c65daee214cf9911d9fc1fdc9e39ad9e40d47b3b37df48c03ccd3505e5a2
5
5
  SHA512:
6
- metadata.gz: da394ab7b9a439d557b7cc679149624d645bd4be80df8e708b94b846fc2699c8c62338889ac284f7d869c9bf6363f7def372dfca0b2f0bf8c7fb398a49e26339
7
- data.tar.gz: 2b453631719866f69e46c81a9008af75efc65e9f8b0e1dc8c4e8d4e9fa6f9555792eb36d71d07381201fe8ceadb315f72f909de321cc49039d7158780113df8e
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
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Webmock
3
- VERSION = '0.5.4'.freeze
3
+ VERSION = '0.5.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Worth