gratitude 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +4 -0
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +5 -4
- data/Guardfile +10 -8
- data/README.md +37 -37
- data/gratitude.gemspec +2 -2
- data/lib/gratitude/chart.rb +6 -5
- data/lib/gratitude/connection.rb +1 -1
- data/lib/gratitude/error.rb +2 -2
- data/lib/gratitude/payday.rb +7 -6
- data/lib/gratitude/profile.rb +36 -75
- data/lib/gratitude/statistics.rb +45 -89
- data/lib/gratitude/tips.rb +16 -24
- data/lib/gratitude/user_chart.rb +8 -4
- data/lib/gratitude/version.rb +1 -1
- data/spec/cassettes/charts.json +11 -11
- data/spec/cassettes/current_tips.json +23 -25
- data/spec/cassettes/current_tips_not_authenticated.json +14 -17
- data/spec/cassettes/paydays.json +11 -11
- data/spec/cassettes/profiles.json +1 -265
- data/spec/cassettes/prune_tips_not_authenticated.json +15 -18
- data/spec/cassettes/statistics.json +11 -11
- data/spec/cassettes/update_and_prune.json +33 -36
- data/spec/cassettes/update_and_prune_bad_request.json +12 -13
- data/spec/cassettes/update_bad_request.json +13 -14
- data/spec/cassettes/update_tips.json +13 -14
- data/spec/cassettes/update_tips_not_authenticated.json +15 -18
- data/spec/cassettes/user_chart_not_found.json +10 -10
- data/spec/cassettes/user_charts.json +22 -22
- data/spec/gratitude/chart_spec.rb +3 -10
- data/spec/gratitude/connection_spec.rb +2 -2
- data/spec/gratitude/payday_spec.rb +3 -10
- data/spec/gratitude/profile_spec.rb +47 -47
- data/spec/gratitude/statistics_spec.rb +27 -23
- data/spec/gratitude/tips_spec.rb +18 -18
- data/spec/gratitude/user_chart_spec.rb +17 -21
- metadata +4 -4
@@ -3,14 +3,14 @@
|
|
3
3
|
{
|
4
4
|
"request": {
|
5
5
|
"method": "post",
|
6
|
-
"uri": "https://bad_key:@
|
6
|
+
"uri": "https://bad_key:@gratipay.com/gratitude_test/tips.json",
|
7
7
|
"body": {
|
8
8
|
"encoding": "UTF-8",
|
9
|
-
"string": "[{\"amount\":\"1.00\",\"platform\":\"
|
9
|
+
"string": "[{\"amount\":\"1.00\",\"platform\":\"gratipay\",\"username\":\"whit537\"},{\"amount\":\"0.25\",\"platform\":\"gratipay\",\"username\":\"JohnKellyFerguson\"},{\"amount\":\"1.00\",\"platform\":\"gratipay\",\"username\":\"Gratipay\"}]"
|
10
10
|
},
|
11
11
|
"headers": {
|
12
12
|
"User-Agent": [
|
13
|
-
"Faraday v0.
|
13
|
+
"Faraday v0.9.0"
|
14
14
|
],
|
15
15
|
"Accept-Encoding": [
|
16
16
|
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
@@ -22,8 +22,8 @@
|
|
22
22
|
},
|
23
23
|
"response": {
|
24
24
|
"status": {
|
25
|
-
"code":
|
26
|
-
"message": "
|
25
|
+
"code": 403,
|
26
|
+
"message": "Forbidden"
|
27
27
|
},
|
28
28
|
"headers": {
|
29
29
|
"Content-Language": [
|
@@ -33,19 +33,16 @@
|
|
33
33
|
"application/json"
|
34
34
|
],
|
35
35
|
"Date": [
|
36
|
-
"
|
36
|
+
"Mon, 13 Oct 2014 20:40:40 GMT"
|
37
37
|
],
|
38
38
|
"Expires": [
|
39
39
|
"Thu, 01 Jan 1970 00:00:00 GMT"
|
40
40
|
],
|
41
|
-
"Location": [
|
42
|
-
"/gratitude_test/"
|
43
|
-
],
|
44
41
|
"Server": [
|
45
|
-
"
|
42
|
+
"gunicorn/18.0"
|
46
43
|
],
|
47
44
|
"Set-Cookie": [
|
48
|
-
"csrf_token=
|
45
|
+
"csrf_token=mwwyph01buOWGh1RfNle2BYJTt9sIUz2; expires=Mon, 20 Oct 2014 20:40:40 GMT; Path=/; secure"
|
49
46
|
],
|
50
47
|
"Vary": [
|
51
48
|
"Cookie"
|
@@ -53,11 +50,11 @@
|
|
53
50
|
"X-Frame-Options": [
|
54
51
|
"SAMEORIGIN"
|
55
52
|
],
|
56
|
-
"X-
|
57
|
-
"
|
53
|
+
"X-Gratipay-Version": [
|
54
|
+
"17.1.3"
|
58
55
|
],
|
59
56
|
"Content-Length": [
|
60
|
-
"
|
57
|
+
"95"
|
61
58
|
],
|
62
59
|
"Connection": [
|
63
60
|
"keep-alive"
|
@@ -65,12 +62,12 @@
|
|
65
62
|
},
|
66
63
|
"body": {
|
67
64
|
"encoding": "UTF-8",
|
68
|
-
"string": "
|
65
|
+
"string": "{\n \"error_code\": 403,\n \"error_message_long\": \"\",\n \"error_message_short\": \"Forbidden\"\n}"
|
69
66
|
},
|
70
67
|
"http_version": null
|
71
68
|
},
|
72
|
-
"recorded_at": "
|
69
|
+
"recorded_at": "Mon, 13 Oct 2014 20:40:40 GMT"
|
73
70
|
}
|
74
71
|
],
|
75
|
-
"recorded_with": "VCR 2.9.
|
76
|
-
}
|
72
|
+
"recorded_with": "VCR 2.9.2"
|
73
|
+
}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
{
|
4
4
|
"request": {
|
5
5
|
"method": "get",
|
6
|
-
"uri": "https://
|
6
|
+
"uri": "https://gratipay.com/non_existing_user/charts.json",
|
7
7
|
"body": {
|
8
8
|
"encoding": "US-ASCII",
|
9
9
|
"string": ""
|
10
10
|
},
|
11
11
|
"headers": {
|
12
12
|
"User-Agent": [
|
13
|
-
"Faraday v0.
|
13
|
+
"Faraday v0.9.0"
|
14
14
|
],
|
15
15
|
"Accept-Encoding": [
|
16
16
|
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
@@ -36,16 +36,16 @@
|
|
36
36
|
"application/json"
|
37
37
|
],
|
38
38
|
"Date": [
|
39
|
-
"
|
39
|
+
"Mon, 13 Oct 2014 21:02:25 GMT"
|
40
40
|
],
|
41
41
|
"Expires": [
|
42
42
|
"Thu, 01 Jan 1970 00:00:00 GMT"
|
43
43
|
],
|
44
44
|
"Server": [
|
45
|
-
"
|
45
|
+
"gunicorn/18.0"
|
46
46
|
],
|
47
47
|
"Set-Cookie": [
|
48
|
-
"csrf_token=
|
48
|
+
"csrf_token=PHbq3j7rnfbLdRQmFfSuloJPGSNomXob; expires=Mon, 20 Oct 2014 21:02:25 GMT; Path=/; secure"
|
49
49
|
],
|
50
50
|
"Vary": [
|
51
51
|
"Cookie"
|
@@ -53,8 +53,8 @@
|
|
53
53
|
"X-Frame-Options": [
|
54
54
|
"SAMEORIGIN"
|
55
55
|
],
|
56
|
-
"X-
|
57
|
-
"
|
56
|
+
"X-Gratipay-Version": [
|
57
|
+
"17.1.3"
|
58
58
|
],
|
59
59
|
"Content-Length": [
|
60
60
|
"2"
|
@@ -69,8 +69,8 @@
|
|
69
69
|
},
|
70
70
|
"http_version": null
|
71
71
|
},
|
72
|
-
"recorded_at": "
|
72
|
+
"recorded_at": "Mon, 13 Oct 2014 21:02:25 GMT"
|
73
73
|
}
|
74
74
|
],
|
75
|
-
"recorded_with": "VCR 2.9.
|
76
|
-
}
|
75
|
+
"recorded_with": "VCR 2.9.2"
|
76
|
+
}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
{
|
4
4
|
"request": {
|
5
5
|
"method": "get",
|
6
|
-
"uri": "https://
|
6
|
+
"uri": "https://gratipay.com/Gratipay/charts.json",
|
7
7
|
"body": {
|
8
8
|
"encoding": "US-ASCII",
|
9
9
|
"string": ""
|
10
10
|
},
|
11
11
|
"headers": {
|
12
12
|
"User-Agent": [
|
13
|
-
"Faraday v0.
|
13
|
+
"Faraday v0.9.0"
|
14
14
|
],
|
15
15
|
"Accept-Encoding": [
|
16
16
|
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
@@ -36,16 +36,16 @@
|
|
36
36
|
"application/json"
|
37
37
|
],
|
38
38
|
"Date": [
|
39
|
-
"
|
39
|
+
"Mon, 13 Oct 2014 21:02:23 GMT"
|
40
40
|
],
|
41
41
|
"Expires": [
|
42
42
|
"Thu, 01 Jan 1970 00:00:00 GMT"
|
43
43
|
],
|
44
44
|
"Server": [
|
45
|
-
"
|
45
|
+
"gunicorn/18.0"
|
46
46
|
],
|
47
47
|
"Set-Cookie": [
|
48
|
-
"csrf_token=
|
48
|
+
"csrf_token=to3ckn3wlyquDRrueunDoH1sJuNjViIK; expires=Mon, 20 Oct 2014 21:02:23 GMT; Path=/; secure"
|
49
49
|
],
|
50
50
|
"Vary": [
|
51
51
|
"Cookie"
|
@@ -53,8 +53,8 @@
|
|
53
53
|
"X-Frame-Options": [
|
54
54
|
"SAMEORIGIN"
|
55
55
|
],
|
56
|
-
"X-
|
57
|
-
"
|
56
|
+
"X-Gratipay-Version": [
|
57
|
+
"17.1.3"
|
58
58
|
],
|
59
59
|
"Transfer-Encoding": [
|
60
60
|
"chunked"
|
@@ -65,23 +65,23 @@
|
|
65
65
|
},
|
66
66
|
"body": {
|
67
67
|
"encoding": "UTF-8",
|
68
|
-
"string": "[\n {\n \"date\": \"2014-05-15\",\n \"npatrons\": 141,\n \"receipts\": 379.59\n },\n {\n \"date\": \"2014-05-08\",\n \"npatrons\": 138,\n \"receipts\": 374.49\n },\n {\n \"date\": \"2014-05-01\",\n \"npatrons\": 138,\n \"receipts\": 374.69\n },\n {\n \"date\": \"2014-04-24\",\n \"npatrons\": 138,\n \"receipts\": 377.29\n },\n {\n \"date\": \"2014-04-17\",\n \"npatrons\": 135,\n \"receipts\": 364.04\n },\n {\n \"date\": \"2014-04-10\",\n \"npatrons\": 138,\n \"receipts\": 392.64\n },\n {\n \"date\": \"2014-04-03\",\n \"npatrons\": 138,\n \"receipts\": 412.69\n },\n {\n \"date\": \"2014-03-27\",\n \"npatrons\": 137,\n \"receipts\": 416.94\n },\n {\n \"date\": \"2014-03-20\",\n \"npatrons\": 137,\n \"receipts\": 422.59\n },\n {\n \"date\": \"2014-03-13\",\n \"npatrons\": 138,\n \"receipts\": 391.71\n },\n {\n \"date\": \"2014-03-06\",\n \"npatrons\": 134,\n \"receipts\": 373.00\n },\n {\n \"date\": \"2014-02-27\",\n \"npatrons\": 134,\n \"receipts\": 345.76\n },\n {\n \"date\": \"2014-02-20\",\n \"npatrons\": 130,\n \"receipts\": 342.50\n },\n {\n \"date\": \"2014-02-13\",\n \"npatrons\": 130,\n \"receipts\": 359.25\n },\n {\n \"date\": \"2014-02-06\",\n \"npatrons\": 125,\n \"receipts\": 325.95\n },\n {\n \"date\": \"2014-01-30\",\n \"npatrons\": 125,\n \"receipts\": 315.20\n },\n {\n \"date\": \"2014-01-23\",\n \"npatrons\": 128,\n \"receipts\": 316.81\n },\n {\n \"date\": \"2014-01-16\",\n \"npatrons\": 126,\n \"receipts\": 285.41\n },\n {\n \"date\": \"2014-01-09\",\n \"npatrons\": 118,\n \"receipts\": 256.23\n },\n {\n \"date\": \"2014-01-02\",\n \"npatrons\": 111,\n \"receipts\": 230.75\n },\n {\n \"date\": \"2013-12-26\",\n \"npatrons\": 107,\n \"receipts\": 258.25\n },\n {\n \"date\": \"2013-12-19\",\n \"npatrons\": 108,\n \"receipts\": 258.00\n },\n {\n \"date\": \"2013-12-12\",\n \"npatrons\": 107,\n \"receipts\": 254.02\n },\n {\n \"date\": \"2013-12-05\",\n \"npatrons\": 106,\n \"receipts\": 247.82\n },\n {\n \"date\": \"2013-11-28\",\n \"npatrons\": 102,\n \"receipts\": 226.57\n },\n {\n \"date\": \"2013-11-21\",\n \"npatrons\": 104,\n \"receipts\": 246.82\n },\n {\n \"date\": \"2013-11-14\",\n \"npatrons\": 100,\n \"receipts\": 245.89\n },\n {\n \"date\": \"2013-11-07\",\n \"npatrons\": 101,\n \"receipts\": 239.75\n },\n {\n \"date\": \"2013-10-31\",\n \"npatrons\": 99,\n \"receipts\": 191.25\n },\n {\n \"date\": \"2013-10-24\",\n \"npatrons\": 96,\n \"receipts\": 203.48\n },\n {\n \"date\": \"2013-10-17\",\n \"npatrons\": 91,\n \"receipts\": 222.48\n },\n {\n \"date\": \"2013-10-10\",\n \"npatrons\": 92,\n \"receipts\": 224.23\n },\n {\n \"date\": \"2013-10-03\",\n \"npatrons\": 91,\n \"receipts\": 220.73\n },\n {\n \"date\": \"2013-09-26\",\n \"npatrons\": 85,\n \"receipts\": 217.98\n },\n {\n \"date\": \"2013-09-19\",\n \"npatrons\": 84,\n \"receipts\": 211.48\n },\n {\n \"date\": \"2013-09-12\",\n \"npatrons\": 81,\n \"receipts\": 206.88\n },\n {\n \"date\": \"2013-09-05\",\n \"npatrons\": 83,\n \"receipts\": 213.63\n },\n {\n \"date\": \"2013-08-29\",\n \"npatrons\": 81,\n \"receipts\": 222.67\n },\n {\n \"date\": \"2013-08-22\",\n \"npatrons\": 75,\n \"receipts\": 213.81\n },\n {\n \"date\": \"2013-08-15\",\n \"npatrons\": 72,\n \"receipts\": 210.81\n },\n {\n \"date\": \"2013-08-08\",\n \"npatrons\": 66,\n \"receipts\": 110.05\n },\n {\n \"date\": \"2013-08-01\",\n \"npatrons\": 63,\n \"receipts\": 113.35\n },\n {\n \"date\": \"2013-07-25\",\n \"npatrons\": 60,\n \"receipts\": 112.36\n },\n {\n \"date\": \"2013-07-18\",\n \"npatrons\": 53,\n \"receipts\": 118.75\n },\n {\n \"date\": \"2013-07-11\",\n \"npatrons\": 44,\n \"receipts\": 109.50\n },\n {\n \"date\": \"2013-07-04\",\n \"npatrons\": 38,\n \"receipts\": 121.25\n },\n {\n \"date\": \"2013-06-27\",\n \"npatrons\": 33,\n \"receipts\": 114.50\n },\n {\n \"date\": \"2013-06-20\",\n \"npatrons\": 31,\n \"receipts\": 113.25\n },\n {\n \"date\": \"2013-06-13\",\n \"npatrons\": 25,\n \"receipts\": 73.75\n },\n {\n \"date\": \"2013-06-06\",\n \"npatrons\": 22,\n \"receipts\": 48.50\n },\n {\n \"date\": \"2013-05-30\",\n \"npatrons\": 18,\n \"receipts\": 43.75\n },\n {\n \"date\": \"2013-05-23\",\n \"npatrons\": 18,\n \"receipts\": 43.75\n },\n {\n \"date\": \"2013-05-16\",\n \"npatrons\": 16,\n \"receipts\": 39.75\n },\n {\n \"date\": \"2013-05-09\",\n \"npatrons\": 13,\n \"receipts\": 15.25\n },\n {\n \"date\": \"2013-05-02\",\n \"npatrons\": 11,\n \"receipts\": 12.00\n },\n {\n \"date\": \"2013-04-25\",\n \"npatrons\": 11,\n \"receipts\": 12.00\n },\n {\n \"date\": \"2013-04-18\",\n \"npatrons\": 9,\n \"receipts\": 10.75,\n \"ts_start\": \"2013-04-18T14:11:24.158947+00:00\"\n },\n {\n \"date\": \"2013-04-11\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-04-11T11:47:12.931720+00:00\"\n },\n {\n \"date\": \"2013-04-04\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-04-04T11:39:18.681291+00:00\"\n },\n {\n \"date\": \"2013-03-28\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-28T13:05:23.740132+00:00\"\n },\n {\n \"date\": \"2013-03-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-22T12:11:45.041410+00:00\"\n },\n {\n \"date\": \"2013-03-14\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-14T19:44:55.774744+00:00\"\n },\n {\n \"date\": \"2013-03-07\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-07T13:00:08.405623+00:00\"\n },\n {\n \"date\": \"2013-02-28\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-28T17:11:06.449708+00:00\"\n },\n {\n \"date\": \"2013-02-21\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-21T17:08:55.242202+00:00\"\n },\n {\n \"date\": \"2013-02-14\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-14T13:38:08.967383+00:00\"\n },\n {\n \"date\": \"2013-02-07\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-07T12:00:20.239147+00:00\"\n },\n {\n \"date\": \"2013-01-31\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-31T14:21:29.964045+00:00\"\n },\n {\n \"date\": \"2013-01-24\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-24T14:15:23.073011+00:00\"\n },\n {\n \"date\": \"2013-01-17\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-17T14:05:01.620168+00:00\"\n },\n {\n \"date\": \"2013-01-10\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-10T12:32:05.299853+00:00\"\n },\n {\n \"date\": \"2013-01-03\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-03T13:41:18.062207+00:00\"\n },\n {\n \"date\": \"2012-12-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-27T12:32:21.391256+00:00\"\n },\n {\n \"date\": \"2012-12-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-20T12:51:36.881051+00:00\"\n },\n {\n \"date\": \"2012-12-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-13T13:09:06.330355+00:00\"\n },\n {\n \"date\": \"2012-12-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-06T13:27:27.158125+00:00\"\n },\n {\n \"date\": \"2012-11-29\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-29T12:45:18.180298+00:00\"\n },\n {\n \"date\": \"2012-11-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-22T15:37:59.390225+00:00\"\n },\n {\n \"date\": \"2012-11-15\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-15T14:37:56.650669+00:00\"\n },\n {\n \"date\": \"2012-11-08\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-08T20:47:52.767141+00:00\"\n },\n {\n \"date\": \"2012-11-01\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-01T23:07:31.044081+00:00\"\n },\n {\n \"date\": \"2012-10-25\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-25T12:02:52.010809+00:00\"\n },\n {\n \"date\": \"2012-10-18\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-18T13:45:51.045152+00:00\"\n },\n {\n \"date\": \"2012-10-11\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-11T16:00:55.171435+00:00\"\n },\n {\n \"date\": \"2012-10-04\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-04T13:09:59.575767+00:00\"\n },\n {\n \"date\": \"2012-09-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-27T13:59:13.358022+00:00\"\n },\n {\n \"date\": \"2012-09-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-20T12:42:03.698033+00:00\"\n },\n {\n \"date\": \"2012-09-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-13T06:38:51.300291+00:00\"\n },\n {\n \"date\": \"2012-09-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-06T22:29:53.060895+00:00\"\n },\n {\n \"date\": \"2012-08-31\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-31T12:53:04.080298+00:00\"\n },\n {\n \"date\": \"2012-08-24\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-24T13:25:40.605212+00:00\"\n },\n {\n \"date\": \"2012-08-17\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-17T18:39:59.835695+00:00\"\n },\n {\n \"date\": \"2012-08-10\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-10T19:05:05.938610+00:00\"\n },\n {\n \"date\": \"2012-08-03\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-03T14:57:42.935184+00:00\"\n },\n {\n \"date\": \"2012-07-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-27T20:51:21.754544+00:00\"\n },\n {\n \"date\": \"2012-07-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-20T19:28:19.952586+00:00\"\n },\n {\n \"date\": \"2012-07-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-13T17:49:02.299015+00:00\"\n },\n {\n \"date\": \"2012-07-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-06T18:37:13.603400+00:00\"\n },\n {\n \"date\": \"2012-06-29\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-29T17:05:03.867698+00:00\"\n },\n {\n \"date\": \"2012-06-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-22T15:30:42.882306+00:00\"\n },\n {\n \"date\": \"2012-06-15\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-15T11:09:54.298416+00:00\"\n },\n {\n \"date\": \"2012-06-08\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-08T12:02:45.182409+00:00\"\n }\n]"
|
68
|
+
"string": "[\n {\n \"date\": \"2014-10-09\",\n \"npatrons\": 367,\n \"receipts\": 566.74\n },\n {\n \"date\": \"2014-10-02\",\n \"npatrons\": 351,\n \"receipts\": 579.93\n },\n {\n \"date\": \"2014-09-25\",\n \"npatrons\": 334,\n \"receipts\": 571.51\n },\n {\n \"date\": \"2014-09-18\",\n \"npatrons\": 313,\n \"receipts\": 540.01\n },\n {\n \"date\": \"2014-09-11\",\n \"npatrons\": 297,\n \"receipts\": 545.61\n },\n {\n \"date\": \"2014-09-04\",\n \"npatrons\": 274,\n \"receipts\": 541.07\n },\n {\n \"date\": \"2014-08-28\",\n \"npatrons\": 240,\n \"receipts\": 507.48\n },\n {\n \"date\": \"2014-08-21\",\n \"npatrons\": 208,\n \"receipts\": 520.16\n },\n {\n \"date\": \"2014-08-14\",\n \"npatrons\": 152,\n \"receipts\": 471.72\n },\n {\n \"date\": \"2014-08-07\",\n \"npatrons\": 146,\n \"receipts\": 475.92\n },\n {\n \"date\": \"2014-07-31\",\n \"npatrons\": 150,\n \"receipts\": 496.37\n },\n {\n \"date\": \"2014-07-24\",\n \"npatrons\": 147,\n \"receipts\": 480.87\n },\n {\n \"date\": \"2014-07-17\",\n \"npatrons\": 148,\n \"receipts\": 457.12\n },\n {\n \"date\": \"2014-07-10\",\n \"npatrons\": 150,\n \"receipts\": 453.07\n },\n {\n \"date\": \"2014-07-03\",\n \"npatrons\": 153,\n \"receipts\": 430.41\n },\n {\n \"date\": \"2014-06-26\",\n \"npatrons\": 152,\n \"receipts\": 394.49\n },\n {\n \"date\": \"2014-06-19\",\n \"npatrons\": 158,\n \"receipts\": 414.15\n },\n {\n \"date\": \"2014-06-12\",\n \"npatrons\": 156,\n \"receipts\": 397.64\n },\n {\n \"date\": \"2014-06-05\",\n \"npatrons\": 141,\n \"receipts\": 257.24\n },\n {\n \"date\": \"2014-05-29\",\n \"npatrons\": 136,\n \"receipts\": 399.84\n },\n {\n \"date\": \"2014-05-22\",\n \"npatrons\": 139,\n \"receipts\": 405.34\n },\n {\n \"date\": \"2014-05-15\",\n \"npatrons\": 141,\n \"receipts\": 379.59\n },\n {\n \"date\": \"2014-05-08\",\n \"npatrons\": 138,\n \"receipts\": 374.49\n },\n {\n \"date\": \"2014-05-01\",\n \"npatrons\": 138,\n \"receipts\": 374.69\n },\n {\n \"date\": \"2014-04-24\",\n \"npatrons\": 138,\n \"receipts\": 377.29\n },\n {\n \"date\": \"2014-04-17\",\n \"npatrons\": 135,\n \"receipts\": 364.04\n },\n {\n \"date\": \"2014-04-10\",\n \"npatrons\": 138,\n \"receipts\": 392.64\n },\n {\n \"date\": \"2014-04-03\",\n \"npatrons\": 138,\n \"receipts\": 412.69\n },\n {\n \"date\": \"2014-03-27\",\n \"npatrons\": 137,\n \"receipts\": 416.94\n },\n {\n \"date\": \"2014-03-20\",\n \"npatrons\": 137,\n \"receipts\": 422.59\n },\n {\n \"date\": \"2014-03-13\",\n \"npatrons\": 138,\n \"receipts\": 391.71\n },\n {\n \"date\": \"2014-03-06\",\n \"npatrons\": 134,\n \"receipts\": 373.00\n },\n {\n \"date\": \"2014-02-27\",\n \"npatrons\": 134,\n \"receipts\": 345.76\n },\n {\n \"date\": \"2014-02-20\",\n \"npatrons\": 130,\n \"receipts\": 342.50\n },\n {\n \"date\": \"2014-02-13\",\n \"npatrons\": 130,\n \"receipts\": 359.25\n },\n {\n \"date\": \"2014-02-06\",\n \"npatrons\": 125,\n \"receipts\": 325.95\n },\n {\n \"date\": \"2014-01-30\",\n \"npatrons\": 125,\n \"receipts\": 315.20\n },\n {\n \"date\": \"2014-01-23\",\n \"npatrons\": 128,\n \"receipts\": 316.81\n },\n {\n \"date\": \"2014-01-16\",\n \"npatrons\": 126,\n \"receipts\": 285.41\n },\n {\n \"date\": \"2014-01-09\",\n \"npatrons\": 118,\n \"receipts\": 256.23\n },\n {\n \"date\": \"2014-01-02\",\n \"npatrons\": 111,\n \"receipts\": 230.75\n },\n {\n \"date\": \"2013-12-26\",\n \"npatrons\": 107,\n \"receipts\": 258.25\n },\n {\n \"date\": \"2013-12-19\",\n \"npatrons\": 108,\n \"receipts\": 258.00\n },\n {\n \"date\": \"2013-12-12\",\n \"npatrons\": 107,\n \"receipts\": 254.02\n },\n {\n \"date\": \"2013-12-05\",\n \"npatrons\": 106,\n \"receipts\": 247.82\n },\n {\n \"date\": \"2013-11-28\",\n \"npatrons\": 102,\n \"receipts\": 226.57\n },\n {\n \"date\": \"2013-11-21\",\n \"npatrons\": 104,\n \"receipts\": 246.82\n },\n {\n \"date\": \"2013-11-14\",\n \"npatrons\": 100,\n \"receipts\": 245.89\n },\n {\n \"date\": \"2013-11-07\",\n \"npatrons\": 101,\n \"receipts\": 239.75\n },\n {\n \"date\": \"2013-10-31\",\n \"npatrons\": 99,\n \"receipts\": 191.25\n },\n {\n \"date\": \"2013-10-24\",\n \"npatrons\": 96,\n \"receipts\": 203.48\n },\n {\n \"date\": \"2013-10-17\",\n \"npatrons\": 91,\n \"receipts\": 222.48\n },\n {\n \"date\": \"2013-10-10\",\n \"npatrons\": 92,\n \"receipts\": 224.23\n },\n {\n \"date\": \"2013-10-03\",\n \"npatrons\": 91,\n \"receipts\": 220.73\n },\n {\n \"date\": \"2013-09-26\",\n \"npatrons\": 85,\n \"receipts\": 217.98\n },\n {\n \"date\": \"2013-09-19\",\n \"npatrons\": 84,\n \"receipts\": 211.48\n },\n {\n \"date\": \"2013-09-12\",\n \"npatrons\": 81,\n \"receipts\": 206.88\n },\n {\n \"date\": \"2013-09-05\",\n \"npatrons\": 83,\n \"receipts\": 213.63\n },\n {\n \"date\": \"2013-08-29\",\n \"npatrons\": 81,\n \"receipts\": 222.67\n },\n {\n \"date\": \"2013-08-22\",\n \"npatrons\": 75,\n \"receipts\": 213.81\n },\n {\n \"date\": \"2013-08-15\",\n \"npatrons\": 72,\n \"receipts\": 210.81\n },\n {\n \"date\": \"2013-08-08\",\n \"npatrons\": 66,\n \"receipts\": 110.05\n },\n {\n \"date\": \"2013-08-01\",\n \"npatrons\": 63,\n \"receipts\": 113.35\n },\n {\n \"date\": \"2013-07-25\",\n \"npatrons\": 60,\n \"receipts\": 112.36\n },\n {\n \"date\": \"2013-07-18\",\n \"npatrons\": 53,\n \"receipts\": 118.75\n },\n {\n \"date\": \"2013-07-11\",\n \"npatrons\": 44,\n \"receipts\": 109.50\n },\n {\n \"date\": \"2013-07-04\",\n \"npatrons\": 38,\n \"receipts\": 121.25\n },\n {\n \"date\": \"2013-06-27\",\n \"npatrons\": 33,\n \"receipts\": 114.50\n },\n {\n \"date\": \"2013-06-20\",\n \"npatrons\": 31,\n \"receipts\": 113.25\n },\n {\n \"date\": \"2013-06-13\",\n \"npatrons\": 25,\n \"receipts\": 73.75\n },\n {\n \"date\": \"2013-06-06\",\n \"npatrons\": 22,\n \"receipts\": 48.50\n },\n {\n \"date\": \"2013-05-30\",\n \"npatrons\": 18,\n \"receipts\": 43.75\n },\n {\n \"date\": \"2013-05-23\",\n \"npatrons\": 18,\n \"receipts\": 43.75\n },\n {\n \"date\": \"2013-05-16\",\n \"npatrons\": 16,\n \"receipts\": 39.75\n },\n {\n \"date\": \"2013-05-09\",\n \"npatrons\": 13,\n \"receipts\": 15.25\n },\n {\n \"date\": \"2013-05-02\",\n \"npatrons\": 11,\n \"receipts\": 12.00\n },\n {\n \"date\": \"2013-04-25\",\n \"npatrons\": 11,\n \"receipts\": 12.00\n },\n {\n \"date\": \"2013-04-18\",\n \"npatrons\": 9,\n \"receipts\": 10.75,\n \"ts_start\": \"2013-04-18T14:11:24.158947+00:00\"\n },\n {\n \"date\": \"2013-04-11\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-04-11T11:47:12.931720+00:00\"\n },\n {\n \"date\": \"2013-04-04\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-04-04T11:39:18.681291+00:00\"\n },\n {\n \"date\": \"2013-03-28\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-28T13:05:23.740132+00:00\"\n },\n {\n \"date\": \"2013-03-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-22T12:11:45.041410+00:00\"\n },\n {\n \"date\": \"2013-03-14\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-14T19:44:55.774744+00:00\"\n },\n {\n \"date\": \"2013-03-07\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-03-07T13:00:08.405623+00:00\"\n },\n {\n \"date\": \"2013-02-28\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-28T17:11:06.449708+00:00\"\n },\n {\n \"date\": \"2013-02-21\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-21T17:08:55.242202+00:00\"\n },\n {\n \"date\": \"2013-02-14\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-14T13:38:08.967383+00:00\"\n },\n {\n \"date\": \"2013-02-07\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-02-07T12:00:20.239147+00:00\"\n },\n {\n \"date\": \"2013-01-31\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-31T14:21:29.964045+00:00\"\n },\n {\n \"date\": \"2013-01-24\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-24T14:15:23.073011+00:00\"\n },\n {\n \"date\": \"2013-01-17\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-17T14:05:01.620168+00:00\"\n },\n {\n \"date\": \"2013-01-10\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-10T12:32:05.299853+00:00\"\n },\n {\n \"date\": \"2013-01-03\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2013-01-03T13:41:18.062207+00:00\"\n },\n {\n \"date\": \"2012-12-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-27T12:32:21.391256+00:00\"\n },\n {\n \"date\": \"2012-12-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-20T12:51:36.881051+00:00\"\n },\n {\n \"date\": \"2012-12-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-13T13:09:06.330355+00:00\"\n },\n {\n \"date\": \"2012-12-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-12-06T13:27:27.158125+00:00\"\n },\n {\n \"date\": \"2012-11-29\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-29T12:45:18.180298+00:00\"\n },\n {\n \"date\": \"2012-11-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-22T15:37:59.390225+00:00\"\n },\n {\n \"date\": \"2012-11-15\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-15T14:37:56.650669+00:00\"\n },\n {\n \"date\": \"2012-11-08\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-08T20:47:52.767141+00:00\"\n },\n {\n \"date\": \"2012-11-01\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-11-01T23:07:31.044081+00:00\"\n },\n {\n \"date\": \"2012-10-25\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-25T12:02:52.010809+00:00\"\n },\n {\n \"date\": \"2012-10-18\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-18T13:45:51.045152+00:00\"\n },\n {\n \"date\": \"2012-10-11\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-11T16:00:55.171435+00:00\"\n },\n {\n \"date\": \"2012-10-04\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-10-04T13:09:59.575767+00:00\"\n },\n {\n \"date\": \"2012-09-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-27T13:59:13.358022+00:00\"\n },\n {\n \"date\": \"2012-09-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-20T12:42:03.698033+00:00\"\n },\n {\n \"date\": \"2012-09-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-13T06:38:51.300291+00:00\"\n },\n {\n \"date\": \"2012-09-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-09-06T22:29:53.060895+00:00\"\n },\n {\n \"date\": \"2012-08-31\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-31T12:53:04.080298+00:00\"\n },\n {\n \"date\": \"2012-08-24\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-24T13:25:40.605212+00:00\"\n },\n {\n \"date\": \"2012-08-17\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-17T18:39:59.835695+00:00\"\n },\n {\n \"date\": \"2012-08-10\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-10T19:05:05.938610+00:00\"\n },\n {\n \"date\": \"2012-08-03\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-08-03T14:57:42.935184+00:00\"\n },\n {\n \"date\": \"2012-07-27\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-27T20:51:21.754544+00:00\"\n },\n {\n \"date\": \"2012-07-20\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-20T19:28:19.952586+00:00\"\n },\n {\n \"date\": \"2012-07-13\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-13T17:49:02.299015+00:00\"\n },\n {\n \"date\": \"2012-07-06\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-07-06T18:37:13.603400+00:00\"\n },\n {\n \"date\": \"2012-06-29\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-29T17:05:03.867698+00:00\"\n },\n {\n \"date\": \"2012-06-22\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-22T15:30:42.882306+00:00\"\n },\n {\n \"date\": \"2012-06-15\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-15T11:09:54.298416+00:00\"\n },\n {\n \"date\": \"2012-06-08\",\n \"npatrons\": 0,\n \"receipts\": 0.00,\n \"ts_start\": \"2012-06-08T12:02:45.182409+00:00\"\n }\n]"
|
69
69
|
},
|
70
70
|
"http_version": null
|
71
71
|
},
|
72
|
-
"recorded_at": "
|
72
|
+
"recorded_at": "Mon, 13 Oct 2014 21:02:23 GMT"
|
73
73
|
},
|
74
74
|
{
|
75
75
|
"request": {
|
76
76
|
"method": "get",
|
77
|
-
"uri": "https://
|
77
|
+
"uri": "https://gratipay.com/whit537/charts.json",
|
78
78
|
"body": {
|
79
79
|
"encoding": "US-ASCII",
|
80
80
|
"string": ""
|
81
81
|
},
|
82
82
|
"headers": {
|
83
83
|
"User-Agent": [
|
84
|
-
"Faraday v0.
|
84
|
+
"Faraday v0.9.0"
|
85
85
|
],
|
86
86
|
"Accept-Encoding": [
|
87
87
|
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
|
@@ -107,16 +107,16 @@
|
|
107
107
|
"application/json"
|
108
108
|
],
|
109
109
|
"Date": [
|
110
|
-
"
|
110
|
+
"Mon, 13 Oct 2014 21:02:24 GMT"
|
111
111
|
],
|
112
112
|
"Expires": [
|
113
113
|
"Thu, 01 Jan 1970 00:00:00 GMT"
|
114
114
|
],
|
115
115
|
"Server": [
|
116
|
-
"
|
116
|
+
"gunicorn/18.0"
|
117
117
|
],
|
118
118
|
"Set-Cookie": [
|
119
|
-
"csrf_token=
|
119
|
+
"csrf_token=6PPVjeElvCUVDp1ZDdaJRVoK0duZEN7d; expires=Mon, 20 Oct 2014 21:02:24 GMT; Path=/; secure"
|
120
120
|
],
|
121
121
|
"Vary": [
|
122
122
|
"Cookie"
|
@@ -124,11 +124,11 @@
|
|
124
124
|
"X-Frame-Options": [
|
125
125
|
"SAMEORIGIN"
|
126
126
|
],
|
127
|
-
"X-
|
128
|
-
"
|
127
|
+
"X-Gratipay-Version": [
|
128
|
+
"17.1.3"
|
129
129
|
],
|
130
|
-
"
|
131
|
-
"
|
130
|
+
"Transfer-Encoding": [
|
131
|
+
"chunked"
|
132
132
|
],
|
133
133
|
"Connection": [
|
134
134
|
"keep-alive"
|
@@ -136,12 +136,12 @@
|
|
136
136
|
},
|
137
137
|
"body": {
|
138
138
|
"encoding": "UTF-8",
|
139
|
-
"string": "[\n {\n \"date\": \"2014-05-15\",\n \"npatrons\": 205,\n \"receipts\": 525.67\n },\n {\n \"date\": \"2014-05-08\",\n \"npatrons\": 206,\n \"receipts\": 502.62\n },\n {\n \"date\": \"2014-05-01\",\n \"npatrons\": 206,\n \"receipts\": 502.61\n },\n {\n \"date\": \"2014-04-24\",\n \"npatrons\": 213,\n \"receipts\": 513.59\n },\n {\n \"date\": \"2014-04-17\",\n \"npatrons\": 215,\n \"receipts\": 509.65\n },\n {\n \"date\": \"2014-04-10\",\n \"npatrons\": 217,\n \"receipts\": 552.66\n },\n {\n \"date\": \"2014-04-03\",\n \"npatrons\": 222,\n \"receipts\": 558.71\n },\n {\n \"date\": \"2014-03-27\",\n \"npatrons\": 223,\n \"receipts\": 562.02\n },\n {\n \"date\": \"2014-03-20\",\n \"npatrons\": 223,\n \"receipts\": 601.37\n },\n {\n \"date\": \"2014-03-13\",\n \"npatrons\": 221,\n \"receipts\": 588.81\n },\n {\n \"date\": \"2014-03-06\",\n \"npatrons\": 223,\n \"receipts\": 566.87\n },\n {\n \"date\": \"2014-02-27\",\n \"npatrons\": 228,\n \"receipts\": 577.12\n },\n {\n \"date\": \"2014-02-20\",\n \"npatrons\": 229,\n \"receipts\": 582.67\n },\n {\n \"date\": \"2014-02-13\",\n \"npatrons\": 225,\n \"receipts\": 577.32\n },\n {\n \"date\": \"2014-02-06\",\n \"npatrons\": 219,\n \"receipts\": 556.77\n },\n {\n \"date\": \"2014-01-30\",\n \"npatrons\": 218,\n \"receipts\": 545.77\n },\n {\n \"date\": \"2014-01-23\",\n \"npatrons\": 218,\n \"receipts\": 543.52\n },\n {\n \"date\": \"2014-01-16\",\n \"npatrons\": 214,\n \"receipts\": 529.22\n },\n {\n \"date\": \"2014-01-09\",\n \"npatrons\": 220,\n \"receipts\": 543.72\n },\n {\n \"date\": \"2014-01-02\",\n \"npatrons\": 218,\n \"receipts\": 523.78\n },\n {\n \"date\": \"2013-12-26\",\n \"npatrons\": 218,\n \"receipts\": 555.06\n },\n {\n \"date\": \"2013-12-19\",\n \"npatrons\": 215,\n \"receipts\": 565.81\n },\n {\n \"date\": \"2013-12-12\",\n \"npatrons\": 215,\n \"receipts\": 563.56\n },\n {\n \"date\": \"2013-12-05\",\n \"npatrons\": 208,\n \"receipts\": 553.51\n },\n {\n \"date\": \"2013-11-28\",\n \"npatrons\": 206,\n \"receipts\": 529.51\n },\n {\n \"date\": \"2013-11-21\",\n \"npatrons\": 207,\n \"receipts\": 549.26\n },\n {\n \"date\": \"2013-11-14\",\n \"npatrons\": 207,\n \"receipts\": 548.51\n },\n {\n \"date\": \"2013-11-07\",\n \"npatrons\": 205,\n \"receipts\": 538.51\n },\n {\n \"date\": \"2013-10-31\",\n \"npatrons\": 198,\n \"receipts\": 489.26\n },\n {\n \"date\": \"2013-10-24\",\n \"npatrons\": 196,\n \"receipts\": 502.01\n },\n {\n \"date\": \"2013-10-17\",\n \"npatrons\": 195,\n \"receipts\": 515.00\n },\n {\n \"date\": \"2013-10-10\",\n \"npatrons\": 200,\n \"receipts\": 523.00\n },\n {\n \"date\": \"2013-10-03\",\n \"npatrons\": 197,\n \"receipts\": 513.85\n },\n {\n \"date\": \"2013-09-26\",\n \"npatrons\": 191,\n \"receipts\": 500.36\n },\n {\n \"date\": \"2013-09-19\",\n \"npatrons\": 196,\n \"receipts\": 520.81\n },\n {\n \"date\": \"2013-09-12\",\n \"npatrons\": 193,\n \"receipts\": 485.00\n },\n {\n \"date\": \"2013-09-05\",\n \"npatrons\": 190,\n \"receipts\": 505.50\n },\n {\n \"date\": \"2013-08-29\",\n \"npatrons\": 185,\n \"receipts\": 483.15\n },\n {\n \"date\": \"2013-08-22\",\n \"npatrons\": 180,\n \"receipts\": 496.41\n },\n {\n \"date\": \"2013-08-15\",\n \"npatrons\": 178,\n \"receipts\": 459.12\n },\n {\n \"date\": \"2013-08-08\",\n \"npatrons\": 171,\n \"receipts\": 327.89\n },\n {\n \"date\": \"2013-08-01\",\n \"npatrons\": 170,\n \"receipts\": 356.54\n },\n {\n \"date\": \"2013-07-25\",\n \"npatrons\": 168,\n \"receipts\": 346.83\n },\n {\n \"date\": \"2013-07-18\",\n \"npatrons\": 164,\n \"receipts\": 346.07\n },\n {\n \"date\": \"2013-07-11\",\n \"npatrons\": 164,\n \"receipts\": 347.57\n },\n {\n \"date\": \"2013-07-04\",\n \"npatrons\": 164,\n \"receipts\": 342.32\n },\n {\n \"date\": \"2013-06-27\",\n \"npatrons\": 161,\n \"receipts\": 319.83\n },\n {\n \"date\": \"2013-06-20\",\n \"npatrons\": 161,\n \"receipts\": 336.90\n },\n {\n \"date\": \"2013-06-13\",\n \"npatrons\": 156,\n \"receipts\": 311.93\n },\n {\n \"date\": \"2013-06-06\",\n \"npatrons\": 157,\n \"receipts\": 327.71\n },\n {\n \"date\": \"2013-05-30\",\n \"npatrons\": 155,\n \"receipts\": 303.83\n },\n {\n \"date\": \"2013-05-23\",\n \"npatrons\": 155,\n \"receipts\": 332.99\n },\n {\n \"date\": \"2013-05-16\",\n \"npatrons\": 153,\n \"receipts\": 313.49\n },\n {\n \"date\": \"2013-05-09\",\n \"npatrons\": 139,\n \"receipts\": 279.87\n },\n {\n \"date\": \"2013-05-02\",\n \"npatrons\": 138,\n \"receipts\": 249.59\n },\n {\n \"date\": \"2013-04-25\",\n \"npatrons\": 139,\n \"receipts\": 297.39\n },\n {\n \"date\": \"2013-04-18\",\n \"npatrons\": 129,\n \"receipts\": 285.49\n },\n {\n \"date\": \"2013-04-11\",\n \"npatrons\": 110,\n \"receipts\": 222.23\n },\n {\n \"date\": \"2013-04-04\",\n \"npatrons\": 110,\n \"receipts\": 225.73\n },\n {\n \"date\": \"2013-03-28\",\n \"npatrons\": 104,\n \"receipts\": 240.98\n },\n {\n \"date\": \"2013-03-22\",\n \"npatrons\": 98,\n \"receipts\": 233.73\n },\n {\n \"date\": \"2013-03-14\",\n \"npatrons\": 90,\n \"receipts\": 227.48\n },\n {\n \"date\": \"2013-03-07\",\n \"npatrons\": 87,\n \"receipts\": 211.98\n },\n {\n \"date\": \"2013-02-28\",\n \"npatrons\": 82,\n \"receipts\": 206.48\n },\n {\n \"date\": \"2013-02-21\",\n \"npatrons\": 78,\n \"receipts\": 180.98\n },\n {\n \"date\": \"2013-02-14\",\n \"npatrons\": 79,\n \"receipts\": 194.23\n },\n {\n \"date\": \"2013-02-07\",\n \"npatrons\": 69,\n \"receipts\": 182.73\n },\n {\n \"date\": \"2013-01-31\",\n \"npatrons\": 65,\n \"receipts\": 162.48\n },\n {\n \"date\": \"2013-01-24\",\n \"npatrons\": 65,\n \"receipts\": 169.48\n },\n {\n \"date\": \"2013-01-17\",\n \"npatrons\": 64,\n \"receipts\": 166.23\n },\n {\n \"date\": \"2013-01-10\",\n \"npatrons\": 66,\n \"receipts\": 171.05\n },\n {\n \"date\": \"2013-01-03\",\n \"npatrons\": 63,\n \"receipts\": 163.30\n },\n {\n \"date\": \"2012-12-27\",\n \"npatrons\": 60,\n \"receipts\": 159.05\n },\n {\n \"date\": \"2012-12-20\",\n \"npatrons\": 62,\n \"receipts\": 160.05\n },\n {\n \"date\": \"2012-12-13\",\n \"npatrons\": 61,\n \"receipts\": 149.05\n },\n {\n \"date\": \"2012-12-06\",\n \"npatrons\": 61,\n \"receipts\": 149.05\n },\n {\n \"date\": \"2012-11-29\",\n \"npatrons\": 61,\n \"receipts\": 144.30\n },\n {\n \"date\": \"2012-11-22\",\n \"npatrons\": 62,\n \"receipts\": 146.55\n },\n {\n \"date\": \"2012-11-15\",\n \"npatrons\": 62,\n \"receipts\": 146.55\n },\n {\n \"date\": \"2012-11-08\",\n \"npatrons\": 63,\n \"receipts\": 147.55\n },\n {\n \"date\": \"2012-11-01\",\n \"npatrons\": 63,\n \"receipts\": 125.05\n },\n {\n \"date\": \"2012-10-25\",\n \"npatrons\": 68,\n \"receipts\": 162.05\n },\n {\n \"date\": \"2012-10-18\",\n \"npatrons\": 72,\n \"receipts\": 171.05\n },\n {\n \"date\": \"2012-10-11\",\n \"npatrons\": 70,\n \"receipts\": 169.05\n },\n {\n \"date\": \"2012-10-04\",\n \"npatrons\": 72,\n \"receipts\": 166.30\n },\n {\n \"date\": \"2012-09-27\",\n \"npatrons\": 67,\n \"receipts\": 163.55\n },\n {\n \"date\": \"2012-09-20\",\n \"npatrons\": 70,\n \"receipts\": 163.80\n },\n {\n \"date\": \"2012-09-13\",\n \"npatrons\": 70,\n \"receipts\": 163.80\n },\n {\n \"date\": \"2012-09-06\",\n \"npatrons\": 67,\n \"receipts\": 174.80\n },\n {\n \"date\": \"2012-08-31\",\n \"npatrons\": 70,\n \"receipts\": 192.05\n },\n {\n \"date\": \"2012-08-24\",\n \"npatrons\": 71,\n \"receipts\": 191.08\n },\n {\n \"date\": \"2012-08-17\",\n \"npatrons\": 71,\n \"receipts\": 183.33\n },\n {\n \"date\": \"2012-08-10\",\n \"npatrons\": 69,\n \"receipts\": 182.33\n },\n {\n \"date\": \"2012-08-03\",\n \"npatrons\": 67,\n \"receipts\": 181.33\n },\n {\n \"date\": \"2012-07-27\",\n \"npatrons\": 64,\n \"receipts\": 189.16\n },\n {\n \"date\": \"2012-07-20\",\n \"npatrons\": 46,\n \"receipts\": 145.48\n },\n {\n \"date\": \"2012-07-13\",\n \"npatrons\": 38,\n \"receipts\": 140.73\n },\n {\n \"date\": \"2012-07-06\",\n \"npatrons\": 21,\n \"receipts\": 62.33\n },\n {\n \"date\": \"2012-06-29\",\n \"npatrons\": 12,\n \"receipts\": 7.92\n },\n {\n \"date\": \"2012-06-22\",\n \"npatrons\": 7,\n \"receipts\": 4.96\n },\n {\n \"date\": \"2012-06-15\",\n \"npatrons\": 1,\n \"receipts\": 0.32\n },\n {\n \"date\": \"2012-06-08\",\n \"npatrons\": 8,\n \"receipts\": 5.44\n }\n]"
|
139
|
+
"string": "[\n {\n \"date\": \"2014-10-09\",\n \"npatrons\": 186,\n \"receipts\": 593.56\n },\n {\n \"date\": \"2014-10-02\",\n \"npatrons\": 189,\n \"receipts\": 608.06\n },\n {\n \"date\": \"2014-09-25\",\n \"npatrons\": 187,\n \"receipts\": 607.75\n },\n {\n \"date\": \"2014-09-18\",\n \"npatrons\": 186,\n \"receipts\": 576.23\n },\n {\n \"date\": \"2014-09-11\",\n \"npatrons\": 191,\n \"receipts\": 684.74\n },\n {\n \"date\": \"2014-09-04\",\n \"npatrons\": 194,\n \"receipts\": 577.49\n },\n {\n \"date\": \"2014-08-28\",\n \"npatrons\": 196,\n \"receipts\": 629.29\n },\n {\n \"date\": \"2014-08-21\",\n \"npatrons\": 195,\n \"receipts\": 715.79\n },\n {\n \"date\": \"2014-08-14\",\n \"npatrons\": 202,\n \"receipts\": 719.00\n },\n {\n \"date\": \"2014-08-07\",\n \"npatrons\": 195,\n \"receipts\": 507.23\n },\n {\n \"date\": \"2014-07-31\",\n \"npatrons\": 201,\n \"receipts\": 520.92\n },\n {\n \"date\": \"2014-07-24\",\n \"npatrons\": 204,\n \"receipts\": 530.90\n },\n {\n \"date\": \"2014-07-17\",\n \"npatrons\": 204,\n \"receipts\": 552.90\n },\n {\n \"date\": \"2014-07-10\",\n \"npatrons\": 207,\n \"receipts\": 555.65\n },\n {\n \"date\": \"2014-07-03\",\n \"npatrons\": 210,\n \"receipts\": 546.41\n },\n {\n \"date\": \"2014-06-26\",\n \"npatrons\": 218,\n \"receipts\": 544.72\n },\n {\n \"date\": \"2014-06-19\",\n \"npatrons\": 219,\n \"receipts\": 550.05\n },\n {\n \"date\": \"2014-06-12\",\n \"npatrons\": 212,\n \"receipts\": 540.68\n },\n {\n \"date\": \"2014-06-05\",\n \"npatrons\": 205,\n \"receipts\": 389.03\n },\n {\n \"date\": \"2014-05-29\",\n \"npatrons\": 200,\n \"receipts\": 492.08\n },\n {\n \"date\": \"2014-05-22\",\n \"npatrons\": 200,\n \"receipts\": 488.43\n },\n {\n \"date\": \"2014-05-15\",\n \"npatrons\": 205,\n \"receipts\": 525.67\n },\n {\n \"date\": \"2014-05-08\",\n \"npatrons\": 206,\n \"receipts\": 502.62\n },\n {\n \"date\": \"2014-05-01\",\n \"npatrons\": 206,\n \"receipts\": 502.61\n },\n {\n \"date\": \"2014-04-24\",\n \"npatrons\": 213,\n \"receipts\": 513.59\n },\n {\n \"date\": \"2014-04-17\",\n \"npatrons\": 215,\n \"receipts\": 509.65\n },\n {\n \"date\": \"2014-04-10\",\n \"npatrons\": 217,\n \"receipts\": 552.66\n },\n {\n \"date\": \"2014-04-03\",\n \"npatrons\": 222,\n \"receipts\": 558.71\n },\n {\n \"date\": \"2014-03-27\",\n \"npatrons\": 223,\n \"receipts\": 562.02\n },\n {\n \"date\": \"2014-03-20\",\n \"npatrons\": 223,\n \"receipts\": 601.37\n },\n {\n \"date\": \"2014-03-13\",\n \"npatrons\": 221,\n \"receipts\": 588.81\n },\n {\n \"date\": \"2014-03-06\",\n \"npatrons\": 223,\n \"receipts\": 566.87\n },\n {\n \"date\": \"2014-02-27\",\n \"npatrons\": 228,\n \"receipts\": 577.12\n },\n {\n \"date\": \"2014-02-20\",\n \"npatrons\": 229,\n \"receipts\": 582.67\n },\n {\n \"date\": \"2014-02-13\",\n \"npatrons\": 225,\n \"receipts\": 577.32\n },\n {\n \"date\": \"2014-02-06\",\n \"npatrons\": 219,\n \"receipts\": 556.77\n },\n {\n \"date\": \"2014-01-30\",\n \"npatrons\": 218,\n \"receipts\": 545.77\n },\n {\n \"date\": \"2014-01-23\",\n \"npatrons\": 218,\n \"receipts\": 543.52\n },\n {\n \"date\": \"2014-01-16\",\n \"npatrons\": 214,\n \"receipts\": 529.22\n },\n {\n \"date\": \"2014-01-09\",\n \"npatrons\": 220,\n \"receipts\": 543.72\n },\n {\n \"date\": \"2014-01-02\",\n \"npatrons\": 218,\n \"receipts\": 523.78\n },\n {\n \"date\": \"2013-12-26\",\n \"npatrons\": 218,\n \"receipts\": 555.06\n },\n {\n \"date\": \"2013-12-19\",\n \"npatrons\": 215,\n \"receipts\": 565.81\n },\n {\n \"date\": \"2013-12-12\",\n \"npatrons\": 215,\n \"receipts\": 563.56\n },\n {\n \"date\": \"2013-12-05\",\n \"npatrons\": 208,\n \"receipts\": 553.51\n },\n {\n \"date\": \"2013-11-28\",\n \"npatrons\": 206,\n \"receipts\": 529.51\n },\n {\n \"date\": \"2013-11-21\",\n \"npatrons\": 207,\n \"receipts\": 549.26\n },\n {\n \"date\": \"2013-11-14\",\n \"npatrons\": 207,\n \"receipts\": 548.51\n },\n {\n \"date\": \"2013-11-07\",\n \"npatrons\": 205,\n \"receipts\": 538.51\n },\n {\n \"date\": \"2013-10-31\",\n \"npatrons\": 198,\n \"receipts\": 489.26\n },\n {\n \"date\": \"2013-10-24\",\n \"npatrons\": 196,\n \"receipts\": 502.01\n },\n {\n \"date\": \"2013-10-17\",\n \"npatrons\": 195,\n \"receipts\": 515.00\n },\n {\n \"date\": \"2013-10-10\",\n \"npatrons\": 200,\n \"receipts\": 523.00\n },\n {\n \"date\": \"2013-10-03\",\n \"npatrons\": 197,\n \"receipts\": 513.85\n },\n {\n \"date\": \"2013-09-26\",\n \"npatrons\": 191,\n \"receipts\": 500.36\n },\n {\n \"date\": \"2013-09-19\",\n \"npatrons\": 196,\n \"receipts\": 520.81\n },\n {\n \"date\": \"2013-09-12\",\n \"npatrons\": 193,\n \"receipts\": 485.00\n },\n {\n \"date\": \"2013-09-05\",\n \"npatrons\": 190,\n \"receipts\": 505.50\n },\n {\n \"date\": \"2013-08-29\",\n \"npatrons\": 185,\n \"receipts\": 483.15\n },\n {\n \"date\": \"2013-08-22\",\n \"npatrons\": 180,\n \"receipts\": 496.41\n },\n {\n \"date\": \"2013-08-15\",\n \"npatrons\": 178,\n \"receipts\": 459.12\n },\n {\n \"date\": \"2013-08-08\",\n \"npatrons\": 171,\n \"receipts\": 327.89\n },\n {\n \"date\": \"2013-08-01\",\n \"npatrons\": 170,\n \"receipts\": 356.54\n },\n {\n \"date\": \"2013-07-25\",\n \"npatrons\": 168,\n \"receipts\": 346.83\n },\n {\n \"date\": \"2013-07-18\",\n \"npatrons\": 164,\n \"receipts\": 346.07\n },\n {\n \"date\": \"2013-07-11\",\n \"npatrons\": 164,\n \"receipts\": 347.57\n },\n {\n \"date\": \"2013-07-04\",\n \"npatrons\": 164,\n \"receipts\": 342.32\n },\n {\n \"date\": \"2013-06-27\",\n \"npatrons\": 161,\n \"receipts\": 319.83\n },\n {\n \"date\": \"2013-06-20\",\n \"npatrons\": 161,\n \"receipts\": 336.90\n },\n {\n \"date\": \"2013-06-13\",\n \"npatrons\": 156,\n \"receipts\": 311.93\n },\n {\n \"date\": \"2013-06-06\",\n \"npatrons\": 157,\n \"receipts\": 327.71\n },\n {\n \"date\": \"2013-05-30\",\n \"npatrons\": 155,\n \"receipts\": 303.83\n },\n {\n \"date\": \"2013-05-23\",\n \"npatrons\": 155,\n \"receipts\": 332.99\n },\n {\n \"date\": \"2013-05-16\",\n \"npatrons\": 153,\n \"receipts\": 313.49\n },\n {\n \"date\": \"2013-05-09\",\n \"npatrons\": 139,\n \"receipts\": 279.87\n },\n {\n \"date\": \"2013-05-02\",\n \"npatrons\": 138,\n \"receipts\": 249.59\n },\n {\n \"date\": \"2013-04-25\",\n \"npatrons\": 139,\n \"receipts\": 297.39\n },\n {\n \"date\": \"2013-04-18\",\n \"npatrons\": 129,\n \"receipts\": 285.49\n },\n {\n \"date\": \"2013-04-11\",\n \"npatrons\": 110,\n \"receipts\": 222.23\n },\n {\n \"date\": \"2013-04-04\",\n \"npatrons\": 110,\n \"receipts\": 225.73\n },\n {\n \"date\": \"2013-03-28\",\n \"npatrons\": 104,\n \"receipts\": 240.98\n },\n {\n \"date\": \"2013-03-22\",\n \"npatrons\": 98,\n \"receipts\": 233.73\n },\n {\n \"date\": \"2013-03-14\",\n \"npatrons\": 90,\n \"receipts\": 227.48\n },\n {\n \"date\": \"2013-03-07\",\n \"npatrons\": 87,\n \"receipts\": 211.98\n },\n {\n \"date\": \"2013-02-28\",\n \"npatrons\": 82,\n \"receipts\": 206.48\n },\n {\n \"date\": \"2013-02-21\",\n \"npatrons\": 78,\n \"receipts\": 180.98\n },\n {\n \"date\": \"2013-02-14\",\n \"npatrons\": 79,\n \"receipts\": 194.23\n },\n {\n \"date\": \"2013-02-07\",\n \"npatrons\": 69,\n \"receipts\": 182.73\n },\n {\n \"date\": \"2013-01-31\",\n \"npatrons\": 65,\n \"receipts\": 162.48\n },\n {\n \"date\": \"2013-01-24\",\n \"npatrons\": 65,\n \"receipts\": 169.48\n },\n {\n \"date\": \"2013-01-17\",\n \"npatrons\": 64,\n \"receipts\": 166.23\n },\n {\n \"date\": \"2013-01-10\",\n \"npatrons\": 66,\n \"receipts\": 171.05\n },\n {\n \"date\": \"2013-01-03\",\n \"npatrons\": 63,\n \"receipts\": 163.30\n },\n {\n \"date\": \"2012-12-27\",\n \"npatrons\": 60,\n \"receipts\": 159.05\n },\n {\n \"date\": \"2012-12-20\",\n \"npatrons\": 62,\n \"receipts\": 160.05\n },\n {\n \"date\": \"2012-12-13\",\n \"npatrons\": 61,\n \"receipts\": 149.05\n },\n {\n \"date\": \"2012-12-06\",\n \"npatrons\": 61,\n \"receipts\": 149.05\n },\n {\n \"date\": \"2012-11-29\",\n \"npatrons\": 61,\n \"receipts\": 144.30\n },\n {\n \"date\": \"2012-11-22\",\n \"npatrons\": 62,\n \"receipts\": 146.55\n },\n {\n \"date\": \"2012-11-15\",\n \"npatrons\": 62,\n \"receipts\": 146.55\n },\n {\n \"date\": \"2012-11-08\",\n \"npatrons\": 63,\n \"receipts\": 147.55\n },\n {\n \"date\": \"2012-11-01\",\n \"npatrons\": 63,\n \"receipts\": 125.05\n },\n {\n \"date\": \"2012-10-25\",\n \"npatrons\": 68,\n \"receipts\": 162.05\n },\n {\n \"date\": \"2012-10-18\",\n \"npatrons\": 72,\n \"receipts\": 171.05\n },\n {\n \"date\": \"2012-10-11\",\n \"npatrons\": 70,\n \"receipts\": 169.05\n },\n {\n \"date\": \"2012-10-04\",\n \"npatrons\": 72,\n \"receipts\": 166.30\n },\n {\n \"date\": \"2012-09-27\",\n \"npatrons\": 67,\n \"receipts\": 163.55\n },\n {\n \"date\": \"2012-09-20\",\n \"npatrons\": 70,\n \"receipts\": 163.80\n },\n {\n \"date\": \"2012-09-13\",\n \"npatrons\": 70,\n \"receipts\": 163.80\n },\n {\n \"date\": \"2012-09-06\",\n \"npatrons\": 67,\n \"receipts\": 174.80\n },\n {\n \"date\": \"2012-08-31\",\n \"npatrons\": 70,\n \"receipts\": 192.05\n },\n {\n \"date\": \"2012-08-24\",\n \"npatrons\": 71,\n \"receipts\": 191.08\n },\n {\n \"date\": \"2012-08-17\",\n \"npatrons\": 71,\n \"receipts\": 183.33\n },\n {\n \"date\": \"2012-08-10\",\n \"npatrons\": 69,\n \"receipts\": 182.33\n },\n {\n \"date\": \"2012-08-03\",\n \"npatrons\": 67,\n \"receipts\": 181.33\n },\n {\n \"date\": \"2012-07-27\",\n \"npatrons\": 64,\n \"receipts\": 189.16\n },\n {\n \"date\": \"2012-07-20\",\n \"npatrons\": 46,\n \"receipts\": 145.48\n },\n {\n \"date\": \"2012-07-13\",\n \"npatrons\": 38,\n \"receipts\": 140.73\n },\n {\n \"date\": \"2012-07-06\",\n \"npatrons\": 21,\n \"receipts\": 62.33\n },\n {\n \"date\": \"2012-06-29\",\n \"npatrons\": 12,\n \"receipts\": 7.92\n },\n {\n \"date\": \"2012-06-22\",\n \"npatrons\": 7,\n \"receipts\": 4.96\n },\n {\n \"date\": \"2012-06-15\",\n \"npatrons\": 1,\n \"receipts\": 0.32\n },\n {\n \"date\": \"2012-06-08\",\n \"npatrons\": 8,\n \"receipts\": 5.44\n }\n]"
|
140
140
|
},
|
141
141
|
"http_version": null
|
142
142
|
},
|
143
|
-
"recorded_at": "
|
143
|
+
"recorded_at": "Mon, 13 Oct 2014 21:02:24 GMT"
|
144
144
|
}
|
145
145
|
],
|
146
|
-
"recorded_with": "VCR 2.9.
|
147
|
-
}
|
146
|
+
"recorded_with": "VCR 2.9.2"
|
147
|
+
}
|
@@ -21,7 +21,7 @@ describe Gratitude::Chart do
|
|
21
21
|
before { Gratitude::Chart::CHARTS = [] }
|
22
22
|
|
23
23
|
it "returns an array" do
|
24
|
-
expect(Gratitude::Chart.all
|
24
|
+
expect(Gratitude::Chart.all).to be_a(Array)
|
25
25
|
end
|
26
26
|
|
27
27
|
it "updates the CHARTS constant when it is empty" do
|
@@ -36,24 +36,17 @@ describe Gratitude::Chart do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
describe "#sort_by_date" do
|
40
|
-
it "places the newest chart before the oldest chart" do
|
41
|
-
expect(Gratitude::Chart.sort_by_date.first.date)
|
42
|
-
.to be > (Gratitude::Chart.sort_by_date.last.date)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
39
|
describe "#newest" do
|
47
40
|
it "returns the most recent payday" do
|
48
41
|
expect(Gratitude::Chart.newest)
|
49
|
-
.to eq(Gratitude::Chart.sort_by_date.first)
|
42
|
+
.to eq(Gratitude::Chart.send(:sort_by_date).first)
|
50
43
|
end
|
51
44
|
end
|
52
45
|
|
53
46
|
describe "#oldest" do
|
54
47
|
it "returns the oldest chart" do
|
55
48
|
expect(Gratitude::Chart.oldest)
|
56
|
-
.to eq(Gratitude::Chart.sort_by_date.last)
|
49
|
+
.to eq(Gratitude::Chart.send(:sort_by_date).last)
|
57
50
|
end
|
58
51
|
end
|
59
52
|
end
|
@@ -14,9 +14,9 @@ describe TestObject do
|
|
14
14
|
expect(test_object.faraday.class).to eq(Faraday::Connection)
|
15
15
|
end
|
16
16
|
|
17
|
-
it "sets the correct
|
17
|
+
it "sets the correct gratipay base url" do
|
18
18
|
expect(test_object.faraday.url_prefix.to_s)
|
19
|
-
.to eq("https://
|
19
|
+
.to eq("https://gratipay.com/")
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -21,7 +21,7 @@ describe Gratitude::Payday do
|
|
21
21
|
before { Gratitude::Payday::PAYDAYS = [] }
|
22
22
|
|
23
23
|
it "returns an array" do
|
24
|
-
expect(Gratitude::Payday.all
|
24
|
+
expect(Gratitude::Payday.all).to be_a(Array)
|
25
25
|
end
|
26
26
|
|
27
27
|
it "updates the PAYDAYS constant when it is empty" do
|
@@ -36,24 +36,17 @@ describe Gratitude::Payday do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
describe "#sort_by_ts_end" do
|
40
|
-
it "places the newest payday before the oldest payday" do
|
41
|
-
expect(Gratitude::Payday.sort_by_ts_end.first.ts_end)
|
42
|
-
.to be > (Gratitude::Payday.sort_by_ts_end.last.ts_end)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
39
|
describe "#newest" do
|
47
40
|
it "returns the most recent payday" do
|
48
41
|
expect(Gratitude::Payday.newest)
|
49
|
-
.to eq(Gratitude::Payday.sort_by_ts_end.first)
|
42
|
+
.to eq(Gratitude::Payday.send(:sort_by_ts_end).first)
|
50
43
|
end
|
51
44
|
end
|
52
45
|
|
53
46
|
describe "#oldest" do
|
54
47
|
it "returns the oldest payday" do
|
55
48
|
expect(Gratitude::Payday.oldest)
|
56
|
-
.to eq(Gratitude::Payday.sort_by_ts_end.last)
|
49
|
+
.to eq(Gratitude::Payday.send(:sort_by_ts_end).last)
|
57
50
|
end
|
58
51
|
end
|
59
52
|
|
@@ -11,7 +11,7 @@ describe Gratitude::Profile do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "instance methods" do
|
14
|
-
context "when the requested
|
14
|
+
context "when the requested Gratipay user does not exist" do
|
15
15
|
it "raises a UsernameNotFoundError" do
|
16
16
|
expect { Gratitude::Profile.new("non_existing_user").send(:response) }
|
17
17
|
.to raise_error(Gratitude::UsernameNotFoundError)
|
@@ -44,31 +44,31 @@ describe Gratitude::Profile do
|
|
44
44
|
on
|
45
45
|
receiving
|
46
46
|
username
|
47
|
-
)
|
48
47
|
)
|
48
|
+
)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
describe "#
|
52
|
+
describe "#avatar" do
|
53
53
|
it "returns a string" do
|
54
|
-
expect(complete_profile.
|
54
|
+
expect(complete_profile.avatar).to be_a(String)
|
55
55
|
end
|
56
56
|
|
57
|
-
it "returns the same value as its alias: #
|
58
|
-
expect(complete_profile.
|
57
|
+
it "returns the same value as its alias: #avatar_url" do
|
58
|
+
expect(complete_profile.avatar).to eq(complete_profile.avatar_url)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
62
|
describe "#bitcoin" do
|
63
63
|
context "a user with an associated bitcoin address" do
|
64
64
|
it "returns a string" do
|
65
|
-
expect(complete_profile.bitcoin
|
65
|
+
expect(complete_profile.bitcoin).to be_a(String)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
69
|
context "a user without an associated bitcoin address" do
|
70
70
|
it "returns a string" do
|
71
|
-
expect(incomplete_profile.bitcoin).to
|
71
|
+
expect(incomplete_profile.bitcoin).to be_nil
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -76,13 +76,13 @@ describe Gratitude::Profile do
|
|
76
76
|
describe "#bitbucket" do
|
77
77
|
context "a user with an associated bitbucket account" do
|
78
78
|
it "returns a hash" do
|
79
|
-
expect(complete_profile.bitbucket
|
79
|
+
expect(complete_profile.bitbucket).to be_a(Hash)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
83
|
context "a user without an associated bitbucket acount" do
|
84
84
|
it "returns a string" do
|
85
|
-
expect(incomplete_profile.bitbucket).to
|
85
|
+
expect(incomplete_profile.bitbucket).to be_nil
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
@@ -90,13 +90,13 @@ describe Gratitude::Profile do
|
|
90
90
|
describe "#bitbucket_username" do
|
91
91
|
context "a user with an associated bitbucket account" do
|
92
92
|
it "returns a string" do
|
93
|
-
expect(complete_profile.bitbucket_username
|
93
|
+
expect(complete_profile.bitbucket_username).to be_a(String)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
97
|
context "a user without an associated bitbucket acount" do
|
98
98
|
it "returns a string" do
|
99
|
-
expect(incomplete_profile.bitbucket_username).to
|
99
|
+
expect(incomplete_profile.bitbucket_username).to be_nil
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
@@ -104,27 +104,27 @@ describe Gratitude::Profile do
|
|
104
104
|
describe "#bountysource" do
|
105
105
|
context "a user with an associated bountysource account" do
|
106
106
|
it "returns a hash" do
|
107
|
-
expect(complete_profile.bountysource
|
107
|
+
expect(complete_profile.bountysource).to be_a(Hash)
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
111
|
context "a user without an associated bountysource acount" do
|
112
112
|
it "returns a string" do
|
113
|
-
expect(incomplete_profile.bountysource).to
|
113
|
+
expect(incomplete_profile.bountysource).to be_nil
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
118
|
describe "#bountysource_username" do
|
119
119
|
context "a user with an associated bountysource account" do
|
120
|
-
it "returns
|
121
|
-
expect(complete_profile.bountysource_username
|
120
|
+
it "returns nil" do
|
121
|
+
expect(complete_profile.bountysource_username).to be_nil
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
125
|
context "a user without an associated bountysource acount" do
|
126
126
|
it "returns a string" do
|
127
|
-
expect(incomplete_profile.bountysource_username).to
|
127
|
+
expect(incomplete_profile.bountysource_username).to be_nil
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
@@ -132,13 +132,13 @@ describe Gratitude::Profile do
|
|
132
132
|
describe "#github" do
|
133
133
|
context "a user with an associated github account" do
|
134
134
|
it "returns a hash" do
|
135
|
-
expect(complete_profile.github
|
135
|
+
expect(complete_profile.github).to be_a(Hash)
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
139
|
context "a user without an associated github acount" do
|
140
140
|
it "returns a string" do
|
141
|
-
expect(incomplete_profile.github).to
|
141
|
+
expect(incomplete_profile.github).to be_nil
|
142
142
|
end
|
143
143
|
end
|
144
144
|
end
|
@@ -146,13 +146,13 @@ describe Gratitude::Profile do
|
|
146
146
|
describe "#github_username" do
|
147
147
|
context "a user with an associated github account" do
|
148
148
|
it "returns a string" do
|
149
|
-
expect(complete_profile.github_username
|
149
|
+
expect(complete_profile.github_username).to be_a(String)
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
153
153
|
context "a user without an associated github acount" do
|
154
154
|
it "returns a string" do
|
155
|
-
expect(incomplete_profile.github_username).to
|
155
|
+
expect(incomplete_profile.github_username).to be_nil
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
@@ -160,13 +160,13 @@ describe Gratitude::Profile do
|
|
160
160
|
describe "#openstreetmap" do
|
161
161
|
context "a user with an associated openstreetmap account" do
|
162
162
|
it "returns a hash" do
|
163
|
-
expect(complete_profile.openstreetmap
|
163
|
+
expect(complete_profile.openstreetmap).to be_a(Hash)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
167
167
|
context "a user without an associated openstreetmap acount" do
|
168
168
|
it "returns a string" do
|
169
|
-
expect(incomplete_profile.openstreetmap).to
|
169
|
+
expect(incomplete_profile.openstreetmap).to be_nil
|
170
170
|
end
|
171
171
|
end
|
172
172
|
end
|
@@ -174,13 +174,13 @@ describe Gratitude::Profile do
|
|
174
174
|
describe "#openstreetmap_username" do
|
175
175
|
context "a user with an associated openstreetmap account" do
|
176
176
|
it "returns a string" do
|
177
|
-
expect(complete_profile.openstreetmap_username
|
177
|
+
expect(complete_profile.openstreetmap_username).to be_a(String)
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
181
|
context "a user without an associated openstreetmap acount" do
|
182
182
|
it "returns a string" do
|
183
|
-
expect(incomplete_profile.openstreetmap_username).to
|
183
|
+
expect(incomplete_profile.openstreetmap_username).to be_nil
|
184
184
|
end
|
185
185
|
end
|
186
186
|
end
|
@@ -188,13 +188,13 @@ describe Gratitude::Profile do
|
|
188
188
|
describe "#twitter" do
|
189
189
|
context "a user with an associated twitter account" do
|
190
190
|
it "returns a hash" do
|
191
|
-
expect(complete_profile.twitter
|
191
|
+
expect(complete_profile.twitter).to be_a(Hash)
|
192
192
|
end
|
193
193
|
end
|
194
194
|
|
195
195
|
context "a user without an associated twitter acount" do
|
196
196
|
it "returns a string" do
|
197
|
-
expect(no_twitter_profile.twitter).to
|
197
|
+
expect(no_twitter_profile.twitter).to be_nil
|
198
198
|
end
|
199
199
|
end
|
200
200
|
end
|
@@ -202,13 +202,13 @@ describe Gratitude::Profile do
|
|
202
202
|
describe "#twitter_username" do
|
203
203
|
context "a user with an associated twitter account" do
|
204
204
|
it "returns a string" do
|
205
|
-
expect(complete_profile.twitter_username
|
205
|
+
expect(complete_profile.twitter_username).to be_a(String)
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
209
209
|
context "a user without an associated twitter acount" do
|
210
210
|
it "returns a string" do
|
211
|
-
expect(no_twitter_profile.twitter_username).to
|
211
|
+
expect(no_twitter_profile.twitter_username).to be_nil
|
212
212
|
end
|
213
213
|
end
|
214
214
|
end
|
@@ -216,7 +216,7 @@ describe Gratitude::Profile do
|
|
216
216
|
describe "#venmo" do
|
217
217
|
context "a user with an associated venmo account" do
|
218
218
|
it "returns a hash" do
|
219
|
-
expect(complete_profile.venmo
|
219
|
+
expect(complete_profile.venmo).to be_a(Hash)
|
220
220
|
end
|
221
221
|
end
|
222
222
|
end
|
@@ -224,20 +224,20 @@ describe Gratitude::Profile do
|
|
224
224
|
describe "#venmo_username" do
|
225
225
|
context "a user with an associated venmo account" do
|
226
226
|
it "returns a string" do
|
227
|
-
expect(complete_profile.venmo_username
|
227
|
+
expect(complete_profile.venmo_username).to be_a(String)
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
231
|
context "a user without an associated venmo acount" do
|
232
232
|
it "returns a string" do
|
233
|
-
expect(incomplete_profile.openstreetmap_username).to
|
233
|
+
expect(incomplete_profile.openstreetmap_username).to be_nil
|
234
234
|
end
|
235
235
|
end
|
236
236
|
end
|
237
237
|
|
238
238
|
describe "#amount_giving" do
|
239
239
|
it "returns a float" do
|
240
|
-
expect(complete_profile.amount_giving
|
240
|
+
expect(complete_profile.amount_giving).to be_a(Float)
|
241
241
|
end
|
242
242
|
|
243
243
|
it "returns the same value as its alias: #giving" do
|
@@ -247,7 +247,7 @@ describe Gratitude::Profile do
|
|
247
247
|
|
248
248
|
describe "#amount_receiving" do
|
249
249
|
it "returns a float" do
|
250
|
-
expect(complete_profile.amount_receiving
|
250
|
+
expect(complete_profile.amount_receiving).to be_a(Float)
|
251
251
|
end
|
252
252
|
|
253
253
|
it "returns the same value as its alias: #receiving" do
|
@@ -259,47 +259,47 @@ describe Gratitude::Profile do
|
|
259
259
|
describe "#goal" do
|
260
260
|
context "a user who has defined a goal" do
|
261
261
|
it "returns a Float" do
|
262
|
-
expect(complete_profile.goal
|
262
|
+
expect(complete_profile.goal).to be_a(Float)
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
266
266
|
context "a user who has not defined a goal" do
|
267
267
|
it "returns nil" do
|
268
|
-
expect(incomplete_profile.goal).to
|
268
|
+
expect(incomplete_profile.goal).to be_nil
|
269
269
|
end
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
273
|
-
describe "#
|
273
|
+
describe "#number" do
|
274
274
|
it "returns a string" do
|
275
|
-
expect(complete_profile.
|
275
|
+
expect(complete_profile.number).to be_a(String)
|
276
276
|
end
|
277
277
|
|
278
|
-
it "returns the same value as its alias: #
|
279
|
-
expect(complete_profile.
|
278
|
+
it "returns the same value as its alias: #account_type" do
|
279
|
+
expect(complete_profile.number).to eq(complete_profile.account_type)
|
280
280
|
end
|
281
281
|
end
|
282
282
|
|
283
283
|
describe "#id" do
|
284
284
|
it "returns a fixnum" do
|
285
|
-
expect(complete_profile.id
|
285
|
+
expect(complete_profile.id).to be_a(Fixnum)
|
286
286
|
end
|
287
287
|
end
|
288
288
|
|
289
|
-
describe "#
|
289
|
+
describe "#npatrons" do
|
290
290
|
it "returns a Fixnum" do
|
291
|
-
expect(complete_profile.
|
291
|
+
expect(complete_profile.npatrons).to be_a(Fixnum)
|
292
292
|
end
|
293
293
|
|
294
|
-
it "returns the same value as its alias: #
|
295
|
-
expect(complete_profile.
|
296
|
-
.to eq(complete_profile.
|
294
|
+
it "returns the same value as its alias: #number_of_patrons" do
|
295
|
+
expect(complete_profile.npatrons)
|
296
|
+
.to eq(complete_profile.number_of_patrons)
|
297
297
|
end
|
298
298
|
end
|
299
299
|
|
300
300
|
describe "#on" do
|
301
301
|
it "returns a string" do
|
302
|
-
expect(complete_profile.on
|
302
|
+
expect(complete_profile.on).to be_a(String)
|
303
303
|
end
|
304
304
|
end
|
305
305
|
|