Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 16, 2015
  1. Update date in LICENSE

Commits on Jul 9, 2015
  1. Add heading_or_site_title helper method

    Some themes include links for sharing pages on social networking or
    bookmarking sites. They pass the page's heading to the third party
    services, to serve as a description of the page being shared.
    Sometimes it's possible to share a URL that isn't backed by a physical
    page with a heading (such as a 404 page). Sometimes a page won't
    actually have a heading.
    In these cases, we can fall back to using the site's title to describe
    the page. This new helper will return the appropriate text.
Commits on Mar 26, 2015
  1. Update CHANGES for 0.11.1

  2. Bump version to 0.11.1

  3. Add dependency on Tilt 1.4

    Tilt 2.x will try to require the gems that implement the different
    Markdown processors (e.g. Maruku), irrespective of whether or not it's
    installed on the system. This can cause a LoadError.
    It's new behaviour, and Nesta will need updating to avoid it. Requiring
    version 1.4 works around it in the meantime.
  4. Sort dependencies in gemspec

Commits on Mar 16, 2015
  1. Made notes on the release process

  2. Update dependencies

  3. haml-contrib no longer required in smoke tests

    We needed this so the demo site didn't break when rendering a page using
    Haml's Markdown filter. It's not required any more as haml-contrib is
    now a dependency of nesta.
  4. Update smoke test script to use chruby

    I use chruby in favour of rbenv or rvm these days, so this change just
    makes life a bit easier when releasing a new version of the gem.
  5. Bump version number to 0.11.0

  6. Update CHANGES for 0.11.0

  7. Pass new object as default scope

    This fixes the test suite under Ruby 2.2. Prior to this change
    `convert_to_html` would raise a `NoMethodError` when `upper` was called
    on `nil`.
Commits on Mar 3, 2015
  1. Merge branch 'plugin-templates'

  2. Prefer Kernel.system to backticks

    When running external programs backticks come in very handy if you want
    to operate on the text printed by a program, but they also have the side
    effect of preventing that output from being printed to STDOUT.
    When it's useful to display the output of a command, `Kernel.system`
    feels like a good fit.
  3. Delete a typo

  4. Coding style

  5. @glenngillen

    Give plugins a Rakefile for managing/releasing gems

    glenngillen authored committed
  6. Re-implement plugin generation with templates

    Plugins are distributed as Ruby gems. Prior to this commit the gems were
    created using Bundler's `bundle gem` command.
    Some time ago the Bundler maintainers changed the file structure of the
    gems that Bundler produced [1], in accordance with some naming
    guidelines for Ruby gems. The suggestion in these guidelines was that
    words separated by hyphens in gem names should correspond to directories
    within the gem (e.g. the nesta-plugin-foo-bar gem would contain a
    `lib/foo/bar` directory).
    The argument put forward is that this convention makes it easier for
    people to start using your gem without reading any documentation, as
    they'll know which file to require [2]. This strikes me as a fairly
    ludicrous extrapolation, but there you go.
    Nesta has been written to expect a plugin called foo-bar to have a
    `lib/foo-bar/init.rb` file, rather than `lib/foo/bar/init.rb`.
    Switching to this new folder hierarchy would have been fairly easy, but
    existing plugins would have had to be re-released.
    Jake Owens worked up a patch [3] to Nesta that allowed it to cope with
    loading plugins with either directory structure, but after much thought
    I decided that this extra complexity in Nesta's code didn't sit well
    with me. It's not as if we benefit from it, and we'd still have to fix
    Nesta to cope with future changes in Bundler.
    I dislike churn in software, especially if it can be avoided. We've all
    got better things to do than update code that works perfectly well
    already. I've therefore rewritten the `nesta plugin:create` command to
    generate a gem from template files that are totally under our control.
    Future edits to the output of `gem bundle` will no longer affect Nesta,
    or our plugin ecosystem. :-)
    [1] bundler/bundler@eeba36b
    [3] #153
  7. Prefix root-level ignores with /

    The previous rules were matching files within the project, when we
    only intended to ignore those that started with those names.
Commits on Feb 11, 2015
  1. Split commands.rb and its specs into multiple files

    The files were getting far too long and unwieldy; this makes them far
    easier to work with.
Commits on Jan 20, 2015
  1. Nesta::Config.can_use_yaml? is now redundant

    See the previous commit from Glenn; the concept of when you can use Yaml
    is now as simple as "does it exist?" It used to mean "is a NESTA_...
    environment var defined, and if not, does it exist?".
  2. Merge branch 'selective-env'

    For a long time now Nesta has prevented you from spreading your settings
    between `config.yml` and the environment. If you set a single
    `NESTA_...` environment variable, Nesta would expect all your
    configuration to come from the environment.
    This behaviour was added back in commit 4ffa508, on the "heroku" branch.
    I have a sneaky suspicion that members of the community persuaded me
    that having a config file on Heroku was just not the done thing. It
    seems insane now, and the blog post where the idea was put forward (and
    in whose comments the debate was held) no longer exists.
    With the benefit of hindsight, this limitation seems insane!
    As Glenn has pointed out, anybody who wants to use the environment to
    configure their apps can use Erb tags within `config.yml` to read values
    from `ENV`, and insert them at run time.
    In the future, I'd like to remove all the code that reads the
    environment variables directly, and just recommend that people who want
    to use the environment do that.
    Nice one, Mr Gillen. :-)
Commits on Jan 19, 2015
  1. @glenngillen
Commits on Dec 10, 2014
  1. Fix Google Analytics test

Commits on Nov 18, 2014
Commits on Nov 17, 2014
  1. Merge pull request #159 from philmill/md-extension-allowance

    Adds support for Markdown files with md extensions
Commits on Nov 15, 2014
  1. @philmill
Something went wrong with that request. Please try again.