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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a30ac6400fa930816703b098b731cc5ec5b7041
4
- data.tar.gz: 5a8af236c7739e86f151188cfa9fd8d5a8546aea
3
+ metadata.gz: 09d11b9ee4d3bb0a0a5ccc66a7731f6a621b2039
4
+ data.tar.gz: 3838702e3319f075ac7f9d262c18d57ac7b8a4de
5
5
  SHA512:
6
- metadata.gz: bca550323f3e23ba211e1b2e9076af262a2b266fb962fc49a4aaa438b0bc6b2f60246409c61d4d0853917f384fdd1565846a16a039c3307de767094c94fadb41
7
- data.tar.gz: b02b7fc7f6150471ccb4787c95fa1674700887a907bda2396c15f2d928e2cf1b7231c454b345b8cbd9c974c0193771481ca217c298a6695448de1a9b952c6859
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.new('tux.png')
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 'bundler'
2
- Bundler::GemHelper.install_tasks
1
+ require "bundler/gem_tasks"
@@ -49,4 +49,4 @@ module Dimension
49
49
 
50
50
  end
51
51
 
52
- end
52
+ end
@@ -1,7 +1,7 @@
1
1
  module Dimension
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- PATCH = 1
4
+ PATCH = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
data/lib/dimension.rb CHANGED
@@ -31,7 +31,8 @@ begin
31
31
  require 'imlib2'
32
32
  Dimension.processor = 'imlib2'
33
33
  rescue LoadError
34
- if system("convert -h")
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.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-05 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-throttle