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.
- checksums.yaml +5 -13
- data/.gitignore +21 -0
- data/.travis.yml +57 -0
- data/CONTRIBUTING.md +22 -0
- data/ChangeLog +47 -4
- data/Gemfile +7 -0
- data/{README.rc → README.textile} +34 -104
- data/Rakefile +160 -24
- data/before_install_linux.sh +12 -0
- data/before_install_osx.sh +2 -0
- data/doc/.cvsignore +1 -0
- data/doc/ex/images/image_with_profile.jpg +0 -0
- data/doc/ex/mask.rb +1 -1
- data/examples/identify.rb +1 -1
- data/ext/RMagick/extconf.rb +60 -23
- data/ext/RMagick/rmagick.c +15 -15
- data/ext/RMagick/rmagick.h +9 -7
- data/ext/RMagick/rmdraw.c +12 -12
- data/ext/RMagick/rmenum.c +2 -2
- data/ext/RMagick/rmfill.c +25 -25
- data/ext/RMagick/rmilist.c +121 -104
- data/ext/RMagick/rmimage.c +737 -546
- data/ext/RMagick/rminfo.c +15 -15
- data/ext/RMagick/rmmain.c +27 -3
- data/ext/RMagick/rmpixel.c +25 -27
- data/ext/RMagick/rmstruct.c +1 -1
- data/ext/RMagick/rmutil.c +18 -18
- data/lib/RMagick.rb +1 -1962
- data/lib/rmagick.rb +1 -0
- data/lib/rmagick/version.rb +3 -1
- data/lib/rmagick_internal.rb +1964 -0
- data/rmagick.gemspec +14 -5
- data/test/Image2.rb +7 -3
- data/test/Image3.rb +54 -23
- data/test/ImageList2.rb +1 -1
- data/test/Image_attributes.rb +27 -10
- data/test/Import_Export.rb +11 -1
- data/test/Info.rb +4 -4
- data/test/Magick.rb +14 -54
- data/test/Pixel.rb +3 -4
- data/test/{all_basic.rb → test_all_basic.rb} +9 -17
- data/test/tmpnam_test.rb +50 -0
- metadata +50 -21
- data/README +0 -15
- data/README-Mac-OSX.txt +0 -1
- data/build_tarball.rake +0 -215
- data/lib/rvg/to_c.rb +0 -103
- data/metaconfig +0 -7
- data/pkg/rmagick-2.13.3.rc1.gem +0 -0
- data/post-clean.rb +0 -12
- data/post-install.rb +0 -50
- data/post-setup.rb +0 -254
- data/setup.rb +0 -1585
- data/uninstall.rb +0 -76
data/uninstall.rb
DELETED
@@ -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
|