access 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access/api.rb +1 -1
- data/lib/access/version.rb +1 -1
- data/test/access/token_test.rb +1 -1
- data/test/fixtures/autocomplete_search.yml +25 -29
- data/test/fixtures/autocomplete_search_categories.yml +5 -9
- data/test/fixtures/autocomplete_search_locations.yml +5 -9
- data/test/fixtures/autocomplete_search_offers.yml +5 -9
- data/test/fixtures/autocomplete_search_stores.yml +12 -16
- data/test/fixtures/category_find.yml +5 -9
- data/test/fixtures/category_search.yml +10 -18
- data/test/fixtures/category_search_fail_member_key.yml +5 -9
- data/test/fixtures/filter_find.yml +7 -11
- data/test/fixtures/filter_search.yml +5 -9
- data/test/fixtures/location_find.yml +5 -9
- data/test/fixtures/location_search.yml +5 -9
- data/test/fixtures/location_search_fail_member_key.yml +5 -9
- data/test/fixtures/national_stores.yml +5 -9
- data/test/fixtures/oauth_application_find.yml +5 -9
- data/test/fixtures/oauth_application_search.yml +5 -9
- data/test/fixtures/oauth_application_token_find.yml +5 -9
- data/test/fixtures/oauth_application_token_search.yml +5 -9
- data/test/fixtures/offer_find.yml +5 -9
- data/test/fixtures/offer_search.yml +5 -9
- data/test/fixtures/offer_search_fail_member_key.yml +5 -9
- data/test/fixtures/redeem_offer_no_redeem_type.yml +8 -8
- data/test/fixtures/store_find.yml +5 -9
- data/test/fixtures/store_search.yml +5 -9
- data/test/fixtures/store_search_fail_member_key.yml +7 -11
- data/test/fixtures/subcategory_find.yml +5 -9
- data/test/fixtures/token_find.yml +14 -17
- data/test/fixtures/token_get_first_token.yml +106 -0
- data/test/fixtures/token_search.yml +16 -19
- data/test/fixtures/verify_filter.yml +5 -9
- data/test/fixtures/verify_token.yml +9 -13
- metadata +4 -2
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
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
|
34
|
+
- Wed, 16 Sep 2015 20:13:59 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
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
|
-
-
|
44
|
+
- 56ef32f3-5361-4814-818c-b1ef54dee1f2
|
49
45
|
X-Runtime:
|
50
|
-
- '0.
|
46
|
+
- '0.018595'
|
51
47
|
X-Xss-Protection:
|
52
48
|
- 1; mode=block
|
53
49
|
Content-Length:
|
54
|
-
- '
|
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":
|
58
|
+
"total_results": 546,
|
63
59
|
"results_per_page": 1,
|
64
60
|
"current_page": 1,
|
65
|
-
"total_pages":
|
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":
|
87
|
-
"filter_name":
|
88
|
-
"filter":
|
89
|
-
"program_filter_id":
|
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-
|
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
|
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
|
-
-
|
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
|
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
|
-
-
|
48
|
+
- 919a4972-ca42-47ce-86fe-cb084755c478
|
53
49
|
X-Runtime:
|
54
|
-
- '0.
|
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
|
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
|
-
-
|
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
|
34
|
+
- Wed, 16 Sep 2015 20:13:59 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
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
|
-
-
|
44
|
+
- 291d86b2-3d23-4532-a1ff-a66b64f384f3
|
49
45
|
X-Runtime:
|
50
|
-
- '0.
|
46
|
+
- '0.011077'
|
51
47
|
X-Xss-Protection:
|
52
48
|
- 1; mode=block
|
53
49
|
Content-Length:
|
54
|
-
- '
|
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": "
|
58
|
+
"token": "token_without_limit",
|
63
59
|
"domains": [
|
64
60
|
|
65
61
|
],
|
66
|
-
"created_at": "2015-08-25T14:
|
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
|
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.
|
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-
|
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
|