lib/sass/tree/rule_node.rb in sass-3.3.0.alpha.107 vs lib/sass/tree/rule_node.rb in sass-3.3.0.alpha.120
- old
+ new
@@ -1,7 +1,6 @@
require 'pathname'
-require 'uri'
module Sass::Tree
# A static node reprenting a CSS rule.
#
# @see Sass::Tree
@@ -113,10 +112,10 @@
# if the {file:SASS_REFERENCE.md#debug_info-option `:debug_info` option} is enabled.
# This data is used by e.g. [the FireSass Firebug extension](https://addons.mozilla.org/en-US/firefox/addon/103988).
#
# @return [{#to_s => #to_s}]
def debug_info
- {:filename => filename && ("file://" + URI.escape(File.expand_path(filename))),
+ {:filename => filename && ("file://" + Sass::Util.escape_uri(File.expand_path(filename))),
:line => self.line}
end
# A rule node is invisible if it has only placeholder selectors.
def invisible?