access 2.0.15 → 2.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access.rb +1 -0
- data/lib/access/api.rb +25 -0
- data/lib/access/favorite.rb +72 -0
- data/lib/access/request.rb +15 -0
- data/lib/access/response.rb +6 -1
- data/lib/access/spot.rb +3 -3
- data/lib/access/version.rb +1 -1
- data/test/access/favorite_test.rb +181 -0
- data/test/access/member_test.rb +57 -0
- data/test/access/oauth_application_test.rb +4 -4
- data/test/vcr/cassettes/favorite_create_location.yml +108 -0
- data/test/vcr/cassettes/favorite_create_offer.yml +48 -0
- data/test/vcr/cassettes/favorite_create_store.yml +54 -0
- data/test/vcr/cassettes/favorite_delete_location.yml +213 -0
- data/test/vcr/cassettes/favorite_delete_offer.yml +93 -0
- data/test/vcr/cassettes/favorite_delete_store.yml +105 -0
- data/test/vcr/cassettes/favorite_find_location.yml +213 -0
- data/test/vcr/cassettes/favorite_find_offer.yml +93 -0
- data/test/vcr/cassettes/favorite_find_store.yml +105 -0
- data/test/vcr/cassettes/favorite_one_of_everything.yml +1145 -0
- data/test/vcr/cassettes/favorite_search.yml +138 -0
- data/test/vcr/cassettes/favorite_search_bad_member.yml +49 -0
- data/test/vcr/cassettes/favorite_search_locations.yml +214 -0
- data/test/vcr/cassettes/favorite_search_no_favorites.yml +49 -0
- data/test/vcr/cassettes/favorite_search_offers.yml +170 -0
- data/test/vcr/cassettes/favorite_search_stores.yml +54 -0
- data/test/vcr/cassettes/member_authenticate_failure.yml +48 -0
- data/test/vcr/cassettes/member_authenticate_success.yml +50 -0
- data/test/vcr/cassettes/member_register_failure.yml +138 -0
- data/test/vcr/cassettes/member_register_success.yml +50 -0
- metadata +45 -2
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://mms-demo.adcrws.com/v1/register
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"program_id":2412,"first_name":"RubyGem","last_name":"Test","postal_code":84047,"email":"rubygemtest-3@accessdevelopment.com","password":"test1234","shared_secret":"thanks","program_url":"saversclub.accessdevelopment.com","access_timeout":180}'
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- ACCESS_TOKEN
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- '0'
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
X-Application-Context:
|
36
|
+
- application:main,stage:10120
|
37
|
+
Content-Type:
|
38
|
+
- application/json;charset=UTF-8
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
Date:
|
42
|
+
- Fri, 23 Oct 2015 18:42:12 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Thank
|
46
|
+
You Perks","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Thank
|
47
|
+
You Perks Demo","member_id":88896992,"member_key":"226937","email":"rubygemtest-3@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","reg_id":1040810,"cvt":"f2114c57057308eaef2d9731f3ddeaeccc7e8d27","postal_code":"84047","roles":[]}]}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 23 Oct 2015 18:41:33 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|
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.
|
4
|
+
version: 2.0.17
|
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: 2015-10-
|
13
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -226,6 +226,7 @@ files:
|
|
226
226
|
- lib/access/city_savings.rb
|
227
227
|
- lib/access/config.rb
|
228
228
|
- lib/access/error.rb
|
229
|
+
- lib/access/favorite.rb
|
229
230
|
- lib/access/filter.rb
|
230
231
|
- lib/access/geolocation.rb
|
231
232
|
- lib/access/info.rb
|
@@ -247,6 +248,7 @@ files:
|
|
247
248
|
- test/access/autocomplete_test.rb
|
248
249
|
- test/access/category_test.rb
|
249
250
|
- test/access/city_savings_test.rb
|
251
|
+
- test/access/favorite_test.rb
|
250
252
|
- test/access/filter_test.rb
|
251
253
|
- test/access/location_test.rb
|
252
254
|
- test/access/member_test.rb
|
@@ -269,16 +271,36 @@ files:
|
|
269
271
|
- test/vcr/cassettes/category_find.yml
|
270
272
|
- test/vcr/cassettes/category_search.yml
|
271
273
|
- test/vcr/cassettes/category_search_fail_member_key.yml
|
274
|
+
- test/vcr/cassettes/favorite_create_location.yml
|
275
|
+
- test/vcr/cassettes/favorite_create_offer.yml
|
276
|
+
- test/vcr/cassettes/favorite_create_store.yml
|
277
|
+
- test/vcr/cassettes/favorite_delete_location.yml
|
278
|
+
- test/vcr/cassettes/favorite_delete_offer.yml
|
279
|
+
- test/vcr/cassettes/favorite_delete_store.yml
|
280
|
+
- test/vcr/cassettes/favorite_find_location.yml
|
281
|
+
- test/vcr/cassettes/favorite_find_offer.yml
|
282
|
+
- test/vcr/cassettes/favorite_find_store.yml
|
283
|
+
- test/vcr/cassettes/favorite_one_of_everything.yml
|
284
|
+
- test/vcr/cassettes/favorite_search.yml
|
285
|
+
- test/vcr/cassettes/favorite_search_bad_member.yml
|
286
|
+
- test/vcr/cassettes/favorite_search_locations.yml
|
287
|
+
- test/vcr/cassettes/favorite_search_no_favorites.yml
|
288
|
+
- test/vcr/cassettes/favorite_search_offers.yml
|
289
|
+
- test/vcr/cassettes/favorite_search_stores.yml
|
272
290
|
- test/vcr/cassettes/filter_find.yml
|
273
291
|
- test/vcr/cassettes/filter_search.yml
|
274
292
|
- test/vcr/cassettes/find_redemption_by_member_key.yml
|
275
293
|
- test/vcr/cassettes/location_find.yml
|
276
294
|
- test/vcr/cassettes/location_search.yml
|
277
295
|
- test/vcr/cassettes/location_search_fail_member_key.yml
|
296
|
+
- test/vcr/cassettes/member_authenticate_failure.yml
|
297
|
+
- test/vcr/cassettes/member_authenticate_success.yml
|
278
298
|
- test/vcr/cassettes/member_location_frequent.yml
|
279
299
|
- test/vcr/cassettes/member_location_recent.yml
|
280
300
|
- test/vcr/cassettes/member_query_frequent.yml
|
281
301
|
- test/vcr/cassettes/member_query_recent.yml
|
302
|
+
- test/vcr/cassettes/member_register_failure.yml
|
303
|
+
- test/vcr/cassettes/member_register_success.yml
|
282
304
|
- test/vcr/cassettes/national_stores.yml
|
283
305
|
- test/vcr/cassettes/oauth_application_find.yml
|
284
306
|
- test/vcr/cassettes/oauth_application_search.yml
|
@@ -331,6 +353,7 @@ test_files:
|
|
331
353
|
- test/access/autocomplete_test.rb
|
332
354
|
- test/access/category_test.rb
|
333
355
|
- test/access/city_savings_test.rb
|
356
|
+
- test/access/favorite_test.rb
|
334
357
|
- test/access/filter_test.rb
|
335
358
|
- test/access/location_test.rb
|
336
359
|
- test/access/member_test.rb
|
@@ -353,16 +376,36 @@ test_files:
|
|
353
376
|
- test/vcr/cassettes/category_find.yml
|
354
377
|
- test/vcr/cassettes/category_search.yml
|
355
378
|
- test/vcr/cassettes/category_search_fail_member_key.yml
|
379
|
+
- test/vcr/cassettes/favorite_create_location.yml
|
380
|
+
- test/vcr/cassettes/favorite_create_offer.yml
|
381
|
+
- test/vcr/cassettes/favorite_create_store.yml
|
382
|
+
- test/vcr/cassettes/favorite_delete_location.yml
|
383
|
+
- test/vcr/cassettes/favorite_delete_offer.yml
|
384
|
+
- test/vcr/cassettes/favorite_delete_store.yml
|
385
|
+
- test/vcr/cassettes/favorite_find_location.yml
|
386
|
+
- test/vcr/cassettes/favorite_find_offer.yml
|
387
|
+
- test/vcr/cassettes/favorite_find_store.yml
|
388
|
+
- test/vcr/cassettes/favorite_one_of_everything.yml
|
389
|
+
- test/vcr/cassettes/favorite_search.yml
|
390
|
+
- test/vcr/cassettes/favorite_search_bad_member.yml
|
391
|
+
- test/vcr/cassettes/favorite_search_locations.yml
|
392
|
+
- test/vcr/cassettes/favorite_search_no_favorites.yml
|
393
|
+
- test/vcr/cassettes/favorite_search_offers.yml
|
394
|
+
- test/vcr/cassettes/favorite_search_stores.yml
|
356
395
|
- test/vcr/cassettes/filter_find.yml
|
357
396
|
- test/vcr/cassettes/filter_search.yml
|
358
397
|
- test/vcr/cassettes/find_redemption_by_member_key.yml
|
359
398
|
- test/vcr/cassettes/location_find.yml
|
360
399
|
- test/vcr/cassettes/location_search.yml
|
361
400
|
- test/vcr/cassettes/location_search_fail_member_key.yml
|
401
|
+
- test/vcr/cassettes/member_authenticate_failure.yml
|
402
|
+
- test/vcr/cassettes/member_authenticate_success.yml
|
362
403
|
- test/vcr/cassettes/member_location_frequent.yml
|
363
404
|
- test/vcr/cassettes/member_location_recent.yml
|
364
405
|
- test/vcr/cassettes/member_query_frequent.yml
|
365
406
|
- test/vcr/cassettes/member_query_recent.yml
|
407
|
+
- test/vcr/cassettes/member_register_failure.yml
|
408
|
+
- test/vcr/cassettes/member_register_success.yml
|
366
409
|
- test/vcr/cassettes/national_stores.yml
|
367
410
|
- test/vcr/cassettes/oauth_application_find.yml
|
368
411
|
- test/vcr/cassettes/oauth_application_search.yml
|