tootsie 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -108,7 +108,7 @@ Image jobs have the `type` key set to `image`. The key `params` must be set to a
108
108
  * `height`: Optional desired height of output image.
109
109
  * `scale`: One of the following values:
110
110
  * `down` (default): The input image is scaled to fit within the dimensions `width` x `height`. If only `width` or only `height` is specified, then the other component will be computed from the aspect ratio of the input image.
111
- * `up`: As `within`, but allow scaling to dimensions that are larger than the input image.
111
+ * `up`: As `fit`, but allow scaling to dimensions that are larger than the input image.
112
112
  * `fit`: Similar to `down`, but the dimensions are chosen so the output width and height are always met or exceeded. In other words, if you pass in an image that is 100x50, specifying output dimensions as 100x100, then the output image will be 150x100.
113
113
  * `none`: Don't scale at all.
114
114
  * `crop`: If true, crop the image to the output dimensions.
data/lib/tootsie/input.rb CHANGED
@@ -28,7 +28,9 @@ module Tootsie
28
28
  s3_service = Tootsie::Application.get.s3_service
29
29
  begin
30
30
  File.open(@temp_file.path, 'wb') do |f|
31
- f << s3_service.buckets.find(bucket_name).objects.find(path).content
31
+ object = s3_service.buckets.find(bucket_name).objects.find(path)
32
+ object.send(:get_object) unless object.content # Work around issue with s3 gem
33
+ f << object.content
32
34
  end
33
35
  rescue ::S3::Error::NoSuchBucket, ::S3::Error::NoSuchKey
34
36
  raise InputNotFound, @url
@@ -116,7 +116,7 @@ module Tootsie
116
116
  # Animations may contain more than one fram, if so discard the
117
117
  # extra frames when outputting in a non-animation format
118
118
  if original_format == 'gif' and version_options[:format] != 'gif'
119
- flags << ' -flatten -scene 1'
119
+ convert_command << ' -flatten -scene 1'
120
120
  end
121
121
 
122
122
  if scale != :none
@@ -1,3 +1,3 @@
1
1
  module Tootsie
2
- VERSION = '0.9.25'
2
+ VERSION = '0.9.26'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tootsie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.25
4
+ version: 0.9.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-16 00:00:00.000000000 Z
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -326,7 +326,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  segments:
328
328
  - 0
329
- hash: -4405205189496115955
329
+ hash: 1492124048621492077
330
330
  required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  none: false
332
332
  requirements:
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  version: '0'
336
336
  segments:
337
337
  - 0
338
- hash: -4405205189496115955
338
+ hash: 1492124048621492077
339
339
  requirements: []
340
340
  rubyforge_project: tootsie
341
341
  rubygems_version: 1.8.24