flixcloud-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.
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 3
4
+ :patch: 4
@@ -3,6 +3,7 @@ class FlixCloud::FileLocations < FlixCloud::Record
3
3
  record_column :input, 'File'
4
4
  record_column :output, 'File'
5
5
  record_column :watermark, 'File'
6
+ record_column :thumbnails, 'File'
6
7
 
7
8
  def valid?
8
9
  self.errors = []
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flixcloud-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
  - Nathan Sutton