Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle mongo errors on duplicate and other improvements #13

Open
wants to merge 69 commits into
base: master
Choose a base branch
from

Commits on May 18, 2012

  1. working CRUD

    zuk committed May 18, 2012
    Configuration menu
    Copy the full SHA
    f47dd57 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2012

  1. - added rspec

    - new rest methods
    - only one way to query collections now -- using 'selector' parameter
    - renamed drowsy.rb to drowsy_dromedary.rb
    zuk committed May 23, 2012
    Configuration menu
    Copy the full SHA
    e6d552f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    096c628 View commit details
    Browse the repository at this point in the history
  3. added PATCH method support

    zuk committed May 23, 2012
    Configuration menu
    Copy the full SHA
    244eec1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d952d99 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d489fa View commit details
    Browse the repository at this point in the history
  6. more production running notes

    zuk committed May 23, 2012
    Configuration menu
    Copy the full SHA
    0ded1e8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6614d59 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a5c77d7 View commit details
    Browse the repository at this point in the history
  9. Update README.md

    zuk committed May 23, 2012
    Configuration menu
    Copy the full SHA
    8684674 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2012

  1. Configuration menu
    Copy the full SHA
    12dc8ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec088de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a961e51 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2012

  1. added :rubygems source and json gem to Gemfile and upgdated Gemfile.l…

    …ock to point to newer versions of gems (fixes dependency on yanked multi_json 1.3.1)
    zuk committed May 25, 2012
    Configuration menu
    Copy the full SHA
    c6c9c33 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2012

  1. Configuration menu
    Copy the full SHA
    5ad2ba9 View commit details
    Browse the repository at this point in the history
  2. PUT /:db/:collection/:id is now an upsert instead of an update (i.e. …

    …if id doesn't exist, will now happily create it instead of 404)
    zuk committed Jun 1, 2012
    Configuration menu
    Copy the full SHA
    39d7b8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35c1912 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2012

  1. Added basic API documentation

    zuk committed Jun 5, 2012
    Configuration menu
    Copy the full SHA
    4a9c06e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2311fd2 View commit details
    Browse the repository at this point in the history
  3. Update master

    zuk committed Jun 5, 2012
    Configuration menu
    Copy the full SHA
    bd58445 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2012

  1. Configuration menu
    Copy the full SHA
    12baa0e View commit details
    Browse the repository at this point in the history
  2. corrected typo in API docs

    zuk committed Jun 22, 2012
    Configuration menu
    Copy the full SHA
    022fecd View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2012

  1. fixed docs for GET /db

    zuk committed Jun 25, 2012
    Configuration menu
    Copy the full SHA
    1b6b847 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abbf12d View commit details
    Browse the repository at this point in the history
  3. fruit -> fruits

    zuk committed Jun 25, 2012
    Configuration menu
    Copy the full SHA
    7e700ee View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2012

  1. Configuration menu
    Copy the full SHA
    6148b26 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24c8574 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    178595a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    602b72f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7789f8d View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2013

  1. ISODates are now JSONified as { "$date": "..." }

    For example, ISODate("2013-01-24T06:40:43.068Z") is now represented in JSON output as { $date: "2013-01-24T06:40:43.0Z" }
    
    Likewise, an incoming value of { $date: "2013-01-24T06:40:43.0Z" } will be stored as ISODate("2013-01-24T06:40:43.068Z")
    
    Needs more testing, but should work as is.
    zuk committed Jan 24, 2013
    Configuration menu
    Copy the full SHA
    4046d3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b90a378 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d675abb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b7e42da View commit details
    Browse the repository at this point in the history
  5. another attempt at rendering BSON::InvalidObjectId error to client...…

    … not quite working in ajax clients though
    zuk committed Jan 24, 2013
    Configuration menu
    Copy the full SHA
    bca5002 View commit details
    Browse the repository at this point in the history
  6. when creating a new collection, check if it already exists, and send …

    …304 (not modified) if it does
    zuk committed Jan 24, 2013
    Configuration menu
    Copy the full SHA
    b48fb6c View commit details
    Browse the repository at this point in the history
  7. added link to Backbone.Drowsy

    zuk committed Jan 24, 2013
    Configuration menu
    Copy the full SHA
    c6261d8 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2013

  1. Configuration menu
    Copy the full SHA
    f1757d1 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2013

  1. drowsy_dromedary.rb:

     - Added cursory fix for handling for data[k]['$date']
     - Added a minor fix for error_response, possibly addressing e being null?
    danielmlipton committed Jan 28, 2013
    Configuration menu
    Copy the full SHA
    59ccec0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request zuk#5 from danielmlipton/master

    - Added cursory fix for handling for data[k]['$date']
    - Added a minor fix for error_response, possibly addressing e being null?
    zuk committed Jan 28, 2013
    Configuration menu
    Copy the full SHA
    7840ba6 View commit details
    Browse the repository at this point in the history
  3. rest input needs to be converted to JSON prior to sending, otherwise …

    …we send as form data and types are not retained (e.g. integers come through as strings)
    zuk committed Jan 28, 2013
    Configuration menu
    Copy the full SHA
    f3e8b02 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2013

  1. added tests to make sure that 304 status is returned when you try to …

    …create a db or collection that already exists (currently fails for db creation)
    zuk committed Feb 6, 2013
    Configuration menu
    Copy the full SHA
    4f2c7bd View commit details
    Browse the repository at this point in the history
  2. should now correctly return 304 status when we try to create a databa…

    …se that already exists
    zuk committed Feb 6, 2013
    Configuration menu
    Copy the full SHA
    57af512 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d5b2b36 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2013

  1. switched to alternate method for checking whether a collection alread…

    …y exists during create -- catching the exception didn't seem to work consistently
    zuk committed Feb 7, 2013
    Configuration menu
    Copy the full SHA
    d6de07e View commit details
    Browse the repository at this point in the history
  2. removed redirect when create fails because of 304... potentially prob…

    …lematic since a 304 isn't expected to be a redirect
    zuk committed Feb 7, 2013
    Configuration menu
    Copy the full SHA
    2ba57f0 View commit details
    Browse the repository at this point in the history
  3. when creating a new database or collection and it already exists, 200…

    … status is now returned instead of 304 (304 was causing problems with CORS requests)
    zuk committed Feb 7, 2013
    Configuration menu
    Copy the full SHA
    717d8d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ee505a View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2013

  1. Configuration menu
    Copy the full SHA
    a6632ea View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2013

  1. Configuration menu
    Copy the full SHA
    053bc9e View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2013

  1. Configuration menu
    Copy the full SHA
    b037e2c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50c5ab9 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2013

  1. Configuration menu
    Copy the full SHA
    da412f3 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2013

  1. Configuration menu
    Copy the full SHA
    e249b32 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2013

  1. strict mode when connecting to database can now be disabled using ?st…

    …rict=false or ?strict=0
    zuk committed Aug 18, 2013
    Configuration menu
    Copy the full SHA
    0ec7876 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fac9aec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e83b20f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2014

  1. Configuration menu
    Copy the full SHA
    306d5b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abb4deb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e256fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d05111 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2014

  1. Merge pull request zuk#10 from tarciosaraiva/master

    Adding collection limit parameter and Travis config
    zuk committed Apr 14, 2014
    Configuration menu
    Copy the full SHA
    1bd0d2f View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2014

  1. removes deprecated 'source :rubygems' from Gemfile and adds node abou…

    …t prefixing rackup with bundle exec in README
    Matt Zukowski committed Sep 22, 2014
    Configuration menu
    Copy the full SHA
    8e1919e View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2014

  1. Configuration menu
    Copy the full SHA
    a3d528f View commit details
    Browse the repository at this point in the history
  2. Merging :/

    mackrauss committed Dec 5, 2014
    Configuration menu
    Copy the full SHA
    e71b779 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e47fedd View commit details
    Browse the repository at this point in the history
  4. Updating mongo and bson to version 1.11.0 or higher since mongo 1.11 …

    …will throw an error on key violation. Older version not always do so.
    mackrauss committed Dec 5, 2014
    Configuration menu
    Copy the full SHA
    7978d3f View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2015

  1. Configuration menu
    Copy the full SHA
    c06b74b View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2015

  1. Checking for document existance before trying to delete it. This seem…

    …s to prevent WakefulWeasel from running in circles on model.destroy() in frontend
    mackrauss committed Mar 26, 2015
    Configuration menu
    Copy the full SHA
    9beea8f View commit details
    Browse the repository at this point in the history