jammed 0.1.0

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.
Files changed (51) hide show
  1. data/.gitignore +6 -0
  2. data/.rspec +1 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +10 -0
  5. data/LICENSE +22 -0
  6. data/README.md +54 -0
  7. data/Rakefile +44 -0
  8. data/examples/basics.rb +60 -0
  9. data/lib/jammed/base.rb +182 -0
  10. data/lib/jammed/followers.rb +36 -0
  11. data/lib/jammed/following.rb +36 -0
  12. data/lib/jammed/jams.rb +34 -0
  13. data/lib/jammed/likes.rb +32 -0
  14. data/lib/jammed/people_search.rb +55 -0
  15. data/lib/jammed/person.rb +32 -0
  16. data/lib/jammed/popular_jams.rb +14 -0
  17. data/lib/jammed/suggested_people.rb +14 -0
  18. data/lib/jammed/user.rb +158 -0
  19. data/lib/jammed/version.rb +4 -0
  20. data/lib/jammed.rb +28 -0
  21. data/spec/jammed/base_spec.rb +90 -0
  22. data/spec/jammed/followers_spec.rb +55 -0
  23. data/spec/jammed/following_spec.rb +55 -0
  24. data/spec/jammed/jams_spec.rb +53 -0
  25. data/spec/jammed/likes_spec.rb +51 -0
  26. data/spec/jammed/people_search_spec.rb +79 -0
  27. data/spec/jammed/person_spec.rb +38 -0
  28. data/spec/jammed/popular_jams_spec.rb +23 -0
  29. data/spec/jammed/suggested_people_spec.rb +18 -0
  30. data/spec/jammed/user_spec.rb +205 -0
  31. data/spec/sample_responses/followers.json +1495 -0
  32. data/spec/sample_responses/followers_affinity.json +1495 -0
  33. data/spec/sample_responses/followers_date.json +1281 -0
  34. data/spec/sample_responses/followers_name.json +0 -0
  35. data/spec/sample_responses/following.json +1495 -0
  36. data/spec/sample_responses/following_affinity.json +1495 -0
  37. data/spec/sample_responses/following_date.json +1406 -0
  38. data/spec/sample_responses/following_name.json +1406 -0
  39. data/spec/sample_responses/jams.json +620 -0
  40. data/spec/sample_responses/jams_past.json +602 -0
  41. data/spec/sample_responses/likes.json +1106 -0
  42. data/spec/sample_responses/likes_current.json +224 -0
  43. data/spec/sample_responses/likes_past.json +1106 -0
  44. data/spec/sample_responses/person.json +44 -0
  45. data/spec/sample_responses/popular.json +364 -0
  46. data/spec/sample_responses/search_artist.json +1377 -0
  47. data/spec/sample_responses/search_name.json +55 -0
  48. data/spec/sample_responses/search_track.json +1333 -0
  49. data/spec/sample_responses/suggested_people.json +1427 -0
  50. data/spec/spec_helper.rb +18 -0
  51. metadata +189 -0
