flixit 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/flixit/record.rb +1 -1
- data/spec/job_spec.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.18
|
data/lib/flixit/record.rb
CHANGED
@@ -33,7 +33,7 @@ protected
|
|
33
33
|
def post(path, body)
|
34
34
|
begin
|
35
35
|
flixcloud = RestClient::Resource.new(
|
36
|
-
"https://flixcloud.com/#{path}",
|
36
|
+
"https://www.flixcloud.com/#{path}",
|
37
37
|
:verify_ssl => false
|
38
38
|
)
|
39
39
|
Flixit::Response.new(flixcloud.post body, :content_type => :xml, :accept => :xml)
|
data/spec/job_spec.rb
CHANGED
@@ -8,7 +8,7 @@ context "Create a Job" do
|
|
8
8
|
:file_locations => { :input => {:url => 'http://flixcloud.com/somefile.mp4'},
|
9
9
|
:output => {:url => 's3://flixcloud/somefile.flv'},
|
10
10
|
:thumbnails => {:url => "s3://flixcloud/somefile/",:prefix => 'thumbnail'}})
|
11
|
-
Fredo.post "https://flixcloud.com/jobs" do
|
11
|
+
Fredo.post "https://www.flixcloud.com/jobs" do
|
12
12
|
%{<?xml version="1.0" encoding="UTF-8"?><job><id type="integer">3254</id><initialized-job-at type="datetime">2009-02-11T01:23:54Z</initialized-job-at></job>}
|
13
13
|
end
|
14
14
|
|
@@ -26,9 +26,9 @@ context "Create a Job" do
|
|
26
26
|
job = Flixit::Job.new(:recipe_id => 1,
|
27
27
|
:api_key => 'this_is_an_api_key',
|
28
28
|
:pass_through => YAML.dump({:key => 'value'}),
|
29
|
-
:file_locations => { :input => {:url => '
|
30
|
-
:output => {:url => 's3://
|
31
|
-
:thumbnails => {:url => "s3://
|
29
|
+
:file_locations => { :input => {:url => 's3://mybucket/somefile.mp4'},
|
30
|
+
:output => {:url => 's3://mybucket/somefile.flv'},
|
31
|
+
:thumbnails => {:url => "s3://mybucket/somefile/"}})
|
32
32
|
job.save
|
33
33
|
|
34
34
|
request = Crack::XML.parse Fredo.books.last[:body]
|