Permalink
Commits on Oct 11, 2014
  1. Couchbase::Model#find raises Couchbase::Error::NotFound if id is nil.

    fixes #32
    
    Change-Id: Icac4d0eb7e0bb8106d838947a6299dab9b26cd6a
    Reviewed-on: http://review.couchbase.org/42053
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Oct 10, 2014
Commits on Sep 25, 2014
  1. Added test + fix for callbacks for destroy.

    Change-Id: If25863ddeaf2a3a8744d19dcc13dddbe62b45e0b
    Reviewed-on: http://review.couchbase.org/41660
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Sep 18, 2014
  2. Added test + fix for belongs_to to define an assoc setter based on name.

    Change-Id: I67fa9ff0288997f6182be7305047469cb44b7ee4
    Reviewed-on: http://review.couchbase.org/41659
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Sep 17, 2014
Commits on Sep 10, 2014
  1. Added test + fix for Couchbase::Model#destroy

    Fixes #29 and #30
    
    Change-Id: I01158c7c8d12efb6f141286212bcd8fef50bec9e
    Reviewed-on: http://review.couchbase.org/41320
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Sep 10, 2014
Commits on Sep 9, 2014
  1. Fix saving record using #update_attributes

    Change-Id: I8e775dead0a610ff610aa66834524cb661339596
    Reviewed-on: http://review.couchbase.org/41273
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Sep 8, 2014
  2. Allow save & save! without performing validations

    Fixes #17
    
    Change-Id: I2dad010c8739bf7b0e81b02f449877edaa26a16b
    Reviewed-on: http://review.couchbase.org/41272
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Archit Baweja committed with avsej Sep 8, 2014
Commits on Aug 29, 2014
  1. Bump version 0.5.4

    Change-Id: I2b85f54ccbdd1971b33aa8e4ae8c2bc6b9c91252
    Reviewed-on: http://review.couchbase.org/41094
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Aug 29, 2014
  2. Update mock version

    Change-Id: Id5895473168d4fed367cd72faa4f5fad05ef1a6c
    Reviewed-on: http://review.couchbase.org/41093
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Aug 29, 2014
Commits on Jun 9, 2014
  1. fix failing test. Result is always string

    Change-Id: Ifbc9b2f768fd616e2bb52fff184ba67078d525bc
    Reviewed-on: http://review.couchbase.org/37995
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    sohaibbhatti committed with avsej Jun 8, 2014
  2. typo in documentation

    Change-Id: I7ade304c737cb999667d754ff227c8ecc53f7927
    Reviewed-on: http://review.couchbase.org/37996
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    sohaibbhatti committed with avsej Jun 8, 2014
Commits on Feb 23, 2014
  1. Added dirty tracking for attributes, using ActiveModel::Dirty

    Change-Id: Ibb9975b06755d4accc3201837144cd90797c0015
    Reviewed-on: http://review.couchbase.org/33857
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    t3hpr1m3 committed with avsej Feb 23, 2014
Commits on Feb 11, 2014
  1. Added hash accessor methods, which are expected for interoperability …

    …with many other frameworks (such as Devise)
    
    Change-Id: Ia5f0293576f4656c09097dc673e5103792784d9f
    Reviewed-on: http://review.couchbase.org/33436
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    t3hpr1m3 committed with avsej Feb 11, 2014
Commits on Dec 10, 2013
  1. Making the uniq_id test helper return truly unique ids. Updated metho…

    …d taken from client source.
    
    Change-Id: I66924b043400b2e6863b154fe8e0363f2b101e6f
    Reviewed-on: http://review.couchbase.org/30991
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mje113 committed with avsej Dec 10, 2013
Commits on Oct 28, 2013
  1. Add support for the :class_name option in belongs_to

    Change-Id: I6aa6e6f6c23e761ccad72edfb45788c81a1bea49
    Reviewed-on: http://review.couchbase.org/29821
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Stephen von Takach committed with avsej Oct 27, 2013
Commits on Oct 25, 2013
  1. Model#reload refreshes the CAS value also

    Change-Id: Iea51dc9a1c8635dafa4a83582d08d73069a81bcd
    Reviewed-on: http://review.couchbase.org/29745
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    jmoses committed with avsej Oct 24, 2013
Commits on Oct 21, 2013
  1. Added remaining missing AM callbacks.

    Change-Id: I51c77c716147b82effa263f56e921f6a71f2d5f5
    Reviewed-on: http://review.couchbase.org/29630
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mje113 committed with avsej Oct 18, 2013
  2. Make ActiveModel a dependency and fully implement its interface

    Change-Id: Ie6834387c154165f2f3a853d2b9a59072516b0ef
    Reviewed-on: http://review.couchbase.org/29623
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mje113 committed with avsej Oct 18, 2013
Commits on Jun 7, 2013
  1. Refactor active model functionality for couchbase model

    Change-Id: Ib96304de55d5bdae737513269f4fad5789cb38a2
    Reviewed-on: http://review.couchbase.org/26822
    Reviewed-by: Andrey Koleshko <ka8725@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    ka8725 committed with avsej Jun 7, 2013
  2. Use private policy instead of protected for attributes_with_values

    Change-Id: I7ae59f5f9f307eb8d2fea9753c420e236d2a1502
    Reviewed-on: http://review.couchbase.org/26819
    Reviewed-by: Andrey Koleshko <ka8725@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    ka8725 committed with avsej Jun 7, 2013
