Nesta 0.9.7 released
Version 0.9.7 has been released and is available from rubygems.org.
It contains two new features and a handful of bug fixes. The features are best described as "small, but useful":
There's a new renderer method called
stylesheet
that can convert a Sass or SCSS format stylesheet into a CSS file. Previously you had to choose which format your site or theme would use and stick with it, or override Nesta's behaviour if you didn't like the default format (Sass). Thestylesheet
method was contributed by Isaac Cambron.Menus are rendered as ordered lists. If you wanted to write CSS to highlight the menu item corresponding to the current page, you couldn't do it. In 0.9.7 you can; the current page's list item has the class of “current”.
You may have noticed that we've skipped version 0.9.6. This release should have been numbered 0.9.6, but there was a bug in the version of Rubygems that I used to build and deploy it and I had to remove the gem from rubygems.org. I then had to rebuild the gem using a new version number.
Upgrading
To upgrade an existing site:
- Update the version of Nesta that is registered in your
Gemfile
and re-runbundle
. - Replace your
config.ru
file from the template provided in the gem. There's been a bit of shuffling around and a new library (callednesta/env
) must now be loaded beforenesta/app
can be required, and this all happens inside yourconfig.ru
file.
In case that's not clear, these commands would have the desired effect:
$ cd path/to/your/site
$ sed -i '' -e '/nesta/ s/0.9.[0-9]/0.9.7/' Gemfile
$ bundle
$ cp $(bundle show nesta)/templates/config.ru .
The changes
Here's the relevant section of the CHANGES file:
Nesta no longer cares whether you write your Sass stylesheets in the original indented Sass format or the default SCSS syntax (which is a superset of CSS). To use this functionality within your own site or theme change change any calls to the existing
sass
orscss
helpers tostylesheet
. (Isaac Cambron, Graham Ashton)Add an HTML class ("current") to the menu items whose path matches the current page.
Bug fix: Strip trailing # characters from Markdown headings at the top of a page.
Bug fix: Don't render the return value of
local_stylesheet_link_tag
directly into the page (haml_tag
now writes direct to the output buffer).Bug fix: Removed trailing whitespace inside <a> tags generated by the
display_breadcrumbs()
helper.Bug fix:
Nesta::App.root
couldn't be set until afternesta/app
was required. Odd that, as the only reason to want to changeNesta::App.root
would be before requiringnesta/app
. Fixed by creatingNesta::Env
and moving root to there instead.