public
Description: A (extremely) simple helper for Ruby on Ruby on Rails to output the current year... seriously folks... this is serious stuff. ;-)
Homepage: http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year
Clone URL: git://github.com/robbyrussell/year_after_year.git
Search Repo:
Josh Goebel (author)
Sun May 18 05:05:59 -0700 2008
commit  8a99e9ec298b5a882de6f3b0b55e670840ad8119
tree    953ea62e8dd7b8bf11adbcfd778388c5b5a6a99a
parent  1d7ddc91ee74685c9998455dedd6ffd53e6bbc7f
name age message
folder MIT-LICENSE Mon Mar 24 23:28:44 -0700 2008 Whitespace cleanup so it commits cleanly in app... [grempe]
folder README Sun May 18 05:05:59 -0700 2008 seperator patch and better naming conventions [Josh Goebel]
folder init.rb Fri Mar 28 03:56:56 -0700 2008 Reinsert spurious whitespace to init.rb to sati... [Tim Riley]
folder lib/ Sun May 18 05:05:59 -0700 2008 seperator patch and better naming conventions [Josh Goebel]
folder spec/ Sun May 18 05:05:59 -0700 2008 seperator patch and better naming conventions [Josh Goebel]
README
YearAfterYear
==============

This plugin allows you to keep your copyright year up-to-date.

Example
=======

You can render the current year in your ERb views like so:

  <%= current_year -%>

If you want to provide a year range, you can use year_range and provide the
year that you started.

  Example: With the assumption that the current year was 2008

  <%= current_year_range(2005) -%>             # => 2005-2008
  <%= current_year_range(2005, '&mdash;') -%> # => 2005&mdash;2008
  <%= current_year_range(2008) -%>             # => 2008 (just returns current year)

You can access the code here:

* http://github.com/robbyrussell/year_after_year/

Feature Requests / Bugs

* http://planetargon.lighthouseapp.com/projects/5187-open-source-projects

Copyright (c) 2008 Robby Russell, released under the MIT license