rmagick 2.0.0 → 2.1.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.

Files changed (54) hide show
  1. data/ChangeLog +9 -0
  2. data/README.html +13 -13
  3. data/README.txt +11 -11
  4. data/doc/comtasks.html +25 -4
  5. data/doc/constants.html +8 -8
  6. data/doc/draw.html +112 -116
  7. data/doc/ex/axes.rb +1 -1
  8. data/doc/ex/clip_path.rb +5 -4
  9. data/doc/ex/get_type_metrics.rb +2 -2
  10. data/doc/ex/resize_to_fill.rb +10 -0
  11. data/doc/ex/{crop_resized.rb → resize_to_fit.rb} +2 -2
  12. data/doc/ilist.html +79 -82
  13. data/doc/image1.html +213 -322
  14. data/doc/image2.html +123 -136
  15. data/doc/image3.html +340 -198
  16. data/doc/imageattrs.html +211 -192
  17. data/doc/imusage.html +6 -7
  18. data/doc/index.html +9 -16
  19. data/doc/info.html +90 -61
  20. data/doc/magick.html +6 -6
  21. data/doc/optequiv.html +26 -13
  22. data/doc/rvg.html +22 -23
  23. data/doc/rvgclip.html +15 -16
  24. data/doc/rvggroup.html +23 -23
  25. data/doc/rvgimage.html +18 -19
  26. data/doc/rvgpattern.html +101 -82
  27. data/doc/rvgshape.html +14 -21
  28. data/doc/rvgstyle.html +4 -4
  29. data/doc/rvgtext.html +10 -9
  30. data/doc/rvgtspan.html +12 -11
  31. data/doc/rvgtut.html +4 -4
  32. data/doc/rvguse.html +4 -4
  33. data/doc/rvgxform.html +9 -9
  34. data/doc/struct.html +193 -195
  35. data/doc/usage.html +12 -10
  36. data/examples/constitute.rb +7 -0
  37. data/ext/RMagick/MANIFEST +4 -4
  38. data/ext/RMagick/extconf.rb +54 -42
  39. data/ext/RMagick/rmagick.h +34 -11
  40. data/ext/RMagick/rmdraw.c +6 -6
  41. data/ext/RMagick/rmfill.c +2 -2
  42. data/ext/RMagick/rmilist.c +9 -9
  43. data/ext/RMagick/rmimage.c +110 -106
  44. data/ext/RMagick/rminfo.c +33 -14
  45. data/ext/RMagick/rmmain.c +11 -21
  46. data/ext/RMagick/rmutil.c +51 -11
  47. data/lib/RMagick.rb +25 -18
  48. data/post-clean.rb +3 -3
  49. data/post-install.rb +4 -5
  50. data/rmagick.gemspec +5 -3
  51. data/uninstall.rb +6 -6
  52. metadata +7 -7
  53. data/doc/ex/Adispatch.rb +0 -43
  54. data/doc/ex/Zconstitute.rb +0 -9
data/uninstall.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # uninstall RMagick - called from Makefile uninstall target
2
2
 
3
- require 'ftools'
3
+ require 'fileutils'
4
4
 
5
5
  class Dir
6
6
  def Dir.safe_unlink(dir)
@@ -23,7 +23,7 @@ def rmdir(dir, no_check=false)
23
23
  targets = Dir[dir+'/*']
24
24
  targets += Dir[dir+'/.*'].delete_if { |f| FileTest.directory?(f) }
25
25
  if not targets.empty?
26
- File.safe_unlink(*targets)
26
+ FileUtils.safe_unlink(targets)
27
27
  end
28
28
  Dir.safe_unlink(dir)
29
29
  end
@@ -56,13 +56,13 @@ version = ::Config::CONFIG['ruby_version']
56
56
  arch = ::Config::CONFIG['arch']
57
57
 
58
58
  prefix ||= ::Config::CONFIG['prefix']
59
- site_ruby ||= File.join(prefix, 'lib', 'ruby', 'site_ruby', version)
60
- so_dir ||= File.join(prefix, 'lib', 'ruby', 'site_ruby', version, arch)
59
+ site_ruby ||= ::Config::CONFIG['sitelibdir']
60
+ so_dir ||= ::Config::CONFIG['sitearchdir']
61
61
  doc_dir ||= File.join(prefix, 'share', 'RMagick')
62
62
  dlext = ::Config::CONFIG['DLEXT']
63
63
 
64
- File.safe_unlink File.join(site_ruby, 'RMagick.rb'), true
65
- File.safe_unlink File.join(so_dir, 'RMagick.' + dlext), true
64
+ FileUtils.safe_unlink File.join(site_ruby, 'RMagick.rb'), :verbose => true
65
+ FileUtils.safe_unlink File.join(so_dir, 'RMagick.' + dlext), :verbose => true
66
66
 
67
67
  rmdir File.join(site_ruby, 'rvg'), true
68
68
  rmdir File.join(doc_dir, 'ex', 'images')
metadata CHANGED
@@ -3,12 +3,12 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rmagick
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.0.0
7
- date: 2007-12-27 00:00:00 -05:00
6
+ version: 2.1.0
7
+ date: 2008-01-09 00:00:00 -05:00
8
8
  summary: Ruby binding to ImageMagick
9
9
  require_paths:
10
10
  - lib
11
- - .
11
+ - ext
12
12
  email: rmagick@rubyforge.org
13
13
  homepage: http://rubyforge.org/projects/rmagick
14
14
  rubyforge_project: rmagick
@@ -63,6 +63,7 @@ files:
63
63
  - examples/image_opacity.rb
64
64
  - examples/vignette.rb
65
65
  - examples/import_export.rb
66
+ - examples/constitute.rb
66
67
  - examples/demo.rb
67
68
  - examples/histogram.rb
68
69
  - examples/identify.rb
@@ -148,7 +149,6 @@ files:
148
149
  - doc/ex/tspan01.rb
149
150
  - doc/ex/enhance.rb
150
151
  - doc/ex/colors.rb
151
- - doc/ex/Adispatch.rb
152
152
  - doc/ex/translate.rb
153
153
  - doc/ex/quantize-m.rb
154
154
  - doc/ex/crop.rb
@@ -169,6 +169,7 @@ files:
169
169
  - doc/ex/polyline01.rb
170
170
  - doc/ex/spread.rb
171
171
  - doc/ex/PreserveAspectRatio.rb
172
+ - doc/ex/resize_to_fit.rb
172
173
  - doc/ex/rotate_f.rb
173
174
  - doc/ex/shade.rb
174
175
  - doc/ex/random_threshold_channel.rb
@@ -248,7 +249,6 @@ files:
248
249
  - doc/ex/ellipse.rb
249
250
  - doc/ex/cbezier3.rb
250
251
  - doc/ex/preview.rb
251
- - doc/ex/crop_resized.rb
252
252
  - doc/ex/shadow.rb
253
253
  - doc/ex/arcs02.rb
254
254
  - doc/ex/affine_transform.rb
@@ -262,7 +262,6 @@ files:
262
262
  - doc/ex/modulate.rb
263
263
  - doc/ex/edge.rb
264
264
  - doc/ex/get_multiline_type_metrics.rb
265
- - doc/ex/Zconstitute.rb
266
265
  - doc/ex/NewCoordSys.rb
267
266
  - doc/ex/matte_replace.rb
268
267
  - doc/ex/polygon01.rb
@@ -372,6 +371,7 @@ files:
372
371
  - doc/ex/ViewBox.rb
373
372
  - doc/ex/Skew.rb
374
373
  - doc/ex/grav.rb
374
+ - doc/ex/resize_to_fill.rb
375
375
  - doc/ex/clip_path.rb
376
376
  - doc/ex/rubyname.rb
377
377
  - doc/ex/color_reset.rb
@@ -393,6 +393,6 @@ executables: []
393
393
  extensions:
394
394
  - ext/RMagick/extconf.rb
395
395
  requirements:
396
- - ImageMagick 6.2.6 or later
396
+ - ImageMagick 6.3.0 or later
397
397
  dependencies: []
398
398
 
data/doc/ex/Adispatch.rb DELETED
@@ -1,43 +0,0 @@
1
- #! /usr/local/bin/ruby -w
2
- require 'RMagick'
3
-
4
- f = Magick::Image.read("images/Flower_Hat.jpg").first
5
-
6
- pixels = f.dispatch(0,0,f.columns,f.rows,"RGB")
7
-
8
- # Write the pixels to a file, to be loaded in the Zconstitute.rb
9
- # example. Ruby 1.6.8 # loads the Pixels array much faster if we break
10
- # the array into many small pieces and concatenate them together, so this
11
- # program generates such a sequence.
12
-
13
- first = true
14
- total = pixels.length
15
-
16
- File.open('pixels-array', 'w') { |txt|
17
- txt.puts("Width = #{f.columns}")
18
- txt.puts("Height = #{f.rows}")
19
- txt.puts('Pixels = [')
20
- x = 0
21
- pixels.each do |p|
22
- txt.printf("%3d,", p)
23
- x = x.succ
24
- txt.printf("\n") if x % 25 == 0
25
- if x % 1000 == 0
26
- if first
27
- txt.puts(']')
28
- first = false
29
- else
30
- txt.puts('])')
31
- end
32
- txt.print('Pixels.concat([')
33
- end
34
- end
35
-
36
- if first
37
- txt.puts(']')
38
- first = false
39
- else
40
- txt.puts('])')
41
- end
42
- }
43
- exit
@@ -1,9 +0,0 @@
1
- #! /usr/local/bin/ruby -w
2
- require 'RMagick'
3
-
4
- load 'pixels-array'
5
-
6
- image = Magick::Image.constitute(Width, Height, "RGB", Pixels)
7
-
8
- image.write("constitute.jpg")
9
- exit