Permalink
Commits on Oct 7, 2009
  1. Version bump to 0.5.0

    jnunemaker committed Oct 7, 2009
  2. All dynamic classes now use collection test so we aren't created a bu…

    jnunemaker committed Oct 7, 2009
    …tt load of random ones. Tests running a bit faster.
  3. Only clearing specific collections in each test rather than all colle…

    jnunemaker committed Oct 7, 2009
    …ctions. Dramatically speeding tests up (from 40+ seconds to 12 on my machine). Downside is we have to remember to clear every document before each test.
  4. Pulled out shared dynamic_find method and then included/extended it w…

    jnunemaker committed Oct 7, 2009
    …here needed in document and many document proxy.
  5. Added dynamic finders (find_by, find_by!, find_or_(initialize|create)…

    jnunemaker committed Oct 7, 2009
    …_by, find_all_by) to many documents, many polymorphic documents and many documents as associations.
  6. Renamed private method find_with_args to dynamic_find as that seems m…

    jnunemaker committed Oct 7, 2009
    …ore appropriate. Also, renamed dynamic finder valid? to found? as valid always felt weird.
  7. API CHANGE: Removed find_last_by dynamic finder as find(:last) withou…

    jnunemaker committed Oct 7, 2009
    …t order doesn't really work. Also, refactored dynamic finder and added unit tests for it.
Commits on Oct 6, 2009
Commits on Oct 5, 2009
  1. Version bump to 0.4.2

    jnunemaker committed Oct 5, 2009
  2. String#from_mongo now returns emtpy string if given value of empty st…

    jnunemaker committed Oct 5, 2009
    …ring. Works just like String#to_mongo.
Commits on Oct 4, 2009
  1. Version bump to 0.4.1

    jnunemaker committed Oct 4, 2009
  2. Allow defining per_page class method to set pagination on document ju…

    jnunemaker committed Oct 4, 2009
    …st like will paginate. (leshill)
  3. Moved custom matchers into their own file and out of test helper. Als…

    jnunemaker committed Oct 4, 2009
    …o using collection.clear instead of delete_all to clean the collections.
Commits on Oct 3, 2009
  1. API CHANGE: To change a document's collection, you should now use set…

    jnunemaker committed Oct 3, 2009
    …_collection_name instead of collection. Collection now lazy loads from collection name to make another step towards loading things in a more sane way in rails.
Commits on Oct 2, 2009
  1. Version bump to 0.4.0

    jnunemaker committed Oct 2, 2009
  2. Added embedded document new? method back in. Not perfect but I have a…

    jnunemaker committed Oct 2, 2009
    … plan and it is good enough for now.