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

mvidner / ruby-dbus / 142 / 6
88%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.25.0
DEFAULT BRANCH: master
Ran 30 Apr 2018 02:11PM UTC
Files 17
Run time 1s
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

30 Apr 2018 01:59PM UTC coverage: 88.359%. First build
jruby-9.1.5.0

push

travis-ci

mvidner
Interface not found: DBus::Error instead of nil (and then NoMethodError)

The example below would be correct if it said
`unit_o["org.freedesktop.systemd1.Unit"]`.

With the wrong interface name, `unit_i` used to become `nil` and you
would get an unhelpful
"NoMethodError: undefined method `[]' for nil:NilClass" later.

With this fix, it raises
"DBus::Error: no such interface `Unit' on object `/org/freedesktop/systemd1/unit/_2d_2emount'"

```rb
bus = DBus::SystemBus.instance
svc = bus.service("org.freedesktop.systemd1")
unit_o = svc["/org/freedesktop/systemd1/unit/_2d_2emount"]
unit_i = unit_o["Unit"]  # BUG
descr = unit_i["Description"]
```

1298 of 1469 relevant lines covered (88.36%)

834.88 hits per line

Source Files on job 142.6 (jruby-9.1.5.0)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 137
  • Travis Job 142.6
  • 794f3cce on github
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