Skip to content
This repository
Browse code

Formatting.

  • Loading branch information...
commit 7ec8959ce9336b6c359f9fcd6043d88a8bf1a446 1 parent 56d3e4c
Gabe Berke-Williams authored March 16, 2012

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  lib/tasks/install.rake
10  lib/tasks/install.rake
@@ -6,14 +6,14 @@ require "find"
6 6
 namespace :bourbon do
7 7
   desc "Move files to the Rails assets directory."
8 8
   task :install, [:sass_path] do |t, args|
9  
-    args.with_defaults :sass_path => 'public/stylesheets/sass'
  9
+    args.with_defaults(:sass_path => 'public/stylesheets/sass')
10 10
     source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
11  
-    FileUtils.mkdir_p "#{Rails.root}/#{args.sass_path}/bourbon"
12  
-    FileUtils.cp_r "#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", {:preserve => true}
  11
+    FileUtils.mkdir_p("#{Rails.root}/#{args.sass_path}/bourbon")
  12
+    FileUtils.cp_r("#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", { :preserve => true })
13 13
     Find.find("#{Rails.root}/#{args.sass_path}/bourbon") do |path|
14 14
       if path.end_with?(".css.scss")
15  
-	    path_without_css_extention = path.gsub(".css.scss", "")<<".scss"
16  
-	    FileUtils.mv(path, path_without_css_extention)
  15
+        path_without_css_extension = path.gsub(/\.css\.scss$/, ".scss")
  16
+        FileUtils.mv(path, path_without_css_extension)
17 17
       end
18 18
     end
19 19
   end

1 note on commit 7ec8959

Prem Sichanugrist
Collaborator
Please sign in to comment.
Something went wrong with that request. Please try again.