quilt 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/quilt.rb +7 -1
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ DESCRIPTION = "a library for generating identicon."
18
18
  RUBYFORGE_PROJECT = "quilt"
19
19
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
20
20
  BIN_FILES = %w( )
21
- VERS = "0.0.5"
21
+ VERS = "0.0.7"
22
22
 
23
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
24
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
@@ -5,7 +5,13 @@ require 'digest/sha1'
5
5
  module Quilt
6
6
  class ImageRmagick
7
7
  def initialize width, height
8
- require 'RMagick'
8
+ begin
9
+ require 'rmagick'
10
+ rescue LoadError
11
+ require 'RMagick'
12
+ rescue LoadError
13
+ puts "WARNING: Failed to require rmagick, image generation will fail"
14
+ end
9
15
  @image = Magick::Image.new width, height
10
16
  @image.format = 'png'
11
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quilt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - swdyh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-29 00:00:00 +09:00
18
+ date: 2013-08-20 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies: []
21
21