lib/compass-sass.rb in capucine-0.0.9 vs lib/compass-sass.rb in capucine-0.1.1

- old
+ new

@@ -64,31 +64,31 @@ formats = s.config['sass_import_formats'].split from_format = formats[0] to_format = formats[2] - command = "sass-convert -R --from #{from_format} --to #{to_format} #{import_dir} #{output_dir}" + command = "sass-convert -R --from #{from_format} --to #{to_format} \"#{import_dir}\" \"#{output_dir}\"" system(command) Capucine::Tools.archive_file import_dir end def self.run_once self.update_config # self.load_my_functions self.import_css if Capucine.settings.config['sass_import_css'] config = File.join Capucine.settings.working_dir, '.compass.rb' - command = "compass compile --quiet --config #{config} #{Capucine.settings.working_dir}" + command = "compass compile --quiet --config \"#{config}\" \"#{Capucine.settings.working_dir}\"" system(command) puts "[compass] - Compiled" end - def self.export_path - require 'compass' - require 'rubygems' - path_compass = Gem.loaded_specs['compass'].full_gem_path - ENV['PATH'] = "#{path_compass}:#{Capucine.settings.gem_dir}:#{ENV['PATH']}" - end + # def self.export_path + # require 'compass' + # require 'rubygems' + # path_compass = Gem.loaded_specs['compass'].full_gem_path + # ENV['PATH'] = "#{path_compass}:#{Capucine.settings.gem_dir}:#{ENV['PATH']}" + # end def self.proc_watch self.update_config config_file = File.join Capucine.settings.working_dir, '.compass.rb' compass_args = ['watch', '--config', config_file, Capucine.settings.working_dir]