slainer68_vimeo 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/CHANGELOG.rdoc +24 -0
  2. data/LICENSE +20 -0
  3. data/README.markdown +330 -0
  4. data/Rakefile +100 -0
  5. data/VERSION.yml +5 -0
  6. data/init.rb +2 -0
  7. data/lib/vimeo/advanced/album.rb +55 -0
  8. data/lib/vimeo/advanced/base.rb +126 -0
  9. data/lib/vimeo/advanced/channel.rb +55 -0
  10. data/lib/vimeo/advanced/contact.rb +30 -0
  11. data/lib/vimeo/advanced/group.rb +62 -0
  12. data/lib/vimeo/advanced/group_events.rb +25 -0
  13. data/lib/vimeo/advanced/group_forums.rb +19 -0
  14. data/lib/vimeo/advanced/person.rb +47 -0
  15. data/lib/vimeo/advanced/simple_upload/chunk.rb +50 -0
  16. data/lib/vimeo/advanced/simple_upload/task.rb +85 -0
  17. data/lib/vimeo/advanced/simple_upload.rb +46 -0
  18. data/lib/vimeo/advanced/test.rb +19 -0
  19. data/lib/vimeo/advanced/upload.rb +35 -0
  20. data/lib/vimeo/advanced/video.rb +141 -0
  21. data/lib/vimeo/advanced/video_embed.rb +17 -0
  22. data/lib/vimeo/advanced.rb +20 -0
  23. data/lib/vimeo/simple/activity.rb +42 -0
  24. data/lib/vimeo/simple/album.rb +21 -0
  25. data/lib/vimeo/simple/base.rb +10 -0
  26. data/lib/vimeo/simple/channel.rb +21 -0
  27. data/lib/vimeo/simple/group.rb +28 -0
  28. data/lib/vimeo/simple/user.rb +89 -0
  29. data/lib/vimeo/simple/video.rb +14 -0
  30. data/lib/vimeo/simple.rb +14 -0
  31. data/lib/vimeo.rb +12 -0
  32. data/slainer68_vimeo.gemspec +227 -0
  33. data/test/fixtures/advanced/album/add_video.json +4 -0
  34. data/test/fixtures/advanced/album/create.json +7 -0
  35. data/test/fixtures/advanced/album/delete.json +4 -0
  36. data/test/fixtures/advanced/album/get_all.json +111 -0
  37. data/test/fixtures/advanced/album/get_videos.json +30 -0
  38. data/test/fixtures/advanced/album/remove_video.json +4 -0
  39. data/test/fixtures/advanced/album/set_description.json +4 -0
  40. data/test/fixtures/advanced/album/set_password.json +4 -0
  41. data/test/fixtures/advanced/album/set_title.json +4 -0
  42. data/test/fixtures/advanced/auth/access_token.txt +1 -0
  43. data/test/fixtures/advanced/auth/check_access_token.json +9 -0
  44. data/test/fixtures/advanced/auth/check_token.json +13 -0
  45. data/test/fixtures/advanced/auth/get_frob.json +5 -0
  46. data/test/fixtures/advanced/auth/get_token.json +13 -0
  47. data/test/fixtures/advanced/auth/request_token.txt +1 -0
  48. data/test/fixtures/advanced/channel/add_video.json +4 -0
  49. data/test/fixtures/advanced/channel/get_all.json +1357 -0
  50. data/test/fixtures/advanced/channel/get_info.json +55 -0
  51. data/test/fixtures/advanced/channel/get_moderators.json +45 -0
  52. data/test/fixtures/advanced/channel/get_subscribers.json +44 -0
  53. data/test/fixtures/advanced/channel/get_videos.json +19 -0
  54. data/test/fixtures/advanced/channel/remove_video.json +4 -0
  55. data/test/fixtures/advanced/channel/subscribe.json +4 -0
  56. data/test/fixtures/advanced/channel/unsubscribe.json +4 -0
  57. data/test/fixtures/advanced/contact/get_all.json +117 -0
  58. data/test/fixtures/advanced/contact/get_mutual.json +80 -0
  59. data/test/fixtures/advanced/contact/get_online.json +47 -0
  60. data/test/fixtures/advanced/contact/get_who_added.json +117 -0
  61. data/test/fixtures/advanced/group/add_video.json +4 -0
  62. data/test/fixtures/advanced/group/get_all.json +1532 -0
  63. data/test/fixtures/advanced/group/get_files.json +255 -0
  64. data/test/fixtures/advanced/group/get_info.json +72 -0
  65. data/test/fixtures/advanced/group/get_members.json +862 -0
  66. data/test/fixtures/advanced/group/get_moderators.json +44 -0
  67. data/test/fixtures/advanced/group/get_video_comments.json +96 -0
  68. data/test/fixtures/advanced/group/get_videos.json +102 -0
  69. data/test/fixtures/advanced/group/join.json +4 -0
  70. data/test/fixtures/advanced/group/leave.json +4 -0
  71. data/test/fixtures/advanced/group_events/get_month.json +141 -0
  72. data/test/fixtures/advanced/group_events/get_past.json +141 -0
  73. data/test/fixtures/advanced/group_events/get_upcoming.json +141 -0
  74. data/test/fixtures/advanced/group_forums/get_topic_comments.json +222 -0
  75. data/test/fixtures/advanced/group_forums/get_topics.json +504 -0
  76. data/test/fixtures/advanced/person/add_contact.json +4 -0
  77. data/test/fixtures/advanced/person/add_subscription.json +4 -0
  78. data/test/fixtures/advanced/person/find_by_email.json +9 -0
  79. data/test/fixtures/advanced/person/get_hd_embeds.json +8 -0
  80. data/test/fixtures/advanced/person/get_info.json +20 -0
  81. data/test/fixtures/advanced/person/get_portrait_urls.json +28 -0
  82. data/test/fixtures/advanced/person/remove_contact.json +4 -0
  83. data/test/fixtures/advanced/person/remove_subscription.json +4 -0
  84. data/test/fixtures/advanced/test/echo.json +8 -0
  85. data/test/fixtures/advanced/test/login.json +8 -0
  86. data/test/fixtures/advanced/test/null.json +4 -0
  87. data/test/fixtures/advanced/upload/get_quota.json +16 -0
  88. data/test/fixtures/advanced/upload/get_ticket.json +8 -0
  89. data/test/fixtures/advanced/upload/sample_iTunes.mov +0 -0
  90. data/test/fixtures/advanced/video/add_cast.json +4 -0
  91. data/test/fixtures/advanced/video/add_comment.json +7 -0
  92. data/test/fixtures/advanced/video/add_photos.json +4 -0
  93. data/test/fixtures/advanced/video/add_tags.json +4 -0
  94. data/test/fixtures/advanced/video/clear_tags.json +4 -0
  95. data/test/fixtures/advanced/video/delete.json +4 -0
  96. data/test/fixtures/advanced/video/delete_comment.json +4 -0
  97. data/test/fixtures/advanced/video/edit_comment.json +4 -0
  98. data/test/fixtures/advanced/video/get_all.json +30 -0
  99. data/test/fixtures/advanced/video/get_appears_in.json +10 -0
  100. data/test/fixtures/advanced/video/get_by_tag.json +237 -0
  101. data/test/fixtures/advanced/video/get_cast.json +42 -0
  102. data/test/fixtures/advanced/video/get_comments_list.json +52 -0
  103. data/test/fixtures/advanced/video/get_contacts_liked.json +48 -0
  104. data/test/fixtures/advanced/video/get_contacts_uploaded.json +237 -0
  105. data/test/fixtures/advanced/video/get_info.json +246 -0
  106. data/test/fixtures/advanced/video/get_likes.json +32 -0
  107. data/test/fixtures/advanced/video/get_subscriptions.json +237 -0
  108. data/test/fixtures/advanced/video/get_thumbnail_urls.json +28 -0
  109. data/test/fixtures/advanced/video/get_uploaded.json +30 -0
  110. data/test/fixtures/advanced/video/remove_cast.json +4 -0
  111. data/test/fixtures/advanced/video/remove_tag.json +4 -0
  112. data/test/fixtures/advanced/video/search.json +237 -0
  113. data/test/fixtures/advanced/video/set_description.json +4 -0
  114. data/test/fixtures/advanced/video/set_like.json +4 -0
  115. data/test/fixtures/advanced/video/set_preset.json +4 -0
  116. data/test/fixtures/advanced/video/set_privacy.json +4 -0
  117. data/test/fixtures/advanced/video/set_title.json +4 -0
  118. data/test/fixtures/advanced/video_embed/get_presets.json +8 -0
  119. data/test/fixtures/advanced/video_embed/set_preset.json +4 -0
  120. data/test/fixtures/simple/activity/contacts_did.json +1 -0
  121. data/test/fixtures/simple/activity/everyone_did.json +1 -0
  122. data/test/fixtures/simple/activity/happened_to_contacts.json +1 -0
  123. data/test/fixtures/simple/activity/happened_to_user.json +1 -0
  124. data/test/fixtures/simple/activity/user_did.json +1 -0
  125. data/test/fixtures/simple/album/info.json +1 -0
  126. data/test/fixtures/simple/album/videos.json +1 -0
  127. data/test/fixtures/simple/channel/info.json +1 -0
  128. data/test/fixtures/simple/channel/videos.json +1 -0
  129. data/test/fixtures/simple/group/info.json +1 -0
  130. data/test/fixtures/simple/group/users.json +1 -0
  131. data/test/fixtures/simple/group/videos.json +1 -0
  132. data/test/fixtures/simple/user/albums.json +1 -0
  133. data/test/fixtures/simple/user/all_videos.json +1 -0
  134. data/test/fixtures/simple/user/appears_in.json +1 -0
  135. data/test/fixtures/simple/user/channels.json +1 -0
  136. data/test/fixtures/simple/user/contacts_like.json +1 -0
  137. data/test/fixtures/simple/user/contacts_videos.json +1 -0
  138. data/test/fixtures/simple/user/groups.json +1 -0
  139. data/test/fixtures/simple/user/info.json +1 -0
  140. data/test/fixtures/simple/user/likes.json +1 -0
  141. data/test/fixtures/simple/user/subscriptions.json +1 -0
  142. data/test/fixtures/simple/user/videos.json +1 -0
  143. data/test/fixtures/simple/video/info.json +1 -0
  144. data/test/test_helper.rb +64 -0
  145. data/test/vimeo/advanced/album_test.rb +75 -0
  146. data/test/vimeo/advanced/auth_test.rb +30 -0
  147. data/test/vimeo/advanced/base_test.rb +21 -0
  148. data/test/vimeo/advanced/channels_test.rb +79 -0
  149. data/test/vimeo/advanced/contacts_test.rb +40 -0
  150. data/test/vimeo/advanced/group_events_test.rb +33 -0
  151. data/test/vimeo/advanced/group_forums_test.rb +26 -0
  152. data/test/vimeo/advanced/groups_test.rb +82 -0
  153. data/test/vimeo/advanced/person_test.rb +69 -0
  154. data/test/vimeo/advanced/test_test.rb +33 -0
  155. data/test/vimeo/advanced/upload_test.rb +25 -0
  156. data/test/vimeo/advanced/videos_embed_test.rb +27 -0
  157. data/test/vimeo/advanced/videos_test.rb +212 -0
  158. data/test/vimeo/advanced_test.rb +0 -0
  159. data/test/vimeo/simple/activity_test.rb +60 -0
  160. data/test/vimeo/simple/album_test.rb +31 -0
  161. data/test/vimeo/simple/channel_test.rb +31 -0
  162. data/test/vimeo/simple/group_test.rb +41 -0
  163. data/test/vimeo/simple/user_test.rb +112 -0
  164. data/test/vimeo/simple/video_test.rb +22 -0
  165. data/test/vimeo/simple_test.rb +0 -0
  166. data/test/vimeo_test.rb +0 -0
  167. metadata +304 -0
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.1217",
3
+ "stat":"ok"
4
+ }
@@ -0,0 +1 @@
1
+ oauth_token=12345&oauth_token_secret=secret
@@ -0,0 +1,9 @@
1
+ {
2
+ "token":"token",
3
+ "permission":"write",
4
+ "user":{
5
+ "display_name":"Brad Dougherty",
6
+ "id":"101193",
7
+ "username":"brad"
8
+ }
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "generated_in":"0.9726",
3
+ "stat":"ok",
4
+ "auth":{
5
+ "token":"token",
6
+ "perms":"delete",
7
+ "user":{
8
+ "fullname":"Matt Hooks",
9
+ "id":"888046",
10
+ "username":"matthooks"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "generated_in":"0.0901",
3
+ "stat":"ok",
4
+ "frob":"frob"
5
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "generated_in":"1.1758",
3
+ "stat":"ok",
4
+ "auth": {
5
+ "token":"token",
6
+ "perms":"delete",
7
+ "user": {
8
+ "fullname":"Matt Hooks",
9
+ "id":"888046",
10
+ "username":"matthooks"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1 @@
1
+ oauth_token=12345&oauth_token_secret=secret&oauth_callback_confirmed=true
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.4800",
3
+ "stat":"ok"
4
+ }