github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

robbyrussell / year_after_year

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 20
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A (extremely) simple helper for Ruby on Ruby on Rails to output the current year... seriously folks... this is serious stuff. ;-) — Read more

  cancel

http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

seperator patch and better naming conventions 
Josh Goebel (author)
Sun May 18 05:05:59 -0700 2008
commit  8a99e9ec298b5a882de6f3b0b55e670840ad8119
tree    953ea62e8dd7b8bf11adbcfd778388c5b5a6a99a
parent  1d7ddc91ee74685c9998455dedd6ffd53e6bbc7f
year_after_year /
name age
history
message
file MIT-LICENSE Loading commit data...
file README Sun May 18 05:05:59 -0700 2008 seperator patch and better naming conventions [Josh Goebel]
file init.rb
directory lib/ Sun May 18 05:05:59 -0700 2008 seperator patch and better naming conventions [Josh Goebel]
directory 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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server