Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 24, 2012
  1. @steveklabnik
  2. @steveklabnik

    ignoring test db

    steveklabnik authored
Commits on Oct 21, 2012
  1. @steveklabnik

    Merge pull request #314 from ao140505/handle-empty-collections-better

    steveklabnik authored
    fix bug: unitialized constant NilClassDecorator no need to decorate an empty array anyways
Commits on Oct 20, 2012
  1. @aokolish
Commits on Oct 19, 2012
  1. @steveklabnik

    Updating with latest master.

    steveklabnik authored
    Needed to turn Base -> Decorator, and also add
    the test db back to the repo so that travis will
    have a copy.
  2. @steveklabnik
  3. @steveklabnik

    Cleaned up Rakefile.

    steveklabnik authored
    We can't even use RCov because we don't support 1.8.
  4. @steveklabnik

    Added cucumber task and ci task

    steveklabnik authored
    Now you can `rake cucumber` to run the cukes, and
    `rake ci` to run the rspec tests and then the cukes.
  5. @steveklabnik
  6. @steveklabnik

    Added first integration test

    steveklabnik authored
    This test tests the following Draper features:
    
    1) finders
    2) decorates
    3) using a decorated method
    
    It also is the first test that verifies that the whole Cucumber setup
    actually works properly.
  7. @steveklabnik

    Adding cucumber stuff for integration testing.

    steveklabnik authored
    I've embedded a little Rails app so that we can write cuke tests and
    make sure that stuff doesn't break. Woo!
    
    This was generated by making a rails engine, then copying just the
    app over.
    
    Thanks @nashby for fixing my stupid bug with sqlite3; it had to be
    added as a development dependency. :heart:
Commits on Oct 16, 2012
  1. @steveklabnik

    Merge pull request #312 from jpfuentes2/extract_helpers_delegation_in…

    steveklabnik authored
    …to_module
    
    move #helpers (delegates to HelperProxy) to module
  2. @jpfuentes2
  3. @jpfuentes2

    move #helpers (delegates to HelperProxy) to module

    jpfuentes2 authored
    Since the #helpers interface lives in a module, we
    can now re-use the HelperProxy logic in custom
    "Presenter" classes which do not inherit from
    Draper::Decorator. These custom classes may either
    wrap 1..N different collections of AR models
    and/or POROs.
Commits on Oct 15, 2012
  1. @steveklabnik

    Merge pull request #310 from haines/helper_proxy

    steveklabnik authored
    Extract helper proxy
Commits on Oct 14, 2012
  1. @haines

    Extract helper proxy

    haines authored
  2. @steveklabnik

    Merge pull request #309 from cgunther/fix-309

    steveklabnik authored
    CollectionDecorator#find with a block proxies to undecorated collection
Commits on Oct 12, 2012
  1. @cgunther

    CollectionDecorator#find with block proxies to decorated_collection

    cgunther authored
    #find with a block should return an instance of the decorated model,
    not the undecorated model
  2. @steveklabnik

    Merge pull request #306 from dqminh/master

    steveklabnik authored
    Memoize .helpers
  3. @nashby

    Merge pull request #307 from haines/fix_nonspecs

    nashby authored
    Fix specs that don't do anything
  4. @haines
  5. @dqminh

    memoize helpers

    dqminh authored
    this does not instantiate new instance of HelpersWrapper
    every time "#helpers" is accessed
  6. @steveklabnik

    Merge pull request #305 from haines/extract_security

    steveklabnik authored
    Extract security from Decorator
  7. @haines

    Remove 'to to' from docs

    haines authored
  8. @haines

    Update decorator specs

    haines authored
  9. @haines

    Fix failing spec

    haines authored
    We don't need to deny `Object` methods or `method_missing` because
    `Decorator` will respond to these itself so
    
    * `Decorator#respond_to?` will hit `super` and return true, as
      expected
    * `Decorator#method_missing` will not be called for these methods,
      so we will never check whether they are denied anyway!
  10. @haines

    Extract Security class

    haines authored
  11. @steveklabnik

    Merge pull request #304 from haines/travis_link

    steveklabnik authored
    Update Travis link in README
  12. @haines

    Update Travis link

    haines authored
Commits on Oct 11, 2012
  1. @steveklabnik

    Merge pull request #303 from haines/active_model_support

    steveklabnik authored
    Simplify ActiveModelSupport?
  2. @haines

    Simplify ActiveModelSupport

    haines authored
  3. @nashby

    Merge pull request #302 from haines/renaming

    nashby authored
    Rename model_support_spec to decoratable_spec
  4. @haines
Commits on Oct 10, 2012
  1. @steveklabnik
Commits on Oct 9, 2012
  1. @haines
Something went wrong with that request. Please try again.