@@ -0,0 +1,224 @@
1
+ {
2
+ "jams": [
3
+ {
4
+ "artist": "Marie Lafor\u00eat",
5
+ "caption": "",
6
+ "creationDate": "Wed, 18 Apr 2012 12:57:56 +0000",
7
+ "current": true,
8
+ "endDate": "Wed, 25 Apr 2012 12:57:56 +0000",
9
+ "from": "flaniel",
10
+ "id": "18j5lwu",
11
+ "jamvatarLarge": "http://static03.thisismyjam.com/i/d806cddf1900aa35e947f3948b6c78e8_395.jpg",
12
+ "jamvatarMedium": "http://static04.thisismyjam.com/i/d806cddf1900aa35e947f3948b6c78e8_185.jpg",
13
+ "jamvatarSmall": "http://static04.thisismyjam.com/i/d806cddf1900aa35e947f3948b6c78e8_80.jpg",
14
+ "likes": "http://api.thisismyjam.com/1/jams/18j5lwu/likes.json?key=987bcab01b929eb2c07877b224215c92",
15
+ "likesCount": 8,
16
+ "playCount": 32,
17
+ "title": "Marie Douceur/Marie Colere",
18
+ "via": "youtube",
19
+ "viaUrl": "http://www.youtube.com/watch?v=kgH_I_LoYpk"
20
+ },
21
+ {
22
+ "artist": "Gerry and the Holograms",
23
+ "caption": "way before Tupac stuck a hankie on his head and practised his skills in the mirror with a hairbrush was this",
24
+ "creationDate": "Tue, 17 Apr 2012 20:08:04 +0000",
25
+ "current": true,
26
+ "endDate": "Tue, 24 Apr 2012 20:08:04 +0000",
27
+ "from": "frenchbloke",
28
+ "id": "187llft",
29
+ "jamvatarLarge": "http://static01.thisismyjam.com/i/e1f4f5f2cd8bcbffc285da57bdf47cbe_395.jpg",
30
+ "jamvatarMedium": "http://static03.thisismyjam.com/i/e1f4f5f2cd8bcbffc285da57bdf47cbe_185.jpg",
31
+ "jamvatarSmall": "http://static02.thisismyjam.com/i/e1f4f5f2cd8bcbffc285da57bdf47cbe_80.jpg",
32
+ "likes": "http://api.thisismyjam.com/1/jams/187llft/likes.json?key=987bcab01b929eb2c07877b224215c92",
33
+ "likesCount": 5,
34
+ "playCount": 14,
35
+ "title": "Gerry & The Holograms",
36
+ "via": "youtube",
37
+ "viaUrl": "http://www.youtube.com/watch?v=k9u5rfyTIoo"
38
+ },
39
+ {
40
+ "artist": "Lionel Richie",
41
+ "caption": "",
42
+ "creationDate": "Tue, 17 Apr 2012 19:33:53 +0000",
43
+ "current": true,
44
+ "endDate": "Tue, 24 Apr 2012 19:33:53 +0000",
45
+ "from": "erinkilkenny",
46
+ "id": "186xprg",
47
+ "jamvatarLarge": "http://static02.thisismyjam.com/i/676959875a9196e67d496aa44744eec3_395.jpg",
48
+ "jamvatarMedium": "http://static01.thisismyjam.com/i/676959875a9196e67d496aa44744eec3_185.jpg",
49
+ "jamvatarSmall": "http://static03.thisismyjam.com/i/676959875a9196e67d496aa44744eec3_80.jpg",
50
+ "likes": "http://api.thisismyjam.com/1/jams/186xprg/likes.json?key=987bcab01b929eb2c07877b224215c92",
51
+ "likesCount": 1,
52
+ "playCount": 4,
53
+ "title": "Hello",
54
+ "via": "youtube",
55
+ "viaUrl": "http://www.youtube.com/watch?v=b_ILDFp5DGA"
56
+ },
57
+ {
58
+ "artist": "Konono N\u00ba1",
59
+ "caption": "",
60
+ "creationDate": "Tue, 17 Apr 2012 16:41:35 +0000",
61
+ "current": true,
62
+ "endDate": "Tue, 24 Apr 2012 16:41:35 +0000",
63
+ "from": "pierrepont",
64
+ "id": "183g15c",
65
+ "jamvatarLarge": "http://static03.thisismyjam.com/i/9edbd71ced0be87f23749a1ef2be8ec4_395.jpg",
66
+ "jamvatarMedium": "http://static04.thisismyjam.com/i/9edbd71ced0be87f23749a1ef2be8ec4_185.jpg",
67
+ "jamvatarSmall": "http://static01.thisismyjam.com/i/9edbd71ced0be87f23749a1ef2be8ec4_80.jpg",
68
+ "likes": "http://api.thisismyjam.com/1/jams/183g15c/likes.json?key=987bcab01b929eb2c07877b224215c92",
69
+ "likesCount": 2,
70
+ "playCount": 7,
71
+ "title": "Paradiso",
72
+ "via": "webaudio",
73
+ "viaUrl": "http://thefmly.com"
74
+ },
75
+ {
76
+ "artist": "Tevin Campbell",
77
+ "caption": "The lad was 14 when this was recorded, an amazing vocal performance!! Part written by Narada Michael Walden.",
78
+ "creationDate": "Mon, 16 Apr 2012 19:30:37 +0000",
79
+ "current": true,
80
+ "endDate": "Mon, 23 Apr 2012 19:30:37 +0000",
81
+ "from": "ely",
82
+ "id": "17lrj7j",
83
+ "jamvatarLarge": "http://static04.thisismyjam.com/i/604fa6b38d5533681996b1e80c911060_395.jpg",
84
+ "jamvatarMedium": "http://static03.thisismyjam.com/i/604fa6b38d5533681996b1e80c911060_185.jpg",
85
+ "jamvatarSmall": "http://static01.thisismyjam.com/i/604fa6b38d5533681996b1e80c911060_80.jpg",
86
+ "likes": "http://api.thisismyjam.com/1/jams/17lrj7j/likes.json?key=987bcab01b929eb2c07877b224215c92",
87
+ "likesCount": 1,
88
+ "playCount": 2,
89
+ "title": "Look What We'd Have (If You Were Mine)",
90
+ "via": "youtube",
91
+ "viaUrl": "http://www.youtube.com/watch?v=TaNyFkMymoo"
92
+ },
93
+ {
94
+ "artist": "Ratatat",
95
+ "caption": "If there is genre for 'Background music' ... these guys have nailed it.",
96
+ "creationDate": "Mon, 16 Apr 2012 13:05:07 +0000",
97
+ "current": true,
98
+ "endDate": "Mon, 23 Apr 2012 13:05:07 +0000",
99
+ "from": "Willisinavest",
100
+ "id": "17dvuib",
101
+ "jamvatarLarge": "http://static04.thisismyjam.com/i/13d6e96e2e02e9dc4301a8acebdac65a_395.jpg",
102
+ "jamvatarMedium": "http://static04.thisismyjam.com/i/13d6e96e2e02e9dc4301a8acebdac65a_185.jpg",
103
+ "jamvatarSmall": "http://static04.thisismyjam.com/i/13d6e96e2e02e9dc4301a8acebdac65a_80.jpg",
104
+ "likes": "http://api.thisismyjam.com/1/jams/17dvuib/likes.json?key=987bcab01b929eb2c07877b224215c92",
105
+ "likesCount": 2,
106
+ "playCount": 5,
107
+ "title": "Falcon Jab",
108
+ "via": "youtube",
109
+ "viaUrl": "http://www.youtube.com/watch?v=4ohkCQp4xL0"
110
+ },
111
+ {
112
+ "artist": "Kiss",
113
+ "caption": "I'm proposing this week is the week of Guilty Pleasures, songs you've no business liking but do. I'll start.",
114
+ "creationDate": "Mon, 16 Apr 2012 13:02:19 +0000",
115
+ "current": true,
116
+ "endDate": "Mon, 23 Apr 2012 13:02:19 +0000",
117
+ "from": "prayformojo",
118
+ "id": "17du8c2",
119
+ "jamvatarLarge": "http://static04.thisismyjam.com/i/2094f5a43bde8d6d4e046c0de95cd8b1_395.jpg",
120
+ "jamvatarMedium": "http://static03.thisismyjam.com/i/2094f5a43bde8d6d4e046c0de95cd8b1_185.jpg",
121
+ "jamvatarSmall": "http://static03.thisismyjam.com/i/2094f5a43bde8d6d4e046c0de95cd8b1_80.jpg",
122
+ "likes": "http://api.thisismyjam.com/1/jams/17du8c2/likes.json?key=987bcab01b929eb2c07877b224215c92",
123
+ "likesCount": 1,
124
+ "playCount": 7,
125
+ "title": "I Was Made For Loving' You",
126
+ "via": "youtube",
127
+ "viaUrl": "http://www.youtube.com/watch?v=kNGNLo8K6Fk"
128
+ },
129
+ {
130
+ "artist": "David Lynch",
131
+ "caption": "Probably a little NSFW...",
132
+ "creationDate": "Mon, 16 Apr 2012 13:02:17 +0000",
133
+ "current": true,
134
+ "endDate": "Mon, 23 Apr 2012 13:02:17 +0000",
135
+ "from": "chuck.sangster",
136
+ "id": "17duesr",
137
+ "jamvatarLarge": "http://static03.thisismyjam.com/i/f332ac6e17af2ac39e27b7d0ce5eeb9e_395.jpg",
138
+ "jamvatarMedium": "http://static04.thisismyjam.com/i/f332ac6e17af2ac39e27b7d0ce5eeb9e_185.jpg",
139
+ "jamvatarSmall": "http://static04.thisismyjam.com/i/f332ac6e17af2ac39e27b7d0ce5eeb9e_80.jpg",
140
+ "likes": "http://api.thisismyjam.com/1/jams/17duesr/likes.json?key=987bcab01b929eb2c07877b224215c92",
141
+ "likesCount": 1,
142
+ "playCount": 8,
143
+ "title": "Crazy Clown Time",
144
+ "via": "youtube",
145
+ "viaUrl": "http://www.youtube.com/watch?v=6QJpY2VNP0E"
146
+ },
147
+ {
148
+ "artist": "Celltone",
149
+ "caption": "Sorting MIDI notes with cellular automata. Source code:\u00a0http://goo.gl/ECvxY",
150
+ "creationDate": "Sat, 14 Apr 2012 20:10:51 +0000",
151
+ "current": true,
152
+ "endDate": "Sat, 21 Apr 2012 20:10:51 +0000",
153
+ "from": "ndreasa",
154
+ "id": "16omm5n",
155
+ "jamvatarLarge": "http://static02.thisismyjam.com/i/03fc5cac495be3fa04f761c4004f16b0_395.gif",
156
+ "jamvatarMedium": "http://static02.thisismyjam.com/i/03fc5cac495be3fa04f761c4004f16b0_185.gif",
157
+ "jamvatarSmall": "http://static01.thisismyjam.com/i/03fc5cac495be3fa04f761c4004f16b0_80.gif",
158
+ "likes": "http://api.thisismyjam.com/1/jams/16omm5n/likes.json?key=987bcab01b929eb2c07877b224215c92",
159
+ "likesCount": 13,
160
+ "playCount": 76,
161
+ "title": "Bubblesort",
162
+ "via": "soundcloud",
163
+ "viaUrl": "http://soundcloud.com/andreasjansson/celltone-bubblesort"
164
+ },
165
+ {
166
+ "artist": "Transvolta",
167
+ "caption": "Cosmic disco + vocoders, you can't go wrong... The disco computer really was the sound of the future :)",
168
+ "creationDate": "Fri, 13 Apr 2012 10:36:47 +0000",
169
+ "current": true,
170
+ "endDate": "Fri, 20 Apr 2012 10:36:47 +0000",
171
+ "from": "iivix",
172
+ "id": "162ce6v",
173
+ "jamvatarLarge": "http://static04.thisismyjam.com/i/541f7b6e550b98a40395c6dbf202c4dd_395.jpg",
174
+ "jamvatarMedium": "http://static02.thisismyjam.com/i/541f7b6e550b98a40395c6dbf202c4dd_185.jpg",
175
+ "jamvatarSmall": "http://static03.thisismyjam.com/i/541f7b6e550b98a40395c6dbf202c4dd_80.jpg",
176
+ "likes": "http://api.thisismyjam.com/1/jams/162ce6v/likes.json?key=987bcab01b929eb2c07877b224215c92",
177
+ "likesCount": 18,
178
+ "playCount": 48,
179
+ "title": "Disco Computer",
180
+ "via": "youtube",
181
+ "viaUrl": "http://www.youtube.com/watch?v=NETuCMeQds8"
182
+ },
183
+ {
184
+ "artist": "Talk Talk",
185
+ "caption": "",
186
+ "creationDate": "Thu, 12 Apr 2012 14:06:14 +0000",
187
+ "current": true,
188
+ "endDate": "Thu, 19 Apr 2012 14:06:14 +0000",
189
+ "from": "jennyariane",
190
+ "id": "15m83ef",
191
+ "jamvatarLarge": "http://static04.thisismyjam.com/i/be13363caa520fd7ed357356d6887e50_395.jpg",
192
+ "jamvatarMedium": "http://static04.thisismyjam.com/i/be13363caa520fd7ed357356d6887e50_185.jpg",
193
+ "jamvatarSmall": "http://static02.thisismyjam.com/i/be13363caa520fd7ed357356d6887e50_80.jpg",
194
+ "likes": "http://api.thisismyjam.com/1/jams/15m83ef/likes.json?key=987bcab01b929eb2c07877b224215c92",
195
+ "likesCount": 6,
196
+ "playCount": 19,
197
+ "title": "Happiness is Easy",
198
+ "via": "youtube",
199
+ "viaUrl": "http://www.youtube.com/watch?v=LyvKDDfTvks"
200
+ },
201
+ {
202
+ "artist": "Steely Dan",
203
+ "caption": "",
204
+ "creationDate": "Thu, 12 Apr 2012 10:56:42 +0000",
205
+ "current": true,
206
+ "endDate": "Thu, 19 Apr 2012 10:56:42 +0000",
207
+ "from": "thedanadams",
208
+ "id": "15j1q02",
209
+ "jamvatarLarge": "http://static02.thisismyjam.com/i/11ada2d51b17419d6da6a7168ad3fe21_395.jpg",
210
+ "jamvatarMedium": "http://static02.thisismyjam.com/i/11ada2d51b17419d6da6a7168ad3fe21_185.jpg",
211
+ "jamvatarSmall": "http://static04.thisismyjam.com/i/11ada2d51b17419d6da6a7168ad3fe21_80.jpg",
212
+ "likes": "http://api.thisismyjam.com/1/jams/15j1q02/likes.json?key=987bcab01b929eb2c07877b224215c92",
213
+ "likesCount": 2,
214
+ "playCount": 3,
215
+ "title": "Glamour Profession",
216
+ "via": "youtube",
217
+ "viaUrl": "http://www.youtube.com/watch?v=KCnRqWBzI2Q"
218
+ }
219
+ ],
220
+ "list": {
221
+ "hasMore": false,
222
+ "next": null
223
+ }
224
+ }