Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add neat integration.

  • Loading branch information...
commit 11d71ba8edd8e1bd0d353f842decc52af1e08a35 1 parent 093d3bf
@awmichel awmichel authored
View
1  jekyll-assets.gemspec
@@ -24,6 +24,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "rb-inotify"
gem.add_development_dependency "compass"
gem.add_development_dependency "bourbon"
+ gem.add_development_dependency "neat"
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
View
5 lib/jekyll-assets/neat.rb
@@ -0,0 +1,5 @@
+require "sprockets"
+
+
+neat_root = Gem::Specification.find_by_name("neat").gem_dir
+Sprockets.append_path File.join(neat_root, "app", "assets", "stylesheets")
View
5 spec/fixtures/_assets/vendor/neat.css.sass
@@ -0,0 +1,5 @@
+@import "bourbon"
+@import "neat"
+
+.container
+ @include outer-container
View
11 spec/lib/jekyll-assets/neat_spec.rb
@@ -0,0 +1,11 @@
+require "spec_helper"
+require "jekyll-assets/neat"
+
+
+module Jekyll::AssetsPlugin
+ describe "Neat integration" do
+ it "should globally append neat paths into Sprockets environment" do
+ @site.assets["vendor/neat.css"].to_s.should =~ /max-width/
+ end
+ end
+end

0 comments on commit 11d71ba

Please sign in to comment.
Something went wrong with that request. Please try again.