DEV: Update sassc gem

This commit is contained in:
David Taylor 2019-03-20 16:04:26 +00:00
parent ed73cc60a9
commit 56b4ee43d3
2 changed files with 8 additions and 14 deletions

View File

@ -145,7 +145,7 @@ GEM
rake-compiler
fast_xs (0.8.0)
fastimage (2.1.5)
ffi (1.9.25)
ffi (1.10.0)
flamegraph (0.9.5)
fspath (3.1.0)
gc_tracer (1.5.1)
@ -320,8 +320,8 @@ GEM
rake-compiler (1.0.4)
rake
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rb-inotify (0.10.0)
ffi (~> 1.0)
rbtrace (0.4.11)
ffi (>= 1.0.6)
msgpack (>= 0.4.3)
@ -381,15 +381,9 @@ GEM
crass (~> 1.0.2)
nokogiri (>= 1.8.0)
nokogumbo (~> 2.0)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sassc (1.11.4)
bundler
ffi (~> 1.9.6)
sass (>= 3.3.0)
sassc (2.0.1)
ffi (~> 1.9)
rake
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)

View File

@ -1,10 +1,10 @@
module Stylesheet
module ScssFunctions
def asset_url(path)
SassC::Script::String.new("url('#{ActionController::Base.helpers.asset_url(path.value)}')")
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.asset_url(path.value)}')")
end
def image_url(path)
SassC::Script::String.new("url('#{ActionController::Base.helpers.image_url(path.value)}')")
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.image_url(path.value)}')")
end
end
end