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

optimizely / ruby-sdk / 1456 / 3
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 03 Dec 2019 09:59PM UTC
Files 63
Run time 5s
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

03 Dec 2019 09:56PM UTC coverage: 99.523% (+0.002%) from 99.521%
2.3.7

push

travis-ci

mjc1283
NotificationCenter should accept any Callable (#216)

## Summary

**The NotificationCenter learns to accept any callable object as the
  notification callback.**


It is uncommon in Ruby to require `Method` instances when any Callable
will suffice. Indeed, the idiomatic object for callbacks is a block.

With this change, the notification center can accept any callable, not
only `Method` instances; that is, any object that responds to `call`
(`Method`, lambdas, procs, or any object with a `.call` method)

If the callback parameter is omitted, a block may be provided instead.

## Test plan

## Issues

address item 3 of https://github.com/optimizely/ruby-sdk/issues/213

5639 of 5666 relevant lines covered (99.52%)

7140.58 hits per line

Source Files on job 1456.3 (2.3.7)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1166
  • Travis Job 1456.3
  • c720b022 on github
  • Prev Job for 2.3.7 on master (#1430.3)
  • Next Job for 2.3.7 on master (#1504.3)
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