Commits on Nov 25, 2011
  1. @troessner
  2. @troessner

    Merge pull request #41 from railsbros-dirk/master

    Using a lambda as event success callback, add ruby-debug, fix event_failed callback.
    troessner committed Nov 25, 2011
Commits on Nov 23, 2011
  1. @railsbros-dirk

    Revert "Updated the README for AR integration"

    This reverts commit f3615d3.
    railsbros-dirk committed Nov 23, 2011
  2. @railsbros-dirk
  3. @railsbros-dirk
  4. @railsbros-dirk

    Added tests for calling the failure and success callbacks

    This uncovered some bug not firering the event_failed callback
    in any case of an exception has been raised. This is now handled.
    
    The exception is just re-raised if the record doesn't have defined
    a event_failed callback. If he had it is up to the implementation
    to handle the execption. We are just return false.
    railsbros-dirk committed Nov 23, 2011
  5. @railsbros-dirk

    Pass a lambda as a success callback, too

    Internally the callback will now always be a lambda to simplify the
    implementation on the caller site
    railsbros-dirk committed Nov 23, 2011
  6. @railsbros-dirk
  7. @railsbros-dirk

    Moved the :auto_scopes tests to the AR-tests

    This prevents failing tests when tests are executed in an unpredictable
    order. Furthermore I think all AR-related tests should stand together
    including the required migrations.
    railsbros-dirk committed Nov 23, 2011
Commits on Nov 22, 2011
  1. @railsbros-dirk

    Merge branch 'master' of https://github.com/troessner/transitions

    * 'master' of https://github.com/troessner/transitions:
      Update README.
      Bump version.
      Make auto generation of AR scopes configurable and raise an exception in case we would override an existing method.
      Fix specs - we need to run migrations before calling `state_machine`.
    railsbros-dirk committed Nov 22, 2011
Commits on Nov 18, 2011
  1. @troessner

    Update README.

    troessner committed Nov 19, 2011
Commits on Nov 17, 2011
  1. @troessner

    Bump version.

    troessner committed Nov 17, 2011
  2. @troessner

    Make auto generation of AR scopes configurable and raise an exception…

    … in case we would override an existing method.
    troessner committed Nov 17, 2011
Commits on Nov 16, 2011
  1. @troessner
  2. @railsbros-dirk

    Merge branch 'master' of https://github.com/troessner/transitions

    * 'master' of https://github.com/troessner/transitions:
      added test for event_fired_callback
    railsbros-dirk committed Nov 16, 2011
Commits on Nov 11, 2011
  1. @troessner

    Merge pull request #30 from tisba/master

    add event name to event_fired_callback
    troessner committed Nov 11, 2011
  2. @tisba

    added test for event_fired_callback

    If event_fired is defined on record, the current
    state, the new state and the event is passed. This
    test checks if everything is passed to the
    callback properly.
    tisba committed Nov 11, 2011
  3. @tisba

    Merge https://github.com/troessner/transitions

    * https://github.com/troessner/transitions: (26 commits)
      Ignore Rubymine.
      Fix homepage in gemspec.
      Revert "Refactor."
      Refactor.
      Update README.rdoc
      Update README.rdoc
      Add travis config.
      Update README.rdoc
      Update README.rdoc
      Add rvmrc.
      Bump version.
      replaced class_eval with define_method in transitions#define_state_query_method
      added .rvmrc to .gitignore
      changed one timestamp value in tests to string to ensure wider test coverage
      updated README
      Added tests for timestamp and satisfied tests
      cleaned up test DB code
      Added .rvmrc file
      Added comment for reload method
      Stringify state name AR prefixes the state with the table name (i.e. "`traffic_lights`.`state` = `traffic_lights`.`red`") if we pass the name as symbol. We need to pass it as string, so that it works ("`traffic_lights`.`state` = 'red'")
      ...
    tisba committed Nov 11, 2011
Commits on Nov 2, 2011
  1. @railsbros-dirk

    Merge branch 'master' of https://github.com/tisba/transitions

    * 'master' of https://github.com/tisba/transitions:
      add event name to the event_fired_callback
    railsbros-dirk committed Nov 2, 2011
Commits on Nov 1, 2011
  1. @troessner

    Ignore Rubymine.

    troessner committed Nov 1, 2011
  2. @troessner

    Fix homepage in gemspec.

    troessner committed Nov 1, 2011
Commits on Oct 27, 2011
  1. @troessner

    Revert "Refactor."

    This reverts commit fcaa2ea.
    troessner committed Oct 27, 2011
  2. @troessner

    Refactor.

    troessner committed Oct 27, 2011
  3. @troessner

    Update README.rdoc

    troessner committed Oct 27, 2011
  4. @troessner

    Update README.rdoc

    troessner committed Oct 27, 2011
  5. @troessner

    Add travis config.

    troessner committed Oct 27, 2011
  6. @troessner

    Update README.rdoc

    troessner committed Oct 27, 2011
  7. @troessner

    Update README.rdoc

    troessner committed Oct 27, 2011
  8. @troessner

    Add rvmrc.

    troessner committed Oct 27, 2011
Commits on Oct 12, 2011
  1. @troessner

    Bump version.

    troessner committed Oct 12, 2011
Commits on Oct 4, 2011
  1. @troessner

    Merge pull request #37 from Bodacious/define_method

    Prefer define_method over class_eval.
    troessner committed Oct 4, 2011
  2. @troessner

    Merge pull request #36 from Bodacious/timestamp_rework

    Add timestamps to state transitions.
    troessner committed Oct 4, 2011
Commits on Oct 3, 2011
  1. @Bodacious
  2. @Bodacious

    added .rvmrc to .gitignore

    Bodacious committed Oct 3, 2011
  3. @Bodacious