From f2291ed781efd4a8abe5a86b21420953a5a9406a Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Sat, 13 Apr 2013 14:03:02 +0000 Subject: [PATCH] Version bump to 0.8.0 * Add Travis YAML * Add test stub * Add History --- .rspec | 2 ++ .travis.yml | 3 +++ History.md | 9 +++++++++ README.md | 12 ++++++------ jekyll-slim.gemspec | 1 + lib/jekyll-slim/version.rb | 2 +- spec/spec_helper.rb | 17 +++++++++++++++++ 7 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 .rspec create mode 100644 .travis.yml create mode 100644 History.md create mode 100644 spec/spec_helper.rb diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..5f16476 --- /dev/null +++ b/.rspec @@ -0,0 +1,2 @@ +--color +--format progress diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..280a208 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: ruby +rvm: + - "1.9.3" diff --git a/History.md b/History.md new file mode 100644 index 0000000..bc3851b --- /dev/null +++ b/History.md @@ -0,0 +1,9 @@ +0.8.0 / 2013-04-13 +================== + + * New! Add liquid tag for slim to render as _include + +0.7.0 / 2013-04-07 +================== + + * Initial release diff --git a/README.md b/README.md index dc0f035..0a03056 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Jekyll-slim -[![Gem Version](https://badge.fury.io/rb/jekyll-slim.png)](http://badge.fury.io/rb/jekyll-slim) +[![Gem Version](https://badge.fury.io/rb/jekyll-slim.png)](http://badge.fury.io/rb/jekyll-slim) [![Dependency Status](https://gemnasium.com/kaishin/jekyll-slim.png)](https://gemnasium.com/kaishin/jekyll-slim) [![Code Climate](https://codeclimate.com/github/kaishin/jekyll-slim.png)](https://codeclimate.com/github/kaishin/jekyll-slim) A gem that adds [slim-lang](http://slim-lang.com) support to [Jekyll](http://github.com/mojombo/jekyll). Works for for pages, includes and layouts. @@ -29,7 +29,7 @@ In your Jekyll project's `_plugins` directory: The gem will convert all the `.slim` files in your project's directory into HTML. That includes files in sub-directories, includes and layouts. Example: -``` +```haml # _layouts/default.slim html head @@ -37,16 +37,16 @@ html .content-wrapper | {{ content }} ``` +To include a partial, use the `slim` liquid tag instead of `include`: - -``` +```haml # index.slim --- layout: default --- -section.content - | {% include footer.slim %} +section.content Content goes here. +| {% slim footer.slim %} ``` diff --git a/jekyll-slim.gemspec b/jekyll-slim.gemspec index 9d34083..9c67f25 100644 --- a/jekyll-slim.gemspec +++ b/jekyll-slim.gemspec @@ -22,4 +22,5 @@ Gem::Specification.new do |gem| gem.add_development_dependency('rake') gem.add_development_dependency('bundler') + gem.add_development_dependency('rspec') end diff --git a/lib/jekyll-slim/version.rb b/lib/jekyll-slim/version.rb index 948cb54..5cdc794 100644 --- a/lib/jekyll-slim/version.rb +++ b/lib/jekyll-slim/version.rb @@ -1,5 +1,5 @@ module Jekyll module Slim - VERSION = "0.7.0" + VERSION = "0.8.0" end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..dbc4f1a --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,17 @@ +# This file was generated by the `rspec --init` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# Require this file using `require "spec_helper"` to ensure that it is only +# loaded once. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + config.treat_symbols_as_metadata_keys_with_true_values = true + config.run_all_when_everything_filtered = true + config.filter_run :focus + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = 'random' +end