rmagick 2.11.1 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +7 -0
- data/README.html +7 -7
- data/build_tarball.rake +1 -1
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +58 -7
- data/doc/ex/crop.rb +3 -3
- data/doc/ilist.html +2 -2
- data/doc/image1.html +70 -6
- data/doc/image2.html +77 -3
- data/doc/image3.html +6 -3
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +2 -2
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +47 -6
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +2 -2
- data/doc/usage.html +24 -9
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/extconf.rb +9 -1
- data/ext/RMagick/rmagick.h +6 -1
- data/ext/RMagick/rmdraw.c +25 -1
- data/ext/RMagick/rmilist.c +8 -2
- data/ext/RMagick/rmimage.c +129 -3
- data/ext/RMagick/rmmain.c +20 -2
- data/ext/RMagick/rmutil.c +1 -11
- data/lib/RMagick.rb +25 -11
- data/rmagick.gemspec +3 -3
- metadata +4 -4
data/ext/RMagick/rmutil.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: rmutil.c,v 1.
|
1
|
+
/* $Id: rmutil.c,v 1.180 2009/09/26 22:28:59 rmagick Exp $ */
|
2
2
|
/*============================================================================\
|
3
3
|
| Copyright (C) 2009 by Timothy P. Hunter
|
4
4
|
| Name: rmutil.c
|
@@ -599,22 +599,12 @@ rm_write_temp_image(Image *image, char *temp_name)
|
|
599
599
|
void
|
600
600
|
rm_delete_temp_image(char *temp_name)
|
601
601
|
{
|
602
|
-
#if defined(HAVE_SETIMAGEREGISTRY)
|
603
602
|
MagickBooleanType okay = DeleteImageRegistry(temp_name+5);
|
604
603
|
|
605
604
|
if (!okay)
|
606
605
|
{
|
607
606
|
rb_warn("DeleteImageRegistry failed for `%s'", temp_name);
|
608
607
|
}
|
609
|
-
#else
|
610
|
-
long registry_id = -1;
|
611
|
-
|
612
|
-
sscanf(temp_name, "mpri:%ld", ®istry_id);
|
613
|
-
if (registry_id >= 0)
|
614
|
-
{
|
615
|
-
(void) DeleteMagickRegistry(registry_id);
|
616
|
-
}
|
617
|
-
#endif
|
618
608
|
}
|
619
609
|
|
620
610
|
|
data/lib/RMagick.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: RMagick.rb,v 1.
|
1
|
+
# $Id: RMagick.rb,v 1.84 2009/09/15 22:08:41 rmagick Exp $
|
2
2
|
#==============================================================================
|
3
3
|
# Copyright (C) 2009 by Timothy P. Hunter
|
4
4
|
# Name: RMagick.rb
|
@@ -11,19 +11,21 @@
|
|
11
11
|
require 'RMagick2.so'
|
12
12
|
|
13
13
|
module Magick
|
14
|
-
|
14
|
+
@formats = nil
|
15
|
+
@trace_proc = nil
|
16
|
+
@exit_block_set_up = nil
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
class << self
|
19
|
+
def formats(&block)
|
20
|
+
@formats ||= init_formats()
|
21
|
+
if block_given?
|
22
|
+
@formats.each { |k,v| yield k, v }
|
23
|
+
self
|
24
|
+
else
|
25
|
+
@formats
|
26
|
+
end
|
23
27
|
end
|
24
|
-
end
|
25
28
|
|
26
|
-
class << self
|
27
29
|
# remove reference to the proc at exit
|
28
30
|
def trace_proc=(p)
|
29
31
|
if @trace_proc.nil? && !p.nil? && !@exit_block_set_up
|
@@ -371,6 +373,18 @@ class Draw
|
|
371
373
|
primitive "gravity #{GRAVITY_NAMES[grav.to_i]}"
|
372
374
|
end
|
373
375
|
|
376
|
+
# IM 6.5.5-8 and later
|
377
|
+
def interline_spacing(space)
|
378
|
+
begin
|
379
|
+
Float(space)
|
380
|
+
rescue ArgumentError
|
381
|
+
Kernel.raise ArgumentError, "invalid value for interline_spacing"
|
382
|
+
rescue TypeError
|
383
|
+
Kernel.raise TypeError, "can't convert #{space.class} into Float"
|
384
|
+
end
|
385
|
+
primitive "interline-spacing #{space}"
|
386
|
+
end
|
387
|
+
|
374
388
|
# IM 6.4.8-3 and later
|
375
389
|
def interword_spacing(space)
|
376
390
|
begin
|
data/rmagick.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = %q{rmagick}
|
4
|
-
s.version = "2.
|
4
|
+
s.version = "2.12.0"
|
5
5
|
s.date = Date.today.to_s
|
6
6
|
s.summary = %q{Ruby binding to ImageMagick}
|
7
7
|
s.description = %q{RMagick is an interface between Ruby and ImageMagick.}
|
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = %q{rmagick}
|
16
16
|
s.extensions = %w{ext/RMagick/extconf.rb}
|
17
17
|
s.has_rdoc = false
|
18
|
-
s.required_ruby_version = '>= 1.8.
|
19
|
-
s.requirements << 'ImageMagick 6.3.
|
18
|
+
s.required_ruby_version = '>= 1.8.5'
|
19
|
+
s.requirements << 'ImageMagick 6.3.5 or later'
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmagick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Hunter
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-04 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -390,7 +390,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
390
390
|
requirements:
|
391
391
|
- - ">="
|
392
392
|
- !ruby/object:Gem::Version
|
393
|
-
version: 1.8.
|
393
|
+
version: 1.8.5
|
394
394
|
version:
|
395
395
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
396
396
|
requirements:
|
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
399
399
|
version: "0"
|
400
400
|
version:
|
401
401
|
requirements:
|
402
|
-
- ImageMagick 6.3.
|
402
|
+
- ImageMagick 6.3.5 or later
|
403
403
|
rubyforge_project: rmagick
|
404
404
|
rubygems_version: 1.3.5
|
405
405
|
signing_key:
|