lib/scss_lint.rb in scss-lint-0.11.1 vs lib/scss_lint.rb in scss-lint-0.12.0
- old
+ new
@@ -8,15 +8,17 @@
autoload :Linter, 'scss_lint/linter'
autoload :Reporter, 'scss_lint/reporter'
autoload :Runner, 'scss_lint/runner'
autoload :SelectorVisitor, 'scss_lint/selector_visitor'
autoload :Utils, 'scss_lint/utils'
- autoload :VERSION, 'scss_lint/version'
+ require 'scss_lint/constants'
+ require 'scss_lint/version'
+
# Preload Sass so we can monkey patch it
require 'sass'
- require File.expand_path('sass/script', File.dirname(__FILE__))
- require File.expand_path('sass/tree', File.dirname(__FILE__))
+ require File.expand_path('scss_lint/sass/script', File.dirname(__FILE__))
+ require File.expand_path('scss_lint/sass/tree', File.dirname(__FILE__))
# Load all linters
Dir[File.expand_path('scss_lint/linter/*.rb', File.dirname(__FILE__))].each do |file|
require file
end