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 +4 -4
- data/README.md +3 -0
- data/lib/acbaker/processors/center.rb +3 -1
- data/lib/acbaker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b6a038f629db08e1b21ede0df314aaf03f49494
|
4
|
+
data.tar.gz: def773691b3c352691d70dd1edeb960f2ae5a82e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8feae359cd02081257305d0702cfa540a724c0541acf3b635d4d66312ec9158c5b9f63c191ee19c4a63e235e5c84af1ce46910d422415a74e0f219f49405c70a
|
7
|
+
data.tar.gz: 19b51cfca79a1f670dfbe3b43cffdc328f50d1a78ec47263a6402d90e5770204985ffaf17574df6b494d890cd95e701be9a069150d28943999e6ed94b90735c3
|
data/README.md
CHANGED
@@ -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.
|
15
|
+
image_ratio = image.rows.to_f / image.columns.to_f
|
14
16
|
|
15
17
|
# calculate dimensions
|
16
18
|
if @options['max-width']
|
data/lib/acbaker/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|