Sha256: 8b6735283297651521ee60f995044101d83e9fe15b2a10a60e39a5000effba66

Contents?: true

Size: 572 Bytes

Versions: 18

Compression:

Stored size: 572 Bytes

Contents

# To maintain MiniMagick compatibility on Windows for v3.8.1 we need this patch
# If/when we upgrade MiniMagick to 4.2+ this patch can be removed
# We are locked at v3.8.1 since MiniMagick 4+ dropped support for Ruby 1.8.7
module MiniMagick
  module Utilities
    class << self
      # fixes issue introduced in this commit
      # https://github.com/minimagick/minimagick/commit/65b6427395cbfe6
      def windows_escape(cmdline)
        '"' + cmdline.gsub(/\\(?=\\*\")/, '\\\\\\').gsub(/\"/, '\\"').gsub(/\\$/, '\\\\\\').gsub('%', '%%') + '"'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
lolcommits-0.12.1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.12.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.11.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.11.0.pre lib/core_ext/mini_magick/utilities.rb
lolcommits-0.10.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.10.0.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.8 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.7 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.7.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.6 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.5 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.5.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.4 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.4.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.3 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.3.pre3 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.3.pre2 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.3.pre1 lib/core_ext/mini_magick/utilities.rb