flixcloud-flix_cloud-gem 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +2 -1
- data/VERSION.yml +1 -1
- data/lib/flix_cloud/file_locations.rb +1 -0
- data/lib/flix_cloud/job.rb +8 -1
- metadata +1 -1
data/README.markdown
CHANGED
|
@@ -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
|
data/VERSION.yml
CHANGED
data/lib/flix_cloud/job.rb
CHANGED
|
@@ -118,6 +118,13 @@ class FlixCloud::Job < FlixCloud::Record
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
|
+
|
|
122
|
+
if file_locations.thumbnails
|
|
123
|
+
xml.thumbnails do
|
|
124
|
+
xml.url(file_locations.thumbnails.url)
|
|
125
|
+
xml.prefix "thumb_"
|
|
126
|
+
end
|
|
127
|
+
end
|
|
121
128
|
end
|
|
122
129
|
end
|
|
123
130
|
end
|
|
@@ -132,7 +139,7 @@ protected
|
|
|
132
139
|
translated_attributes = {}
|
|
133
140
|
|
|
134
141
|
attrs.each do |key, value|
|
|
135
|
-
if match = key.to_s.match(/^(input|output|watermark)_(url|user|password)$/)
|
|
142
|
+
if match = key.to_s.match(/^(input|output|watermark|thumbnails)_(url|user|password)$/)
|
|
136
143
|
file_type = match[1].to_sym
|
|
137
144
|
parameter_type = match[2].to_sym
|
|
138
145
|
|