vimeo 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/vimeo/advanced/simple_upload/chunk.rb +4 -2
- data/lib/vimeo/advanced/simple_upload/task.rb +2 -2
- data/vimeo.gemspec +2 -2
- metadata +18 -18
data/VERSION.yml
CHANGED
@@ -18,7 +18,7 @@ module Vimeo
|
|
18
18
|
|
19
19
|
# Performs the upload via Multipart.
|
20
20
|
def upload
|
21
|
-
endpoint = "#{task.endpoint}
|
21
|
+
endpoint = "#{task.endpoint}"
|
22
22
|
|
23
23
|
response = task.oauth_consumer.request(:post, endpoint, vimeo.get_access_token, {}, {}) do |req|
|
24
24
|
req.set_content_type("multipart/form-data", { "boundary" => MULTIPART_BOUNDARY })
|
@@ -29,6 +29,8 @@ module Vimeo
|
|
29
29
|
def io.content_type; "application/octet-stream"; end
|
30
30
|
|
31
31
|
parts = []
|
32
|
+
parts << Parts::ParamPart.new(MULTIPART_BOUNDARY, "ticket_id", task.id)
|
33
|
+
parts << Parts::ParamPart.new(MULTIPART_BOUNDARY, "chunk_id", index)
|
32
34
|
parts << Parts::FilePart.new(MULTIPART_BOUNDARY, "file_data", io)
|
33
35
|
parts << Parts::EpiloguePart.new(MULTIPART_BOUNDARY)
|
34
36
|
|
@@ -47,4 +49,4 @@ module Vimeo
|
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
50
|
-
end
|
52
|
+
end
|
@@ -69,7 +69,7 @@ module Vimeo
|
|
69
69
|
|
70
70
|
# Returns a hash of the sent chunks and their respective sizes.
|
71
71
|
def sent_chunk_sizes
|
72
|
-
Hash[chunks.map { |chunk| [chunk.
|
72
|
+
Hash[chunks.map { |chunk| [chunk.index.to_s, chunk.size] }]
|
73
73
|
end
|
74
74
|
|
75
75
|
# Returns a of Vimeo's received chunks and their respective sizes.
|
@@ -82,4 +82,4 @@ module Vimeo
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
85
|
-
end
|
85
|
+
end
|
data/vimeo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "vimeo"
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Hooks"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-06-21"
|
13
13
|
s.description = "A full featured Ruby implementation of the Vimeo API."
|
14
14
|
s.email = "matthooks@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152484880 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.11.3
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152484880
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fakeweb
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152477520 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.2.6
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152477520
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ruby-prof
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152475820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.9.2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152475820
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: httparty
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152473540 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.4.5
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152473540
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: json
|
60
|
-
requirement: &
|
60
|
+
requirement: &2152472080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.1.9
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2152472080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: oauth
|
71
|
-
requirement: &
|
71
|
+
requirement: &2152461900 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.4.3
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2152461900
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: httpclient
|
82
|
-
requirement: &
|
82
|
+
requirement: &2152459980 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.1.5.2
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2152459980
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: multipart-post
|
93
|
-
requirement: &
|
93
|
+
requirement: &2152456700 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: 1.0.1
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2152456700
|
102
102
|
description: A full featured Ruby implementation of the Vimeo API.
|
103
103
|
email: matthooks@gmail.com
|
104
104
|
executables: []
|