refinerycms-vimeo-videos 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. data/.gitignore +0 -1
  2. data/Gemfile.lock +33 -0
  3. data/README.markdown +8 -0
  4. data/TODO +2 -1
  5. data/app/controllers/admin/vimeo_account_controller.rb +30 -7
  6. data/app/controllers/admin/vimeo_videos_controller.rb +10 -9
  7. data/app/models/vimeo_embed_cache.rb +6 -1
  8. data/app/models/vimeo_meta_cache.rb +25 -24
  9. data/lib/refinerycms-vimeo-videos.rb +4 -1
  10. data/lib/refinerycms_vimeo_videos/account.rb +31 -0
  11. data/lib/refinerycms_vimeo_videos/version.rb +1 -1
  12. data/refinerycms-vimeo-videos.gemspec +146 -4
  13. data/spec/controllers/admin/vimeo_account_controller_spec.rb +0 -0
  14. data/spec/fixtures/advanced/album/add_video.json +4 -0
  15. data/spec/fixtures/advanced/album/create.json +7 -0
  16. data/spec/fixtures/advanced/album/delete.json +4 -0
  17. data/spec/fixtures/advanced/album/get_all.json +111 -0
  18. data/spec/fixtures/advanced/album/get_videos.json +30 -0
  19. data/spec/fixtures/advanced/album/remove_video.json +4 -0
  20. data/spec/fixtures/advanced/album/set_description.json +4 -0
  21. data/spec/fixtures/advanced/album/set_password.json +4 -0
  22. data/spec/fixtures/advanced/album/set_title.json +4 -0
  23. data/spec/fixtures/advanced/auth/access_token.txt +1 -0
  24. data/spec/fixtures/advanced/auth/check_access_token.json +9 -0
  25. data/spec/fixtures/advanced/auth/check_token.json +13 -0
  26. data/spec/fixtures/advanced/auth/get_frob.json +5 -0
  27. data/spec/fixtures/advanced/auth/get_token.json +13 -0
  28. data/spec/fixtures/advanced/auth/request_token.txt +1 -0
  29. data/spec/fixtures/advanced/channel/add_video.json +4 -0
  30. data/spec/fixtures/advanced/channel/get_all.json +1357 -0
  31. data/spec/fixtures/advanced/channel/get_info.json +55 -0
  32. data/spec/fixtures/advanced/channel/get_moderators.json +45 -0
  33. data/spec/fixtures/advanced/channel/get_subscribers.json +44 -0
  34. data/spec/fixtures/advanced/channel/get_videos.json +19 -0
  35. data/spec/fixtures/advanced/channel/remove_video.json +4 -0
  36. data/spec/fixtures/advanced/channel/subscribe.json +4 -0
  37. data/spec/fixtures/advanced/channel/unsubscribe.json +4 -0
  38. data/spec/fixtures/advanced/contact/get_all.json +117 -0
  39. data/spec/fixtures/advanced/contact/get_mutual.json +80 -0
  40. data/spec/fixtures/advanced/contact/get_online.json +47 -0
  41. data/spec/fixtures/advanced/contact/get_who_added.json +117 -0
  42. data/spec/fixtures/advanced/group/add_video.json +4 -0
  43. data/spec/fixtures/advanced/group/get_all.json +1532 -0
  44. data/spec/fixtures/advanced/group/get_files.json +255 -0
  45. data/spec/fixtures/advanced/group/get_info.json +72 -0
  46. data/spec/fixtures/advanced/group/get_members.json +862 -0
  47. data/spec/fixtures/advanced/group/get_moderators.json +44 -0
  48. data/spec/fixtures/advanced/group/get_video_comments.json +96 -0
  49. data/spec/fixtures/advanced/group/get_videos.json +102 -0
  50. data/spec/fixtures/advanced/group/join.json +4 -0
  51. data/spec/fixtures/advanced/group/leave.json +4 -0
  52. data/spec/fixtures/advanced/group_events/get_month.json +141 -0
  53. data/spec/fixtures/advanced/group_events/get_past.json +141 -0
  54. data/spec/fixtures/advanced/group_events/get_upcoming.json +141 -0
  55. data/spec/fixtures/advanced/group_forums/get_topic_comments.json +222 -0
  56. data/spec/fixtures/advanced/group_forums/get_topics.json +504 -0
  57. data/spec/fixtures/advanced/person/add_contact.json +4 -0
  58. data/spec/fixtures/advanced/person/add_subscription.json +4 -0
  59. data/spec/fixtures/advanced/person/find_by_email.json +9 -0
  60. data/spec/fixtures/advanced/person/get_hd_embeds.json +8 -0
  61. data/spec/fixtures/advanced/person/get_info.json +20 -0
  62. data/spec/fixtures/advanced/person/get_portrait_urls.json +28 -0
  63. data/spec/fixtures/advanced/person/remove_contact.json +4 -0
  64. data/spec/fixtures/advanced/person/remove_subscription.json +4 -0
  65. data/spec/fixtures/advanced/test/echo.json +8 -0
  66. data/spec/fixtures/advanced/test/login.json +8 -0
  67. data/spec/fixtures/advanced/test/null.json +4 -0
  68. data/spec/fixtures/advanced/upload/get_quota.json +16 -0
  69. data/spec/fixtures/advanced/upload/get_ticket.json +8 -0
  70. data/spec/fixtures/advanced/upload/sample_iTunes.mov +0 -0
  71. data/spec/fixtures/advanced/video/add_cast.json +4 -0
  72. data/spec/fixtures/advanced/video/add_comment.json +7 -0
  73. data/spec/fixtures/advanced/video/add_photos.json +4 -0
  74. data/spec/fixtures/advanced/video/add_tags.json +4 -0
  75. data/spec/fixtures/advanced/video/clear_tags.json +4 -0
  76. data/spec/fixtures/advanced/video/delete.json +4 -0
  77. data/spec/fixtures/advanced/video/delete_comment.json +4 -0
  78. data/spec/fixtures/advanced/video/edit_comment.json +4 -0
  79. data/spec/fixtures/advanced/video/get_all.json +30 -0
  80. data/spec/fixtures/advanced/video/get_appears_in.json +10 -0
  81. data/spec/fixtures/advanced/video/get_by_tag.json +237 -0
  82. data/spec/fixtures/advanced/video/get_cast.json +42 -0
  83. data/spec/fixtures/advanced/video/get_comments_list.json +52 -0
  84. data/spec/fixtures/advanced/video/get_contacts_liked.json +48 -0
  85. data/spec/fixtures/advanced/video/get_contacts_uploaded.json +237 -0
  86. data/spec/fixtures/advanced/video/get_info.json +246 -0
  87. data/spec/fixtures/advanced/video/get_likes.json +32 -0
  88. data/spec/fixtures/advanced/video/get_subscriptions.json +237 -0
  89. data/spec/fixtures/advanced/video/get_thumbnail_urls.json +28 -0
  90. data/spec/fixtures/advanced/video/get_uploaded.json +30 -0
  91. data/spec/fixtures/advanced/video/remove_cast.json +4 -0
  92. data/spec/fixtures/advanced/video/remove_tag.json +4 -0
  93. data/spec/fixtures/advanced/video/search.json +237 -0
  94. data/spec/fixtures/advanced/video/set_description.json +4 -0
  95. data/spec/fixtures/advanced/video/set_like.json +4 -0
  96. data/spec/fixtures/advanced/video/set_privacy.json +4 -0
  97. data/spec/fixtures/advanced/video/set_title.json +4 -0
  98. data/spec/fixtures/advanced/video_embed/get_presets.json +8 -0
  99. data/spec/fixtures/advanced/video_embed/set_preset.json +4 -0
  100. data/spec/fixtures/oembed/oembed.json +5 -0
  101. data/spec/fixtures/simple/activity/contacts_did.json +1 -0
  102. data/spec/fixtures/simple/activity/everyone_did.json +1 -0
  103. data/spec/fixtures/simple/activity/happened_to_contacts.json +1 -0
  104. data/spec/fixtures/simple/activity/happened_to_user.json +1 -0
  105. data/spec/fixtures/simple/activity/user_did.json +1 -0
  106. data/spec/fixtures/simple/album/info.json +1 -0
  107. data/spec/fixtures/simple/album/videos.json +1 -0
  108. data/spec/fixtures/simple/channel/info.json +1 -0
  109. data/spec/fixtures/simple/channel/videos.json +1 -0
  110. data/spec/fixtures/simple/group/info.json +1 -0
  111. data/spec/fixtures/simple/group/users.json +1 -0
  112. data/spec/fixtures/simple/group/videos.json +1 -0
  113. data/spec/fixtures/simple/user/albums.json +1 -0
  114. data/spec/fixtures/simple/user/all_videos.json +1 -0
  115. data/spec/fixtures/simple/user/appears_in.json +1 -0
  116. data/spec/fixtures/simple/user/channels.json +1 -0
  117. data/spec/fixtures/simple/user/contacts_like.json +1 -0
  118. data/spec/fixtures/simple/user/contacts_videos.json +1 -0
  119. data/spec/fixtures/simple/user/groups.json +1 -0
  120. data/spec/fixtures/simple/user/info.json +1 -0
  121. data/spec/fixtures/simple/user/likes.json +1 -0
  122. data/spec/fixtures/simple/user/subscriptions.json +1 -0
  123. data/spec/fixtures/simple/user/videos.json +1 -0
  124. data/spec/fixtures/simple/video/info.json +1 -0
  125. data/spec/models/vimeo_embed_cache_spec.rb +65 -0
  126. data/spec/models/vimeo_meta_cache_spec.rb +24 -0
  127. data/spec/models/vimeo_video_spec.rb +0 -8
  128. data/spec/vimeo_helper.rb +54 -0
  129. metadata +131 -3
  130. data/app/controllers/admin/vimeo_base_controller.rb +0 -40
