Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Remove sass dependency
Browse files Browse the repository at this point in the history
This mimics how we've done it in Bourbon:
thoughtbot/bourbon@9bedac0
  • Loading branch information
tysongach committed Jul 9, 2019
1 parent 134d745 commit a46f8dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions lib/neat.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
require "sass"
require "neat/generator"

module Neat
if defined?(Rails::Engine)
if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
config.assets.paths << File.expand_path("../core", __dir__)
end
else
Sass.load_paths << File.expand_path("../core", __dir__)
begin
require "sass"
Sass.load_paths << File.expand_path("../core", __dir__)
rescue LoadError
end
end
end
1 change: 0 additions & 1 deletion neat.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "rake"
s.add_development_dependency "rspec"
s.add_development_dependency "scss_lint", "~> 0.44"
s.add_runtime_dependency "sass", "~> 3.4"
s.add_runtime_dependency "thor", "~> 0.19"
s.authors = [
"Joel Oliveira",
Expand Down

0 comments on commit a46f8dc

Please sign in to comment.