acbaker 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63f6fe7ce930381613423574f872ea32100bdde4
4
- data.tar.gz: d84c56f9ed65a617412540fd089d264ee51e7659
3
+ metadata.gz: 9b6a038f629db08e1b21ede0df314aaf03f49494
4
+ data.tar.gz: def773691b3c352691d70dd1edeb960f2ae5a82e
5
5
  SHA512:
6
- metadata.gz: 04307cd0be90d0d2605067b1d80e7bc0222916d90c377b65f1eff209f9b04e780f48b89b9351b11cf84547a9d8934129577f30d1da1dce91d0005a898f7a4105
7
- data.tar.gz: 5ed62131acc3c62e733c67f44d5896a829f987edd0080ecae97aa519d5622676449c99503c284629217d955cbeb09d5e3f2e1261e3b465ec7b51be183e39bfe2
6
+ metadata.gz: 8feae359cd02081257305d0702cfa540a724c0541acf3b635d4d66312ec9158c5b9f63c191ee19c4a63e235e5c84af1ce46910d422415a74e0f219f49405c70a
7
+ data.tar.gz: 19b51cfca79a1f670dfbe3b43cffdc328f50d1a78ec47263a6402d90e5770204985ffaf17574df6b494d890cd95e701be9a069150d28943999e6ed94b90735c3
data/README.md CHANGED
@@ -20,6 +20,9 @@ USAGE
20
20
  CHANGELOG
21
21
  ---------
22
22
 
23
+ * **0.1.1**
24
+ * Fix aspect ratio bug in center processor
25
+
23
26
  * **0.1.0**
24
27
  * Bigfixes
25
28
 
@@ -1,3 +1,5 @@
1
+ require 'pry'
2
+
1
3
  module Acbaker
2
4
  module Processors
3
5
  class Center < Base
@@ -10,7 +12,7 @@ module Acbaker
10
12
  transform_width = width.to_f
11
13
  transform_height = height.to_f
12
14
  target_ratio = transform_width / transform_height
13
- image_ratio = image.columns / image.rows
15
+ image_ratio = image.rows.to_f / image.columns.to_f
14
16
 
15
17
  # calculate dimensions
16
18
  if @options['max-width']
@@ -1,3 +1,3 @@
1
1
  module Acbaker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acbaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander