Sha256: 9624bc0e2491d7a8e9dcb468035eff9d283e6aeb0a2f9793f54492e338f19c23

Contents?: true

Size: 599 Bytes

Versions: 24

Compression:

Stored size: 599 Bytes

Contents

# -*- encoding : utf-8 -*-
# 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

24 entries across 24 versions & 2 rubygems

Version Path
lolcommits-0.9.2 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.2.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.1.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.9.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.8.1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.8.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.7.0 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.7 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.6 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.6.pre1 lib/core_ext/mini_magick/utilities.rb
snapgit-0.6.5 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.5 lib/core_ext/mini_magick/utilities.rb
snapgit-0.6.4 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.4 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.3 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.3.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.2 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.2.pre1 lib/core_ext/mini_magick/utilities.rb
lolcommits-0.6.1 lib/core_ext/mini_magick/utilities.rb