Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 22, 2015
  1. @gaelian
Commits on Sep 21, 2015
  1. @gaelian
Commits on Apr 27, 2015
  1. @gaelian

    Fixed tag-related functionality.

    gaelian authored
    Fixed the long standing issue where tags that are only related to
    unpublished posts are still shown in navigation by way of the
    NavigationHelper#category_links_for_navigation helper method. Now making
    use of the cached_tag_list attribute on the Post model in order to
    reduce the number of database queries generated by the
    NavigationHelper#category_links_for_navigation helper method.
    Removed NavigationHelper#class_for_tab helper method as it does not
    appear to be used anywhere.
    Fixed/updated specs and reverted back to previous behaviour where a
    request for an unpublished tag will result in an
    ActiveRecord::RecordNotFound exception.
    Also minor code clean up for consistency/readability.
Commits on Apr 19, 2015
  1. @gaelian

    Code clean up.

    gaelian authored
Commits on Apr 17, 2015
  1. @gaelian
Commits on Apr 16, 2015
  1. @gaelian

    Switched to OmniAuth for authentication.

    gaelian authored
    The open_id_authentication gem is no longer used. This commit includes a
    migration that removes the two tables used by the open_id_authentication
    gem (i.e. the open_id_authentication_nonces and
    open_id_authentication_associations tables).
    Enki now supports Google OpenID Connect (OAuth 2.0 for Login) and OpenID
    2.0 by default. But further OmniAuth strategies can be added if desired.
    Closes #97.
Commits on Dec 1, 2013
  1. @clok
Commits on Oct 15, 2013
  1. Merge pull request #94 from gaelian/dot-in-tag-name-fix

    Fixed incorrect tag name behaviour.
  2. @gaelian

    Fixed post preview feature.

    gaelian authored
    The posts preview feature was broken by the advent of Rails 4 strong
    params. This commit restores the feature back to working order.
    Updated specs.
  3. @gaelian

    Filter tag names to contain only expected chars.

    gaelian authored
    Tag names can now only contain alphanumeric, underscore, space, dot and
    dash characters. Other characters will be filtered out, ampersands will
    be expanded to 'and'. This limitation has been enforced to avoid
    complications with routing where tag names are involved.
    Updated specs accordingly.
Commits on Oct 6, 2013
  1. @gaelian

    Applied fix for logging in via OpenID to the admin area.

    gaelian authored
    Rails now contains code that resets the session if the CSRF request
    forgery check fails. This was happening on the OpenID callback when
    logging in to the Enki admin area, which broke OpenID login.
    This commit disables the CSRF check only for OpenID callbacks when
    logging in to the Enki admin area.
    Fixes #91.
Commits on Sep 28, 2013
  1. @gaelian

    Fixes related to correct whitelisting of attributes for comments.

    gaelian authored
    Start making use of the comment_params method in
    Removed author_url and author_email from the params whitelist in
    comments_controller.rb as according to the spec, these should not be
    able to be set from the front end anyway.
Commits on Sep 22, 2013
  1. @gaelian

    Whitelisting parameters required for successful display of posts.

    gaelian authored
    The move to Rails 4 and strong parameters necessitates whitelisting of
    parameters being processed by the controller. The exclusion of the
    :tag_list, :published_at_natural and :slug parameters from the
    whitelist means that these data are not being saved to the db and hence
    no new post will be displayed on the front end, no new tags will be
    saved and the post slug cannot be updated after initial creation. This
    commit fixes these issues.
Commits on Jul 23, 2013
  1. @gaelian

    Changed SQL function call ifnull() to coalesce().

    gaelian authored
    The SQL function ifnull() is not recognised by PostgreSQL and
    causes an error when Enki is used with PostgreSQL as the backend
    data store. Changing the call to coalesce() seems to work for
    both MySQL and PostgreSQL.
