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,42 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Activity < Vimeo::Simple::Base
5
+ # Returns a list of a user's activities.
6
+ #
7
+ # @param [String] username The user's id or username.
8
+ def self.user_did(username)
9
+ get("/activity/#{username}/user_did.json")
10
+ end
11
+
12
+ # Returns a list of activities that happened to a user.
13
+ #
14
+ # @param [String] username The user's id or username.
15
+ def self.happened_to_user(username)
16
+ get("/activity/#{username}/happened_to_user.json")
17
+ end
18
+
19
+ # Returns a list of activities a user's contact's did.
20
+ #
21
+ # @param [String] username The user's id or username.
22
+ def self.contacts_did(username)
23
+ get("/activity/#{username}/contacts_did.json")
24
+ end
25
+
26
+ # Returns a list of activities that happened to a user's contacts.
27
+ #
28
+ # @param [String] username The user's id or username.
29
+ def self.happened_to_contacts(username)
30
+ get("/activity/#{username}/happened_to_contacts.json")
31
+ end
32
+
33
+ # Returns a list of activities everyone did.
34
+ #
35
+ # @param [String] username The user's id or username.
36
+ def self.everyone_did(username)
37
+ get("/activity/#{username}/everyone_did.json")
38
+ end
39
+ end
40
+
41
+ end # Simple
42
+ end # Vimeo
@@ -0,0 +1,21 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Album < Vimeo::Simple::Base
5
+ # Returns a list of an album's videos.
6
+ #
7
+ # @param [String] album_id The album's id.
8
+ def self.videos(album_id)
9
+ get("/album/#{album_id}/videos.json")
10
+ end
11
+
12
+ # Returns an album's metadata.
13
+ #
14
+ # @param [String] album_id The album's id.
15
+ def self.info(album_id)
16
+ get("/album/#{album_id}/info.json")
17
+ end
18
+ end
19
+
20
+ end # Simple
21
+ end # Vimeo
@@ -0,0 +1,10 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Base
5
+ include HTTParty
6
+ base_uri 'vimeo.com/api/v2'
7
+ end # Base
8
+
9
+ end # Simple
10
+ end # Vimeo
@@ -0,0 +1,21 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Channel < Vimeo::Simple::Base
5
+ # Returns a list of a channel's videos.
6
+ #
7
+ # @param [String] channelname The channel's name.
8
+ def self.videos(channelname)
9
+ get("/channel/#{channelname}/videos.json")
10
+ end
11
+
12
+ # Returns a channel's metadata.
13
+ #
14
+ # @param [String] channelname The channel's name.
15
+ def self.info(channelname)
16
+ get("/channel/#{channelname}/info.json")
17
+ end
18
+ end
19
+
20
+ end # Simple
21
+ end # Vimeo
@@ -0,0 +1,28 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Group < Vimeo::Simple::Base
5
+ # Returns a list of a group's videos.
6
+ #
7
+ # @param [String] group_name The groups's name.
8
+ def self.videos(groupname)
9
+ get("/group/#{groupname}/videos.json")
10
+ end
11
+
12
+ # Returns a list of a group's users.
13
+ #
14
+ # @param [String] group_name The groups's name.
15
+ def self.users(groupname)
16
+ get("/group/#{groupname}/users.json")
17
+ end
18
+
19
+ # Returns a group's metadata.
20
+ #
21
+ # @param [String] group_name The groups's name.
22
+ def self.info(groupname)
23
+ get("/group/#{groupname}/info.json")
24
+ end
25
+ end
26
+
27
+ end # Simple
28
+ end # Vimeo
@@ -0,0 +1,89 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class User < Vimeo::Simple::Base
5
+ # Returns a user's metadata.
6
+ #
7
+ # @param [String] username The user's id or username.
8
+ def self.info(username)
9
+ get("/#{username}/info.json")
10
+ end
11
+
12
+ # Returns a list of a user's videos.
13
+ #
14
+ # @param [String] username The user's id or username.
15
+ # @param [Integer] page, is the desired Page (1, 2, or 3. Default is 1)
16
+ def self.videos(username, page=1)
17
+ if page
18
+ get("/#{username}/videos.json?page=#{page}")
19
+ else
20
+ get("/#{username}/videos.json")
21
+ end
22
+ end
23
+
24
+ # Returns a list of a user's liked videos.
25
+ #
26
+ # @param [String] username The user's id or username.
27
+ def self.likes(username)
28
+ get("/#{username}/likes.json")
29
+ end
30
+
31
+ # Returns a list of the videos a user appears in.
32
+ #
33
+ # @param [String] username The user's id or username.
34
+ def self.appears_in(username)
35
+ get("/#{username}/appears_in.json")
36
+ end
37
+
38
+ # Returns a list of all videos that are related to a user.
39
+ #
40
+ # @param [String] username The user's id or username.
41
+ def self.all_videos(username)
42
+ get("/#{username}/all_videos.json")
43
+ end
44
+
45
+ # Returns a list of a user's subscriptions.
46
+ #
47
+ # @param [String] username The user's id or username.
48
+ def self.subscriptions(username)
49
+ get("/#{username}/subscriptions.json")
50
+ end
51
+
52
+ # Returns a list of a user's albums.
53
+ #
54
+ # @param [String] username The user's id or username.
55
+ def self.albums(username)
56
+ get("/#{username}/albums.json")
57
+ end
58
+
59
+ # Returns a list of a user's channels.
60
+ #
61
+ # @param [String] username The user's id or username.
62
+ def self.channels(username)
63
+ get("/#{username}/channels.json")
64
+ end
65
+
66
+ # Returns a list of a user's groups.
67
+ #
68
+ # @param [String] username The user's id or username.
69
+ def self.groups(username)
70
+ get("/#{username}/groups.json")
71
+ end
72
+
73
+ # Returns a list of a user's contact's videos.
74
+ #
75
+ # @param [String] username The user's id or username.
76
+ def self.contacts_videos(username)
77
+ get("/#{username}/contacts_videos.json")
78
+ end
79
+
80
+ # Returns a list of videos that a user's contacts liked.
81
+ #
82
+ # @param [String] username The user's id or username.
83
+ def self.contacts_like(username)
84
+ get("/#{username}/contacts_like.json")
85
+ end
86
+ end
87
+
88
+ end # End Simple
89
+ end # End Vimeo
@@ -0,0 +1,14 @@
1
+ module Vimeo
2
+ module Simple
3
+
4
+ class Video < Vimeo::Simple::Base
5
+ # Returns this video's information.
6
+ #
7
+ # @param [String] video_id The video's id.
8
+ def self.info(video_id)
9
+ get("/video/#{video_id}.json")
10
+ end
11
+ end
12
+
13
+ end # End Simple
14
+ end # End Vimeo
@@ -0,0 +1,14 @@
1
+ $:.unshift(File.dirname(__FILE__))
2
+ require 'simple/base'
3
+ require 'simple/activity'
4
+ require 'simple/album'
5
+ require 'simple/channel'
6
+ require 'simple/group'
7
+ require 'simple/user'
8
+ require 'simple/video'
9
+
10
+ module Vimeo
11
+ module Simple
12
+
13
+ end # Simple
14
+ end # Vimeo
data/lib/vimeo.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ require 'httparty'
3
+ require 'digest/md5'
4
+
5
+ require 'net/http/post/multipart'
6
+
7
+ $:.unshift(File.dirname(__FILE__))
8
+ require 'vimeo/simple'
9
+ require 'vimeo/advanced'
10
+
11
+ module Vimeo
12
+ end
@@ -0,0 +1,227 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "slainer68_vimeo"
8
+ s.version = "1.4.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Matt Hooks"]
12
+ s.date = "2012-01-18"
13
+ s.description = "A full featured Ruby implementation of the Vimeo API."
14
+ s.email = "matthooks@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "CHANGELOG.rdoc",
17
+ "LICENSE"
18
+ ]
19
+ s.files = [
20
+ "CHANGELOG.rdoc",
21
+ "LICENSE",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "init.rb",
26
+ "lib/vimeo.rb",
27
+ "lib/vimeo/advanced.rb",
28
+ "lib/vimeo/advanced/album.rb",
29
+ "lib/vimeo/advanced/base.rb",
30
+ "lib/vimeo/advanced/channel.rb",
31
+ "lib/vimeo/advanced/contact.rb",
32
+ "lib/vimeo/advanced/group.rb",
33
+ "lib/vimeo/advanced/group_events.rb",
34
+ "lib/vimeo/advanced/group_forums.rb",
35
+ "lib/vimeo/advanced/person.rb",
36
+ "lib/vimeo/advanced/simple_upload.rb",
37
+ "lib/vimeo/advanced/simple_upload/chunk.rb",
38
+ "lib/vimeo/advanced/simple_upload/task.rb",
39
+ "lib/vimeo/advanced/test.rb",
40
+ "lib/vimeo/advanced/upload.rb",
41
+ "lib/vimeo/advanced/video.rb",
42
+ "lib/vimeo/advanced/video_embed.rb",
43
+ "lib/vimeo/simple.rb",
44
+ "lib/vimeo/simple/activity.rb",
45
+ "lib/vimeo/simple/album.rb",
46
+ "lib/vimeo/simple/base.rb",
47
+ "lib/vimeo/simple/channel.rb",
48
+ "lib/vimeo/simple/group.rb",
49
+ "lib/vimeo/simple/user.rb",
50
+ "lib/vimeo/simple/video.rb",
51
+ "slainer68_vimeo.gemspec",
52
+ "test/fixtures/advanced/album/add_video.json",
53
+ "test/fixtures/advanced/album/create.json",
54
+ "test/fixtures/advanced/album/delete.json",
55
+ "test/fixtures/advanced/album/get_all.json",
56
+ "test/fixtures/advanced/album/get_videos.json",
57
+ "test/fixtures/advanced/album/remove_video.json",
58
+ "test/fixtures/advanced/album/set_description.json",
59
+ "test/fixtures/advanced/album/set_password.json",
60
+ "test/fixtures/advanced/album/set_title.json",
61
+ "test/fixtures/advanced/auth/access_token.txt",
62
+ "test/fixtures/advanced/auth/check_access_token.json",
63
+ "test/fixtures/advanced/auth/check_token.json",
64
+ "test/fixtures/advanced/auth/get_frob.json",
65
+ "test/fixtures/advanced/auth/get_token.json",
66
+ "test/fixtures/advanced/auth/request_token.txt",
67
+ "test/fixtures/advanced/channel/add_video.json",
68
+ "test/fixtures/advanced/channel/get_all.json",
69
+ "test/fixtures/advanced/channel/get_info.json",
70
+ "test/fixtures/advanced/channel/get_moderators.json",
71
+ "test/fixtures/advanced/channel/get_subscribers.json",
72
+ "test/fixtures/advanced/channel/get_videos.json",
73
+ "test/fixtures/advanced/channel/remove_video.json",
74
+ "test/fixtures/advanced/channel/subscribe.json",
75
+ "test/fixtures/advanced/channel/unsubscribe.json",
76
+ "test/fixtures/advanced/contact/get_all.json",
77
+ "test/fixtures/advanced/contact/get_mutual.json",
78
+ "test/fixtures/advanced/contact/get_online.json",
79
+ "test/fixtures/advanced/contact/get_who_added.json",
80
+ "test/fixtures/advanced/group/add_video.json",
81
+ "test/fixtures/advanced/group/get_all.json",
82
+ "test/fixtures/advanced/group/get_files.json",
83
+ "test/fixtures/advanced/group/get_info.json",
84
+ "test/fixtures/advanced/group/get_members.json",
85
+ "test/fixtures/advanced/group/get_moderators.json",
86
+ "test/fixtures/advanced/group/get_video_comments.json",
87
+ "test/fixtures/advanced/group/get_videos.json",
88
+ "test/fixtures/advanced/group/join.json",
89
+ "test/fixtures/advanced/group/leave.json",
90
+ "test/fixtures/advanced/group_events/get_month.json",
91
+ "test/fixtures/advanced/group_events/get_past.json",
92
+ "test/fixtures/advanced/group_events/get_upcoming.json",
93
+ "test/fixtures/advanced/group_forums/get_topic_comments.json",
94
+ "test/fixtures/advanced/group_forums/get_topics.json",
95
+ "test/fixtures/advanced/person/add_contact.json",
96
+ "test/fixtures/advanced/person/add_subscription.json",
97
+ "test/fixtures/advanced/person/find_by_email.json",
98
+ "test/fixtures/advanced/person/get_hd_embeds.json",
99
+ "test/fixtures/advanced/person/get_info.json",
100
+ "test/fixtures/advanced/person/get_portrait_urls.json",
101
+ "test/fixtures/advanced/person/remove_contact.json",
102
+ "test/fixtures/advanced/person/remove_subscription.json",
103
+ "test/fixtures/advanced/test/echo.json",
104
+ "test/fixtures/advanced/test/login.json",
105
+ "test/fixtures/advanced/test/null.json",
106
+ "test/fixtures/advanced/upload/get_quota.json",
107
+ "test/fixtures/advanced/upload/get_ticket.json",
108
+ "test/fixtures/advanced/upload/sample_iTunes.mov",
109
+ "test/fixtures/advanced/video/add_cast.json",
110
+ "test/fixtures/advanced/video/add_comment.json",
111
+ "test/fixtures/advanced/video/add_photos.json",
112
+ "test/fixtures/advanced/video/add_tags.json",
113
+ "test/fixtures/advanced/video/clear_tags.json",
114
+ "test/fixtures/advanced/video/delete.json",
115
+ "test/fixtures/advanced/video/delete_comment.json",
116
+ "test/fixtures/advanced/video/edit_comment.json",
117
+ "test/fixtures/advanced/video/get_all.json",
118
+ "test/fixtures/advanced/video/get_appears_in.json",
119
+ "test/fixtures/advanced/video/get_by_tag.json",
120
+ "test/fixtures/advanced/video/get_cast.json",
121
+ "test/fixtures/advanced/video/get_comments_list.json",
122
+ "test/fixtures/advanced/video/get_contacts_liked.json",
123
+ "test/fixtures/advanced/video/get_contacts_uploaded.json",
124
+ "test/fixtures/advanced/video/get_info.json",
125
+ "test/fixtures/advanced/video/get_likes.json",
126
+ "test/fixtures/advanced/video/get_subscriptions.json",
127
+ "test/fixtures/advanced/video/get_thumbnail_urls.json",
128
+ "test/fixtures/advanced/video/get_uploaded.json",
129
+ "test/fixtures/advanced/video/remove_cast.json",
130
+ "test/fixtures/advanced/video/remove_tag.json",
131
+ "test/fixtures/advanced/video/search.json",
132
+ "test/fixtures/advanced/video/set_description.json",
133
+ "test/fixtures/advanced/video/set_like.json",
134
+ "test/fixtures/advanced/video/set_preset.json",
135
+ "test/fixtures/advanced/video/set_privacy.json",
136
+ "test/fixtures/advanced/video/set_title.json",
137
+ "test/fixtures/advanced/video_embed/get_presets.json",
138
+ "test/fixtures/advanced/video_embed/set_preset.json",
139
+ "test/fixtures/simple/activity/contacts_did.json",
140
+ "test/fixtures/simple/activity/everyone_did.json",
141
+ "test/fixtures/simple/activity/happened_to_contacts.json",
142
+ "test/fixtures/simple/activity/happened_to_user.json",
143
+ "test/fixtures/simple/activity/user_did.json",
144
+ "test/fixtures/simple/album/info.json",
145
+ "test/fixtures/simple/album/videos.json",
146
+ "test/fixtures/simple/channel/info.json",
147
+ "test/fixtures/simple/channel/videos.json",
148
+ "test/fixtures/simple/group/info.json",
149
+ "test/fixtures/simple/group/users.json",
150
+ "test/fixtures/simple/group/videos.json",
151
+ "test/fixtures/simple/user/albums.json",
152
+ "test/fixtures/simple/user/all_videos.json",
153
+ "test/fixtures/simple/user/appears_in.json",
154
+ "test/fixtures/simple/user/channels.json",
155
+ "test/fixtures/simple/user/contacts_like.json",
156
+ "test/fixtures/simple/user/contacts_videos.json",
157
+ "test/fixtures/simple/user/groups.json",
158
+ "test/fixtures/simple/user/info.json",
159
+ "test/fixtures/simple/user/likes.json",
160
+ "test/fixtures/simple/user/subscriptions.json",
161
+ "test/fixtures/simple/user/videos.json",
162
+ "test/fixtures/simple/video/info.json",
163
+ "test/test_helper.rb",
164
+ "test/vimeo/advanced/album_test.rb",
165
+ "test/vimeo/advanced/auth_test.rb",
166
+ "test/vimeo/advanced/base_test.rb",
167
+ "test/vimeo/advanced/channels_test.rb",
168
+ "test/vimeo/advanced/contacts_test.rb",
169
+ "test/vimeo/advanced/group_events_test.rb",
170
+ "test/vimeo/advanced/group_forums_test.rb",
171
+ "test/vimeo/advanced/groups_test.rb",
172
+ "test/vimeo/advanced/person_test.rb",
173
+ "test/vimeo/advanced/test_test.rb",
174
+ "test/vimeo/advanced/upload_test.rb",
175
+ "test/vimeo/advanced/videos_embed_test.rb",
176
+ "test/vimeo/advanced/videos_test.rb",
177
+ "test/vimeo/advanced_test.rb",
178
+ "test/vimeo/simple/activity_test.rb",
179
+ "test/vimeo/simple/album_test.rb",
180
+ "test/vimeo/simple/channel_test.rb",
181
+ "test/vimeo/simple/group_test.rb",
182
+ "test/vimeo/simple/user_test.rb",
183
+ "test/vimeo/simple/video_test.rb",
184
+ "test/vimeo/simple_test.rb",
185
+ "test/vimeo_test.rb"
186
+ ]
187
+ s.homepage = "http://github.com/matthooks/vimeo"
188
+ s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--charset=UTF-8"]
189
+ s.require_paths = ["lib"]
190
+ s.rubyforge_project = "vimeo"
191
+ s.rubygems_version = "1.8.11"
192
+ s.summary = "A full featured Ruby implementation of the Vimeo API."
193
+
194
+ if s.respond_to? :specification_version then
195
+ s.specification_version = 3
196
+
197
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
198
+ s.add_development_dependency(%q<shoulda>, [">= 2.11.3"])
199
+ s.add_development_dependency(%q<fakeweb>, [">= 1.2.6"])
200
+ s.add_development_dependency(%q<ruby-prof>, [">= 0.9.2"])
201
+ s.add_runtime_dependency(%q<multi_json>, [">= 1.0.4"])
202
+ s.add_runtime_dependency(%q<httparty>, [">= 0.4.5"])
203
+ s.add_runtime_dependency(%q<oauth>, [">= 0.4.3"])
204
+ s.add_runtime_dependency(%q<httpclient>, [">= 2.1.5.2"])
205
+ s.add_runtime_dependency(%q<multipart-post>, [">= 1.0.1"])
206
+ else
207
+ s.add_dependency(%q<shoulda>, [">= 2.11.3"])
208
+ s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
209
+ s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
210
+ s.add_dependency(%q<multi_json>, [">= 1.0.4"])
211
+ s.add_dependency(%q<httparty>, [">= 0.4.5"])
212
+ s.add_dependency(%q<oauth>, [">= 0.4.3"])
213
+ s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
214
+ s.add_dependency(%q<multipart-post>, [">= 1.0.1"])
215
+ end
216
+ else
217
+ s.add_dependency(%q<shoulda>, [">= 2.11.3"])
218
+ s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
219
+ s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
220
+ s.add_dependency(%q<multi_json>, [">= 1.0.4"])
221
+ s.add_dependency(%q<httparty>, [">= 0.4.5"])
222
+ s.add_dependency(%q<oauth>, [">= 0.4.3"])
223
+ s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
224
+ s.add_dependency(%q<multipart-post>, [">= 1.0.1"])
225
+ end
226
+ end
227
+
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.4800",
3
+ "stat":"ok"
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "generated_in":"0.5089",
3
+ "stat":"ok",
4
+ "album":{
5
+ "id":"129683"
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.3576",
3
+ "stat":"ok"
4
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "generated_in":"0.6876",
3
+ "stat":"ok",
4
+ "albums":{
5
+ "on_this_page":"3",
6
+ "page":"1",
7
+ "perpage":"25",
8
+ "total":"3",
9
+ "album":[
10
+ {
11
+ "id":"129683",
12
+ "title":"Test Album Vimeo Gem",
13
+ "description":"Test",
14
+ "created_on":"2009-09-24 17:35:26",
15
+ "total_videos":"2",
16
+ "url":"http:\/\/vimeo.com\/album\/129683",
17
+ "video_sort_method":"arranged",
18
+ "thumbnail_video":{
19
+ "id":"2529363",
20
+ "owner":"888046",
21
+ "title":"Test Video",
22
+ "thumbnails":{
23
+ "thumbnail":[
24
+ {
25
+ "height":"75",
26
+ "width":"100",
27
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_100.jpg"
28
+ },
29
+ {
30
+ "height":"150",
31
+ "width":"200",
32
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_200.jpg"
33
+ },
34
+ {
35
+ "height":"480",
36
+ "width":"640",
37
+ "_content":"http:\/\/bitcast.vimeo.com\/vimeo\/thumbnails\/defaults\/default.300x400.jpg"
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "id":"129692",
45
+ "title":"Test Album Vimeo Gem22223",
46
+ "description":"Test",
47
+ "created_on":"2009-09-24 17:52:17",
48
+ "total_videos":"2",
49
+ "url":"http:\/\/vimeo.com\/album\/129692",
50
+ "video_sort_method":"arranged",
51
+ "thumbnail_video":{
52
+ "id":"2529363",
53
+ "owner":"888046",
54
+ "title":"Test Video",
55
+ "thumbnails":{
56
+ "thumbnail":[
57
+ {
58
+ "height":"75",
59
+ "width":"100",
60
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_100.jpg"
61
+ },
62
+ {
63
+ "height":"150",
64
+ "width":"200",
65
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_200.jpg"
66
+ },
67
+ {
68
+ "height":"480",
69
+ "width":"640",
70
+ "_content":"http:\/\/bitcast.vimeo.com\/vimeo\/thumbnails\/defaults\/default.300x400.jpg"
71
+ }
72
+ ]
73
+ }
74
+ }
75
+ },
76
+ {
77
+ "id":"129689",
78
+ "title":"Test Album Vimeo Gem21312",
79
+ "description":"Test",
80
+ "created_on":"2009-09-24 17:46:46",
81
+ "total_videos":"2",
82
+ "url":"http:\/\/vimeo.com\/album\/129689",
83
+ "video_sort_method":"arranged",
84
+ "thumbnail_video":{
85
+ "id":"2529363",
86
+ "owner":"888046",
87
+ "title":"Test Video",
88
+ "thumbnails":{
89
+ "thumbnail":[
90
+ {
91
+ "height":"75",
92
+ "width":"100",
93
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_100.jpg"
94
+ },
95
+ {
96
+ "height":"150",
97
+ "width":"200",
98
+ "_content":"http:\/\/images.vimeo.com\/21\/88\/91\/218891849\/218891849_200.jpg"
99
+ },
100
+ {
101
+ "height":"480",
102
+ "width":"640",
103
+ "_content":"http:\/\/bitcast.vimeo.com\/vimeo\/thumbnails\/defaults\/default.300x400.jpg"
104
+ }
105
+ ]
106
+ }
107
+ }
108
+ }
109
+ ]
110
+ }
111
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "generated_in":"0.2487",
3
+ "stat":"ok",
4
+ "videos":{
5
+ "on_this_page":"2",
6
+ "page":"1",
7
+ "perpage":"25",
8
+ "total":"2",
9
+ "video":[
10
+ {
11
+ "embed_privacy":"anywhere",
12
+ "id":"411684",
13
+ "is_hd":"1",
14
+ "owner":"151382",
15
+ "privacy":"anybody",
16
+ "title":"my home (minn heima)",
17
+ "upload_date":"2007-12-01 16:11:19"
18
+ },
19
+ {
20
+ "embed_privacy":"anywhere",
21
+ "id":"2529363",
22
+ "is_hd":"0",
23
+ "owner":"888046",
24
+ "privacy":"anybody",
25
+ "title":"Test Video",
26
+ "upload_date":"2008-12-14 23:57:19"
27
+ }
28
+ ]
29
+ }
30
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "generated_in":"0.5773",
3
+ "stat":"ok"
4
+ }
@@ -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
+ }