@@ -0,0 +1,255 @@
1
+ {
2
+ "generated_in":"0.2236",
3
+ "stat":"ok",
4
+ "files":{
5
+ "on_this_page":"6",
6
+ "page":"1",
7
+ "perpage":"25",
8
+ "total":"6",
9
+ "file":[
10
+ {
11
+ "add_date":"2009-09-01 14:31:38",
12
+ "downloads":"20",
13
+ "id":"4883",
14
+ "title":"CobraCrane Backpacker Kit",
15
+ "creator":{
16
+ "display_name":"Frederick Davis",
17
+ "id":"1208995",
18
+ "is_plus":"1",
19
+ "is_staff":"0",
20
+ "profileurl":"http:\/\/vimeo.com\/fdvideoproduct",
21
+ "realname":"Frederick Davis",
22
+ "username":"fdvideoproduct",
23
+ "videosurl":"http:\/\/vimeo.com\/fdvideoproduct\/videos",
24
+ "portraits":{
25
+ "portrait":[
26
+ {
27
+ "height":"30",
28
+ "width":"30",
29
+ "_content":"http:\/\/images.vimeo.com\/11\/49\/67\/114967414\/114967414_30.jpg"
30
+ },
31
+ {
32
+ "height":"75",
33
+ "width":"75",
34
+ "_content":"http:\/\/images.vimeo.com\/11\/49\/67\/114967414\/114967414_75.jpg"
35
+ },
36
+ {
37
+ "height":"100",
38
+ "width":"100",
39
+ "_content":"http:\/\/images.vimeo.com\/11\/49\/67\/114967414\/114967414_100.jpg"
40
+ },
41
+ {
42
+ "height":"300",
43
+ "width":"300",
44
+ "_content":"http:\/\/images.vimeo.com\/11\/49\/67\/114967414\/114967414_300.jpg"
45
+ }
46
+ ]
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "add_date":"2009-08-24 08:10:27",
52
+ "downloads":"28",
53
+ "id":"4806",
54
+ "title":"Vimeo Offline: Paris",
55
+ "creator":{
56
+ "display_name":"Karen Abad \u2665s Dinosaurs.",
57
+ "id":"266269",
58
+ "is_plus":"1",
59
+ "is_staff":"1",
60
+ "profileurl":"http:\/\/vimeo.com\/karenabad",
61
+ "realname":"Karen Abad \u2665s Dinosaurs.",
62
+ "username":"karenabad",
63
+ "videosurl":"http:\/\/vimeo.com\/karenabad\/videos",
64
+ "portraits":{
65
+ "portrait":[
66
+ {
67
+ "height":"30",
68
+ "width":"30",
69
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/17\/portrait-29391761.jpg"
70
+ },
71
+ {
72
+ "height":"75",
73
+ "width":"75",
74
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/23\/portrait-29392351.jpg"
75
+ },
76
+ {
77
+ "height":"100",
78
+ "width":"100",
79
+ "_content":"http:\/\/00.media.vimeo.com\/d1\/5\/29\/41\/82\/portrait-29418290.jpg"
80
+ },
81
+ {
82
+ "height":"300",
83
+ "width":"300",
84
+ "_content":"http:\/\/50.media.vimeo.com\/d1\/5\/29\/41\/26\/portrait-29412655.jpg"
85
+ }
86
+ ]
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "add_date":"2009-08-24 08:10:06",
92
+ "downloads":"20",
93
+ "id":"4805",
94
+ "title":"Vimeo Offline: Paris",
95
+ "creator":{
96
+ "display_name":"Karen Abad \u2665s Dinosaurs.",
97
+ "id":"266269",
98
+ "is_plus":"1",
99
+ "is_staff":"1",
100
+ "profileurl":"http:\/\/vimeo.com\/karenabad",
101
+ "realname":"Karen Abad \u2665s Dinosaurs.",
102
+ "username":"karenabad",
103
+ "videosurl":"http:\/\/vimeo.com\/karenabad\/videos",
104
+ "portraits":{
105
+ "portrait":[
106
+ {
107
+ "height":"30",
108
+ "width":"30",
109
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/17\/portrait-29391761.jpg"
110
+ },
111
+ {
112
+ "height":"75",
113
+ "width":"75",
114
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/23\/portrait-29392351.jpg"
115
+ },
116
+ {
117
+ "height":"100",
118
+ "width":"100",
119
+ "_content":"http:\/\/00.media.vimeo.com\/d1\/5\/29\/41\/82\/portrait-29418290.jpg"
120
+ },
121
+ {
122
+ "height":"300",
123
+ "width":"300",
124
+ "_content":"http:\/\/50.media.vimeo.com\/d1\/5\/29\/41\/26\/portrait-29412655.jpg"
125
+ }
126
+ ]
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "add_date":"2009-08-24 04:39:01",
132
+ "downloads":"14",
133
+ "id":"4802",
134
+ "title":"Vimeo Offline: Berlin",
135
+ "text":"Photo by Gigi Gatewood\n\nView the entire set here: http:\/\/www.flickr.com\/photos\/karenabad\/sets\/72157621968228525\/",
136
+ "creator":{
137
+ "display_name":"Karen Abad \u2665s Dinosaurs.",
138
+ "id":"266269",
139
+ "is_plus":"1",
140
+ "is_staff":"1",
141
+ "profileurl":"http:\/\/vimeo.com\/karenabad",
142
+ "realname":"Karen Abad \u2665s Dinosaurs.",
143
+ "username":"karenabad",
144
+ "videosurl":"http:\/\/vimeo.com\/karenabad\/videos",
145
+ "portraits":{
146
+ "portrait":[
147
+ {
148
+ "height":"30",
149
+ "width":"30",
150
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/17\/portrait-29391761.jpg"
151
+ },
152
+ {
153
+ "height":"75",
154
+ "width":"75",
155
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/23\/portrait-29392351.jpg"
156
+ },
157
+ {
158
+ "height":"100",
159
+ "width":"100",
160
+ "_content":"http:\/\/00.media.vimeo.com\/d1\/5\/29\/41\/82\/portrait-29418290.jpg"
161
+ },
162
+ {
163
+ "height":"300",
164
+ "width":"300",
165
+ "_content":"http:\/\/50.media.vimeo.com\/d1\/5\/29\/41\/26\/portrait-29412655.jpg"
166
+ }
167
+ ]
168
+ }
169
+ }
170
+ },
171
+ {
172
+ "add_date":"2009-08-24 04:38:22",
173
+ "downloads":"14",
174
+ "id":"4801",
175
+ "title":"Vimeo Offline: Berlin",
176
+ "text":"Photo by Gigi Gatewood\n\nView the entire set here: http:\/\/www.flickr.com\/photos\/karenabad\/sets\/72157621968228525\/",
177
+ "creator":{
178
+ "display_name":"Karen Abad \u2665s Dinosaurs.",
179
+ "id":"266269",
180
+ "is_plus":"1",
181
+ "is_staff":"1",
182
+ "profileurl":"http:\/\/vimeo.com\/karenabad",
183
+ "realname":"Karen Abad \u2665s Dinosaurs.",
184
+ "username":"karenabad",
185
+ "videosurl":"http:\/\/vimeo.com\/karenabad\/videos",
186
+ "portraits":{
187
+ "portrait":[
188
+ {
189
+ "height":"30",
190
+ "width":"30",
191
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/17\/portrait-29391761.jpg"
192
+ },
193
+ {
194
+ "height":"75",
195
+ "width":"75",
196
+ "_content":"http:\/\/10.media.vimeo.com\/d1\/5\/29\/39\/23\/portrait-29392351.jpg"
197
+ },
198
+ {
199
+ "height":"100",
200
+ "width":"100",
201
+ "_content":"http:\/\/00.media.vimeo.com\/d1\/5\/29\/41\/82\/portrait-29418290.jpg"
202
+ },
203
+ {
204
+ "height":"300",
205
+ "width":"300",
206
+ "_content":"http:\/\/50.media.vimeo.com\/d1\/5\/29\/41\/26\/portrait-29412655.jpg"
207
+ }
208
+ ]
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "add_date":"2009-07-21 13:27:10",
214
+ "downloads":"73",
215
+ "id":"4435",
216
+ "title":"World Tour Poster",
217
+ "text":"we're coming for you!",
218
+ "creator":{
219
+ "display_name":"Blake Whitman",
220
+ "id":"151382",
221
+ "is_plus":"1",
222
+ "is_staff":"1",
223
+ "profileurl":"http:\/\/vimeo.com\/blakewhitman",
224
+ "realname":"Blake Whitman",
225
+ "username":"blakewhitman",
226
+ "videosurl":"http:\/\/vimeo.com\/blakewhitman\/videos",
227
+ "portraits":{
228
+ "portrait":[
229
+ {
230
+ "height":"30",
231
+ "width":"30",
232
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_30.jpg"
233
+ },
234
+ {
235
+ "height":"75",
236
+ "width":"75",
237
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_75.jpg"
238
+ },
239
+ {
240
+ "height":"100",
241
+ "width":"100",
242
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_100.jpg"
243
+ },
244
+ {
245
+ "height":"300",
246
+ "width":"300",
247
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_300.jpg"
248
+ }
249
+ ]
250
+ }
251
+ }
252
+ }
253
+ ]
254
+ }
255
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "generated_in":"0.0511",
3
+ "stat":"ok",
4
+ "groups":{
5
+ "on_this_page":"1",
6
+ "page":"1",
7
+ "perpage":"25",
8
+ "total":"1",
9
+ "group":{
10
+ "id":"20067",
11
+ "is_featured":"1",
12
+ "name":"Vimeo World Tour '09",
13
+ "description":"We're coming to Europe! For 11 days,\n Karen and I will be gallivanting across the European lands to meet and greet all you fine Vimeo members and hold Vimeo Offline parties. This Group will be a place for everyone to share videos of the events and the video blog of the trip that Karen and I will be shooting.\n\nVimeo Offline: Europe\nBerlin - August 19\nParis - August 22\nLondon - August 25",
14
+ "created_on":"2009-07-20 18:13:20",
15
+ "modified_on":"2009-09-23 15:55:42",
16
+ "total_videos":"10",
17
+ "total_members":"430",
18
+ "total_threads":"13",
19
+ "total_files":"6",
20
+ "total_events":"3",
21
+ "url":"http:\/\/vimeo.com\/groups\/worldtour",
22
+ "logo_url":"http:\/\/images.vimeo.com\/grouplogo-32068.jpg",
23
+ "permissions":{
24
+ "can_users_apply":"1",
25
+ "group_type":"public",
26
+ "who_can_add_vids":"mods",
27
+ "who_can_comment":"all",
28
+ "who_can_create_events":"all",
29
+ "who_can_invite":"members",
30
+ "who_can_upload":"all",
31
+ "who_can_use_forums":"all"
32
+ },
33
+ "calendar":{
34
+ "type":"vimeo"
35
+ },
36
+ "creator":{
37
+ "display_name":"Blake Whitman",
38
+ "id":"151382",
39
+ "is_plus":"1",
40
+ "is_staff":"1",
41
+ "profileurl":"http:\/\/vimeo.com\/blakewhitman",
42
+ "realname":"Blake Whitman",
43
+ "username":"blakewhitman",
44
+ "videosurl":"http:\/\/vimeo.com\/blakewhitman\/videos",
45
+ "portraits":{
46
+ "portrait":[
47
+ {
48
+ "height":"30",
49
+ "width":"30",
50
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_30.jpg"
51
+ },
52
+ {
53
+ "height":"75",
54
+ "width":"75",
55
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_75.jpg"
56
+ },
57
+ {
58
+ "height":"100",
59
+ "width":"100",
60
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_100.jpg"
61
+ },
62
+ {
63
+ "height":"300",
64
+ "width":"300",
65
+ "_content":"http:\/\/images.vimeo.com\/11\/60\/62\/116062176\/116062176_300.jpg"
66
+ }
67
+ ]
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }