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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDRlNTI2ZjI0NmJmNGQxOWYxMDk5MTk2OWMyNjNlOWQ0NTM2OTBkMQ==
4
+ MDA0NmU2YmYyODM5NWQ0MDAwODVhNWNlMGFhZTU4Nzg3YmEyNTc5Ng==
5
5
  data.tar.gz: !binary |-
6
- ZTJjN2JhOGQ4ODNmNmQ2ZTc3NGZjYjc2Y2IyZWM2ZWQwNzEyMjBlMA==
6
+ YmE4YzYwODc4N2Q3YTI5Yzk4ZDdhOTg0ZGYxMGU1MTZiMjQxMjEwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGIyZTBmZmYxYjAwZGYwODY3YjNkNWY4NWIwYTdlOTlmNzVhOGQ4NzFlYzEy
10
- OWRkODU0ODliOTU2NzNhOTFkZmFjMWRjMjMzMzZkNDRkYjg1OGE1MDdmY2U3
11
- OTg0MmZmMTZlNTA4MDhjZGYyYzQ5OWJjMDMzYWQwMzI5ZjE4NGI=
9
+ ZDI2NzM0MjRmYWVlN2M2NmJkYWExM2Q2ZGFlMzNmNjgwM2JiM2NlMjI4NGIw
10
+ NTBkMGFmN2U0NDQzZTBlNTJlMWU1OWQ4MjRiOGZjN2U4MDU4YTY1YmMxYWVi
11
+ ZDQ2YmRiZTRmNmVmZWZhZjIxNGFlYzE5ZWZiMzk3ZmJmZjc0ZjA=
12
12
  data.tar.gz: !binary |-
13
- YjUyYzA1NmJhNDliYTEwZmJmODVlMmUyZWM2MzZjZTMzNzU3MmQwZDVhZDU1
14
- Yjc5MzJiZWJmYzVmN2MyNjk5MjU4NzY2YWYzM2ZkYjEzZGVlYTVlMzg2OWVl
15
- OTNiMDFjNTkwN2RhNzViZTA5YWQxZDZlN2EzN2ZjY2NmN2RmZjM=
13
+ NzgxM2UyM2VkNTM2OTRkZTMzODVmZTEyMGZkODlhZmI1ZjAwNjEzYThkMzRl
14
+ MWMzMmU1OWJmYmFmMGJhYmNkZmQwNzExMjUwODMzYjBkNjBmOGFiODNhOTlm
15
+ MGVmNmM4YTQyYjJiM2RhYjE5NGI5YTJkNWQzOWI1YTc2ZGMxNjc=
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ - Fix response to post video action - fixes #3
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  - Rename `get_upload_url` to `generate_upload_url`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dailymotion-api-client (0.2.0)
4
+ dailymotion-api-client (0.2.1)
5
5
  httmultiparty
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module DailymotionApi
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -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: { "url" => "video_url" })
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.0
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-08-31 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty