rmagick 2.13.3 → 2.13.4

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. checksums.yaml +5 -13
  2. data/.gitignore +21 -0
  3. data/.travis.yml +57 -0
  4. data/CONTRIBUTING.md +22 -0
  5. data/ChangeLog +47 -4
  6. data/Gemfile +7 -0
  7. data/{README.rc → README.textile} +34 -104
  8. data/Rakefile +160 -24
  9. data/before_install_linux.sh +12 -0
  10. data/before_install_osx.sh +2 -0
  11. data/doc/.cvsignore +1 -0
  12. data/doc/ex/images/image_with_profile.jpg +0 -0
  13. data/doc/ex/mask.rb +1 -1
  14. data/examples/identify.rb +1 -1
  15. data/ext/RMagick/extconf.rb +60 -23
  16. data/ext/RMagick/rmagick.c +15 -15
  17. data/ext/RMagick/rmagick.h +9 -7
  18. data/ext/RMagick/rmdraw.c +12 -12
  19. data/ext/RMagick/rmenum.c +2 -2
  20. data/ext/RMagick/rmfill.c +25 -25
  21. data/ext/RMagick/rmilist.c +121 -104
  22. data/ext/RMagick/rmimage.c +737 -546
  23. data/ext/RMagick/rminfo.c +15 -15
  24. data/ext/RMagick/rmmain.c +27 -3
  25. data/ext/RMagick/rmpixel.c +25 -27
  26. data/ext/RMagick/rmstruct.c +1 -1
  27. data/ext/RMagick/rmutil.c +18 -18
  28. data/lib/RMagick.rb +1 -1962
  29. data/lib/rmagick.rb +1 -0
  30. data/lib/rmagick/version.rb +3 -1
  31. data/lib/rmagick_internal.rb +1964 -0
  32. data/rmagick.gemspec +14 -5
  33. data/test/Image2.rb +7 -3
  34. data/test/Image3.rb +54 -23
  35. data/test/ImageList2.rb +1 -1
  36. data/test/Image_attributes.rb +27 -10
  37. data/test/Import_Export.rb +11 -1
  38. data/test/Info.rb +4 -4
  39. data/test/Magick.rb +14 -54
  40. data/test/Pixel.rb +3 -4
  41. data/test/{all_basic.rb → test_all_basic.rb} +9 -17
  42. data/test/tmpnam_test.rb +50 -0
  43. metadata +50 -21
  44. data/README +0 -15
  45. data/README-Mac-OSX.txt +0 -1
  46. data/build_tarball.rake +0 -215
  47. data/lib/rvg/to_c.rb +0 -103
  48. data/metaconfig +0 -7
  49. data/pkg/rmagick-2.13.3.rc1.gem +0 -0
  50. data/post-clean.rb +0 -12
  51. data/post-install.rb +0 -50
  52. data/post-setup.rb +0 -254
  53. data/setup.rb +0 -1585
  54. data/uninstall.rb +0 -76
@@ -1,76 +0,0 @@
1
- # uninstall RMagick - called from Makefile uninstall target
2
-
3
- require 'fileutils'
4
-
5
- class Dir
6
- def Dir.safe_unlink(dir)
7
- begin
8
- File.chmod 0777, dir
9
- unlink dir
10
- $stderr.puts dir
11
- rescue
12
- end
13
- end
14
- end
15
-
16
- # remove directory & contents if the directory was created by post-install.rb
17
- def rmdir(dir, no_check=false)
18
- # This can 't happen, but you can never be too safe...
19
- if dir == '/' then
20
- raise RuntimeError, "rm -rf /? I don't think so!"
21
- end
22
- if no_check || File.file?(dir+'/.rmagick') then
23
- targets = Dir[dir+'/*']
24
- targets += Dir[dir+'/.*'].delete_if { |f| FileTest.directory?(f) }
25
- if not targets.empty?
26
- FileUtils.safe_unlink(targets)
27
- end
28
- Dir.safe_unlink(dir)
29
- end
30
- end
31
-
32
-
33
- # Load up default values
34
- rbconfig = 'rbconfig'
35
-
36
- while arg = ARGV.shift
37
- case arg
38
- when /\A--rbconfig=(.*)\z/ # Get overriding rbconfig file name
39
- rbconfig = $1
40
- when /\A--prefix=(.*)\z/
41
- path = $1
42
- path = File.expand_path(path) unless path[0,1] == '/'
43
- prefix = path
44
- when /\A--site-ruby=(.*)\z/ # where RMagick.rb is
45
- site_ruby = $1
46
- when /\A--so-dir=(.*)\z/ # where RMagick.so is
47
- so_dir = $1
48
- when /\A--doc-dir=(.*)\z/ # where doc is
49
- doc_dir = $1
50
- end
51
- end
52
-
53
- require rbconfig # get specified/default rbconfig.rb
54
- config = defined?(RbConfig) ? ::RbConfig : ::Config
55
- version = config::CONFIG['ruby_version']
56
- arch = config::CONFIG['arch']
57
-
58
- prefix ||= config::CONFIG['prefix']
59
- site_ruby ||= config::CONFIG['sitelibdir']
60
- so_dir ||= config::CONFIG['sitearchdir']
61
- doc_dir ||= File.join(prefix, 'share', 'RMagick')
62
- dlext = config::CONFIG['DLEXT']
63
-
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
- puts site_ruby
67
- puts doc_dir
68
-
69
- rmdir File.join(site_ruby, 'rvg'), true
70
- rmdir File.join(doc_dir, 'ex', 'images')
71
- rmdir File.join(doc_dir, 'ex')
72
- rmdir File.join(doc_dir, 'css')
73
- rmdir File.join(doc_dir, 'scripts')
74
- rmdir doc_dir
75
-
76
- exit