rev-api 1.0.1 → 1.0.2
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/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/lib/rev-api/version.rb +1 -1
- data/spec/spec_helper.rb +11 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2Q0NzQxMzRjODA3NTdjZDU4NzJlMjA4ZDk1NGQwYmMxMzYyY2VhZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWFlZGU1M2JkYWNhOWFkMTBlMzFiODJhOWE1Yzk5ZTZjNDU2ODgwNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTEzYjdlNDliNzM5YWI0MDRiYjc0N2JmMDgwZTA1N2UxYzE2YjEzZTdmOTli
|
10
|
+
NGU4ZjA5MTliYTk4MWVlMWQ3YWMzNWE1OWRlZWU0MWIwMDZjMzZjYzhmODBm
|
11
|
+
YWM0MTQ0NTk1MzA2ZDdmODViMDAyNDFkYTA0NDM4ZGMwYWE5YWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2QxYWU4ZDg0MDkwYmI4MDczZTk0NDMyNzg0OGQwYzBlZmVkYzExM2Y2YTQ3
|
14
|
+
NWI2ODRlYzNiNGUyMjI1NTljNzk4MzVhN2ZlMGQ1YjViOGM5ZDFmNjI5Mzgw
|
15
|
+
MzljZjVhMDBkODFkZTU5YWVkODRkYWUwMTI2ZDM2MGY4OWY0N2Q=
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/rev-api/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -34,8 +34,16 @@ VCR.configure do |c|
|
|
34
34
|
c.ignore_hosts 'www.example.com' # used to stub requests manually, see http_client_spec
|
35
35
|
|
36
36
|
# http://ruby-doc.org/stdlib-2.0.0/libdoc/net/http/rdoc/Net/HTTP.html#label-Compression - we ignore 'Accept-Encoding'
|
37
|
-
c.register_request_matcher :rev_headers do |
|
38
|
-
|
39
|
-
|
37
|
+
c.register_request_matcher :rev_headers do |actual_request, expected_request|
|
38
|
+
actual_request.headers.delete 'Accept-Encoding'
|
39
|
+
|
40
|
+
# ignore specific version of a client recorded
|
41
|
+
actual_user_agent = actual_request.headers['User-Agent'].to_s.split('/').first
|
42
|
+
expected_user_agent = actual_request.headers['User-Agent'].to_s.split('/').first
|
43
|
+
|
44
|
+
actual_request.headers.delete 'User-Agent'
|
45
|
+
expected_request.headers.delete 'User-Agent'
|
46
|
+
|
47
|
+
actual_request.headers == expected_request.headers# && actual_user_agent == expected_user_agent
|
40
48
|
end
|
41
49
|
end
|