vcr 2.7.0 → 2.8.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 +8 -8
- data/.rspec +1 -1
- data/.travis.yml +4 -0
- data/CHANGELOG.md +29 -0
- data/CONTRIBUTING.md +0 -13
- data/Gemfile +1 -3
- data/Gemfile.lock +13 -22
- data/README.md +7 -1
- data/Rakefile +10 -6
- data/cucumber.yml +2 -2
- data/features/request_matching/body_as_json.feature +90 -0
- data/features/support/env.rb +1 -1
- data/gemfiles/typhoeus_old.gemfile +2 -3
- data/gemfiles/typhoeus_old.gemfile.lock +32 -38
- data/lib/vcr.rb +1 -1
- data/lib/vcr/errors.rb +22 -2
- data/lib/vcr/library_hooks/excon.rb +16 -1
- data/lib/vcr/library_hooks/webmock.rb +1 -1
- data/lib/vcr/middleware/excon.rb +55 -58
- data/lib/vcr/middleware/excon/legacy_methods.rb +1 -1
- data/lib/vcr/request_matcher_registry.rb +18 -0
- data/lib/vcr/test_frameworks/rspec.rb +2 -2
- data/lib/vcr/version.rb +1 -1
- data/script/ci.sh +1 -2
- data/spec/monkey_patches.rb +3 -2
- data/spec/spec_helper.rb +1 -2
- data/spec/support/shared_example_groups/excon.rb +28 -9
- data/spec/support/shared_example_groups/request_hooks.rb +1 -1
- data/spec/vcr/cassette/persisters/file_system_spec.rb +2 -2
- data/spec/vcr/cassette_spec.rb +7 -7
- data/spec/vcr/configuration_spec.rb +13 -13
- data/spec/vcr/errors_spec.rb +23 -0
- data/spec/vcr/library_hooks/excon_spec.rb +15 -0
- data/spec/vcr/library_hooks/fakeweb_spec.rb +1 -1
- data/spec/vcr/library_hooks_spec.rb +8 -8
- data/spec/vcr/middleware/faraday_spec.rb +1 -1
- data/spec/vcr/middleware/rack_spec.rb +1 -1
- data/spec/vcr/request_ignorer_spec.rb +2 -2
- data/spec/vcr/request_matcher_registry_spec.rb +59 -33
- data/spec/vcr/structs_spec.rb +2 -2
- data/spec/vcr/test_frameworks/cucumber_spec.rb +1 -1
- data/spec/vcr/test_frameworks/rspec_spec.rb +1 -1
- data/spec/vcr/util/hooks_spec.rb +5 -5
- data/spec/vcr/version_spec.rb +20 -4
- data/spec/vcr_spec.rb +7 -7
- metadata +4 -3
- data/.limited_red +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmQ3MGMzZTMzMjRhODljMzAzMWYzZGMzMDVhNzc3ZjU4YjE1ZWNjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzcwMGUwMWJjY2JjMGVkZTNmMDE0ZDdjODlhNDFhMzFlNGZlMGEyOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTcyOWYyM2RkNzU0NDc3NDQ4NmZjYWQ1NjFhYTBiYjM0YTA4MGJjNDBhZDk5
|
10
|
+
MGUxZmNlMzg1MDQ5NWRjMDZkZDliOGNiYWE2YzBlYTM3NzU5NmFhMGU1OGQ5
|
11
|
+
MGZjMDM0NGZjZjZhZGI3MTM2MjZmM2MzNjA1ODU5MmUyMWFmYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzI4MzRmZjM5MTA2ZjRkZDhlZjAxYWE4ZmFlMzkzYzRiNzgyZjc1Nzg2Mjk5
|
14
|
+
ZjdlYzhiYWVlNDczMjdiMzcwZDI4NjBlOWE4ZTRjNzZjNWViNjM1OGExMTI2
|
15
|
+
OGQ2YjM5NjNkZjRlZDZiMGJhZGJlNWEyNjMxMmM5ZjI3MjE0MmQ=
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--format
|
1
|
+
--format progress
|
2
2
|
--color
|
data/.travis.yml
CHANGED
@@ -2,6 +2,8 @@ language: ruby
|
|
2
2
|
env: CUCUMBER_FORMAT=progress
|
3
3
|
bundler_args: --without extras
|
4
4
|
script: "script/ci.sh"
|
5
|
+
services:
|
6
|
+
- redis-server
|
5
7
|
rvm:
|
6
8
|
- 1.8.7
|
7
9
|
- 1.9.2
|
@@ -16,6 +18,8 @@ matrix:
|
|
16
18
|
allow_failures:
|
17
19
|
- rvm: jruby-18mode
|
18
20
|
- rvm: jruby-19mode
|
21
|
+
- rvm: rbx-18mode
|
22
|
+
- rvm: rbx-19mode
|
19
23
|
branches:
|
20
24
|
except:
|
21
25
|
- gh-pages
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,32 @@
|
|
1
|
+
## 2.8.0 (November 23, 2013)
|
2
|
+
|
3
|
+
[Full Changelog](http://github.com/vcr/vcr/compare/v2.7.0...v2.8.0)
|
4
|
+
|
5
|
+
Enhancements:
|
6
|
+
|
7
|
+
* Explicitly support the latest Excon release (0.29). (Myron Marston)
|
8
|
+
* Add `:body_as_json` request matcher. (Mike Dalton)
|
9
|
+
* Include the body in the `UnhandledHTTPRequestError` message when
|
10
|
+
matching on `:body` to help identify the request. (Chris Gunther)
|
11
|
+
|
12
|
+
Bug Fixes:
|
13
|
+
|
14
|
+
* Fix Excon adapter so that it properly records responses even when
|
15
|
+
a middleware raises an error (such as via the `:expects` Excon
|
16
|
+
option). Previously, the order `response_call` was invoked on
|
17
|
+
Excon middleware caused VCR's recording ot be skipped when an
|
18
|
+
error was raised by another middleware. To fix this, we have
|
19
|
+
split up VCR Excon middleware into two middlewares that we can
|
20
|
+
insert into the stack at the appropriate spots. Note that to get
|
21
|
+
this to work, Excon < 0.25.2 is no longer supported.
|
22
|
+
(Myron Marston)
|
23
|
+
* Fix Excon adapter so that we pass it a dup of the body string
|
24
|
+
rather than the body string itself, since Excon has code paths
|
25
|
+
that will mutate the stubbed response string we give it, wreaking
|
26
|
+
confusing havoc. (Myron Marston)
|
27
|
+
* Fix rspec metadata implementation so that it does not emit warnings
|
28
|
+
on RSpec 2.99. (Herman Verschooten)
|
29
|
+
|
1
30
|
## 2.7.0 (October 31, 2013)
|
2
31
|
|
3
32
|
[Full Changelog](http://github.com/vcr/vcr/compare/v2.6.0...v2.7.0)
|
data/CONTRIBUTING.md
CHANGED
@@ -7,19 +7,6 @@ gem install bundler
|
|
7
7
|
bundle install
|
8
8
|
```
|
9
9
|
|
10
|
-
Next setup the Git submodules:
|
11
|
-
|
12
|
-
```console
|
13
|
-
git submodule init
|
14
|
-
git submodule update
|
15
|
-
```
|
16
|
-
|
17
|
-
or using the single command form
|
18
|
-
|
19
|
-
```console
|
20
|
-
git submodule update --init
|
21
|
-
```
|
22
|
-
|
23
10
|
You should be able to run the tests now:
|
24
11
|
|
25
12
|
```console
|
data/Gemfile
CHANGED
@@ -10,8 +10,6 @@ gem 'yard'
|
|
10
10
|
|
11
11
|
# Additional gems that are useful, but not required for development.
|
12
12
|
gem 'relish', '~> 0.6'
|
13
|
-
gem 'fuubar'
|
14
|
-
gem 'fuubar-cucumber'
|
15
13
|
|
16
14
|
gem 'redcarpet', '~> 1.17.2', :platforms => :ruby
|
17
15
|
gem 'github-markup'
|
@@ -28,7 +26,7 @@ gem 'rake', '>= 0.9.2'
|
|
28
26
|
gem 'cucumber', '>= 1.1.4'
|
29
27
|
gem 'aruba', '>= 0.5'
|
30
28
|
|
31
|
-
gem 'rspec', '>=
|
29
|
+
gem 'rspec', '>= 3.0.0.beta1'
|
32
30
|
|
33
31
|
gem 'fakeweb', '>= 1.3.0'
|
34
32
|
gem 'webmock', '>= 1.14'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vcr (2.
|
4
|
+
vcr (2.8.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
debugger-ruby_core_source (~> 1.2.3)
|
37
37
|
debugger-linecache (1.2.0)
|
38
38
|
debugger-ruby_core_source (1.2.3)
|
39
|
-
diff-lcs (1.2.
|
39
|
+
diff-lcs (1.2.5)
|
40
40
|
em-http-request (1.1.1)
|
41
41
|
addressable (>= 2.3.4)
|
42
42
|
cookiejar
|
@@ -49,18 +49,11 @@ GEM
|
|
49
49
|
ffi (>= 1.3.0)
|
50
50
|
mime-types (~> 1.18)
|
51
51
|
eventmachine (1.0.3)
|
52
|
-
excon (0.
|
52
|
+
excon (0.29.0)
|
53
53
|
fakeweb (1.3.0)
|
54
54
|
faraday (0.8.8)
|
55
55
|
multipart-post (~> 1.2.0)
|
56
56
|
ffi (1.9.3)
|
57
|
-
fuubar (1.2.1)
|
58
|
-
rspec (~> 2.0)
|
59
|
-
rspec-instafail (~> 0.2.0)
|
60
|
-
ruby-progressbar (~> 1.0)
|
61
|
-
fuubar-cucumber (0.0.20)
|
62
|
-
cucumber (~> 1.3.0)
|
63
|
-
ruby-progressbar (~> 1.0.0)
|
64
57
|
gherkin (2.12.2)
|
65
58
|
multi_json (~> 1.3)
|
66
59
|
github-markup (0.7.5)
|
@@ -92,21 +85,21 @@ GEM
|
|
92
85
|
rest-client (>= 1.6.1)
|
93
86
|
rest-client (1.6.7)
|
94
87
|
mime-types (>= 1.16)
|
95
|
-
rspec (
|
96
|
-
rspec-core (
|
97
|
-
rspec-expectations (
|
98
|
-
rspec-mocks (
|
99
|
-
rspec-core (
|
100
|
-
rspec-expectations (
|
88
|
+
rspec (3.0.0.beta1)
|
89
|
+
rspec-core (= 3.0.0.beta1)
|
90
|
+
rspec-expectations (= 3.0.0.beta1)
|
91
|
+
rspec-mocks (= 3.0.0.beta1)
|
92
|
+
rspec-core (3.0.0.beta1)
|
93
|
+
rspec-expectations (3.0.0.beta1)
|
101
94
|
diff-lcs (>= 1.1.3, < 2.0)
|
102
|
-
|
103
|
-
rspec-mocks (
|
95
|
+
rspec-support (= 3.0.0.beta1)
|
96
|
+
rspec-mocks (3.0.0.beta1)
|
97
|
+
rspec-support (3.0.0.beta1)
|
104
98
|
ruby-debug (0.10.4)
|
105
99
|
columnize (>= 0.1)
|
106
100
|
ruby-debug-base (~> 0.10.4.0)
|
107
101
|
ruby-debug-base (0.10.4)
|
108
102
|
linecache (>= 0.3)
|
109
|
-
ruby-progressbar (1.0.2)
|
110
103
|
safe_yaml (0.9.7)
|
111
104
|
simplecov (0.7.1)
|
112
105
|
multi_json (~> 1.0)
|
@@ -140,8 +133,6 @@ DEPENDENCIES
|
|
140
133
|
excon (>= 0.22)
|
141
134
|
fakeweb (>= 1.3.0)
|
142
135
|
faraday (>= 0.8)
|
143
|
-
fuubar
|
144
|
-
fuubar-cucumber
|
145
136
|
github-markup
|
146
137
|
httpclient (>= 2.2)
|
147
138
|
jruby-openssl
|
@@ -154,7 +145,7 @@ DEPENDENCIES
|
|
154
145
|
redcarpet (~> 1.17.2)
|
155
146
|
redis (>= 2.2.2)
|
156
147
|
relish (~> 0.6)
|
157
|
-
rspec (>=
|
148
|
+
rspec (>= 3.0.0.beta1)
|
158
149
|
ruby-debug
|
159
150
|
simplecov (>= 0.5.3)
|
160
151
|
sinatra (>= 1.3.2)
|
data/README.md
CHANGED
@@ -97,6 +97,7 @@ VCR has been tested on the following ruby interpreters:
|
|
97
97
|
* MRI 1.8.7
|
98
98
|
* MRI 1.9.2
|
99
99
|
* MRI 1.9.3
|
100
|
+
* MRI 2.0.0
|
100
101
|
* REE 1.8.7
|
101
102
|
* JRuby
|
102
103
|
* Rubinius
|
@@ -148,12 +149,14 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
148
149
|
* [Carlos Kirkconnell](https://github.com/kirkconnell)
|
149
150
|
* [Chad Jolly](https://github.com/cjolly)
|
150
151
|
* [Chris Le](https://github.com/chrisle)
|
152
|
+
* [Chris Gunther](https://github.com/cgunther)
|
151
153
|
* [Eduardo Maia](https://github.com/emaiax)
|
152
154
|
* [Eric Allam](http://github.com/rubymaverick)
|
153
155
|
* [Ezekiel Templin](https://github.com/ezkl)
|
154
156
|
* [Flaviu Simihaian](https://github.com/closedbracket)
|
155
157
|
* [Gordon Wilson](https://github.com/gordoncww)
|
156
158
|
* [Hans Hasselberg](https://github.com/i0rek)
|
159
|
+
* [Herman Verschooten](https://github.com/Hermanverschooten)
|
157
160
|
* [Ian Cordasco](https://github.com/sigmavirus24)
|
158
161
|
* [Ingemar](https://github.com/ingemar)
|
159
162
|
* [Jacob Green](https://github.com/Jacobkg)
|
@@ -164,17 +167,20 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
164
167
|
* [Jonathan Tron](https://github.com/JonathanTron)
|
165
168
|
* [Justin Smestad](https://github.com/jsmestad)
|
166
169
|
* [Karl Baum](https://github.com/kbaum)
|
170
|
+
* [Kris Luminar](https://github.com/kris-luminar)
|
167
171
|
* [Kurt Funai](https://github.com/kurtfunai)
|
168
172
|
* [Luke van der Hoeven](https://github.com/plukevdh)
|
169
173
|
* [Mark Burns](https://github.com/markburns)
|
170
174
|
* [Max Riveiro](https://github.com/kavu)
|
171
175
|
* [Michael Lavrisha](https://github.com/vrish88)
|
176
|
+
* [Mike Dalton](https://github.com/kcdragon)
|
172
177
|
* [Mislav Marohnić](https://github.com/mislav)
|
173
178
|
* [Nathaniel Bibler](https://github.com/nbibler)
|
174
179
|
* [Noah Davis](https://github.com/noahd1)
|
175
180
|
* [Oliver Searle-Barnes](https://github.com/opsb)
|
176
181
|
* [Omer Rauchwerger](https://github.com/rauchy)
|
177
182
|
* [Paco Guzmán](https://github.com/pacoguzman)
|
183
|
+
* [Paul Morgan](https://github.com/jumanjiman)
|
178
184
|
* [playupchris](https://github.com/playupchris)
|
179
185
|
* [Ron Smith](https://github.com/ronwsmith)
|
180
186
|
* [Ryan Bates](https://github.com/ryanb)
|
@@ -200,7 +206,7 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
200
206
|
* [Mimic](https://github.com/acoulton/mimic) (PHP/Kohana)
|
201
207
|
* [Nock-VCR](https://github.com/carbonfive/nock-vcr) (JavaScript/Node)
|
202
208
|
* [NSURLConnectionVCR](https://bitbucket.org/martijnthe/nsurlconnectionvcr) (Objective-C)
|
203
|
-
* [PHP-VCR](https://github.com/
|
209
|
+
* [PHP-VCR](https://github.com/php-vcr/php-vcr) (PHP)
|
204
210
|
* [TapeDeck.js](https://github.com/EndangeredMassa/TapeDeck.js) (JavaScript)
|
205
211
|
* [VCR.js](https://github.com/elcuervo/vcr.js) (JavaScript)
|
206
212
|
* [VCR.py](https://github.com/kevin1024/vcrpy) (Python)
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ end
|
|
22
22
|
require 'cucumber/rake/task'
|
23
23
|
Cucumber::Rake::Task.new
|
24
24
|
|
25
|
-
task :default => [:spec, :cucumber]
|
25
|
+
task :default => [:submodules, :spec, :cucumber]
|
26
26
|
|
27
27
|
desc "Ensures we keep up 100% YARD coverage"
|
28
28
|
task :yard_coverage do
|
@@ -49,12 +49,16 @@ task :check_code_coverage do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
desc "Checkout git submodules"
|
53
|
+
task :submodules do
|
54
|
+
sh "git submodule sync"
|
55
|
+
sh "git submodule update --init --recursive"
|
56
|
+
end
|
57
|
+
|
52
58
|
namespace :ci do
|
53
59
|
desc "Sets things up for a ci build on travis-ci.org"
|
54
|
-
task :setup do
|
60
|
+
task :setup => :submodules do
|
55
61
|
ENV['TRAVIS'] = 'true'
|
56
|
-
sh "git submodule init"
|
57
|
-
sh "git submodule update"
|
58
62
|
end
|
59
63
|
|
60
64
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
@@ -94,13 +98,13 @@ task :relish do
|
|
94
98
|
end
|
95
99
|
|
96
100
|
require 'vcr/version'
|
97
|
-
sh "relish versions:add vcr/vcr:#{VCR.version}" if ENV['NEW_RELISH_RELEASE']
|
101
|
+
sh "relish versions:add vcr/vcr:#{VCR.version}" if ENV['NEW_RELISH_RELEASE'] == 'true'
|
98
102
|
sh "relish push vcr/vcr:#{VCR.version}"
|
99
103
|
end
|
100
104
|
end
|
101
105
|
|
102
106
|
task :prep_relish_release do
|
103
|
-
ENV['NEW_RELISH_RELEASE']
|
107
|
+
ENV['NEW_RELISH_RELEASE'] ||= 'true'
|
104
108
|
end
|
105
109
|
|
106
110
|
task :release => [:prep_relish_release, :relish]
|
data/cucumber.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<%
|
2
2
|
base_opts = '--require features/step_definitions --require features/support'
|
3
|
-
std_opts = "--format
|
3
|
+
std_opts = "--format progress --strict"
|
4
4
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
5
|
-
rerun_opts = rerun.to_s.strip.empty? ? "--format
|
5
|
+
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
6
6
|
|
7
7
|
exclusions = []
|
8
8
|
exclusions << "--tags ~@exclude-#{RUBY_VERSION.split('.').first(2).join}"
|
@@ -0,0 +1,90 @@
|
|
1
|
+
Feature: Matching on Body
|
2
|
+
|
3
|
+
Use the `:body_as_json` request matcher to match requests on the request body where the body is JSON.
|
4
|
+
|
5
|
+
Background:
|
6
|
+
Given a previously recorded cassette file "cassettes/example.yml" with:
|
7
|
+
"""
|
8
|
+
---
|
9
|
+
http_interactions:
|
10
|
+
- request:
|
11
|
+
method: post
|
12
|
+
uri: http://example.net/some/long/path
|
13
|
+
body:
|
14
|
+
encoding: UTF-8
|
15
|
+
string: '{ "a" : "1" }'
|
16
|
+
headers: {}
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Content-Length:
|
23
|
+
- "14"
|
24
|
+
body:
|
25
|
+
encoding: UTF-8
|
26
|
+
string: body1 response
|
27
|
+
http_version: "1.1"
|
28
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
29
|
+
- request:
|
30
|
+
method: post
|
31
|
+
uri: http://example.net/some/long/path
|
32
|
+
body:
|
33
|
+
encoding: UTF-8
|
34
|
+
string: '{ "a" : "1", "b" : "2" }'
|
35
|
+
headers: {}
|
36
|
+
response:
|
37
|
+
status:
|
38
|
+
code: 200
|
39
|
+
message: OK
|
40
|
+
headers:
|
41
|
+
Content-Length:
|
42
|
+
- "14"
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: body2 response
|
46
|
+
http_version: "1.1"
|
47
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
48
|
+
recorded_with: VCR 2.0.0
|
49
|
+
"""
|
50
|
+
|
51
|
+
Scenario Outline: Replay interaction that matches the body as JSON
|
52
|
+
And a file named "body_as_json_matching.rb" with:
|
53
|
+
"""ruby
|
54
|
+
include_http_adapter_for("<http_lib>")
|
55
|
+
|
56
|
+
require 'vcr'
|
57
|
+
|
58
|
+
VCR.configure do |c|
|
59
|
+
<configuration>
|
60
|
+
c.cassette_library_dir = 'cassettes'
|
61
|
+
end
|
62
|
+
|
63
|
+
VCR.use_cassette('example', :match_requests_on => [:body_as_json]) do
|
64
|
+
puts "Response for body as json 2: " + response_body_for(:put, "http://example.com/", '{ "a" : "1", "b" : "2" }')
|
65
|
+
end
|
66
|
+
|
67
|
+
VCR.use_cassette('example', :match_requests_on => [:body_as_json]) do
|
68
|
+
puts "Response for body as json 1: " + response_body_for(:put, "http://example.com/", '{ "a" : "1" }')
|
69
|
+
end
|
70
|
+
"""
|
71
|
+
When I run `ruby body_as_json_matching.rb`
|
72
|
+
Then it should pass with:
|
73
|
+
"""
|
74
|
+
Response for body as json 2: body2 response
|
75
|
+
Response for body as json 1: body1 response
|
76
|
+
"""
|
77
|
+
|
78
|
+
Examples:
|
79
|
+
| configuration | http_lib |
|
80
|
+
| c.hook_into :fakeweb | net/http |
|
81
|
+
| c.hook_into :webmock | net/http |
|
82
|
+
| c.hook_into :webmock | httpclient |
|
83
|
+
| c.hook_into :webmock | curb |
|
84
|
+
| c.hook_into :webmock | patron |
|
85
|
+
| c.hook_into :webmock | em-http-request |
|
86
|
+
| c.hook_into :webmock | typhoeus |
|
87
|
+
| c.hook_into :typhoeus | typhoeus |
|
88
|
+
| c.hook_into :excon | excon |
|
89
|
+
| c.hook_into :faraday | faraday (w/ net_http) |
|
90
|
+
| c.hook_into :faraday | faraday (w/ typhoeus) |
|
data/features/support/env.rb
CHANGED
@@ -6,14 +6,13 @@ gem "appraisal"
|
|
6
6
|
gem "jruby-openssl", :platforms=>:jruby
|
7
7
|
gem "yard"
|
8
8
|
gem "relish", "~> 0.6"
|
9
|
-
gem "fuubar"
|
10
|
-
gem "fuubar-cucumber"
|
11
9
|
gem "redcarpet", "~> 1.17.2", :platforms=>:ruby
|
12
10
|
gem "github-markup"
|
11
|
+
gem "bundler"
|
13
12
|
gem "rake", ">= 0.9.2"
|
14
13
|
gem "cucumber", ">= 1.1.4"
|
15
14
|
gem "aruba", ">= 0.5"
|
16
|
-
gem "rspec", ">=
|
15
|
+
gem "rspec", ">= 3.0.0.beta1"
|
17
16
|
gem "fakeweb", ">= 1.3.0"
|
18
17
|
gem "faraday", ">= 0.8"
|
19
18
|
gem "httpclient", ">= 2.2"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/myron/code/vcr
|
3
3
|
specs:
|
4
|
-
vcr (2.
|
4
|
+
vcr (2.7.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -21,15 +21,16 @@ GEM
|
|
21
21
|
cookiejar (0.3.0)
|
22
22
|
crack (0.4.1)
|
23
23
|
safe_yaml (~> 0.9.0)
|
24
|
-
cucumber (1.3.
|
24
|
+
cucumber (1.3.10)
|
25
25
|
builder (>= 2.1.2)
|
26
26
|
diff-lcs (>= 1.1.3)
|
27
|
-
gherkin (~> 2.12
|
27
|
+
gherkin (~> 2.12)
|
28
28
|
multi_json (>= 1.7.5, < 2.0)
|
29
29
|
multi_test (>= 0.0.2)
|
30
|
-
curb (0.8.
|
31
|
-
diff-lcs (1.2.
|
32
|
-
|
30
|
+
curb (0.8.5)
|
31
|
+
diff-lcs (1.2.5)
|
32
|
+
docile (1.1.0)
|
33
|
+
em-http-request (1.1.1)
|
33
34
|
addressable (>= 2.3.4)
|
34
35
|
cookiejar
|
35
36
|
em-socksify (>= 0.3)
|
@@ -38,57 +39,51 @@ GEM
|
|
38
39
|
em-socksify (0.3.0)
|
39
40
|
eventmachine (>= 1.0.0.beta.4)
|
40
41
|
eventmachine (1.0.3)
|
41
|
-
excon (0.
|
42
|
+
excon (0.29.0)
|
42
43
|
fakeweb (1.3.0)
|
43
44
|
faraday (0.8.8)
|
44
45
|
multipart-post (~> 1.2.0)
|
45
|
-
ffi (1.9.
|
46
|
-
|
47
|
-
rspec (~> 2.0)
|
48
|
-
rspec-instafail (~> 0.2.0)
|
49
|
-
ruby-progressbar (~> 1.0)
|
50
|
-
fuubar-cucumber (0.0.20)
|
51
|
-
cucumber (~> 1.3.0)
|
52
|
-
ruby-progressbar (~> 1.0.0)
|
53
|
-
gherkin (2.12.1)
|
46
|
+
ffi (1.9.3)
|
47
|
+
gherkin (2.12.2)
|
54
48
|
multi_json (~> 1.3)
|
55
49
|
github-markup (0.7.5)
|
56
50
|
http_parser.rb (0.6.0.beta.2)
|
57
51
|
httpclient (2.3.4.1)
|
58
|
-
json (1.8.
|
52
|
+
json (1.8.1)
|
59
53
|
mime-types (1.25)
|
60
|
-
multi_json (1.8.
|
54
|
+
multi_json (1.8.2)
|
61
55
|
multi_test (0.0.2)
|
62
56
|
multipart-post (1.2.0)
|
63
57
|
patron (0.4.18)
|
64
58
|
rack (1.5.2)
|
65
|
-
rack-protection (1.5.
|
59
|
+
rack-protection (1.5.1)
|
66
60
|
rack
|
67
61
|
rake (10.1.0)
|
68
62
|
redcarpet (1.17.2)
|
69
|
-
redis (3.0.
|
63
|
+
redis (3.0.6)
|
70
64
|
relish (0.7)
|
71
65
|
archive-tar-minitar (>= 0.5.2)
|
72
66
|
json (>= 1.4.6)
|
73
67
|
rest-client (>= 1.6.1)
|
74
68
|
rest-client (1.6.7)
|
75
69
|
mime-types (>= 1.16)
|
76
|
-
rspec (
|
77
|
-
rspec-core (
|
78
|
-
rspec-expectations (
|
79
|
-
rspec-mocks (
|
80
|
-
rspec-core (
|
81
|
-
rspec-expectations (
|
70
|
+
rspec (3.0.0.beta1)
|
71
|
+
rspec-core (= 3.0.0.beta1)
|
72
|
+
rspec-expectations (= 3.0.0.beta1)
|
73
|
+
rspec-mocks (= 3.0.0.beta1)
|
74
|
+
rspec-core (3.0.0.beta1)
|
75
|
+
rspec-expectations (3.0.0.beta1)
|
82
76
|
diff-lcs (>= 1.1.3, < 2.0)
|
83
|
-
|
84
|
-
rspec-mocks (
|
85
|
-
|
77
|
+
rspec-support (= 3.0.0.beta1)
|
78
|
+
rspec-mocks (3.0.0.beta1)
|
79
|
+
rspec-support (3.0.0.beta1)
|
86
80
|
safe_yaml (0.9.7)
|
87
|
-
simplecov (0.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
81
|
+
simplecov (0.8.2)
|
82
|
+
docile (~> 1.1.0)
|
83
|
+
multi_json
|
84
|
+
simplecov-html (~> 0.8.0)
|
85
|
+
simplecov-html (0.8.0)
|
86
|
+
sinatra (1.4.4)
|
92
87
|
rack (~> 1.4)
|
93
88
|
rack-protection (~> 1.4)
|
94
89
|
tilt (~> 1.3, >= 1.3.4)
|
@@ -101,7 +96,7 @@ GEM
|
|
101
96
|
addressable (>= 2.2.7)
|
102
97
|
crack (>= 0.1.7)
|
103
98
|
yajl-ruby (1.1.0)
|
104
|
-
yard (0.8.7.
|
99
|
+
yard (0.8.7.3)
|
105
100
|
|
106
101
|
PLATFORMS
|
107
102
|
ruby
|
@@ -109,14 +104,13 @@ PLATFORMS
|
|
109
104
|
DEPENDENCIES
|
110
105
|
appraisal
|
111
106
|
aruba (>= 0.5)
|
107
|
+
bundler
|
112
108
|
cucumber (>= 1.1.4)
|
113
109
|
curb (>= 0.8.0)
|
114
110
|
em-http-request (>= 1.0.2)
|
115
111
|
excon (>= 0.22)
|
116
112
|
fakeweb (>= 1.3.0)
|
117
113
|
faraday (>= 0.8)
|
118
|
-
fuubar
|
119
|
-
fuubar-cucumber
|
120
114
|
github-markup
|
121
115
|
httpclient (>= 2.2)
|
122
116
|
jruby-openssl
|
@@ -128,7 +122,7 @@ DEPENDENCIES
|
|
128
122
|
redcarpet (~> 1.17.2)
|
129
123
|
redis (>= 2.2.2)
|
130
124
|
relish (~> 0.6)
|
131
|
-
rspec (>=
|
125
|
+
rspec (>= 3.0.0.beta1)
|
132
126
|
simplecov (>= 0.5.3)
|
133
127
|
sinatra (>= 1.3.2)
|
134
128
|
timecop (= 0.6.1)
|