namely 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +51 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +125 -0
- data/Rakefile +16 -0
- data/lib/namely.rb +114 -0
- data/lib/namely/authenticator.rb +164 -0
- data/lib/namely/country.rb +9 -0
- data/lib/namely/currency_type.rb +9 -0
- data/lib/namely/event.rb +9 -0
- data/lib/namely/exceptions.rb +13 -0
- data/lib/namely/field.rb +9 -0
- data/lib/namely/job_tier.rb +9 -0
- data/lib/namely/profile.rb +13 -0
- data/lib/namely/report.rb +9 -0
- data/lib/namely/resource_gateway.rb +81 -0
- data/lib/namely/restful_model.rb +150 -0
- data/lib/namely/version.rb +3 -0
- data/namely.gemspec +30 -0
- data/spec/fixtures/vcr_cassettes/country_head.yml +51 -0
- data/spec/fixtures/vcr_cassettes/country_head_missing.yml +50 -0
- data/spec/fixtures/vcr_cassettes/country_index.yml +121 -0
- data/spec/fixtures/vcr_cassettes/country_show.yml +68 -0
- data/spec/fixtures/vcr_cassettes/country_show_missing.yml +54 -0
- data/spec/fixtures/vcr_cassettes/currencytype_index.yml +64 -0
- data/spec/fixtures/vcr_cassettes/event_head.yml +51 -0
- data/spec/fixtures/vcr_cassettes/event_head_missing.yml +50 -0
- data/spec/fixtures/vcr_cassettes/event_index.yml +88 -0
- data/spec/fixtures/vcr_cassettes/event_show.yml +62 -0
- data/spec/fixtures/vcr_cassettes/event_show_missing.yml +54 -0
- data/spec/fixtures/vcr_cassettes/field_index.yml +207 -0
- data/spec/fixtures/vcr_cassettes/jobtier_index.yml +103 -0
- data/spec/fixtures/vcr_cassettes/profile_create.yml +85 -0
- data/spec/fixtures/vcr_cassettes/profile_create_failed.yml +54 -0
- data/spec/fixtures/vcr_cassettes/profile_head.yml +51 -0
- data/spec/fixtures/vcr_cassettes/profile_head_missing.yml +50 -0
- data/spec/fixtures/vcr_cassettes/profile_index.yml +979 -0
- data/spec/fixtures/vcr_cassettes/profile_show.yml +91 -0
- data/spec/fixtures/vcr_cassettes/profile_show_missing.yml +54 -0
- data/spec/fixtures/vcr_cassettes/profile_show_updated.yml +91 -0
- data/spec/fixtures/vcr_cassettes/profile_update.yml +95 -0
- data/spec/fixtures/vcr_cassettes/profile_update_revert.yml +95 -0
- data/spec/fixtures/vcr_cassettes/report_head.yml +51 -0
- data/spec/fixtures/vcr_cassettes/report_head_missing.yml +50 -0
- data/spec/fixtures/vcr_cassettes/report_show.yml +185 -0
- data/spec/fixtures/vcr_cassettes/report_show_missing.yml +54 -0
- data/spec/fixtures/vcr_cassettes/token.yml +57 -0
- data/spec/fixtures/vcr_cassettes/token_refresh.yml +57 -0
- data/spec/namely/authenticator_spec.rb +143 -0
- data/spec/namely/configuration_spec.rb +33 -0
- data/spec/namely/country_spec.rb +11 -0
- data/spec/namely/currency_type_spec.rb +5 -0
- data/spec/namely/event_spec.rb +11 -0
- data/spec/namely/field_spec.rb +5 -0
- data/spec/namely/job_tier_spec.rb +5 -0
- data/spec/namely/profile_spec.rb +25 -0
- data/spec/namely/report_spec.rb +8 -0
- data/spec/namely/resource_gateway_spec.rb +93 -0
- data/spec/shared_examples/a_model_with_a_create_action.rb +24 -0
- data/spec/shared_examples/a_model_with_a_show_action.rb +38 -0
- data/spec/shared_examples/a_model_with_an_index_action.rb +17 -0
- data/spec/shared_examples/a_model_with_an_update_action.rb +37 -0
- data/spec/spec_helper.rb +49 -0
- metadata +280 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/countries?access_token=<TEST_ACCESS_TOKEN>&limit=all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:36 GMT
|
29
|
+
Server:
|
30
|
+
- nginx
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
- max-age=31536000; includeSubDomains;
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Rack-Cache:
|
39
|
+
- miss
|
40
|
+
X-Request-Id:
|
41
|
+
- 26de93df-2dc4-4287-b249-08166d987cf8
|
42
|
+
X-Runtime:
|
43
|
+
- '0.033400'
|
44
|
+
Content-Length:
|
45
|
+
- '3021'
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA51b23LjNhL9FZZfMqly8gF5s26ULFHSiJS89tbWFkRiJIxJ
|
52
|
+
QgEJO3Iqj/sxed8/mB9bQHImhyBbhvbFY3t8Grfu06cb0O83qdRlrQSvbn75
|
53
|
+
5+83Irv55eZudHN7U7KC2++/7PasFFXNSvPLSm8z8SIqIct/18eD/YOlki+i
|
54
|
+
TPnNH7d/wWcAz7cGzbqhA2NWibT+Gzp4QuiOKwraMWoM0MIgU1YGMSskYSGu
|
55
|
+
WY3wAcDLTCpFjcyUqPYAXCBwJ3P/GU8aSC1yCuvO9TMCa6bS2qzWDxo2oGKn
|
56
|
+
WcDKLOgxtdWZ75JXYETtuLFT+q86QnDBSe9Y8Z35CYAPCNRbzwWvAaWNv7Gc
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
|
120
|
+
recorded_at: Tue, 04 Nov 2014 16:34:36 GMT
|
121
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/countries/US?access_token=<TEST_ACCESS_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:36 GMT
|
29
|
+
Server:
|
30
|
+
- nginx/1.6.2
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
- max-age=31536000; includeSubDomains;
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Rack-Cache:
|
39
|
+
- miss
|
40
|
+
X-Request-Id:
|
41
|
+
- 70197c57-c1a2-4a37-a6e2-47d5d48feef2
|
42
|
+
X-Runtime:
|
43
|
+
- '0.020128'
|
44
|
+
Content-Length:
|
45
|
+
- '637'
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA22V0W7iMBBFfyXKM+oH9A2RFlJIggiQ7a5WqyFxySiJjWyH
|
52
|
+
lq3672tWW/marpQHpDO5M557Y97jWo3SahYmvv/xHnMT38e7Mp7EkgZx/S3Z
|
53
|
+
iiYqLVlXMonNeGj4zIaV/GUvp2vJX+ZQz7JzKu9YA6rTpVed9mQ6ij8mn2wV
|
54
|
+
sAMNCDcAdUfSkAEKw04HobkmGZU0KFT4jgr8W0mAs6mHM+r5RWnJyAvgqlea
|
55
|
+
GgV0i1RKUVuuR+sLkpkvSNi4Vdc2Ui+RkxqHAzZKHqBS9PRKWnj6CCt6dFNw
|
56
|
+
A6/O4QxzofQRdec7gCMNnixSTxauH7NnKUim6hX00gRIQy1sI4Uh094FQjFY
|
57
|
+
leZAZcOENizBx+WNx8tnYELase4unq5g0pUaXe4C4QxwRsZQ3Y5GWAv6WYIl
|
58
|
+
+tKTbIA+IGUJpmSwwIzrlo8kgeZIXTaMsjhYgdgYNWrYf7b2NFfatkLLyA13
|
59
|
+
PVyUmuuIeIIy1Lo+pxPKQU4zJW2wonx20yuakVbOPqxJbmsS6oLz5LCnXBx0
|
60
|
+
+InnC6Sv0YKGk2kZI54/hSVPQhsBRudZyDPxxjWkL98jPxN+Iflz+O6z0p2n
|
61
|
+
BQxXtAyaBdxaRde7tOPVVMDVVGhxVOD+GnK3FlKaS3+m4GZZw9vrUWirok1w
|
62
|
+
oA3Ea9OqRvwz3leU4Fypxv86Vya3NbfObSGoW3ENqhHgy/Yb4jf8MndgSfBX
|
63
|
+
EbnAKx0Vo+0vLI9fE7uDQO4stZ7sYXF7dndZsLR9eks/tSfR7q68g0rosBd6
|
64
|
+
cKn3sIImFbkgyqNF9ypoU7Gp3V8ZI4aoVcLY6OugFSSuuqjBdYg/fn645w/t
|
65
|
+
VlGudQcAAA==
|
66
|
+
http_version:
|
67
|
+
recorded_at: Tue, 04 Nov 2014 16:34:36 GMT
|
68
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/countries/this-is-almost-certainly-not-the-id-of-any-model?access_token=<TEST_ACCESS_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-cache
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:36 GMT
|
29
|
+
Server:
|
30
|
+
- nginx/1.6.2
|
31
|
+
Status:
|
32
|
+
- 404 Not Found
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
X-Rack-Cache:
|
38
|
+
- miss
|
39
|
+
X-Request-Id:
|
40
|
+
- adb44be3-d3ae-42e0-bf2d-792c57103543
|
41
|
+
X-Runtime:
|
42
|
+
- '0.027114'
|
43
|
+
Content-Length:
|
44
|
+
- '63'
|
45
|
+
Connection:
|
46
|
+
- keep-alive
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUnLOL80rKapUyMsvUUgDslOUdJRSi4ry
|
51
|
+
i4qVrPJKc3JqAYc028QtAAAA
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 04 Nov 2014 16:34:36 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/currency_types?access_token=<TEST_ACCESS_TOKEN>&limit=all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:36 GMT
|
29
|
+
Server:
|
30
|
+
- nginx/1.6.2
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
- max-age=31536000; includeSubDomains;
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Rack-Cache:
|
39
|
+
- miss
|
40
|
+
X-Request-Id:
|
41
|
+
- 3e722eb4-b612-434f-a782-96a1ee4d78e0
|
42
|
+
X-Runtime:
|
43
|
+
- '0.032607'
|
44
|
+
Content-Length:
|
45
|
+
- '469'
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA52Uz2rbQBDGX2URPeYJcpMlOXJUjPFGhKSUMpEGa7E0K2Yl
|
52
|
+
jAm55FVCDy299NaeCn2SkifJuiVohO2U5CJYdn7z5/tGexsUPTNSsf3UbVt0
|
53
|
+
wemH28A4G5wGuY6Dk4CgQX8IG2RTAKnY1jWwv3Db5sbW/updcHfyzEShYCIg
|
54
|
+
KM1BJpLQ2WQxQAvbU6l0h1wbWknm94Ngknw5MEnPVkY+3n8TobO5CJ3R346W
|
55
|
+
fYs4Rn4K5HxxNSBXSKM2PovAMJca9a5jqHf5y72JQzlxmAgsJ9NhqUKGG5U0
|
56
|
+
hqFDp0rDFTQyQZyKBPpMJNBeKGgt44GyWpbVSSaoDZbGVWrNlkAia5adLrUY
|
57
|
+
kFdInSFUflNGissqaSZ6Sy2tVLb77PeWZhJbpHILKlObtj1U6vH++zGnzqEF
|
58
|
+
QofqLZbtL+krLYvfZNl+2f9blr1oWZwJJAZ6JvAoEc2FiFFl/mnYw3ER03wq
|
59
|
+
PO79MLzTcGrZUCepaSf/xPdimWaOAWuj5rhRuqiwWGM99vmrQC/SyYBeVGDU
|
60
|
+
BKpRpT8/fon4+bVQe1fiGqEG/7K8/H5ly8sBy7w/fqhLS+O+vkjpUiGE3hjn
|
61
|
+
1JSBipEGXuuPd0+nZk3wagUAAA==
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 04 Nov 2014 16:34:37 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/events/e5573698-3934-4abf-99cf-577b526d4789?access_token=<TEST_ACCESS_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:37 GMT
|
29
|
+
Server:
|
30
|
+
- nginx/1.6.2
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
- max-age=31536000; includeSubDomains;
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Rack-Cache:
|
39
|
+
- miss
|
40
|
+
X-Request-Id:
|
41
|
+
- 179144f2-25c1-4764-ab0e-ad9e1c778f9a
|
42
|
+
X-Runtime:
|
43
|
+
- '0.051997'
|
44
|
+
Connection:
|
45
|
+
- keep-alive
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: ''
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 04 Nov 2014 16:34:37 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/events/this-is-almost-certainly-not-the-id-of-any-model?access_token=<TEST_ACCESS_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-cache
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:37 GMT
|
29
|
+
Server:
|
30
|
+
- nginx
|
31
|
+
Status:
|
32
|
+
- 404 Not Found
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
X-Rack-Cache:
|
38
|
+
- miss
|
39
|
+
X-Request-Id:
|
40
|
+
- a11317bb-9a5d-4a25-8169-a65ec3d3756a
|
41
|
+
X-Runtime:
|
42
|
+
- '0.016797'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: ''
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 04 Nov 2014 16:34:37 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<TEST_SUBDOMAIN>.namely.com/api/v1/events?access_token=<TEST_ACCESS_TOKEN>&limit=all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
Content-Encoding:
|
24
|
+
- gzip
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Tue, 04 Nov 2014 16:34:37 GMT
|
29
|
+
Server:
|
30
|
+
- nginx
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
- max-age=31536000; includeSubDomains;
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Rack-Cache:
|
39
|
+
- miss
|
40
|
+
X-Request-Id:
|
41
|
+
- 5633b619-a52c-44be-9128-c136d0b907a1
|
42
|
+
X-Runtime:
|
43
|
+
- '0.090776'
|
44
|
+
Content-Length:
|
45
|
+
- '1569'
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA9VZ224bNxD9FUEvfQkT3i9+a5GiQIqgRa9Ag8IYkkNHjbQr
|
52
|
+
rNZOhcD/3llbvlQWmmkaAeqLIVM8u2fODmfOrD7M8Qq7cTM/e/Nhvqjzs3lI
|
53
|
+
0EzNWmDITtgERYBvUuhkfTAQolEwfzZ/O2Cj3S9u4S+YqHG7RkINWAh1DsOw
|
54
|
+
uIIlrZcBYcR6DuP8TFnllLJeS1rvu5F2zs+6y+WSbjqulud7a1uEYUNAWl+t
|
55
|
+
odverV9ucFpa3UY3DpdIl4Pubm1+1mC52a1V3IxDv73btlx07wjzYb4e+rZY
|
56
|
+
TowlKp+VNqKUaoRFK0VCqALA+mghqabbFMf9Dd/8/mx+i53oXF8/28mr0NJm
|
57
|
+
b0VMzgsbQiShihLgdFLVqYogn8rLRO3kha5bXOGwgWF7QFuZlLfxE7VVn1vY
|
58
|
+
6MAldCBUaEVYMEaAbE5AU7pVDCkGyxI262i9MVGUqKKwORmRPETRMEOC1HTI
|
59
|
+
B/KWifofCiu1DhEUCFsa0h8ZRI6AIitQIXqbnS8sYaFlk401QnmdhVUYKfWd
|
60
|
+
FFLZCilICZifCstE7YTNi2F8W+GAqjbqGNUplYLgDMgIXvhkqrAeSVhDyeOq
|
61
|
+
A9ukMyUrlrBap2p9NiLLRDUzRKqZoUiRm9HV5mKcck+FZaKYlZbw2kl3QvI2
|
62
|
+
4mNj8yIkQwUhUyeJaKswMsToTYktBZa86FwwPkVhkrFUWXITKZUmXKAWpX2l
|
63
|
+
0NNTeZkotrw+RnNK2VsaeBO0E9JqKWw0TtD5oipRXXJI9TYDr966EsFKH0Q0
|
64
|
+
ieAug8heJqFd0RkNOBMP1Fsmii+vT0qfkLxQJaYQlIgVpuzVK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