webmock 1.8.3 → 1.8.4
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.
- data/.gitignore +1 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/README.md +1 -0
- data/lib/webmock.rb +14 -10
- data/lib/webmock/http_lib_adapters/curb_adapter.rb +2 -0
- data/lib/webmock/http_lib_adapters/excon_adapter.rb +1 -0
- data/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +1 -0
- data/lib/webmock/request_pattern.rb +11 -4
- data/lib/webmock/util/version_checker.rb +73 -0
- data/lib/webmock/version.rb +1 -1
- data/spec/acceptance/excon/excon_spec_helper.rb +1 -0
- data/spec/acceptance/net_http/net_http_spec_helper.rb +1 -1
- data/spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb +12 -6
- data/spec/unit/util/version_checker_spec.rb +59 -0
- data/webmock.gemspec +4 -4
- metadata +54 -51
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.8.4
|
4
|
+
|
5
|
+
* Warning message is printed when an unsupported version of a http library is loaded.
|
6
|
+
|
7
|
+
Thanks to [Alexander Staubo](https://github.com/alexstaubo) for reporting the problem and to [Myron Marston](https://github.com/myronmarston) for a help with solution.
|
8
|
+
|
3
9
|
## 1.8.3
|
4
10
|
|
5
11
|
* Fixed compatibility with latest em-http-request
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/lib/webmock.rb
CHANGED
@@ -6,16 +6,6 @@ require 'crack'
|
|
6
6
|
require 'webmock/deprecation'
|
7
7
|
require 'webmock/version'
|
8
8
|
|
9
|
-
require 'webmock/http_lib_adapters/http_lib_adapter_registry'
|
10
|
-
require 'webmock/http_lib_adapters/http_lib_adapter'
|
11
|
-
require 'webmock/http_lib_adapters/net_http'
|
12
|
-
require 'webmock/http_lib_adapters/httpclient_adapter'
|
13
|
-
require 'webmock/http_lib_adapters/patron_adapter'
|
14
|
-
require 'webmock/http_lib_adapters/curb_adapter'
|
15
|
-
require 'webmock/http_lib_adapters/em_http_request_adapter'
|
16
|
-
require 'webmock/http_lib_adapters/typhoeus_hydra_adapter'
|
17
|
-
require 'webmock/http_lib_adapters/excon_adapter'
|
18
|
-
|
19
9
|
require 'webmock/errors'
|
20
10
|
|
21
11
|
require 'webmock/util/uri'
|
@@ -23,6 +13,7 @@ require 'webmock/util/headers'
|
|
23
13
|
require 'webmock/util/hash_counter'
|
24
14
|
require 'webmock/util/hash_keys_stringifier'
|
25
15
|
require 'webmock/util/json'
|
16
|
+
require 'webmock/util/version_checker'
|
26
17
|
|
27
18
|
require 'webmock/matchers/hash_including_matcher'
|
28
19
|
|
@@ -42,4 +33,17 @@ require 'webmock/callback_registry'
|
|
42
33
|
require 'webmock/request_registry'
|
43
34
|
require 'webmock/stub_registry'
|
44
35
|
require 'webmock/api'
|
36
|
+
|
37
|
+
require 'webmock/http_lib_adapters/http_lib_adapter_registry'
|
38
|
+
require 'webmock/http_lib_adapters/http_lib_adapter'
|
39
|
+
require 'webmock/http_lib_adapters/net_http'
|
40
|
+
require 'webmock/http_lib_adapters/httpclient_adapter'
|
41
|
+
require 'webmock/http_lib_adapters/patron_adapter'
|
42
|
+
require 'webmock/http_lib_adapters/curb_adapter'
|
43
|
+
require 'webmock/http_lib_adapters/em_http_request_adapter'
|
44
|
+
require 'webmock/http_lib_adapters/typhoeus_hydra_adapter'
|
45
|
+
require 'webmock/http_lib_adapters/excon_adapter'
|
46
|
+
|
45
47
|
require 'webmock/webmock'
|
48
|
+
|
49
|
+
|
@@ -1,5 +1,11 @@
|
|
1
1
|
module WebMock
|
2
2
|
|
3
|
+
module RSpecMatcherDetector
|
4
|
+
def rSpecHashIncludingMatcher?(matcher)
|
5
|
+
matcher.class.name =~ /R?Spec::Mocks::ArgumentMatchers::HashIncludingMatcher/
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
3
9
|
class RequestPattern
|
4
10
|
|
5
11
|
attr_reader :method_pattern, :uri_pattern, :body_pattern, :headers_pattern
|
@@ -73,6 +79,8 @@ module WebMock
|
|
73
79
|
|
74
80
|
|
75
81
|
class URIPattern
|
82
|
+
include RSpecMatcherDetector
|
83
|
+
|
76
84
|
def initialize(pattern)
|
77
85
|
@pattern = pattern.is_a?(Addressable::URI) ? pattern : WebMock::Util::URI.normalize_uri(pattern)
|
78
86
|
end
|
@@ -82,8 +90,7 @@ module WebMock
|
|
82
90
|
query_params
|
83
91
|
elsif query_params.is_a?(WebMock::Matchers::HashIncludingMatcher)
|
84
92
|
query_params
|
85
|
-
elsif
|
86
|
-
(defined?(Spec::Mocks::ArgumentMatchers::HashIncludingMatcher) && query_params.is_a?(Spec::Mocks::ArgumentMatchers::HashIncludingMatcher))
|
93
|
+
elsif rSpecHashIncludingMatcher?(query_params)
|
87
94
|
WebMock::Matchers::HashIncludingMatcher.from_rspec_matcher(query_params)
|
88
95
|
else
|
89
96
|
Addressable::URI.parse('?' + query_params).query_values
|
@@ -145,6 +152,7 @@ module WebMock
|
|
145
152
|
|
146
153
|
|
147
154
|
class BodyPattern
|
155
|
+
include RSpecMatcherDetector
|
148
156
|
|
149
157
|
BODY_FORMATS = {
|
150
158
|
'text/xml' => :xml,
|
@@ -162,8 +170,7 @@ module WebMock
|
|
162
170
|
def initialize(pattern)
|
163
171
|
@pattern = if pattern.is_a?(Hash)
|
164
172
|
normalize_hash(pattern)
|
165
|
-
elsif
|
166
|
-
(defined?(Spec::Mocks::ArgumentMatchers::HashIncludingMatcher) && pattern.is_a?(Spec::Mocks::ArgumentMatchers::HashIncludingMatcher))
|
173
|
+
elsif rSpecHashIncludingMatcher?(pattern)
|
167
174
|
WebMock::Matchers::HashIncludingMatcher.from_rspec_matcher(pattern)
|
168
175
|
else
|
169
176
|
pattern
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# This code was created based on https://github.com/myronmarston/vcr/blob/master/lib/vcr/util/version_checker.rb
|
2
|
+
# Thanks to @myronmarston
|
3
|
+
|
4
|
+
module WebMock
|
5
|
+
class VersionChecker
|
6
|
+
def initialize(library_name, library_version, min_patch_level, max_minor_version = nil)
|
7
|
+
@library_name, @library_version = library_name, library_version
|
8
|
+
@min_patch_level, @max_minor_version = min_patch_level, max_minor_version
|
9
|
+
|
10
|
+
@major, @minor, @patch = parse_version(library_version)
|
11
|
+
@min_major, @min_minor, @min_patch = parse_version(min_patch_level)
|
12
|
+
@max_major, @max_minor = parse_version(max_minor_version) if max_minor_version
|
13
|
+
|
14
|
+
@comparison_result = compare_version
|
15
|
+
end
|
16
|
+
|
17
|
+
def check_version!
|
18
|
+
warn_about_too_low if too_low?
|
19
|
+
warn_about_too_high if too_high?
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def too_low?
|
25
|
+
@comparison_result == :too_low
|
26
|
+
end
|
27
|
+
|
28
|
+
def too_high?
|
29
|
+
@comparison_result == :too_high
|
30
|
+
end
|
31
|
+
|
32
|
+
def warn_about_too_low
|
33
|
+
warn_in_red "You are using #{@library_name} #{@library_version}. " +
|
34
|
+
"WebMock supports version #{version_requirement}."
|
35
|
+
end
|
36
|
+
|
37
|
+
def warn_about_too_high
|
38
|
+
warn_in_red "You are using #{@library_name} #{@library_version}. " +
|
39
|
+
"WebMock is known to work with #{@library_name} #{version_requirement}. " +
|
40
|
+
"It may not work with this version."
|
41
|
+
end
|
42
|
+
|
43
|
+
def warn_in_red(text)
|
44
|
+
Kernel.warn colorize(text, "\e[31m")
|
45
|
+
end
|
46
|
+
|
47
|
+
def compare_version
|
48
|
+
case
|
49
|
+
when @major < @min_major then :too_low
|
50
|
+
when @max_major && @major > @max_major then :too_high
|
51
|
+
when @major > @min_major then :ok
|
52
|
+
when @minor < @min_minor then :too_low
|
53
|
+
when @max_minor && @minor > @max_minor then :too_high
|
54
|
+
when @minor > @min_minor then :ok
|
55
|
+
when @patch < @min_patch then :too_low
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def version_requirement
|
60
|
+
req = ">= #{@min_patch_level}"
|
61
|
+
req += ", < #{@max_major}.#{@max_minor + 1}" if @max_minor
|
62
|
+
req
|
63
|
+
end
|
64
|
+
|
65
|
+
def parse_version(version)
|
66
|
+
version.split('.').map { |v| v.to_i }
|
67
|
+
end
|
68
|
+
|
69
|
+
def colorize(text, color_code)
|
70
|
+
"#{color_code}#{text}\e[0m"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
data/lib/webmock/version.rb
CHANGED
@@ -23,7 +23,7 @@ module NetHTTPSpecHelper
|
|
23
23
|
if uri.scheme == "https"
|
24
24
|
http.use_ssl = true
|
25
25
|
#1.9.1 has a bug with ssl_timeout
|
26
|
-
http.ssl_timeout = 20 unless
|
26
|
+
http.ssl_timeout = 20 unless RUBY_PLATFORM =~ /java/
|
27
27
|
http.open_timeout = 60
|
28
28
|
http.read_timeout = 60
|
29
29
|
end
|
@@ -1,20 +1,26 @@
|
|
1
1
|
require 'ostruct'
|
2
2
|
|
3
3
|
module TyphoeusHydraSpecHelper
|
4
|
-
class
|
4
|
+
class FakeTyphoeusHydraTimeoutError < StandardError; end
|
5
|
+
class FakeTyphoeusHydraConnectError < StandardError; end
|
5
6
|
|
6
7
|
|
7
8
|
def http_request(method, uri, options = {}, &block)
|
8
9
|
uri.gsub!(" ", "%20") #typhoeus doesn't like spaces in the uri
|
9
|
-
|
10
|
+
request = Typhoeus::Request.new(uri,
|
10
11
|
{
|
11
12
|
:method => method,
|
12
13
|
:body => options[:body],
|
13
14
|
:headers => options[:headers],
|
14
|
-
:timeout => 25000
|
15
|
+
:timeout => 25000
|
15
16
|
}
|
16
17
|
)
|
17
|
-
|
18
|
+
hydra = Typhoeus::Hydra.new(:initial_pool_size => 0)
|
19
|
+
hydra.queue(request)
|
20
|
+
hydra.run
|
21
|
+
response = request.response
|
22
|
+
raise FakeTyphoeusHydraTimeoutError.new if response.timed_out?
|
23
|
+
raise FakeTyphoeusHydraConnectError.new if response.code == 0
|
18
24
|
OpenStruct.new({
|
19
25
|
:body => response.body,
|
20
26
|
:headers => WebMock::Util::Headers.normalize_headers(join_array_values(response.headers_hash)),
|
@@ -36,11 +42,11 @@ module TyphoeusHydraSpecHelper
|
|
36
42
|
|
37
43
|
|
38
44
|
def client_timeout_exception_class
|
39
|
-
|
45
|
+
FakeTyphoeusHydraTimeoutError
|
40
46
|
end
|
41
47
|
|
42
48
|
def connection_refused_exception_class
|
43
|
-
|
49
|
+
FakeTyphoeusHydraConnectError
|
44
50
|
end
|
45
51
|
|
46
52
|
def http_library
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module WebMock
|
4
|
+
describe VersionChecker do
|
5
|
+
it 'prints a warning if the major version is too low' do
|
6
|
+
checker = VersionChecker.new('foo', '0.7.3', '1.0.0', '1.1')
|
7
|
+
Kernel.should_receive(:warn).with("\e[31mYou are using foo 0.7.3. WebMock supports version >= 1.0.0, < 1.2.\e[0m")
|
8
|
+
checker.check_version!
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'prints a warning if the minor version is too low' do
|
12
|
+
checker = VersionChecker.new('foo', '1.0.99', '1.1.3', '1.2')
|
13
|
+
Kernel.should_receive(:warn).with("\e[31mYou are using foo 1.0.99. WebMock supports version >= 1.1.3, < 1.3.\e[0m")
|
14
|
+
checker.check_version!
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'prints a warning if the patch version is too low' do
|
18
|
+
checker = VersionChecker.new('foo', '1.0.8', '1.0.10', '1.2')
|
19
|
+
Kernel.should_receive(:warn).with("\e[31mYou are using foo 1.0.8. WebMock supports version >= 1.0.10, < 1.3.\e[0m")
|
20
|
+
checker.check_version!
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'prints a warning if the patch version is too low and max version is not specified' do
|
24
|
+
checker = VersionChecker.new('foo', '1.0.8', '1.0.10')
|
25
|
+
Kernel.should_receive(:warn).with("\e[31mYou are using foo 1.0.8. WebMock supports version >= 1.0.10.\e[0m")
|
26
|
+
checker.check_version!
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'prints a warning if the major version is too high' do
|
30
|
+
checker = VersionChecker.new('foo', '2.0.0', '1.0.0', '1.1')
|
31
|
+
Kernel.should_receive(:warn).with(/may not work with this version/)
|
32
|
+
checker.check_version!
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'prints a warning if the minor version is too high' do
|
36
|
+
checker = VersionChecker.new('foo', '1.2.0', '1.0.0', '1.1')
|
37
|
+
Kernel.should_receive(:warn).with(/may not work with this version/)
|
38
|
+
checker.check_version!
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'does not raise an error or print a warning when the major version is between the min and max' do
|
42
|
+
checker = VersionChecker.new('foo', '2.0.0', '1.0.0', '3.0')
|
43
|
+
Kernel.should_not_receive(:warn)
|
44
|
+
checker.check_version!
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'does not raise an error or print a warning when the min_patch is 0.6.5, the max_minor is 0.7 and the version is 0.7.3' do
|
48
|
+
checker = VersionChecker.new('foo', '0.7.3', '0.6.5', '0.7')
|
49
|
+
Kernel.should_not_receive(:warn)
|
50
|
+
checker.check_version!
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'does not raise an error or print a warning when the min_patch is 0.6.5, the max_minor is not specified and the version is 0.8.3' do
|
54
|
+
checker = VersionChecker.new('foo', '0.8.3', '0.6.5')
|
55
|
+
Kernel.should_not_receive(:warn)
|
56
|
+
checker.check_version!
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/webmock.gemspec
CHANGED
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.add_development_dependency 'rspec', '~> 2.8'
|
21
21
|
s.add_development_dependency 'httpclient', '>= 2.2.4'
|
22
|
-
s.add_development_dependency 'patron', '>= 0.4.
|
23
|
-
s.add_development_dependency 'em-http-request', '>= 1.0.
|
22
|
+
s.add_development_dependency 'patron', '>= 0.4.18' unless RUBY_PLATFORM =~ /java/
|
23
|
+
s.add_development_dependency 'em-http-request', '>= 1.0.2'
|
24
24
|
s.add_development_dependency 'em-synchrony', '>= 1.0.0' if RUBY_VERSION >= "1.9"
|
25
25
|
s.add_development_dependency 'curb', '>= 0.8.0' unless RUBY_PLATFORM =~ /java/
|
26
|
-
s.add_development_dependency 'typhoeus', '>= 0.3.
|
27
|
-
s.add_development_dependency 'excon', '>= 0.
|
26
|
+
s.add_development_dependency 'typhoeus', '>= 0.3.3' unless RUBY_PLATFORM =~ /java/
|
27
|
+
s.add_development_dependency 'excon', '>= 0.11.0'
|
28
28
|
s.add_development_dependency 'minitest', '>= 2.2.2'
|
29
29
|
s.add_development_dependency 'rdoc', ((RUBY_VERSION == '1.8.6') ? '<= 3.5.0' : '>3.5.0')
|
30
30
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 4
|
10
|
+
version: 1.8.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bartosz Blimke
|
@@ -15,12 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: addressable
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
26
25
|
- - ">="
|
@@ -32,11 +31,11 @@ dependencies:
|
|
32
31
|
- 7
|
33
32
|
version: 2.2.7
|
34
33
|
type: :runtime
|
35
|
-
|
34
|
+
prerelease: false
|
35
|
+
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: crack
|
38
|
-
|
39
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ">="
|
@@ -48,11 +47,11 @@ dependencies:
|
|
48
47
|
- 7
|
49
48
|
version: 0.1.7
|
50
49
|
type: :runtime
|
51
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: rspec
|
54
|
-
|
55
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
55
|
none: false
|
57
56
|
requirements:
|
58
57
|
- - ~>
|
@@ -63,11 +62,11 @@ dependencies:
|
|
63
62
|
- 8
|
64
63
|
version: "2.8"
|
65
64
|
type: :development
|
66
|
-
|
65
|
+
prerelease: false
|
66
|
+
requirement: *id003
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: httpclient
|
69
|
-
|
70
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
71
70
|
none: false
|
72
71
|
requirements:
|
73
72
|
- - ">="
|
@@ -79,43 +78,43 @@ dependencies:
|
|
79
78
|
- 4
|
80
79
|
version: 2.2.4
|
81
80
|
type: :development
|
82
|
-
|
81
|
+
prerelease: false
|
82
|
+
requirement: *id004
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: patron
|
85
|
-
|
86
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
87
86
|
none: false
|
88
87
|
requirements:
|
89
88
|
- - ">="
|
90
89
|
- !ruby/object:Gem::Version
|
91
|
-
hash:
|
90
|
+
hash: 43
|
92
91
|
segments:
|
93
92
|
- 0
|
94
93
|
- 4
|
95
|
-
-
|
96
|
-
version: 0.4.
|
94
|
+
- 18
|
95
|
+
version: 0.4.18
|
97
96
|
type: :development
|
98
|
-
|
97
|
+
prerelease: false
|
98
|
+
requirement: *id005
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: em-http-request
|
101
|
-
|
102
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
103
102
|
none: false
|
104
103
|
requirements:
|
105
104
|
- - ">="
|
106
105
|
- !ruby/object:Gem::Version
|
107
|
-
hash:
|
106
|
+
hash: 19
|
108
107
|
segments:
|
109
108
|
- 1
|
110
109
|
- 0
|
111
|
-
-
|
112
|
-
version: 1.0.
|
110
|
+
- 2
|
111
|
+
version: 1.0.2
|
113
112
|
type: :development
|
114
|
-
|
113
|
+
prerelease: false
|
114
|
+
requirement: *id006
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: curb
|
117
|
-
|
118
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
119
118
|
none: false
|
120
119
|
requirements:
|
121
120
|
- - ">="
|
@@ -127,43 +126,43 @@ dependencies:
|
|
127
126
|
- 0
|
128
127
|
version: 0.8.0
|
129
128
|
type: :development
|
130
|
-
|
129
|
+
prerelease: false
|
130
|
+
requirement: *id007
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: typhoeus
|
133
|
-
|
134
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
135
134
|
none: false
|
136
135
|
requirements:
|
137
136
|
- - ">="
|
138
137
|
- !ruby/object:Gem::Version
|
139
|
-
hash:
|
138
|
+
hash: 21
|
140
139
|
segments:
|
141
140
|
- 0
|
142
141
|
- 3
|
143
|
-
-
|
144
|
-
version: 0.3.
|
142
|
+
- 3
|
143
|
+
version: 0.3.3
|
145
144
|
type: :development
|
146
|
-
|
145
|
+
prerelease: false
|
146
|
+
requirement: *id008
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: excon
|
149
|
-
|
150
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
149
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
151
150
|
none: false
|
152
151
|
requirements:
|
153
152
|
- - ">="
|
154
153
|
- !ruby/object:Gem::Version
|
155
|
-
hash:
|
154
|
+
hash: 51
|
156
155
|
segments:
|
157
156
|
- 0
|
158
|
-
-
|
159
|
-
-
|
160
|
-
version: 0.
|
157
|
+
- 11
|
158
|
+
- 0
|
159
|
+
version: 0.11.0
|
161
160
|
type: :development
|
162
|
-
|
161
|
+
prerelease: false
|
162
|
+
requirement: *id009
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: minitest
|
165
|
-
|
166
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
165
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
167
166
|
none: false
|
168
167
|
requirements:
|
169
168
|
- - ">="
|
@@ -175,11 +174,11 @@ dependencies:
|
|
175
174
|
- 2
|
176
175
|
version: 2.2.2
|
177
176
|
type: :development
|
178
|
-
|
177
|
+
prerelease: false
|
178
|
+
requirement: *id010
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: rdoc
|
181
|
-
|
182
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
181
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
183
182
|
none: false
|
184
183
|
requirements:
|
185
184
|
- - ">"
|
@@ -191,7 +190,8 @@ dependencies:
|
|
191
190
|
- 0
|
192
191
|
version: 3.5.0
|
193
192
|
type: :development
|
194
|
-
|
193
|
+
prerelease: false
|
194
|
+
requirement: *id011
|
195
195
|
description: WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
|
196
196
|
email:
|
197
197
|
- bartosz.blimke@gmail.com
|
@@ -255,6 +255,7 @@ files:
|
|
255
255
|
- lib/webmock/util/headers.rb
|
256
256
|
- lib/webmock/util/json.rb
|
257
257
|
- lib/webmock/util/uri.rb
|
258
|
+
- lib/webmock/util/version_checker.rb
|
258
259
|
- lib/webmock/version.rb
|
259
260
|
- lib/webmock/webmock.rb
|
260
261
|
- minitest/test_helper.rb
|
@@ -308,6 +309,7 @@ files:
|
|
308
309
|
- spec/unit/util/headers_spec.rb
|
309
310
|
- spec/unit/util/json_spec.rb
|
310
311
|
- spec/unit/util/uri_spec.rb
|
312
|
+
- spec/unit/util/version_checker_spec.rb
|
311
313
|
- spec/unit/webmock_spec.rb
|
312
314
|
- test/http_request.rb
|
313
315
|
- test/shared_test.rb
|
@@ -343,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
345
|
requirements: []
|
344
346
|
|
345
347
|
rubyforge_project: webmock
|
346
|
-
rubygems_version: 1.8.
|
348
|
+
rubygems_version: 1.8.19
|
347
349
|
signing_key:
|
348
350
|
specification_version: 3
|
349
351
|
summary: Library for stubbing HTTP requests in Ruby.
|
@@ -396,6 +398,7 @@ test_files:
|
|
396
398
|
- spec/unit/util/headers_spec.rb
|
397
399
|
- spec/unit/util/json_spec.rb
|
398
400
|
- spec/unit/util/uri_spec.rb
|
401
|
+
- spec/unit/util/version_checker_spec.rb
|
399
402
|
- spec/unit/webmock_spec.rb
|
400
403
|
- test/http_request.rb
|
401
404
|
- test/shared_test.rb
|