rev-api 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODI4M2RkNzcyYTkxY2NhYWU0YWRkNWNkNDZkMmI5YmYyNjJlOGE4Nw==
4
+ Y2Q0NzQxMzRjODA3NTdjZDU4NzJlMjA4ZDk1NGQwYmMxMzYyY2VhZg==
5
5
  data.tar.gz: !binary |-
6
- N2NlNGIzZTJkYTc1MDI4MWE3YjQ2Y2MwODI5Yzc1MTExZDI4MDQzNw==
6
+ OWFlZGU1M2JkYWNhOWFkMTBlMzFiODJhOWE1Yzk5ZTZjNDU2ODgwNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTI5YjkxNzI1YjIwOTBiZGI3ZGJjMWFjMTA5NTRlYWJiZjQzNzQyMTE4NDdi
10
- ZGU1NzUxMDBlOGE0ZTYwMDg5MGVkNWY1ZDM3ZjkxMDVkMmU3MjMxZjQ3MWVj
11
- YmY1ZmU5M2U0ZmYxNzc5ZmUxOThiYzFjNTQ1ODg0Y2Q5NGU1NTY=
9
+ ZTEzYjdlNDliNzM5YWI0MDRiYjc0N2JmMDgwZTA1N2UxYzE2YjEzZTdmOTli
10
+ NGU4ZjA5MTliYTk4MWVlMWQ3YWMzNWE1OWRlZWU0MWIwMDZjMzZjYzhmODBm
11
+ YWM0MTQ0NTk1MzA2ZDdmODViMDAyNDFkYTA0NDM4ZGMwYWE5YWE=
12
12
  data.tar.gz: !binary |-
13
- NmU1MjZmMzZmOGQzMDU2YmE1ZThiMTlkYjhmNmQ5ZDM3NDNmY2I2Yzg0Y2Nm
14
- Y2RjM2VlYzVlOWM2YjJhNzUzM2M5ZDQzNGFhYzhjMmZkZjNhNTA0NzdhNDI3
15
- MDEyMDZiZjQ1YjI3ZDEyYmY2YzIzY2E4ODMwYTE5YjA2NTRiNDE=
13
+ N2QxYWU4ZDg0MDkwYmI4MDczZTk0NDMyNzg0OGQwYzBlZmVkYzExM2Y2YTQ3
14
+ NWI2ODRlYzNiNGUyMjI1NTljNzk4MzVhN2ZlMGQ1YjViOGM5ZDFmNjI5Mzgw
15
+ MzljZjVhMDBkODFkZTU5YWVkODRkYWUwMTI2ZDM2MGY4OWY0N2Q=
@@ -4,7 +4,6 @@ bundler_args: --without guard metrics
4
4
  rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
- - ruby-head
8
7
  branches:
9
8
  only: master
10
9
  notifications:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rev-api (1.0.1)
4
+ rev-api (1.0.2)
5
5
  httparty (>= 0.11.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Rev
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -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 |request_1, request_2|
38
- request_1.headers.delete 'Accept-Encoding'
39
- request_1.headers == request_2.headers
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rev-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rev.com, Inc