Commits on Jun 5, 2013
  1. Bump 0.5.3 version

    Change-Id: I00a2c5cc093b025240b23ab0907ec65d5083a100
    Reviewed-on: http://review.couchbase.org/26759
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Jun 5, 2013
Commits on Jun 4, 2013
  1. Test for Model.design_document

    Change-Id: I1ce2e62c16e7a524e99d1873514ee9e225152324
    Reviewed-on: http://review.couchbase.org/26716
    Reviewed-by: Andrey Koleshko <ka8725@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    ka8725 committed with avsej Jun 4, 2013
Commits on Jun 3, 2013
  1. Prefer single-quoted strings

    * change "" to '' where interpolation is not used
    * add missed spaces for {}
    
    Change-Id: I4ba412272212510ea58fe2cec3a16b25ccdd52a7
    Reviewed-on: http://review.couchbase.org/26618
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    ka8725 committed with avsej May 30, 2013
Commits on May 30, 2013
  1. Update couchbase dependency to 1.3.0

    Change-Id: Ia76973796fb61c2360c36bf95f8ddff5d813dcd3
    Reviewed-on: http://review.couchbase.org/26615
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed May 30, 2013
  2. Fix bug with Model.find_by_id([id])

    Model.find_by_id, when called with an array containing a single argument
    would return a single instance of the model, rather than the exepected
    single item array.
    
    Change-Id: Iffd7a5c93ecc02b952f6b6badfdbf9ee5b3df021
    Reviewed-on: http://review.couchbase.org/26591
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    jmoses committed with avsej May 29, 2013
Commits on May 28, 2013
  1. Support for batch finding multiple objects by id

    Change-Id: I2de4ce32caf0e733d51d7f0bfd5914ff6a3695f7
    Reviewed-on: http://review.couchbase.org/26542
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    jmoses committed with avsej May 27, 2013
Commits on May 13, 2013
  1. Test for activemodel instead of rails for activemodel validations

    There's a lot of use-cases where ActiveModel gets used without
    including the full rails stack. Since nothing in activemodel
    validations depends on rails, we can just test if activemodel is
    available before including it, instead of testing for rails.
    
    Thanks to @Xylakant
    
    Reference: #12
    Change-Id: I25c311e49836cdf21e126510198b4fd0e9d0e170
    Reviewed-on: http://review.couchbase.org/26137
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed May 6, 2013
Commits on Feb 25, 2013
  1. Bump version 0.5.2

    Change-Id: I4526377eac294925cac339b16ea143442d6302f0
    Reviewed-on: http://review.couchbase.org/24824
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 25, 2013
  2. Fixed bug with class inheritance and attribute and view's in subclasses

    An included module is inserted into the inheritance chain so the
    proper Couchbase::Model derived ancestor was not being selected.
    
    Change-Id: Id748d14b28fc567473ff484720406baedf790e68
    Reviewed-on: http://review.couchbase.org/24693
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    mje113 committed with avsej Feb 19, 2013
Commits on Feb 20, 2013
  1. Update URL to commit-msg hook in CONTRIBUTING doc

    Change-Id: I65cebc87d1a8ed3185768d49ca57a73ee967ecd4
    Reviewed-on: http://review.couchbase.org/24745
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 20, 2013
  2. Fix repository URL in CONTRIBUTING

    Change-Id: Ib8fffa4f7dcc2b5e6c3ebe0fcff14ac64a7b8683
    Reviewed-on: http://review.couchbase.org/24742
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 20, 2013
  3. Reduce development dependencies and update jar version

    Change-Id: I8b22350ad2dab696d36a6a492dfc2242b52aa1ec
    Reviewed-on: http://review.couchbase.org/24685
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 19, 2013
  4. Remove comments from the javascript sources

    Fixes errors like this
    
      Couchbase::Error::HTTP: failed to execute HTTP request (key="_design/coupon_code_c", status="400" (Bad Request), error=0x00)
          from /ruby-1.9.3-p327/gems/couchbase-1.2.1/lib/couchbase/bucket.rb:165:in `continue'
          from /ruby-1.9.3-p327/gems/couchbase-1.2.1/lib/couchbase/bucket.rb:165:in `save_design_doc'
    
    Change-Id: Ic4850e1eb4cea2b1c797f509cf402efa99fceb6e
    Reference: #5
    Reviewed-on: http://review.couchbase.org/24688
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 19, 2013
  5. Fix test hiding

    Change-Id: I1597882fb679cb08e449439b64ee510621e677a1
    Reference: #3
    Reviewed-on: http://review.couchbase.org/24684
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Feb 19, 2013
Commits on Feb 9, 2013
  1. Fixup README typos

    Fixes issue #4 on github[1]
    
    [1]: #4
    
    Change-Id: Idff3741eb4c4cf41b74cf9ddde861e3ffc092bcb
    Reviewed-on: http://review.couchbase.org/24123
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    avsej committed Jan 22, 2013
Commits on Jan 22, 2013
  1. Add contributing document

    Change-Id: Ic82a263bbe15900a0abb55af7ab7c7ff6d26ad37
    Reviewed-on: http://review.couchbase.org/24124
    Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
    avsej committed Jan 22, 2013