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,4 @@
1
+ {
2
+ "generated_in":"0.3232",
3
+ "stat":"ok"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.2277",
3
+ "stat":"ok"
4
+ }
@@ -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
+ }