dailymotion-api-client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/dailymotion-api/client.rb +1 -1
- data/lib/dailymotion-api/version.rb +1 -1
- data/spec/lib/dailymotion-api/client_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDA0NmU2YmYyODM5NWQ0MDAwODVhNWNlMGFhZTU4Nzg3YmEyNTc5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmE4YzYwODc4N2Q3YTI5Yzk4ZDdhOTg0ZGYxMGU1MTZiMjQxMjEwZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDI2NzM0MjRmYWVlN2M2NmJkYWExM2Q2ZGFlMzNmNjgwM2JiM2NlMjI4NGIw
|
10
|
+
NTBkMGFmN2U0NDQzZTBlNTJlMWU1OWQ4MjRiOGZjN2U4MDU4YTY1YmMxYWVi
|
11
|
+
ZDQ2YmRiZTRmNmVmZWZhZjIxNGFlYzE5ZWZiMzk3ZmJmZjc0ZjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzgxM2UyM2VkNTM2OTRkZTMzODVmZTEyMGZkODlhZmI1ZjAwNjEzYThkMzRl
|
14
|
+
MWMzMmU1OWJmYmFmMGJhYmNkZmQwNzExMjUwODMzYjBkNjBmOGFiODNhOTlm
|
15
|
+
MGVmNmM4YTQyYjJiM2RhYjE5NGI5YTJkNWQzOWI1YTc2ZGMxNjc=
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -30,7 +30,7 @@ module DailymotionApi
|
|
30
30
|
|
31
31
|
def post_video(video)
|
32
32
|
response = HTTMultiParty.post(@upload_url, body: { file: video })
|
33
|
-
@uploaded_video_url = response.parsed_response["url"]
|
33
|
+
@uploaded_video_url = JSON.parse(response.parsed_response)["url"]
|
34
34
|
end
|
35
35
|
|
36
36
|
def create_video
|
@@ -35,7 +35,7 @@ describe DailymotionApi::Client do
|
|
35
35
|
describe "#post_video" do
|
36
36
|
it "should post the video" do
|
37
37
|
client.instance_variable_set(:@upload_url, "upload_url")
|
38
|
-
response = stub("response", parsed_response: {
|
38
|
+
response = stub("response", parsed_response: "{\"url\":\"video_url\"}")
|
39
39
|
HTTMultiParty.should_receive(:post).with("upload_url", body: { file: "video_data" }).and_return(response)
|
40
40
|
|
41
41
|
client.post_video("video_data").should == "video_url"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dailymotion-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Garnier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|