• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

snusnu / substation / 91 / 6
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 10 Jul 2013 12:11PM UTC
Files 12
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jul 2013 12:10PM UTC coverage: 100.0%. Remained the same
rbx-19mode

push

travis-ci

snusnu
Support observable actions inside chains

* Nuke Substation::Utils (!)
* Nuke Substation::Observer and replace it with a
  much simpler implementation inside newly added
  Substation::Action
* Nuke possibility to configure substation via a
  YAML file (not needed/desirable anyway)
* Introduce Substation::Action which basically is
  a simplified version of the previously available
  Dispatcher::Action
* Simplify dispatcher configuration to only map
  from action names to actions/chains.
* Actually support observers for actions that are
  used as chain pivot handlers (the old way of
  configuring a dispatcher actually made this
  impossible).

Defining an action and using it inside a chain
works like this:

module Demo
  # ...
  # application code and substation setup
  # ...

  CREATE_PERSON = ENV.action Actions::CreatePerson, [
    Observers::LOG_EVENT,
    Observers::SEND_EMAIL
  ]

  module App
    CREATE_PERSON = ENV.chain(AUTHORIZE) do
      validate Validators::NEW_PERSON, VALIDATION_ERROR
      # use the previously defined action
      call Demo::CREATE_PERSON, APPLICATION_ERROR
    end
  end
end

236 of 236 relevant lines covered (100.0%)

5.13 hits per line

Source Files on job 91.6 (rbx-19mode)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 91
  • Travis Job 91.6
  • 44af3f33 on github
  • Prev Job for rbx-19mode on master (#90.6)
  • Next Job for rbx-19mode on master (#92.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc