mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Sass changes for Ruby 1.9 compatibility.
This commit is contained in:
parent
28cdf7e080
commit
a6d3850e69
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ module Sass
|
|||
|
||||
return Functions.send(name, *args)
|
||||
rescue ArgumentError => e
|
||||
raise e unless e.backtrace.first =~ /:in `#{name}'$/
|
||||
raise e unless e.backtrace.first =~ /:in `(#{name}|perform)'$/
|
||||
raise Sass::SyntaxError.new("#{e.message} for `#{name}'")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ end
|
|||
class Test::Unit::TestCase
|
||||
def munge_filename(opts)
|
||||
return if opts[:filename]
|
||||
test_name = caller[1].gsub(/^.*`(.*)'.*$/, '\1')
|
||||
test_name = caller[1].gsub(/^.*`(?:\w+ )*(\w+)'.*$/, '\1')
|
||||
opts[:filename] = "#{test_name}_inline.sass"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue