Permalink
Commits on Jan 29, 2012
  1. Don't use a HashWithIndifferentAccess

    Just make sure that we use attr.to_sym in our AR adapter, instead.
    coutud committed Jan 29, 2012
  2. Merge branch 'issue-2'

    coutud committed Jan 29, 2012
  3. Make tests run ... at least

    AR is green, datamapper and sequel aren't ...
    coutud committed Jan 29, 2012
  4. Implement scope and finders methods properly

    Original version implemented method missing to parse scope_by and
    finder_by, but did nothing for handling where() and relations in
    general.
    
    This commit does the following :
     - Remove the method_missing implementation for AR adapter.
     - Make attr_encrypted properly register its reflection so that AR
       methods will know that :email, while not a table column, does exist.
       Relies on the same mechanism as :composed_of
     - Instead of chaining method_missing (ugly), we just chain
       ActiveRecord::Relation.build_where, rewriting any where clause with
       encrypted version where needed.
    Additionally, the following where needed/done
     - Make test_helper not depend on any gem, offering the ability to run
       one test without loading gems for other tests. Should help people
       debugging.
    coutud committed Jan 29, 2012
Commits on Jun 23, 2011
  1. Fix integration with ActiveRecord [closes #2, closes #26].

    attr_encrypted methods assumes that all attribute methods already defined
    when it calls instance_methods, but there are cases when that is not true,
    because ActiveRecord defines that methods dynamically (in method_missing and
    respond_to?).
    
    See lib/active_record/attribute_methods.rb for details.
    hron committed Jun 23, 2011
  2. bundlerefication.

    hron committed Jun 23, 2011
Commits on Apr 5, 2011
  1. Fixed an issue where specifying more than one attribute on the same l…

    …ine resulting in all of them having the same :attribute value in the options hash
    austintaylor committed with shuber Apr 5, 2011
Commits on Mar 22, 2011
Commits on Mar 12, 2011
Commits on Mar 7, 2011
  1. update gemspec

    shuber committed Mar 7, 2011
  2. update version

    shuber committed Mar 7, 2011
  3. update readme

    shuber committed Mar 7, 2011
  4. update documentation

    shuber committed Mar 7, 2011
  5. update gemspec

    shuber committed Mar 7, 2011
  6. update tests

    shuber committed Mar 7, 2011
  7. update tests

    shuber committed Mar 7, 2011
  8. update AR tests

    shuber committed Mar 7, 2011
Commits on Apr 26, 2010
  1. update gemspec

    shuber committed Apr 26, 2010
  2. no ruby-debug depend

    nate committed Apr 26, 2010
  3. update gemspec

    shuber committed Apr 26, 2010
  4. added mocha to gemspec

    nate committed Apr 26, 2010
  5. ensures original options are reinitialized even if there is in error …

    …encrypting/decrypting
    nate committed Apr 26, 2010
Commits on Jan 28, 2010
  1. update gemspec

    shuber committed Jan 28, 2010
  2. update readme

    shuber committed Jan 28, 2010
  3. update gemspec

    shuber committed Jan 28, 2010
  4. alias as attr_encryptor

    shuber committed Jan 28, 2010
  5. remove huberry namespace

    shuber committed Jan 28, 2010
  6. dont require libs with gem

    shuber committed Jan 28, 2010
  7. add gitignore

    shuber committed Jan 28, 2010
  8. remove changelog

    shuber committed Jan 28, 2010