mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Fixed a bug in Plugin.update_stylesheets when a template_location has a trailing slash.
This commit is contained in:
parent
207b9620d3
commit
7f89bcad8d
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,10 @@
|
|||
* `nil` values for Sass options are now ignored,
|
||||
rather than raising errors.
|
||||
|
||||
* Fix a bug that appears when Plugin template locations
|
||||
have multiple trailing slashes.
|
||||
Thanks to [Jared Grippe](http://jaredgrippe.com/).
|
||||
|
||||
### Must Read!
|
||||
|
||||
* When `@import` is given a filename without an extension,
|
||||
|
|
|
@ -76,7 +76,7 @@ module Sass
|
|||
|
||||
Dir.glob(File.join(template_location, "**", "*.sass")).each do |file|
|
||||
# Get the relative path to the file with no extension
|
||||
name = file.sub(template_location + "/", "")[0...-5]
|
||||
name = file.sub(template_location.sub(/\/*$/, '/'), "")[0...-5]
|
||||
|
||||
if !forbid_update?(name) && (options[:always_update] || stylesheet_needs_update?(name, template_location, css_location))
|
||||
update_stylesheet(name, template_location, css_location)
|
||||
|
|
Loading…
Add table
Reference in a new issue