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 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
@@ -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.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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Juice10-bogus_sass_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Halsall