access 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/access/api.rb +1 -1
  3. data/lib/access/version.rb +1 -1
  4. data/test/access/token_test.rb +1 -1
  5. data/test/fixtures/autocomplete_search.yml +25 -29
  6. data/test/fixtures/autocomplete_search_categories.yml +5 -9
  7. data/test/fixtures/autocomplete_search_locations.yml +5 -9
  8. data/test/fixtures/autocomplete_search_offers.yml +5 -9
  9. data/test/fixtures/autocomplete_search_stores.yml +12 -16
  10. data/test/fixtures/category_find.yml +5 -9
  11. data/test/fixtures/category_search.yml +10 -18
  12. data/test/fixtures/category_search_fail_member_key.yml +5 -9
  13. data/test/fixtures/filter_find.yml +7 -11
  14. data/test/fixtures/filter_search.yml +5 -9
  15. data/test/fixtures/location_find.yml +5 -9
  16. data/test/fixtures/location_search.yml +5 -9
  17. data/test/fixtures/location_search_fail_member_key.yml +5 -9
  18. data/test/fixtures/national_stores.yml +5 -9
  19. data/test/fixtures/oauth_application_find.yml +5 -9
  20. data/test/fixtures/oauth_application_search.yml +5 -9
  21. data/test/fixtures/oauth_application_token_find.yml +5 -9
  22. data/test/fixtures/oauth_application_token_search.yml +5 -9
  23. data/test/fixtures/offer_find.yml +5 -9
  24. data/test/fixtures/offer_search.yml +5 -9
  25. data/test/fixtures/offer_search_fail_member_key.yml +5 -9
  26. data/test/fixtures/redeem_offer_no_redeem_type.yml +8 -8
  27. data/test/fixtures/store_find.yml +5 -9
  28. data/test/fixtures/store_search.yml +5 -9
  29. data/test/fixtures/store_search_fail_member_key.yml +7 -11
  30. data/test/fixtures/subcategory_find.yml +5 -9
  31. data/test/fixtures/token_find.yml +14 -17
  32. data/test/fixtures/token_get_first_token.yml +106 -0
  33. data/test/fixtures/token_search.yml +16 -19
  34. data/test/fixtures/verify_filter.yml +5 -9
  35. data/test/fixtures/verify_token.yml +9 -13
  36. metadata +4 -2
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_filters
11
+ - token_without_limit
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,27 +31,23 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 19:54:10 GMT
34
+ - Wed, 16 Sep 2015 20:13:59 GMT
35
35
  Etag:
36
- - '"dc31789028a2cb115aeaeb41f2eebd52"'
36
+ - '"5992f26524404981212c22eaf981a568"'
37
37
  Server:
38
38
  - nginx/1.6.2
39
39
  X-Content-Type-Options:
40
40
  - nosniff
41
41
  X-Frame-Options:
42
42
  - SAMEORIGIN
43
- X-Ratelimit-Limit:
44
- - '1000'
45
- X-Ratelimit-Remaining:
46
- - '959'
47
43
  X-Request-Id:
48
- - 343f042d-c35b-446b-8f82-46c48cfc717c
44
+ - 56ef32f3-5361-4814-818c-b1ef54dee1f2
49
45
  X-Runtime:
50
- - '0.017972'
46
+ - '0.018595'
51
47
  X-Xss-Protection:
52
48
  - 1; mode=block
53
49
  Content-Length:
54
- - '1417'
50
+ - '2181'
55
51
  Connection:
56
52
  - keep-alive
57
53
  body:
@@ -59,10 +55,10 @@ http_interactions:
59
55
  string: |-
60
56
  {
61
57
  "info": {
62
- "total_results": 552,
58
+ "total_results": 546,
63
59
  "results_per_page": 1,
64
60
  "current_page": 1,
65
- "total_pages": 552
61
+ "total_pages": 546
66
62
  },
67
63
  "oauth_tokens": [
68
64
  {
@@ -83,17 +79,18 @@ http_interactions:
83
79
  "organization_id": 2000153,
84
80
  "organization_name": "BreakawaLoyalty",
85
81
  "organization_customer_identifier": "WEivv",
86
- "filter_id": null,
87
- "filter_name": null,
88
- "filter": null,
89
- "program_filter_id": null,
82
+ "filter_id": 35,
83
+ "filter_name": "Dining, Entertainment, Health/Beauty, Hotel, Services, Shopping",
84
+ "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"categories.category_parent_key\":[39,59,53,44,50,45]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"category_parent_key\":[39,59,53,44,50,45]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"store_categories.category_parent_key\":[39,59,53,44,50,45]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"location_categories.category_parent_key\":[39,59,53,44,50,45]}}]}]}",
85
+ "program_filter_id": 169,
90
86
  "domains": [
91
87
 
92
88
  ],
93
89
  "application_scopes": [
94
-
90
+ "api",
91
+ "docs"
95
92
  ],
96
- "indexed_at": "2015-09-16T17:50:06.034Z",
93
+ "indexed_at": "2015-09-16T20:12:03.020Z",
97
94
  "token_status": "valid",
98
95
  "links": {
99
96
  "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f"
@@ -105,5 +102,5 @@ http_interactions:
105
102
  }
106
103
  }
107
104
  http_version:
108
- recorded_at: Wed, 16 Sep 2015 19:54:10 GMT
105
+ recorded_at: Wed, 16 Sep 2015 20:13:59 GMT
109
106
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  ] } }'
13
13
  headers:
