webmock 3.37.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +190 -0
- data/README.md +149 -4
- data/lib/webmock/errors.rb +1 -1
- data/lib/webmock/http_lib_adapters/async_http_client_adapter.rb +17 -0
- data/lib/webmock/http_lib_adapters/curb_adapter.rb +8 -4
- data/lib/webmock/http_lib_adapters/em_http_request_adapter.rb +4 -0
- data/lib/webmock/http_lib_adapters/excon_adapter.rb +22 -1
- data/lib/webmock/http_lib_adapters/http_rb/webmock.rb +32 -3
- data/lib/webmock/http_lib_adapters/httpclient_adapter.rb +4 -2
- data/lib/webmock/http_lib_adapters/net_http.rb +58 -1
- data/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +50 -5
- data/lib/webmock/request_body_diff.rb +11 -1
- data/lib/webmock/request_execution_verifier.rb +13 -2
- data/lib/webmock/request_pattern.rb +147 -29
- data/lib/webmock/request_registry.rb +1 -1
- data/lib/webmock/request_signature.rb +4 -2
- data/lib/webmock/request_signature_snippet.rb +23 -2
- data/lib/webmock/request_stub.rb +8 -4
- data/lib/webmock/response.rb +42 -3
- data/lib/webmock/stub_request_snippet.rb +9 -3
- data/lib/webmock/trailing_slash_hint.rb +55 -0
- data/lib/webmock/util/hash_keys_stringifier.rb +23 -1
- data/lib/webmock/util/headers.rb +17 -0
- data/lib/webmock/util/message_string.rb +28 -0
- data/lib/webmock/util/uri.rb +21 -12
- data/lib/webmock/util/values_stringifier.rb +54 -0
- data/lib/webmock/version.rb +1 -1
- data/lib/webmock/webmock.rb +35 -4
- data/lib/webmock.rb +2 -0
- metadata +6 -4
|
@@ -13,18 +13,24 @@ module WebMock
|
|
|
13
13
|
def to_s(with_response = true)
|
|
14
14
|
request_pattern = @request_stub.request_pattern
|
|
15
15
|
string = "stub_request(:#{request_pattern.method_pattern.to_s},".dup
|
|
16
|
-
string << "
|
|
16
|
+
string << " #{request_pattern.uri_pattern.to_snippet})"
|
|
17
17
|
|
|
18
18
|
with = "".dup
|
|
19
19
|
|
|
20
|
+
if (query = request_pattern.uri_pattern.query_snippet)
|
|
21
|
+
with << "\n query: #{query}"
|
|
22
|
+
end
|
|
23
|
+
|
|
20
24
|
if (request_pattern.body_pattern)
|
|
21
|
-
with << "
|
|
25
|
+
with << "," unless with.empty?
|
|
26
|
+
# In UTF-8, so a body and headers in other encodings can be joined.
|
|
27
|
+
with << "\n body: #{WebMock::Util::MessageString.utf8(request_pattern.body_pattern.to_s)}"
|
|
22
28
|
end
|
|
23
29
|
|
|
24
30
|
if (request_pattern.headers_pattern)
|
|
25
31
|
with << "," unless with.empty?
|
|
26
32
|
|
|
27
|
-
with << "\n headers: #{request_pattern.headers_pattern.pp_to_s}"
|
|
33
|
+
with << "\n headers: #{WebMock::Util::MessageString.utf8(request_pattern.headers_pattern.pp_to_s)}"
|
|
28
34
|
end
|
|
29
35
|
string << ".\n with(#{with})" unless with.empty?
|
|
30
36
|
if with_response
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WebMock
|
|
4
|
+
# Stubs treat "/users" and "/users/" as different URLs, since servers can
|
|
5
|
+
# treat them differently. When a slash at the end of the path is the only
|
|
6
|
+
# reason a request doesn't match, failure messages point it out. See #864.
|
|
7
|
+
module TrailingSlashHint
|
|
8
|
+
STUB_HINTS = {
|
|
9
|
+
added: "Hint: the request URL ends with a slash and the URL of this stub doesn't, " \
|
|
10
|
+
"so they are different URLs.",
|
|
11
|
+
removed: "Hint: the URL of this stub ends with a slash and the request URL doesn't, " \
|
|
12
|
+
"so they are different URLs."
|
|
13
|
+
}.freeze
|
|
14
|
+
|
|
15
|
+
EXPECTATION_HINTS = {
|
|
16
|
+
added: "Hint: a request was made to the expected URL with a slash at the end, " \
|
|
17
|
+
"which is a different URL.",
|
|
18
|
+
removed: "Hint: a request was made to the expected URL without the slash at the end, " \
|
|
19
|
+
"which is a different URL."
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
22
|
+
# :added when the request path ends with a slash that the URL of the
|
|
23
|
+
# pattern doesn't have, :removed for the reverse, and nil otherwise. Only
|
|
24
|
+
# for a URL given as a string, and only the method and the URL without
|
|
25
|
+
# its query are compared: the hint is about the path, and building a
|
|
26
|
+
# failure message must not run code given to with, or raise.
|
|
27
|
+
def self.difference(request_pattern, request_signature)
|
|
28
|
+
patterns = parts_of(request_pattern)
|
|
29
|
+
return unless patterns.all? { |pattern| pattern.is_a?(RequestPattern) }
|
|
30
|
+
return unless patterns.first.uri_pattern.is_a?(URIStringPattern)
|
|
31
|
+
|
|
32
|
+
path = request_signature.uri.path
|
|
33
|
+
return if path.empty? || path == "/"
|
|
34
|
+
|
|
35
|
+
ends_with_slash = path.end_with?("/")
|
|
36
|
+
toggled = request_signature.uri.dup
|
|
37
|
+
toggled.path = ends_with_slash ? path.chomp("/") : "#{path}/"
|
|
38
|
+
# Other parts, such as the conditions of an expectation, match any URI.
|
|
39
|
+
return unless patterns.first.uri_pattern.matches_without_query?(toggled)
|
|
40
|
+
return unless patterns.all? { |pattern| pattern.method_pattern.matches?(request_signature.method) }
|
|
41
|
+
|
|
42
|
+
ends_with_slash ? :added : :removed
|
|
43
|
+
rescue StandardError
|
|
44
|
+
nil
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# A pattern made of parts that must all match, such as an RSpec expectation
|
|
48
|
+
# with conditions, responds to #patterns. A stub stands for its pattern.
|
|
49
|
+
def self.parts_of(request_pattern)
|
|
50
|
+
parts = request_pattern.respond_to?(:patterns) ? request_pattern.patterns : [request_pattern]
|
|
51
|
+
parts.map { |part| part.is_a?(RequestStub) ? part.request_pattern : part }
|
|
52
|
+
end
|
|
53
|
+
private_class_method :parts_of
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -18,10 +18,32 @@ module WebMock
|
|
|
18
18
|
[k,v]
|
|
19
19
|
}.inject([]) {|r,x| r + x}]
|
|
20
20
|
else
|
|
21
|
-
arg
|
|
21
|
+
options[:deep] ? with_string_keys(arg) : arg
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
# RSpec's hash_including and hash_excluding nested in a pattern keep
|
|
26
|
+
# their keys as given, so they get string keys here, as do hashes in
|
|
27
|
+
# array_including and array_excluding. They stay RSpec matchers, which
|
|
28
|
+
# compare nested values the way RSpec does. A matcher without keys to
|
|
29
|
+
# change is kept as it is.
|
|
30
|
+
def self.with_string_keys(arg)
|
|
31
|
+
# Defined in request_pattern.rb, which this file can be loaded without.
|
|
32
|
+
return arg unless defined?(WebMock::RSpecMatcherDetector)
|
|
33
|
+
|
|
34
|
+
name = if WebMock::RSpecMatcherDetector.rSpecHashMatcher?(arg)
|
|
35
|
+
:@expected
|
|
36
|
+
elsif WebMock::RSpecMatcherDetector.rSpecArrayMatcher?(arg)
|
|
37
|
+
arg.instance_variable_defined?(:@expected) ? :@expected : :@unexpected
|
|
38
|
+
end
|
|
39
|
+
return arg unless name
|
|
40
|
+
|
|
41
|
+
expected = arg.instance_variable_get(name)
|
|
42
|
+
converted = stringify_keys!(expected, deep: true)
|
|
43
|
+
converted == expected ? arg : arg.class.new(converted)
|
|
44
|
+
end
|
|
45
|
+
private_class_method :with_string_keys
|
|
46
|
+
|
|
25
47
|
end
|
|
26
48
|
end
|
|
27
49
|
end
|
data/lib/webmock/util/headers.rb
CHANGED
|
@@ -23,6 +23,23 @@ module WebMock
|
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
# The headers of a response. normalize_headers sorts repeated values, so
|
|
27
|
+
# the order they are given in doesn't matter for matching, but of two
|
|
28
|
+
# cookies with the same name a client keeps the last one, so Set-Cookie
|
|
29
|
+
# values are put back in the order given. normalize_headers is called
|
|
30
|
+
# with the headers alone, as before, since some test suites replace it
|
|
31
|
+
# with a method that takes one argument.
|
|
32
|
+
def self.normalize_response_headers(headers)
|
|
33
|
+
normalized = normalize_headers(headers)
|
|
34
|
+
return normalized unless normalized.is_a?(Hash) && normalized["Set-Cookie"].is_a?(Array)
|
|
35
|
+
|
|
36
|
+
cookies = nil
|
|
37
|
+
headers.each do |name, value|
|
|
38
|
+
cookies = value if value.is_a?(Array) && value.size > 1 && normalize_name(name) == "Set-Cookie"
|
|
39
|
+
end
|
|
40
|
+
cookies ? normalized.merge("Set-Cookie" => cookies.map(&:to_s)) : normalized
|
|
41
|
+
end
|
|
42
|
+
|
|
26
43
|
def self.sorted_headers_string(headers)
|
|
27
44
|
headers = WebMock::Util::Headers.normalize_headers(headers)
|
|
28
45
|
str = '{'.dup
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WebMock
|
|
4
|
+
module Util
|
|
5
|
+
# Failure messages join request bodies of any encoding, which raised
|
|
6
|
+
# Encoding::CompatibilityError for a UTF-8 body next to a binary one.
|
|
7
|
+
# Each part is converted to UTF-8 for display only: bytes that aren't
|
|
8
|
+
# valid UTF-8 are shown escaped, as in "\xFF", and the requests and
|
|
9
|
+
# their signatures keep their own encoding.
|
|
10
|
+
module MessageString
|
|
11
|
+
def self.utf8(value)
|
|
12
|
+
string = value.to_s
|
|
13
|
+
return string if string.ascii_only? || (string.encoding == Encoding::UTF_8 && string.valid_encoding?)
|
|
14
|
+
|
|
15
|
+
if string.encoding == Encoding::BINARY || string.encoding == Encoding::UTF_8
|
|
16
|
+
string.dup.force_encoding(Encoding::UTF_8).scrub { |bytes| escape(bytes) }
|
|
17
|
+
else
|
|
18
|
+
string.encode(Encoding::UTF_8, invalid: :replace, undef: :replace)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.escape(bytes)
|
|
23
|
+
bytes.unpack("C*").map { |byte| format("\\x%02X", byte) }.join
|
|
24
|
+
end
|
|
25
|
+
private_class_method :escape
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/lib/webmock/util/uri.rb
CHANGED
|
@@ -13,16 +13,20 @@ module WebMock
|
|
|
13
13
|
hash[key] = Addressable::URI.heuristic_parse(key)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
normalized_uri
|
|
16
|
+
# Keyed by query notation, then by URI, so changing
|
|
17
|
+
# Config.instance.query_values_notation applies to URIs seen before.
|
|
18
|
+
NORMALIZED_URIS = Hash.new do |by_notation, notation|
|
|
19
|
+
by_notation[notation] = Hash.new do |hash, uri|
|
|
20
|
+
normalized_uri = WebMock::Util::URI.heuristic_parse(uri)
|
|
21
|
+
if normalized_uri.query_values
|
|
22
|
+
sorted_query_values = sort_query_values(WebMock::Util::QueryMapper.query_to_values(normalized_uri.query, notation: notation) || {})
|
|
23
|
+
normalized_uri.query = WebMock::Util::QueryMapper.values_to_query(sorted_query_values, notation: notation)
|
|
24
|
+
end
|
|
25
|
+
normalized_uri = normalized_uri.normalize #normalize! is slower
|
|
26
|
+
normalized_uri.query = normalized_uri.query.gsub("+", "%2B") if normalized_uri.query
|
|
27
|
+
normalized_uri.port = normalized_uri.inferred_port unless normalized_uri.port
|
|
28
|
+
hash[uri] = normalized_uri
|
|
21
29
|
end
|
|
22
|
-
normalized_uri = normalized_uri.normalize #normalize! is slower
|
|
23
|
-
normalized_uri.query = normalized_uri.query.gsub("+", "%2B") if normalized_uri.query
|
|
24
|
-
normalized_uri.port = normalized_uri.inferred_port unless normalized_uri.port
|
|
25
|
-
hash[uri] = normalized_uri
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
def self.heuristic_parse(uri)
|
|
@@ -32,7 +36,7 @@ module WebMock
|
|
|
32
36
|
def self.normalize_uri(uri)
|
|
33
37
|
return uri if uri.is_a?(Regexp)
|
|
34
38
|
uri = 'http://' + uri unless uri.match('^https?://') if uri.is_a?(String)
|
|
35
|
-
NORMALIZED_URIS[uri].dup
|
|
39
|
+
NORMALIZED_URIS[Config.instance.query_values_notation][uri].dup
|
|
36
40
|
end
|
|
37
41
|
|
|
38
42
|
def self.variations_of_uri_as_strings(uri_object, only_with_scheme: false)
|
|
@@ -76,8 +80,13 @@ module WebMock
|
|
|
76
80
|
private
|
|
77
81
|
|
|
78
82
|
def self.sort_query_values(query_values)
|
|
79
|
-
|
|
80
|
-
|
|
83
|
+
if query_values.is_a?(Hash)
|
|
84
|
+
Hash[*query_values.sort.inject([]) { |values, pair| values + pair}]
|
|
85
|
+
else
|
|
86
|
+
# Pairs from :flat_array. A key without "=" has a nil value, which
|
|
87
|
+
# can't be compared with a string, so it comes first.
|
|
88
|
+
query_values.sort_by { |key, value| value.nil? ? [key, 0, ""] : [key, 1, value] }
|
|
89
|
+
end
|
|
81
90
|
end
|
|
82
91
|
|
|
83
92
|
def self.uris_with_inferred_port_and_without(uris)
|
|
@@ -19,4 +19,58 @@ class WebMock::Util::ValuesStringifier
|
|
|
19
19
|
value
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
|
+
|
|
23
|
+
# Like stringify_values, for query patterns: also converts the values of
|
|
24
|
+
# nested hash_including and hash_excluding matchers. Strings are kept as
|
|
25
|
+
# given, so a String subclass keeps its own ===.
|
|
26
|
+
def self.stringify_query_values(value)
|
|
27
|
+
case value
|
|
28
|
+
when WebMock::Matchers::HashArgumentMatcher
|
|
29
|
+
# A copy, so a subclass keeps its own constructor and state.
|
|
30
|
+
value.dup.tap do |matcher|
|
|
31
|
+
matcher.instance_variable_set(:@expected, stringify_query_values(value.instance_variable_get(:@expected)))
|
|
32
|
+
end
|
|
33
|
+
when Hash
|
|
34
|
+
Hash[value.map { |k, v| [k, stringify_query_values(v)] }]
|
|
35
|
+
when Array
|
|
36
|
+
value.map { |v| stringify_query_values(v) }
|
|
37
|
+
when String
|
|
38
|
+
value
|
|
39
|
+
else
|
|
40
|
+
if WebMock::RSpecMatcherDetector.rSpecHashMatcher?(value)
|
|
41
|
+
expected = stringify_query_values(value.instance_variable_get(:@expected))
|
|
42
|
+
NestedRSpecMatcher.new(value.class.new(expected))
|
|
43
|
+
else
|
|
44
|
+
stringify_values(value)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Keeps RSpec's comparison of nested values, such as an array of regexps,
|
|
50
|
+
# and adds ==, which a query Hash uses to compare its values.
|
|
51
|
+
class NestedRSpecMatcher
|
|
52
|
+
def initialize(matcher)
|
|
53
|
+
@matcher = matcher
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def ===(actual)
|
|
57
|
+
@matcher === actual
|
|
58
|
+
end
|
|
59
|
+
alias == ===
|
|
60
|
+
|
|
61
|
+
def inspect
|
|
62
|
+
@matcher.description
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Whether a query pattern holds a matcher, so it can't be written into
|
|
67
|
+
# a URL.
|
|
68
|
+
def self.includes_query_matcher?(value)
|
|
69
|
+
case value
|
|
70
|
+
when Hash then value.each_value.any? { |v| includes_query_matcher?(v) }
|
|
71
|
+
when Array then value.any? { |v| includes_query_matcher?(v) }
|
|
72
|
+
when WebMock::Matchers::HashArgumentMatcher, NestedRSpecMatcher then true
|
|
73
|
+
else false
|
|
74
|
+
end
|
|
75
|
+
end
|
|
22
76
|
end
|
data/lib/webmock/version.rb
CHANGED
data/lib/webmock/webmock.rb
CHANGED
|
@@ -43,24 +43,53 @@ module WebMock
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
def self.allow_net_connect!(options = {})
|
|
46
|
+
def self.allow_net_connect!(options = {}, &block)
|
|
47
|
+
return restoring_net_connect_settings { allow_net_connect!(options); block.call } if block
|
|
48
|
+
|
|
47
49
|
Config.instance.allow_net_connect = true
|
|
48
50
|
Config.instance.net_http_connect_on_start = options[:net_http_connect_on_start]
|
|
49
51
|
end
|
|
50
52
|
|
|
51
|
-
def self.disable_net_connect!(options = {})
|
|
53
|
+
def self.disable_net_connect!(options = {}, &block)
|
|
54
|
+
return restoring_net_connect_settings { disable_net_connect!(options); block.call } if block
|
|
55
|
+
|
|
52
56
|
Config.instance.allow_net_connect = false
|
|
53
57
|
Config.instance.allow_localhost = options[:allow_localhost]
|
|
54
58
|
Config.instance.allow = options[:allow]
|
|
55
59
|
Config.instance.net_http_connect_on_start = options[:net_http_connect_on_start]
|
|
56
60
|
end
|
|
57
61
|
|
|
62
|
+
NET_CONNECT_SETTINGS = %i[allow_net_connect allow_localhost allow net_http_connect_on_start].freeze
|
|
63
|
+
private_constant :NET_CONNECT_SETTINGS
|
|
64
|
+
|
|
65
|
+
# Runs the block, then puts back the net connect settings from before it,
|
|
66
|
+
# even if the block raises. Settings assigned inside the block are undone.
|
|
67
|
+
# An allow list changed in place stays changed, and blocks overlapping in
|
|
68
|
+
# different threads can restore each other's settings in the wrong order.
|
|
69
|
+
def self.restoring_net_connect_settings
|
|
70
|
+
saved = NET_CONNECT_SETTINGS.map { |name| [name, Config.instance.public_send(name)] }
|
|
71
|
+
begin
|
|
72
|
+
yield
|
|
73
|
+
ensure
|
|
74
|
+
saved.each { |name, value| Config.instance.public_send(:"#{name}=", value) }
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
private_class_method :restoring_net_connect_settings
|
|
78
|
+
|
|
58
79
|
class << self
|
|
59
80
|
alias :enable_net_connect! :allow_net_connect!
|
|
60
81
|
alias :disallow_net_connect! :disable_net_connect!
|
|
61
82
|
end
|
|
62
83
|
|
|
63
84
|
def self.net_connect_allowed?(uri = nil)
|
|
85
|
+
net_connect_allowed_by_settings?(uri)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Whether WebMock's own settings allow a real connection. VCR, for one,
|
|
89
|
+
# redefines net_connect_allowed? to allow every request and decides each
|
|
90
|
+
# one in a global stub, so a connection that no stub sees, such as one
|
|
91
|
+
# taken from an async-http connection pool, is checked with this.
|
|
92
|
+
def self.net_connect_allowed_by_settings?(uri = nil)
|
|
64
93
|
return !!Config.instance.allow_net_connect if uri.nil?
|
|
65
94
|
|
|
66
95
|
if uri.is_a?(String)
|
|
@@ -90,8 +119,10 @@ module WebMock
|
|
|
90
119
|
allowed.match?(uri.to_s) ||
|
|
91
120
|
(uri.port == uri.default_port && allowed.match?(uri.omit(:port).to_s))
|
|
92
121
|
when String
|
|
93
|
-
|
|
94
|
-
|
|
122
|
+
# Host names are case insensitive. casecmp folds ASCII letters only,
|
|
123
|
+
# unlike casecmp?, which would also equate "straße" and "strasse".
|
|
124
|
+
(uri.host && allowed.casecmp(uri.host) == 0) ||
|
|
125
|
+
allowed.casecmp("#{uri.host}:#{uri.port}") == 0 ||
|
|
95
126
|
net_connect_allowed_url?(allowed, uri)
|
|
96
127
|
else
|
|
97
128
|
if allowed.respond_to?(:call)
|
data/lib/webmock.rb
CHANGED
|
@@ -16,6 +16,7 @@ require_relative 'webmock/util/headers'
|
|
|
16
16
|
require_relative 'webmock/util/content_type'
|
|
17
17
|
require_relative 'webmock/util/hash_counter'
|
|
18
18
|
require_relative 'webmock/util/upload_body'
|
|
19
|
+
require_relative 'webmock/util/message_string'
|
|
19
20
|
require_relative 'webmock/util/hash_keys_stringifier'
|
|
20
21
|
require_relative 'webmock/util/values_stringifier'
|
|
21
22
|
require_relative 'webmock/util/parsers/json'
|
|
@@ -39,6 +40,7 @@ require_relative 'webmock/stub_request_snippet'
|
|
|
39
40
|
require_relative 'webmock/request_signature_snippet'
|
|
40
41
|
require_relative 'webmock/request_body_diff'
|
|
41
42
|
require_relative 'webmock/json_body_hint'
|
|
43
|
+
require_relative 'webmock/trailing_slash_hint'
|
|
42
44
|
|
|
43
45
|
require_relative 'webmock/assertion_failure'
|
|
44
46
|
require_relative 'webmock/request_execution_verifier'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webmock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.39.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartosz Blimke
|
|
@@ -341,11 +341,13 @@ files:
|
|
|
341
341
|
- lib/webmock/stub_registry.rb
|
|
342
342
|
- lib/webmock/stub_request_snippet.rb
|
|
343
343
|
- lib/webmock/test_unit.rb
|
|
344
|
+
- lib/webmock/trailing_slash_hint.rb
|
|
344
345
|
- lib/webmock/util/content_type.rb
|
|
345
346
|
- lib/webmock/util/hash_counter.rb
|
|
346
347
|
- lib/webmock/util/hash_keys_stringifier.rb
|
|
347
348
|
- lib/webmock/util/hash_validator.rb
|
|
348
349
|
- lib/webmock/util/headers.rb
|
|
350
|
+
- lib/webmock/util/message_string.rb
|
|
349
351
|
- lib/webmock/util/parsers/json.rb
|
|
350
352
|
- lib/webmock/util/parsers/parse_error.rb
|
|
351
353
|
- lib/webmock/util/parsers/xml.rb
|
|
@@ -361,9 +363,9 @@ licenses:
|
|
|
361
363
|
- MIT
|
|
362
364
|
metadata:
|
|
363
365
|
bug_tracker_uri: https://github.com/bblimke/webmock/issues
|
|
364
|
-
changelog_uri: https://github.com/bblimke/webmock/blob/v3.
|
|
365
|
-
documentation_uri: https://www.rubydoc.info/gems/webmock/3.
|
|
366
|
-
source_code_uri: https://github.com/bblimke/webmock/tree/v3.
|
|
366
|
+
changelog_uri: https://github.com/bblimke/webmock/blob/v3.39.0/CHANGELOG.md
|
|
367
|
+
documentation_uri: https://www.rubydoc.info/gems/webmock/3.39.0
|
|
368
|
+
source_code_uri: https://github.com/bblimke/webmock/tree/v3.39.0
|
|
367
369
|
wiki_uri: https://github.com/bblimke/webmock/wiki
|
|
368
370
|
rdoc_options: []
|
|
369
371
|
require_paths:
|