Skip to content

Commit

Permalink
solved errors being caused by loading RMagick
Browse files Browse the repository at this point in the history
  • Loading branch information
Bashkim Isai committed Oct 19, 2013
1 parent c876bd1 commit f5e8c19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Compass SVG polyfill

Version 1.0.5
Version 1.0.6

A compass plugin which serves SVG background images to new browsers and
provides a PNG fallback to old browsers.
Expand Down
5 changes: 3 additions & 2 deletions compass-svg-polyfill.gemspec
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |s|
s.files = Dir["lib/**/*", "README*"]
s.require_paths = ["lib"]

s.add_runtime_dependency("sass", [">= 3.1.0"])
s.add_runtime_dependency("compass", [">= 0.11.1"])
s.add_runtime_dependency "rmagick"
s.add_runtime_dependency "sass"
s.add_runtime_dependency "compass"
end
2 changes: 1 addition & 1 deletion lib/compass-svg-polyfill/sass_functions.rb
@@ -1,4 +1,4 @@
require 'RMagick'
require 'RMagick' unless Object.const_defined?("Magick")

module Sass::Script::Functions
def svg_polyfill(width, height, svgName, pngName, imageConverter)
Expand Down
2 changes: 1 addition & 1 deletion lib/compass-svg-polyfill/version.rb
@@ -1,5 +1,5 @@
module Compass
module SVGPolyfill
VERSION = "1.0.5"
VERSION = "1.0.6"
end
end

0 comments on commit f5e8c19

Please sign in to comment.