14
14
  Access-Token:
15
- - token_without_filters
15
+ - token_without_limit
16
16
  Content-Type:
17
17
  - application/json
18
18
  Accept:
@@ -35,7 +35,7 @@ http_interactions:
35
35
  Content-Type:
36
36
  - application/json
37
37
  Date:
38
- - Wed, 16 Sep 2015 19:54:10 GMT
38
+ - Wed, 16 Sep 2015 20:13:58 GMT
39
39
  Etag:
40
40
  - '"50ad65b96243debff98324e9ecb617e1"'
41
41
  Server:
@@ -44,14 +44,10 @@ http_interactions:
44
44
  - nosniff
45
45
  X-Frame-Options:
46
46
  - SAMEORIGIN
47
- X-Ratelimit-Limit:
48
- - '1000'
49
- X-Ratelimit-Remaining:
50
- - '958'
51
47
  X-Request-Id:
52
- - 4ebaf761-a497-4cf0-80b3-d1653192676d
48
+ - 919a4972-ca42-47ce-86fe-cb084755c478
53
49
  X-Runtime:
54
- - '0.088566'
50
+ - '0.085767'
55
51
  X-Xss-Protection:
56
52
  - 1; mode=block
57
53
  Content-Length:
@@ -288,5 +284,5 @@ http_interactions:
288
284
  }
289
285
  }
290
286
  http_version:
291
- recorded_at: Wed, 16 Sep 2015 19:54:10 GMT
287
+ recorded_at: Wed, 16 Sep 2015 20:13:58 GMT
292
288
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_filters
11
+ - token_without_limit
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -31,27 +31,23 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Date:
34
- - Wed, 16 Sep 2015 19:54:10 GMT
34
+ - Wed, 16 Sep 2015 20:13:59 GMT
35
35
  Etag:
36
- - '"90c204e1632c23c7317046214172edb5"'
36
+ - '"2fc05acea937ac2f91f371775a92a64f"'
37
37
  Server:
38
38
  - nginx/1.6.2
39
39
  X-Content-Type-Options:
40
40
  - nosniff
41
41
  X-Frame-Options:
42
42
  - SAMEORIGIN
43
- X-Ratelimit-Limit:
44
- - '1000'
45
- X-Ratelimit-Remaining:
46
- - '957'
47
43
  X-Request-Id:
48
- - b399abae-0e66-479d-89fc-fdb58cd4dc96
44
+ - 291d86b2-3d23-4532-a1ff-a66b64f384f3
49
45
  X-Runtime:
50
- - '0.009539'
46
+ - '0.011077'
51
47
  X-Xss-Protection:
52
48
  - 1; mode=block
53
49
  Content-Length:
54
- - '571'
50
+ - '569'
55
51
  Connection:
56
52
  - keep-alive
57
53
  body:
@@ -59,11 +55,11 @@ http_interactions:
59
55
  string: |-
60
56
  {
61
57
  "oauth_access_token": {
62
- "token": "token_without_filters",
58
+ "token": "token_without_limit",
63
59
  "domains": [
64
60
 
65
61
  ],
66
- "created_at": "2015-08-25T14:06:53.316-06:00",
62
+ "created_at": "2015-08-25T14:05:24.591-06:00",
67
63
  "revoked_at": null,
68
64
  "expires_in": null,
69
65
  "application_name": "RWS API - No Filters No Limit (pcid:200156)",
@@ -76,5 +72,5 @@ http_interactions:
76
72
  }
77
73
  }
78
74
  http_version:
79
- recorded_at: Wed, 16 Sep 2015 19:54:10 GMT
75
+ recorded_at: Wed, 16 Sep 2015 20:13:59 GMT
80
76
  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.9
4
+ version: 2.0.10
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-09-16 00:00:00.000000000 Z
13
+ date: 2015-09-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -284,6 +284,7 @@ files:
284
284
  - test/fixtures/store_search_fail_member_key.yml
285
285
  - test/fixtures/subcategory_find.yml
286
286
  - test/fixtures/token_find.yml
287
+ - test/fixtures/token_get_first_token.yml
287
288
  - test/fixtures/token_search.yml
288
289
  - test/fixtures/verify_filter.yml
289
290
  - test/fixtures/verify_token.yml
@@ -354,6 +355,7 @@ test_files:
354
355
  - test/fixtures/store_search_fail_member_key.yml
355
356
  - test/fixtures/subcategory_find.yml
356
357
  - test/fixtures/token_find.yml
358
+ - test/fixtures/token_get_first_token.yml
357
359
  - test/fixtures/token_search.yml
358
360
  - test/fixtures/verify_filter.yml
359
361
  - test/fixtures/verify_token.yml