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

optimizely / ruby-sdk / 1456
99%

Build:
DEFAULT BRANCH: master
Ran 03 Dec 2019 09:59PM UTC
Jobs 4
Files 189
Run time 37s
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
1456

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

30 of 30 new or added lines in 2 files covered. (100.0%)

16402 of 16483 relevant lines covered (99.51%)

30898.97 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1456.3 (2.3.7) 03 Dec 2019 09:59PM UTC 0
99.52
Travis Job 1456.3
4 1456.4 (2.4.4) 03 Dec 2019 09:59PM UTC 0
99.52
Travis Job 1456.4
5 1456.5 (2.5.1) 03 Dec 2019 09:59PM UTC 0
99.52
Travis Job 1456.5
6 1456.6 (2.6.0) 03 Dec 2019 09:59PM UTC 0
99.52
Travis Job 1456.6
Source Files on build 1456
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1456
  • c720b022 on github
  • Prev Build on master (#1430)
  • Next Build on master (#1504)
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

© 2025 Coveralls, Inc