access 2.0.42 → 2.0.43

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f0a70294cab16fadc20b063edcf7ca0bc89566c
4
- data.tar.gz: 1a2a0aabad494e9a64f572a9d8ee292a36b50f9e
3
+ metadata.gz: 7118f42dc92f32ca1f8a7d784b5794c3767e6e1a
4
+ data.tar.gz: 8fba22106ef68dc55407be8abe4d8a725aa0b8cd
5
5
  SHA512:
6
- metadata.gz: 1fa5753cb63d5da57afc32e7bbb7a4ec171dcba4c1e9393f9ff3fc8f2ab1e02a3e7309be2956fbfa9d6dd8420833e91aeac702018b2bf9ddf447e205d296d53d
7
- data.tar.gz: d63463da187ecfd1bad6b5d40b6141d979dba15805dff4032994acdef7d2390a16029597e62098fb1788318406cc5c4b2b58c9d059d0aec345e72484885f6224
6
+ metadata.gz: 4dd5d5d8740fca8f92d8a373282914f65d73532dee676d46be606e5f79e12904ac4fa4c21d26eb24502372d4d8915e07d8ac38b373f690fcf40cad0028e8df97
7
+ data.tar.gz: 6f9294b3aff2a9c128af05fd46e7b1038e97aa845d03099e9d9be5bb85b12e4b920ba2fa8df3fb1b23cf742c0d5915a5d1756190df969070eac03b9e758461f1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- access (2.0.42)
4
+ access (2.0.43)
5
5
  hashie (~> 3.3.1)
6
6
  httparty (~> 0.13.3)
7
7
 
@@ -197,6 +197,7 @@ module Access
197
197
 
198
198
  class FavoriteResponse < Response
199
199
  def process_data
200
+ (@favorites = []; create_error) if @message
200
201
  @favorites = Access::Favorite.process_batch(@favorites) if @favorites
201
202
  end
202
203
  end
@@ -1,4 +1,4 @@
1
1
  module Access
2
- VERSION = "2.0.42"
2
+ VERSION = "2.0.43"
3
3
  end
4
4
 
@@ -36,9 +36,9 @@ class FavoriteTest < Minitest::Test
36
36
  def test_favorite_search_with_bad_member
37
37
  VCR.use_cassette('favorite search bad member') do
38
38
  request = Access::Favorite.search member_key: 'API_TEST_FAVORITE_BAD_MEMBER'
39
- assert request.success
39
+ refute request.success
40
40
  assert_kind_of Access::FavoriteResponse, request
41
- assert_nil request.favorites
41
+ assert_empty request.favorites
42
42
  end
43
43
  end
44
44
 
@@ -46,9 +46,9 @@ class FavoriteTest < Minitest::Test
46
46
  # TODO refactor after fav api update
47
47
  VCR.use_cassette('favorite search no favorites') do
48
48
  request = Access::Favorite.search member_key: 'API_TEST_FAVORITE_NO_FAVORITES'
49
- assert request.success
49
+ refute request.success
50
50
  assert_kind_of Access::FavoriteResponse, request
51
- assert_nil request.favorites
51
+ assert_empty request.favorites
52
52
  end
53
53
  end
54
54
 
@@ -155,7 +155,7 @@ class FavoriteTest < Minitest::Test
155
155
  VCR.use_cassette('favorite delete location') do
156
156
  Access::Favorite.delete_location @@offer.location.location_key, member_key: 'API_TEST' # create it first, in case it was deleted
157
157
  request = Access::Favorite.find_location @@offer.location.location_key, member_key: 'API_TEST'
158
- assert request.success
158
+ refute request.success
159
159
  assert_kind_of Access::FavoriteResponse, request
160
160
  end
161
161
  end
@@ -164,7 +164,7 @@ class FavoriteTest < Minitest::Test
164
164
  VCR.use_cassette('favorite delete store') do
165
165
  Access::Favorite.delete_store @@offer.store.store_key, member_key: 'API_TEST' # create it first, in case it was deleted
166
166
  request = Access::Favorite.find_store @@offer.store.store_key, member_key: 'API_TEST'
167
- assert request.success
167
+ refute request.success
168
168
  assert_kind_of Access::FavoriteResponse, request
169
169
  end
170
170
  end
@@ -45,4 +45,49 @@ http_interactions:
45
45
  string: '{"username":"cs@test.com","birth_date":"2016-01-21","gender":null,"home_address":null,"default_location":null,"mobile_phone_number":null,"created_dts":"2015-12-15T00:33:37.372+0000","modified_dts":"2016-01-21T17:51:54.765+0000","last_registered_dts":"2015-10-07T19:57:56.456+0000","active":false,"messaging":null,"first_name":"Tep","last_name":"No","member_id":89738626,"program_id":2412,"member_key":"226872","program_key":"TYP123","cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","lat_lon_address":null,"address":null}'
46
46
  http_version:
47
47
  recorded_at: Thu, 21 Jan 2016 18:37:07 GMT
48
+ - request:
49
+ method: put
50
+ uri: https://mms-stage.adcrws.com/v1/members/226872?program_id=2412
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"birth_date":"2016-01-25"}'
54
+ headers:
55
+ Access-Token:
56
+ - ACCESS_TOKEN
57
+ Content-Type:
58
+ - application/json
59
+ Accept:
60
+ - application/json
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Server:
67
+ - Apache-Coyote/1.1
68
+ X-Content-Type-Options:
69
+ - nosniff
70
+ X-Xss-Protection:
71
+ - 1; mode=block
72
+ Cache-Control:
73
+ - no-cache, no-store, max-age=0, must-revalidate
74
+ Pragma:
75
+ - no-cache
76
+ Expires:
77
+ - '0'
78
+ X-Frame-Options:
79
+ - DENY
80
+ X-Application-Context:
81
+ - application:main,stage:10110
82
+ Content-Type:
83
+ - application/json;charset=UTF-8
84
+ Transfer-Encoding:
85
+ - chunked
86
+ Date:
87
+ - Tue, 26 Jan 2016 04:58:49 GMT
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"username":"cs@test.com","birth_date":"2016-01-25","gender":null,"home_address":null,"default_location":null,"mobile_phone_number":null,"created_dts":"2015-12-15T00:33:37.372+0000","modified_dts":"2016-01-21T17:51:54.765+0000","last_registered_dts":"2015-10-07T19:57:56.456+0000","active":false,"messaging":null,"first_name":"Tep","last_name":"No","member_id":89738626,"program_id":2412,"member_key":"226872","program_key":"TYP123","cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","lat_lon_address":null,"address":null}'
91
+ http_version:
92
+ recorded_at: Tue, 26 Jan 2016 04:57:13 GMT
48
93
  recorded_with: VCR 3.0.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.42
4
+ version: 2.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-21 00:00:00.000000000 Z
13
+ date: 2016-01-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler