Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 2, 2015
  1. @gaelian

    Updated gems, fixed specs.

    gaelian authored
    Newer versions of rspec related stuff required some spec file updates.
    Added rspec-activemodel-mocks and rspec-collection_matchers gems to
    support previously written specs.
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 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

    updated rspec test

    clok authored
Commits on Oct 15, 2013
  1. Merge pull request #94 from gaelian/dot-in-tag-name-fix

    authored
    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.
  4. @gaelian
Commits on Oct 12, 2013
  1. @gaelian

    Addressed broken Atom format.

    gaelian authored
    Tags can now be viewed in HTML and Atom format regardless of whether the
    tag name contains a dot character or not. The regular expression that
    matches tag names currently allows upper/lower case letters, numbers,
    dots, dashes, underscores and spaces (URL encoded or not).
    
    Updated relevant specs. Moved routing specs into posts_routing_spec.rb
    as this seems like a more fitting place for them.
  2. @gaelian

    Fixed incorrect tag name behaviour.

    gaelian authored
    When a tag name contains a dot character, Rails interprets this as the
    separator for a formatted route and splits the tag name into the section
    before the dot which is interpreted as the expected :tag parameter, and
    the section after the dot which is interpreted as an unexpected :format
    parameter.
    
    This commit restores correct behaviour in the event that a tag name
    contains a dot character and includes spec coverage.
    
    Fixes #93.
Commits on Sep 28, 2013
  1. @gaelian

    Spec coverage for Rails 4 strong params functionality.

    gaelian authored
    Added factory_girl factories for use with update specs on:
    
    admin/comments_controller_spec.rb
    admin/posts_controller_spec.rb
Commits on Jul 22, 2013
  1. @joneslee85

    Bump to Rails 4.

    joneslee85 authored
    [Closes #83]
Commits on Jul 20, 2013
  1. @joneslee85

    Support Ruby 2

    joneslee85 authored
    * Bump to Rails 3.2.13 (known to support Ruby 2)
    * Remove Psych engine code
    * Fix tests related to YAML.load
Commits on Apr 18, 2013
  1. Merge pull request #73 from mcary/draft-posts

    authored
    Allow draft posts by special-casing blank published_at_natural
  2. Tweak draft posts patch to address feedback from xaviershay

    Marcel M. Cary authored
    When reviewing my pull request, xaviershay requested these
    changes:
    
    * Add hint to published_at field on admin post edit form
    * Favor '&&' over 'and'
    * Stop stubbing Chronic.parse unnecessarily
    
    Implement these changes.
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
      published_at_natural
    * 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
    entered.
  2. @mcary

    Fix code formatting by restricting coderay and lesstile versions

    mcary authored
    The Gemfile allowed me to install incompatible verisons of lesstile and
    coderay (1.0.1 and 1.0.5, respectively).  The result was this exception
    when formatting a post:
    
         NoMethodError:
           undefined method `div' for #<String:0x00000103b7daf0>
    
    The incompatibility is fixed in lesstile 1.1.0.
    
    Request the fixed version in the Gemfile, and pair it with a
    version of coderay that is known to be compatible.  Add an integration
    spec to ensure future compatability.
Commits on Dec 2, 2012
  1. Fewer false-positives in requires_openid_auth?

    Andrew Lorente authored
Commits on Feb 18, 2012
Commits on Jan 20, 2012
  1. Start Rails 3.2 upgrade

    Gabriel Evans authored
Commits on Nov 13, 2011
  1. Argh s/model/mock_model/g

    authored
Commits on Sep 13, 2011
Commits on Jul 23, 2011
  1. Clean up commenting routes, the hack that was there was for a much

    authored
    earlier version of Rails and is no longer required.
Commits on Mar 25, 2011
Commits on Feb 15, 2011
  1. @lucianosousa

    fix spec about /pages request. Closes #6. Closes #24.

    lucianosousa authored committed
Commits on Dec 20, 2010
  1. @gaelian
  2. @gaelian

    Tagging model now automatically removes unused tags when taggable is …

    gaelian authored
    …updated
    
    or destroyed. Includes accompanying specs.
Commits on Dec 18, 2010
  1. content(:page_title) now returns blank rather than nil when not

    authored
    provided, so update the code accordingly. Thanks mirlord.
    
    Closes #17.
Something went wrong with that request. Please try again.