dimension 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -2
- data/lib/dimension/middleware.rb +1 -1
- data/lib/dimension/version.rb +1 -1
- data/lib/dimension.rb +2 -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: 09d11b9ee4d3bb0a0a5ccc66a7731f6a621b2039
|
4
|
+
data.tar.gz: 3838702e3319f075ac7f9d262c18d57ac7b8a4de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7a4041bd31b56e2cbc4b8c479293e160afcee08c88b081aaf2170af2551a71a0830d67366a0ed34a97f2a6f59c44c3e937bad9cb572395a9c668ade06be501f
|
7
|
+
data.tar.gz: a219d36610df5091e731c4244b15e1611c4242471244eec9f23937f1024a788b0ba38018907e4405f3ee492ab646573a9c7b368e6a24a6987c901e0de54e57e8
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ Fast, simplified image resizing for Ruby. No ImageMagick.
|
|
14
14
|
Or generate and write file automatically.
|
15
15
|
|
16
16
|
``` rb
|
17
|
-
thumb = Dimension.
|
17
|
+
thumb = Dimension.open('tux.png')
|
18
18
|
thumb.generate!('100x300!') # will write file as 'tux-100x300.png'
|
19
19
|
```
|
20
20
|
|
@@ -41,7 +41,7 @@ You can also pass a block, which will ensure the original image is closed after
|
|
41
41
|
|
42
42
|
# Resizing geometries
|
43
43
|
|
44
|
-
This is taken directly from the excellent Dragonfly gem.
|
44
|
+
This is taken directly from the excellent [Dragonfly gem](http://markevans.github.io/dragonfly/imagemagick/#processors). The N/S/W/E gravities are not supported, though.
|
45
45
|
|
46
46
|
Author
|
47
47
|
======
|
data/Rakefile
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
require
|
2
|
-
Bundler::GemHelper.install_tasks
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/dimension/middleware.rb
CHANGED
data/lib/dimension/version.rb
CHANGED
data/lib/dimension.rb
CHANGED
@@ -31,7 +31,8 @@ begin
|
|
31
31
|
require 'imlib2'
|
32
32
|
Dimension.processor = 'imlib2'
|
33
33
|
rescue LoadError
|
34
|
-
|
34
|
+
out = `convert -h`
|
35
|
+
if $?.success?
|
35
36
|
Dimension.processor = 'image_magick'
|
36
37
|
else
|
37
38
|
puts "No available processors found. Please install ruby-imlib2 or ImageMagick."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dimension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack-throttle
|