gratitude 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/CHANGELOG.md +14 -10
- data/Gemfile +7 -5
- data/Guardfile +6 -0
- data/README.md +36 -11
- data/gratitude.gemspec +3 -2
- data/lib/gratitude.rb +3 -1
- data/lib/gratitude/client.rb +4 -2
- data/lib/gratitude/connection.rb +10 -0
- data/lib/gratitude/payday.rb +23 -17
- data/lib/gratitude/profile.rb +63 -32
- data/lib/gratitude/statistics.rb +30 -28
- data/lib/gratitude/tips.rb +12 -23
- data/lib/gratitude/version.rb +1 -1
- data/spec/cassettes/current_tips.json +74 -0
- data/spec/cassettes/paydays.json +18 -7
- data/spec/cassettes/profiles.json +209 -0
- data/spec/cassettes/statistics.json +132 -110
- data/spec/cassettes/update_and_prune.json +208 -189
- data/spec/cassettes/update_tips.json +74 -0
- data/spec/gratitude/client_spec.rb +2 -2
- data/spec/gratitude/connection_spec.rb +20 -0
- data/spec/gratitude/payday_spec.rb +56 -79
- data/spec/gratitude/profile_spec.rb +195 -127
- data/spec/gratitude/statistics_spec.rb +36 -80
- data/spec/gratitude/tips_spec.rb +23 -41
- data/spec/spec_helper.rb +1 -0
- metadata +31 -21
- data/spec/cassettes/complete_profile.json +0 -119
- data/spec/cassettes/get_tips.json +0 -63
- data/spec/cassettes/goal_profile.json +0 -121
- data/spec/cassettes/incomplete_profile.json +0 -62
- data/spec/cassettes/post_multiple_tips.json +0 -68
- data/spec/cassettes/post_single_tip.json +0 -68
- data/spec/cassettes/post_tip_error.json +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http_interactions":[
|
|
3
|
-
{
|
|
4
|
-
"request":{
|
|
5
|
-
"method":"post",
|
|
6
|
-
"uri":"https://5962b93a-5bf7-4cb6-ae6f-aa4114c5e4f2:@www.gittip.com/gratitude_test/tips.json",
|
|
7
|
-
"body":{
|
|
8
|
-
"encoding":"UTF-8",
|
|
9
|
-
"string":"[{\"amount\":\"20\",\"platform\":\"gittip\",\"username\":\"not_a_real_user\"}]"
|
|
10
|
-
},
|
|
11
|
-
"headers":{
|
|
12
|
-
"Content-Type":[
|
|
13
|
-
"application/json"
|
|
14
|
-
],
|
|
15
|
-
"Accept":[
|
|
16
|
-
"application/json"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"response":{
|
|
21
|
-
"status":{
|
|
22
|
-
"code":200,
|
|
23
|
-
"message":"OK"
|
|
24
|
-
},
|
|
25
|
-
"headers":{
|
|
26
|
-
"Content-Type":[
|
|
27
|
-
"application/json"
|
|
28
|
-
],
|
|
29
|
-
"Date":[
|
|
30
|
-
"Sun, 20 Oct 2013 03:21:36 GMT"
|
|
31
|
-
],
|
|
32
|
-
"Expires":[
|
|
33
|
-
"Thu, 01 Jan 1970 00:00:00 GMT"
|
|
34
|
-
],
|
|
35
|
-
"Server":[
|
|
36
|
-
"Aspen! Cheroot!"
|
|
37
|
-
],
|
|
38
|
-
"Set-Cookie":[
|
|
39
|
-
"csrf_token=iyQSAZVfmuWKaWltmYauK2Jadl8oCunm; expires=Sun, 19 Oct 2014 03:21:36 GMT; Path=/",
|
|
40
|
-
"session=c08eaad1dae3407c9d31f5ca904364bd; expires=Sun, 27 Oct 2013 03:21:36 GMT; httponly; Path=/; secure"
|
|
41
|
-
],
|
|
42
|
-
"Vary":[
|
|
43
|
-
"Cookie"
|
|
44
|
-
],
|
|
45
|
-
"X-Frame-Options":[
|
|
46
|
-
"SAMEORIGIN"
|
|
47
|
-
],
|
|
48
|
-
"X-Gittip-Version":[
|
|
49
|
-
"10.1.35"
|
|
50
|
-
],
|
|
51
|
-
"Content-Length":[
|
|
52
|
-
"141"
|
|
53
|
-
],
|
|
54
|
-
"Connection":[
|
|
55
|
-
"keep-alive"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"body":{
|
|
59
|
-
"encoding":"UTF-8",
|
|
60
|
-
"string":"[\n {\n \"amount\": \"e\",\n \"error\": \"IntegrityError\",\n \"platform\": \"gittip\",\n \"username\": \"not_a_real_user\"\n }\n]"
|
|
61
|
-
},
|
|
62
|
-
"http_version":null
|
|
63
|
-
},
|
|
64
|
-
"recorded_at":"Sun, 20 Oct 2013 03:21:43 GMT"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"recorded_with":"VCR 2.5.0"
|
|
68
|
-
}
|