scale_down 0.2.3 → 0.2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scale_down (0.2.3)
4
+ scale_down (0.2.3.1)
5
5
  rmagick (>= 2.1)
6
6
  ruby-hmac (>= 0.4.0)
7
7
  sinatra (>= 1.0)
@@ -78,8 +78,7 @@ class ScaleDown::Image
78
78
 
79
79
  def resize(file, properties)
80
80
  geo = geometry(properties)
81
- file.auto_orient! unless file.get_exif_by_entry("Orientation").nil?
82
-
81
+ file.auto_orient! unless Hash[file.get_exif_by_entry("Orientation")]["Orientation"].nil?
83
82
  if properties[:crop]
84
83
  file.crop_resized!(geo.width, geo.height, Magick::CenterGravity)
85
84
  else
@@ -1,3 +1,3 @@
1
1
  module ScaleDown
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.3.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scale_down
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 81
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 3
10
- version: 0.2.3
10
+ - 1
11
+ version: 0.2.3.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - John Weir