Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mini_magick.spec'], chrootPath='/var/lib/mock/centos-stream+epel-next-9-x86_64-1688185745.697289/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '02a59831f5ef404da5e5798b090e021f', '-D', '/var/lib/mock/centos-stream+epel-next-9-x86_64-1688185745.697289/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mini_magick.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642723200 Wrote: /builddir/build/SRPMS/rubygem-mini_magick-4.11.0-4.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mini_magick.spec'], chrootPath='/var/lib/mock/centos-stream+epel-next-9-x86_64-1688185745.697289/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '653c09a478364d13b125a5db3316ccfc', '-D', '/var/lib/mock/centos-stream+epel-next-9-x86_64-1688185745.697289/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pjqph_ic:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mini_magick.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642723200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jzOxeU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mini_magick-4.11.0 + /usr/bin/tar -xof /builddir/build/SOURCES/mini_magick-4.11.0-tests.txz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gem unpack /builddir/build/SOURCES/mini_magick-4.11.0.gem Unpacked gem: '/builddir/build/BUILD/mini_magick-4.11.0' + /usr/bin/gem spec /builddir/build/SOURCES/mini_magick-4.11.0.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd mini_magick-4.11.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eYfhoJ + umask 022 + cd /builddir/build/BUILD + cd mini_magick-4.11.0 + gem build ../mini_magick-4.11.0.gemspec WARNING: description and summary are identical WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on guard (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on guard-rspec (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on posix-spawn (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on webmock (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: mini_magick Version: 4.11.0 File: mini_magick-4.11.0.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc mini_magick-4.11.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/mini_magick-4.11.0 Bin dir: /builddir/build/BUILD/mini_magick-4.11.0/usr/bin Gem home: /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems Plugins dir: /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/plugins /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/MIT-LICENSE /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/Rakefile /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_gmagick.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/configuration.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/image.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/image/info.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/shell.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/animate.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/compare.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/composite.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/conjure.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/convert.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/display.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/identify.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/import.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/magick.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/mogrify.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/mogrify_restricted.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/montage.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/tool/stream.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/utilities.rb /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/version.rb Successfully installed mini_magick-4.11.0 Parsing documentation for mini_magick-4.11.0 Parsing sources... 4% [ 1/22] lib/mini_gmagick.rb 9% [ 2/22] lib/mini_magick.rb 13% [ 3/22] lib/mini_magick/configuration.rb 18% [ 4/22] lib/mini_magick/image.rb 22% [ 5/22] lib/mini_magick/image/info.rb 27% [ 6/22] lib/mini_magick/shell.rb 31% [ 7/22] lib/mini_magick/tool.rb 36% [ 8/22] lib/mini_magick/tool/animate.rb 40% [ 9/22] lib/mini_magick/tool/compare.rb 45% [10/22] lib/mini_magick/tool/composite.rb 50% [11/22] lib/mini_magick/tool/conjure.rb 54% [12/22] lib/mini_magick/tool/convert.rb 59% [13/22] lib/mini_magick/tool/display.rb 63% [14/22] lib/mini_magick/tool/identify.rb 68% [15/22] lib/mini_magick/tool/import.rb 72% [16/22] lib/mini_magick/tool/magick.rb 77% [17/22] lib/mini_magick/tool/mogrify.rb 81% [18/22] lib/mini_magick/tool/mogrify_restricted.rb 86% [19/22] lib/mini_magick/tool/montage.rb 90% [20/22] lib/mini_magick/tool/stream.rb 95% [21/22] lib/mini_magick/utilities.rb 100% [22/22] lib/mini_magick/version.rb Installing ri documentation for mini_magick-4.11.0 Installing darkfish documentation for mini_magick-4.11.0 Done installing documentation for mini_magick after 0 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.K6UIFG + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 + cd mini_magick-4.11.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64/usr/share/gems/ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 4.11.0-4.el9 --unique-debug-suffix -4.11.0-4.el9.x86_64 --unique-debug-src-base rubygem-mini_magick-4.11.0-4.el9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/mini_magick-4.11.0 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9YUgbV + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0 ~/build/BUILD/mini_magick-4.11.0 + cd mini_magick-4.11.0 + pushd ./usr/share/gems/gems/mini_magick-4.11.0 + ln -s /builddir/build/BUILD/spec . + sed -i -e '/require "pry"/ s/^/#/g' -e '/require "bundler/ s/^/#/g' spec/spec_helper.rb + sed -i -e '/^ \[:imagemagick, :graphicsmagick\].each do |cli|$/ s/, :graphicsmagick//g' -e '/^ \["open3", "posix-spawn"\].each do |shell_api|$/ s/, "posix-spawn"//g' spec/spec_helper.rb + sed -i '/^ it "identifies when gm exists" do$/,/ end/ s/^/#/g' spec/lib/mini_magick/utilities_spec.rb + sed -i '/^ it "returns GraphicsMagick'\''s version" do$/,/ end/ s/^/#/g' spec/lib/mini_magick_spec.rb + sed -i '/ have_key("date:create")/ s/^/#/' spec/lib/mini_magick/image_spec.rb + sed -i '/^\s*it "does not hang when parsing verbose data" do$/ a \ skip' spec/lib/mini_magick/image_spec.rb + rspec spec Run options: include {:focus=>true} All examples were filtered out; ignoring {:focus=>true} MiniMagick::Configuration #configure yields self #cli can be assigned returns :imagemagick if #processor is mogrify returns :graphicsmagick if #processor is gm raises an error if #processor could not be found #cli= raises an error when set to an invalid value #cli_prefix can be assigned #processor assigns 'mogrify' if ImageMagick 6 is available, and others are not assigns 'gm' if others are not available assigns 'magick' if ImageMagick 7 available returns nil if neither ImageMagick nor GraphicsMagick are available #processor= raises an error when set to an invalid value With ImageMagick MiniMagick::Image has attributes generates attributes of layers changes colorspace when called with an argument changes size when called with an argument .read reads image from String reads image from StringIO reads image from tempfile .import_pixels can import pixels with default format can import pixels with custom format .open makes a copy of the image accepts a Pathname accepts a non-ascii filename loads a remote image doesn't allow remote shell execution accepts open-uri options strips out colons from URL validates the image does not mistake a path with a colon for a URI schema .create creates an image validates the image if validation is set doesn't validate image if validation is disabled #initialize initializes a new image accepts a Pathname accepts a block which it passes on to #combine_options equivalence is #== and #eql? to itself is #== and #eql? to an instance of the same image is not #== nor #eql? to an instance of a different image generates the same hash code for an instance of the same image generates different same hash codes for a different image #tempfile returns the underlying temporary file #format changes the format of the photo reformats an image with a given extension creates the file with new extension accepts a block of additional commands works without an extension with .open works without an extension with .new deletes the previous tempfile deletes *.cache files generated from .mpc doesn't delete itself when formatted to the same format reformats multi-image formats to multiple images reformats multi-image formats to a single image reformats a layer clears the info only at the end returns self reads read_opts from passed arguments #write writes the image writes an image with stream writes layers accepts a Pathname works when writing to the same path #valid? returns true when image is valid returns false when image is not valid #[] inspects image meta info supports string keys reads exif passes unknown values directly to -format #exif returns a hash of EXIF data decodes the ExifVersion handles no EXIF data #resolution accepts units #mime_type returns the correct mime type #details [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. returns a hash of verbose information when verbose information includes an empty line skips the empty line when verbose information includes a badly encoded line do [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. skips the badly encoded line when verbose information includes a clipping path does not hang when parsing verbose data (PENDING: No reason given) #data when the data return is not an array returns image JSON data when the data return is an array (ex png) returns image JSON data #layers returns a list of images returns multiple images for GIFs, PDFs and PSDs returns one image for other formats #get_pixels without modifications returns a width-by-height matrix returns a magenta pixel returns a gray pixel returns a green pixel returns a cyan pixel after cropping returns a matrix of the requested height returns a matrix of the requested width returns a magenta pixel returns a gray pixel returns a cyan pixel returns a green pixel after resizing and desaturating returns a matrix of the requested height returns a matrix of the requested width returns gray pixels when first or last byte could be interpreted as control characters returns a matrix where all pixel has 3 values missing methods for a known method is executed by #method_missing returns self can be responded to #combine_options chains multiple options and executes them in one command doesn't allow calling of #format clears the info only at the end returns self #composite creates a composite of two images creates a composite of two images with mask yields an optional block makes the composited image with the provided extension defaults the extension to the extension of the base image #collapse! collapses the image to one frame keeps the extension clears the info returns self #destroy! deletes the underlying tempfile doesn't delete when there is no tempfile deletes .cache files generated by handling .mpc files #identify returns the output of identify yields an optional block #run_command runs the given command #landscape? returns true if image width greater than height returns false if image width less than height #portrait? returns true if image width greater than height returns false if image width less than height With GraphicsMagick MiniMagick::Image has attributes generates attributes of layers changes colorspace when called with an argument changes size when called with an argument .read reads image from String reads image from StringIO reads image from tempfile .import_pixels can import pixels with default format can import pixels with custom format .open makes a copy of the image accepts a Pathname accepts a non-ascii filename loads a remote image doesn't allow remote shell execution accepts open-uri options strips out colons from URL validates the image does not mistake a path with a colon for a URI schema .create creates an image validates the image if validation is set doesn't validate image if validation is disabled #initialize initializes a new image accepts a Pathname accepts a block which it passes on to #combine_options equivalence is #== and #eql? to itself is #== and #eql? to an instance of the same image is not #== nor #eql? to an instance of a different image generates the same hash code for an instance of the same image generates different same hash codes for a different image #tempfile returns the underlying temporary file #format changes the format of the photo reformats an image with a given extension creates the file with new extension accepts a block of additional commands works without an extension with .open works without an extension with .new deletes the previous tempfile deletes *.cache files generated from .mpc doesn't delete itself when formatted to the same format reformats multi-image formats to multiple images reformats multi-image formats to a single image reformats a layer clears the info only at the end returns self reads read_opts from passed arguments #write writes the image writes an image with stream writes layers accepts a Pathname works when writing to the same path #valid? returns true when image is valid returns false when image is not valid #[] inspects image meta info supports string keys reads exif passes unknown values directly to -format #exif returns a hash of EXIF data decodes the ExifVersion handles no EXIF data #resolution accepts units #mime_type returns the correct mime type #details [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. returns a hash of verbose information when verbose information includes an empty line skips the empty line when verbose information includes a badly encoded line do [MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase. skips the badly encoded line when verbose information includes a clipping path does not hang when parsing verbose data (PENDING: No reason given) #data when the data return is not an array returns image JSON data when the data return is an array (ex png) returns image JSON data #layers returns a list of images returns multiple images for GIFs, PDFs and PSDs returns one image for other formats #get_pixels without modifications returns a width-by-height matrix returns a magenta pixel returns a gray pixel returns a green pixel returns a cyan pixel after cropping returns a matrix of the requested height returns a matrix of the requested width returns a magenta pixel returns a gray pixel returns a cyan pixel returns a green pixel after resizing and desaturating returns a matrix of the requested height returns a matrix of the requested width returns gray pixels when first or last byte could be interpreted as control characters returns a matrix where all pixel has 3 values missing methods for a known method is executed by #method_missing returns self can be responded to #combine_options chains multiple options and executes them in one command doesn't allow calling of #format clears the info only at the end returns self #composite creates a composite of two images creates a composite of two images with mask yields an optional block makes the composited image with the provided extension defaults the extension to the extension of the base image #collapse! collapses the image to one frame keeps the extension clears the info returns self #destroy! deletes the underlying tempfile doesn't delete when there is no tempfile deletes .cache files generated by handling .mpc files #identify returns the output of identify yields an optional block #run_command runs the given command #landscape? returns true if image width greater than height returns false if image width less than height #portrait? returns true if image width greater than height returns false if image width less than height MiniMagick::Shell #run calls #execute with the command stderr returns stdout, stderr and status uses stderr for error messages raises an error when executable wasn't found raises errors only in whiny mode prints to stderr output to $stderr in non-whiny mode #execute with open3 executes the command in the shell handles larger output returns an appropriate response when command wasn't found logs the command and execution time in debug mode # terminated with exception (report_on_exception is true): /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/shell.rb:45:in `read': stream closed in another thread (IOError) from /builddir/build/BUILD/mini_magick-4.11.0/usr/share/gems/gems/mini_magick-4.11.0/lib/mini_magick/shell.rb:45:in `block (2 levels) in execute_open3' terminate long running commands if MiniMagick.timeout is set doesn't break on spaces with posix-spawn executes the command in the shell handles larger output returns an appropriate response when command wasn't found logs the command and execution time in debug mode terminate long running commands if MiniMagick.timeout is set doesn't break on spaces MiniMagick::Tool defines creation operator methods MiniMagick::Tool.new(false) is deprecated and will be removed in MiniMagick 5, use MiniMagick::Tool.new(whiny: false) instead. doesn't raise errors when false is passed to the constructor #call calls the shell to run the command strips the output accepts a block, and yields stdin, stdout and exit status accepts stdin .new accepts a block, and immediately executes the command defaults whiny to MiniMagick.whiny #command includes the executable and the arguments #executable prepends 'gm' to the command list when using GraphicsMagick prepends 'magick' to the command list when using ImageMagick 7 respects #cli_path respects #cli_prefix as a string respects #cli_prefix as an array #<< adds argument to the args list #merge! adds arguments to the args list #+ switches the last option to + form #stdin appends the '-' pseudo-filename #stdout appends the '-' pseudo-filename #stack it surrounds added arguments with parantheses accepts hash of options #clone adds an option instead of the default behaviour accepts arguments is convertable to plus version #method_missing adds CLI options MiniMagick::Utilities .which identifies when mogrify exists returns nil on nonexistent executables MiniMagick .imagemagick? returns true if CLI is minimagick returns false if CLI isn't minimagick .graphicsmagick? returns true if CLI is graphicsmagick returns false if CLI isn't graphicsmagick .cli_version returns ImageMagick's version Pending: (Failures listed here are expected and do not affect your suite's status) 1) With ImageMagick MiniMagick::Image#details when verbose information includes a clipping path does not hang when parsing verbose data # No reason given # ./spec/lib/mini_magick/image_spec.rb:474 2) With GraphicsMagick MiniMagick::Image#details when verbose information includes a clipping path does not hang when parsing verbose data # No reason given # ./spec/lib/mini_magick/image_spec.rb:474 Finished in 4.6 seconds (files took 0.31443 seconds to load) 284 examples, 0 failures, 2 pending + popd ~/build/BUILD/mini_magick-4.11.0 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-mini_magick-4.11.0-4.el9.noarch Provides: rubygem(mini_magick) = 4.11.0 rubygem-mini_magick = 4.11.0-4.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ruby(rubygems) Processing files: rubygem-mini_magick-doc-4.11.0-4.el9.noarch Provides: rubygem-mini_magick-doc = 4.11.0-4.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 Wrote: /builddir/build/RPMS/rubygem-mini_magick-4.11.0-4.el9.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-mini_magick-doc-4.11.0-4.el9.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.KBl9eq + umask 022 + cd /builddir/build/BUILD + cd mini_magick-4.11.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-mini_magick-4.11.0-4.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0