Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Generate the proper lib files to make bourbon watch work

  • Loading branch information...
commit 0ebf9060da97259c38d1ffd876c3e5fc7d1e44d4 1 parent c2077d8
Phil LaPier authored
6 features/step_definitions/bourbon_steps.rb
View
@@ -22,8 +22,10 @@
end
Then /^the lib files should have been generated$/ do
- check_file_presence(["bourbon/lib/sass_extensions.rb"], true)
- check_directory_presence(["bourbon/lib/sass_extensions"], true)
+ check_file_presence(["bourbon/lib/bourbon.rb"], true)
+ check_directory_presence(["bourbon/lib/bourbon"], true)
+ check_file_presence(["bourbon/lib/bourbon/sass_extensions.rb"], true)
+ check_directory_presence(["bourbon/lib/bourbon/sass_extensions"], true)
end
Then /^bourbon should not have been generated$/ do
11 lib/bourbon/generator.rb
View
@@ -50,12 +50,13 @@ def remove_bourbon_directory
end
def make_lib_directory
- FileUtils.mkdir_p("bourbon/lib")
+ FileUtils.mkdir_p("bourbon/lib/bourbon")
end
def copy_in_sass_extensions
- FileUtils.cp(File.join(lib_directory, "sass_extensions.rb"), "bourbon/lib/")
- FileUtils.cp_r(File.join(lib_directory, "sass_extensions"), "bourbon/lib/")
+ FileUtils.cp(File.join(lib_directory, "bourbon.rb"), "bourbon/lib/")
+ FileUtils.cp(File.join(lib_bourbon_directory, "sass_extensions.rb"), "bourbon/lib/bourbon/")
+ FileUtils.cp_r(File.join(lib_bourbon_directory, "sass_extensions"), "bourbon/lib/bourbon/")
end
def copy_in_scss_files
@@ -71,6 +72,10 @@ def stylesheets_directory
end
def lib_directory
+ File.join(top_level_directory, "lib")
+ end
+
+ def lib_bourbon_directory
File.join(top_level_directory, "lib", "bourbon")
end
Please sign in to comment.
Something went wrong with that request. Please try again.