Permalink
Switch branches/tags
Nothing to show
Commits on Nov 7, 2008
  1. Moved the ActiveRecord extensions into their own model, to avoid poll…

    notahat committed Nov 7, 2008
    …uting the ActiveRecord namespace any more than we need to.
  2. Fixed bugs with blocks passed to make and make_unsaved.

    notahat committed Nov 7, 2008
    Blocks passed to make now get called correctly, even inside a make_unsaved call.
    
    Calls to make inside a block passed to make_unsaved will save the object.
  3. Added a :unique option to Sham, to allow generating non-unique values.

    notahat committed Nov 7, 2008
    This is based on code and discussion with Roland Swingler (http://github.com/knaveofdiamonds), so credit to him.
Commits on Nov 6, 2008
  1. A few more clarifications.

    notahat committed Nov 6, 2008
Commits on Nov 2, 2008
  1. You now how sometimes you write a couple of lines of code, and you're…

    notahat committed Nov 2, 2008
    … not happy with them, but you can't think of a nicer way, so you push them up to github, and only then do you work it out? Yeah, anyway.
  2. make optionally takes a block, and passes in the created object. Sugg…

    notahat committed Nov 2, 2008
    …ested by technoweenie.
Commits on Oct 21, 2008
  1. Make sure we don't reset the sequence returned by rand outside Sham.

    notahat committed Oct 21, 2008
    Turns out Ruby's srand doesn't work the way you'd think. The seed value it returns is the initial value used to see the generator, not the current seed value. That means you can't use it to save and restore your spot in the sequence.
  2. Added some rough docs for Sham, and got rid of the failed attempt to …

    notahat committed Oct 21, 2008
    …have Test::Unit automatically reset Sham before each test.
  3. Added more Sham related things: resetting before each spec, index pas…

    notahat committed Oct 21, 2008
    …sed to sham blocks, autotest support.
Commits on Oct 7, 2008
  1. Wrote some very basic docs.

    notahat committed Oct 7, 2008
  2. More specs.

    notahat committed Oct 7, 2008
  3. Added some basic specs.

    notahat committed Oct 7, 2008
Commits on Oct 6, 2008
  1. Initial import.

    notahat committed Oct 6, 2008