Juice10-bogus_sass_checker 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/checksass +5 -0
- data/bogus-sass-checker.gemspec +1 -1
- metadata +1 -1
data/bin/checksass
CHANGED
@@ -4,6 +4,11 @@ require 'bogus_sass_checker'
|
|
4
4
|
PROJECT_PATH = Dir.pwd
|
5
5
|
SASS_DIRECTORY_PATH = File.join(PROJECT_PATH, "public/stylesheets/sass/")
|
6
6
|
|
7
|
+
unless File.exists?(SASS_DIRECTORY_PATH)
|
8
|
+
puts "can't find your Sass directory in #{SASS_DIRECTORY_PATH}"
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
|
7
12
|
stylesheets = Dir.new(SASS_DIRECTORY_PATH).entries - ['.', '..']
|
8
13
|
stylesheets.each do |sass_file|
|
9
14
|
stylesheet = open(SASS_DIRECTORY_PATH + sass_file).read
|
data/bogus-sass-checker.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.name = 'bogus_sass_checker'
|
4
4
|
s.summary = "Checks your rails projects Sass files for #ids and .classes and checks if you are using them in the rest of your rails project."
|
5
5
|
s.description = "Checks your rails projects Sass files for #ids and .classes and checks if you are using them in the rest of your rails project. (Depends on ack)"
|
6
|
-
s.version = '0.1.
|
6
|
+
s.version = '0.1.2'
|
7
7
|
s.date = '2008-12-08'
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Justin Halsall"]
|