Skip to content
Permalink
Browse files

removed Dir[] for glob fallign back to Sass::Utils for glob support c…

…loses#1036
  • Loading branch information...
scottdavis committed Oct 11, 2012
1 parent d4db12f commit 58babac01b56eddf63bac737f7f781d98f00f6b9
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/compass/sprite_importer.rb
@@ -16,7 +16,7 @@ class SpriteImporter < Sass::Importers::Base
def self.find_all_sprite_map_files(path)
hex = "[0-9a-f]"
glob = "*-s#{hex*10}{#{VALID_EXTENSIONS.join(",")}}"
Dir.glob(File.join(path, "**", glob))
Sass::Util.glob(File.join(path, "**", glob))
end

def find(uri, options)
@@ -75,7 +75,7 @@ def self.path(uri)
# Returns the Glob of image files for the uri
def self.files(uri)
Compass.configuration.sprite_load_path.compact.each do |folder|
files = Dir[File.join(folder, uri)].sort
files = Sass::Util.glob(File.join(folder, uri)).sort
next if files.empty?
return files
end

7 comments on commit 58babac

@telekineticyeti

This comment has been minimized.

Copy link

replied Mar 30, 2013

Thanks Scott! This fixed my windows sprite issue.

@juniorgodoi

This comment has been minimized.

Copy link

replied Apr 28, 2013

Awesome, fixed!

@j-steve

This comment has been minimized.

Copy link

replied Aug 17, 2013

Thanks! This fixed the sprite issue on my Windows machine too.

@sas48

This comment has been minimized.

Copy link

replied Nov 18, 2013

Hellow!

I'm testnig on windows.
I change the sprite_importer.rb file and what then? Do I have to rebuild compass or just repair sprite_importer.rb file and should it work?
Please, I need help!

Thanks!

@mvpriyank

This comment has been minimized.

Copy link

replied Jun 20, 2014

Still not working for me. Any further steps to be followed after these changes?

@wzup

This comment has been minimized.

Copy link

replied Jan 23, 2015

Not working for me.
Windows 7 64bit
Ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
Gem 2.4.5
Compass 0.12.6 (Alnilam)

@tharapon

This comment has been minimized.

Copy link

replied Feb 21, 2015

Thank you! It's work!
C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\compass-0.12.2\lib\compass\sprite_importer.rb

Please sign in to comment.
You can’t perform that action at this time.