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

snusnu / substation / 91
100%

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

pending completion
91

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

258 of 258 relevant lines covered (100.0%)

24.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 91.1 (1.9.3) 10 Jul 2013 12:10PM UTC 0
100.0
Travis Job 91.1
2 91.2 (2.0.0) 10 Jul 2013 12:10PM UTC 0
100.0
Travis Job 91.2
4 91.4 (jruby-19mode) 10 Jul 2013 12:10PM UTC 0
100.0
Travis Job 91.4
5 91.5 (jruby-head) 10 Jul 2013 12:10PM UTC 0
100.0
Travis Job 91.5
6 91.6 (rbx-19mode) 10 Jul 2013 12:11PM UTC 0
100.0
Travis Job 91.6
Source Files on build 91
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #91
  • 44af3f33 on github
  • Prev Build on master (#90)
  • Next Build on master (#92)
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