Commits on Jul 22, 2013
  1. @joneslee85

    Bump to Rails 4.

    joneslee85 authored
    [Closes #83]
Commits on Jul 10, 2013
  1. updated textile manual link

    RyanTG authored
Commits on May 22, 2013
  1. @gaelian

    Fix addressing the issue where HTML is too eagerly escaped with

    gaelian authored
    relation to comments, pages and posts.
Commits on Apr 20, 2013
  1. @gaelian
Commits on Apr 18, 2013
  1. Merge pull request #75 from mcary/allow-path-prefix

    Allow running Enki under a URL path prefix
  2. Tweak URL path prefix patch to address feedback from xaviershay

    Marcel M. Cary authored
    When reviewing my pull request, xaviershay requested these changes:
    * Use ActionController::Base.config.relative_url_root instead of
      ENV['RAILS_RELATIVE_URL_ROOT'] in the UrlHelper and
    * Mention the feature in the README, because it won't be found in
    Implement these, but use Rails.configuration instead of
    ActionController::Base.config, as it seems like the current Rails best
  3. Tweak draft posts patch to address feedback from xaviershay

    Marcel M. Cary authored
    When reviewing my pull request, xaviershay requested these
    * Add hint to published_at field on admin post edit form
    * Favor '&&' over 'and'
    * Stop stubbing Chronic.parse unnecessarily
    Implement these changes.
Commits on Apr 16, 2013
  1. Allow running Enki under a URL path prefix

    Marcel M. Cary authored
    I run my blog in a subsdirectory of my web server.  That is,
    instead of, I use  Rails 3 no longer
    supports that as an out-of-the-box configuration option.
    (There is an action_controller.relative_url_root key, but it doesn't
    handle asset helper paths or, under some servers, the top-level route
    Tweak routing and URLs in several places:
    * -- addresses most routing
    * Set RAILS_RELATIVE_URL_ROOT to make asset helpers work
    * Fix Enki-specific URLs in post_path helper and admin view to work
      in a non-root-path deployment
    In config/application.rb, comment an example line that sets
    RAILS_RELATIVE_URL_ROOT.  The line is commented so that the app still
    runs in "/", but a one-line config change or setting that environment
    variable would change that.
Commits on Mar 27, 2013
  1. @mcary

    Allow draft posts by special-casing blank published_at_natural

    mcary authored
    I like to revise a post a couple of times before publishing it.
    Sometimes there are glitches to work out in the presentation, like
    linking to files that are attached to the post or refining a stylesheet
    to accomodate a post with intricate presentational components.  Also, I
    like to write the post right in the admin UI rather than locally in a
    text editor so I can see a faithful preview.  And I often don't write a
    post all in one sitting.
    Currently, there is no way to save a post with a nil published_at date.
    The default published_at_natural is 'now', and so when that is parsed,
    the published_at date is always filled-in.  As an author, the best I
    can do is set a published_at into the future... but then I have a
    deadline that I don't want!
    The front-end code already seems to support nil published_at to mean a
    draft post.
    Add handling of nil published_at on the admin side, and just a bit on
    the public side:
    * Default published_at_natural to '', meaning nil published_at
    * Accomodate a nil published_at in various places in the admin UI
    * Sort the admin posts index by updated_at if published_at is null
    * Add the ability to set a published_at directly without setting
    * Handle the nil published_at in several places of the UI, including
      preview, dashboard, and post editing
    * Push checks for published_at into a link_to_post helper
    Preserve the error message when an invalid published_at_natural is
Commits on Mar 26, 2013
  1. @mcary

    Fix links with #comments fragment by adding id to post page

    mcary authored
    The hyperlinks to a permalink URL with a "comments" fragment don't
    work: there is no "comments" fragment on the post page to target.
    Add a "comments" id attribute to the list of comments, which renders
    even when the list is empty.
Commits on Dec 2, 2012
  1. Fewer false-positives in requires_openid_auth?

    Andrew Lorente authored
Commits on Sep 7, 2012
  1. @cullepm3

    add #content padding-bottom

    cullepm3 authored
Commits on Aug 27, 2012
  1. Merge pull request #65 from joneslee85/refactor-again-v2

    Refactor and clean up views
  2. @joneslee85

    Refactor and clean up views

    joneslee85 authored
Commits on Aug 25, 2012
  1. @joneslee85

    Use sexy validation syntax

    joneslee85 authored
Commits on Jun 16, 2012
  1. Update formtastic to latest.

    Includes a missing view.
  2. @bensomers
  3. @bensomers

    Fixed breakages due to Formtastic API changes

    bensomers authored
    FormBuilder#buttons has been replaced with #actions, and specifies
    button-ness via an argument. This also has the effect of slightly
    changing the button text, but the new text is better anyway.
Commits on Feb 25, 2012
  1. Fix AJAX deletion and undo.

    This JS was not written to be bundled together, but with the new Rails
    asset pipeline that is exactly what happens. As a result, multiple
    conflicting behaviours were being added to each form. This commit
    ensures that only the desired behaviour is applied to each page.
    Fixes #50.
Commits on Feb 23, 2012
  1. @jhollinger
Something went wrong with that request. Please try again.