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

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

Build:
DEFAULT BRANCH: master
Ran 10 Jul 2013 12:10PM UTC
Files 13
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
jruby-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

256 of 256 relevant lines covered (100.0%)

4.62 hits per line

Source Files on job 91.4 (jruby-19mode)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 91
  • Travis Job 91.4
  • 44af3f33 on github
  • Prev Job for jruby-19mode on master (#90.4)
  • Next Job for jruby-19mode on master (#92.4)
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