Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formatting.

  • Loading branch information...
commit 7ec8959ce9336b6c359f9fcd6043d88a8bf1a446 1 parent 56d3e4c
@gabebw gabebw authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/tasks/install.rake
View
10 lib/tasks/install.rake
@@ -6,14 +6,14 @@ require "find"
namespace :bourbon do
desc "Move files to the Rails assets directory."
task :install, [:sass_path] do |t, args|
- args.with_defaults :sass_path => 'public/stylesheets/sass'
+ args.with_defaults(:sass_path => 'public/stylesheets/sass')
source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
- FileUtils.mkdir_p "#{Rails.root}/#{args.sass_path}/bourbon"
- FileUtils.cp_r "#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", {:preserve => true}
+ FileUtils.mkdir_p("#{Rails.root}/#{args.sass_path}/bourbon")
+ FileUtils.cp_r("#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", { :preserve => true })
Find.find("#{Rails.root}/#{args.sass_path}/bourbon") do |path|
if path.end_with?(".css.scss")
- path_without_css_extention = path.gsub(".css.scss", "")<<".scss"
- FileUtils.mv(path, path_without_css_extention)
+ path_without_css_extension = path.gsub(/\.css\.scss$/, ".scss")
+ FileUtils.mv(path, path_without_css_extension)
end
end
end

1 comment on commit 7ec8959

@sikachu
Admin
Please sign in to comment.
Something went wrong with that request. Please try again.