spob-flix_cloud-gem 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +3 -2
  2. data/lib/flix_cloud/job.rb +5 -1
  3. metadata +3 -2
data/README.markdown CHANGED
@@ -13,7 +13,7 @@ Rails
13
13
 
14
14
  If you're using rails, you can add the following to your environment.rb:
15
15
 
16
- config.gem 'flixcloud-flix_cloud-gem', :lib => 'flix_cloud', :source => 'http://gems.github.com'
16
+ config.gem 'spob-flix_cloud-gem', :lib => 'flix_cloud', :source => 'http://gems.github.com'
17
17
  config.gem 'sevenwire-http_client', :lib => 'http_client', :source => 'http://gems.github.com'
18
18
  config.gem 'crack'
19
19
 
@@ -47,7 +47,8 @@ You can create jobs using the Job class:
47
47
  :output_url => 'ftp://url/to/your/output/file',
48
48
  :output_user => 'username-for-ftp-here',
49
49
  :output_password => 'password-for-ftp-here',
50
- :watermark_url => 's3://url/to/your/watermark/file')
50
+ :watermark_url => 's3://url/to/your/watermark/file',
51
+ :thumbnails_url => 's3://url/to/your/thumbnail-out-file')
51
52
  job.valid? # true or false
52
53
  job.save # true or false
53
54
  job.id # returns the id of the saved job, or nil if it failed to save
@@ -1,6 +1,6 @@
1
1
  class FlixCloud::Job < FlixCloud::Record
2
2
 
3
- attr_accessor :id, :initialized_at, :api_key, :recipe_id, :recipe_name, :response
3
+ attr_accessor :id, :initialized_at, :api_key, :recipe_id, :recipe_name, :response, :notification_url
4
4
 
5
5
  record_column :file_locations, 'FileLocations'
6
6
 
@@ -81,6 +81,10 @@ class FlixCloud::Job < FlixCloud::Record
81
81
  xml.tag!("recipe-id", recipe_id)
82
82
  end
83
83
 
84
+ if notification_url
85
+ xml.tag!("notification-url", notification_url)
86
+ end
87
+
84
88
  if file_locations
85
89
  xml.tag!("file-locations") do
86
90
  if file_locations.input
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spob-flix_cloud-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Sturim
@@ -76,6 +76,7 @@ files:
76
76
  - test/test_helper.rb
77
77
  has_rdoc: true
78
78
  homepage: http://github.com/spob/flix_cloud-gem
79
+ licenses:
79
80
  post_install_message:
80
81
  rdoc_options:
81
82
  - --charset=UTF-8
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements: []
97
98
 
98
99
  rubyforge_project:
99
- rubygems_version: 1.2.0
100
+ rubygems_version: 1.3.5
100
101
  signing_key:
101
102
  specification_version: 2
102
103
  summary: Gem for integrating with http://flixcloud.com, forked to allow thumbnails to be specified as well