quilt 0.0.5 → 0.0.7
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.
- data/Rakefile +1 -1
- data/lib/quilt.rb +7 -1
- 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.
|
|
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']
|
data/lib/quilt.rb
CHANGED
|
@@ -5,7 +5,13 @@ require 'digest/sha1'
|
|
|
5
5
|
module Quilt
|
|
6
6
|
class ImageRmagick
|
|
7
7
|
def initialize width, height
|
|
8
|
-
|
|
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:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
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:
|
|
18
|
+
date: 2013-08-20 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|