Permalink
Switch branches/tags
Nothing to show
Commits on May 13, 2014
  1. Merge pull request #4 from mtigas/master

    ascheink committed May 13, 2014
    prevent instance variable collision: `@states`
  2. prevent instance variable collisions with `@states` (cache of lazy-lo…

    mtigas committed May 13, 2014
    …aded states.yml for `nytimes_state_abbrev`)
    
    since instance variable may be clobbered by any instance that includes Nytimes::Style.
    
    i.e., a view using the following controller would blow up on `nytimes_state_abbrev("MO")`
    
    ```
    include Nytimes::Style
    
    class FooController < ApplicationController
      def index
        @states = []  # State.where('...')
      end
    end
    ```
    
    all the other functions in `Nytimes::Style` are prefixed with `nytimes_`, this
    commit turns `@states` into `@_nytimes_states` to try to avoid instance var
    clobbering as much as possible.
    
    (In theory, an instance var is a terrible idea on a module since the implementing
    class can do anything to the instances later, but in this case it appears to
    be a cludgy-yet-ideal solution since we want to lazy-load and then instance
    cache the result of loading `states.yml`.)
Commits on May 16, 2013
  1. bumped to version 0.7.0

    dwillis committed May 16, 2013
Commits on May 12, 2013
  1. Merge pull request #2 from thejefflarson/master

    dwillis committed May 12, 2013
    Switch to is_a? in nytimes_time
Commits on Mar 14, 2013
  1. version 0.6.0

    ascheink committed Mar 14, 2013
  2. use local copy of docco css

    ascheink committed Mar 14, 2013
  3. regenerated docs

    ascheink committed Mar 14, 2013
Commits on Mar 13, 2013
  1. Merge pull request #3 from dwillis/master

    tysone committed Mar 13, 2013
    added DC to states.yml
  2. Update states.yml

    dwillis committed Mar 13, 2013
    added DC
Commits on Aug 30, 2012
  1. Add in the ability to use subclasses of DateTime or Time in nytimes_t…

    thejefflarson committed Aug 30, 2012
    …ime, e.g. so that ActiveSupport::TimeWithZone works
Commits on Jul 13, 2011
  1. updated email address

    ascheink committed Jul 13, 2011
  2. Fixed formatting.

    ascheink committed Jul 13, 2011
  3. Merge pull request #1 from tysone/master

    ascheink committed Jul 13, 2011
    Added time helper
Commits on Jul 12, 2011
Commits on Jun 28, 2011
Commits on Jun 15, 2011
  1. version 0.4.0

    Andrei
    Andrei committed Jun 15, 2011
  2. Updated README

    Andrei
    Andrei committed Jun 15, 2011
Commits on Jun 9, 2011
  1. version 0.3.0

    Andrei
    Andrei committed Jun 9, 2011
  2. updated annotated source

    Andrei
    Andrei committed Jun 9, 2011
  3. Merge branch 'master' of github.com:ascheink/nytimes-style

    Andrei
    Andrei committed Jun 9, 2011
    Conflicts:
    	index.html
  4. fixed order of arguments in tests

    Andrei
    Andrei committed Jun 9, 2011
Commits on May 26, 2011
  1. cleaned up code

    Andrei Scheinkman Andrei Scheinkman
    Andrei Scheinkman authored and Andrei Scheinkman committed May 26, 2011
Commits on May 18, 2011
  1. version 0.2.0

    Andrei
    Andrei committed May 18, 2011
  2. added :day_of_week option for nytimes_date

    Andrei
    Andrei committed May 18, 2011
Commits on May 12, 2011
  1. added nytimes_number

    Andrei
    Andrei committed May 12, 2011
  2. another markup fix

    Andrei
    Andrei committed May 12, 2011
  3. README formatting tweaks

    Andrei
    Andrei committed May 12, 2011
  4. changed extension on README

    Andrei
    Andrei committed May 12, 2011
  5. added README and annotated source

    Andrei
    Andrei committed May 12, 2011