Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #18 from awmichel/add-neat-integration

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

0 comments on commit 9c9e5e4

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