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

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

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

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"]
```

1319 of 1499 relevant lines covered (87.99%)

5867.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 142.1 (2.5) 30 Apr 2018 02:02PM UTC 0
88.26
Travis Job 142.1
2 142.2 (2.4) 30 Apr 2018 02:02PM UTC 0
88.26
Travis Job 142.2
3 142.3 (2.3) 30 Apr 2018 02:02PM UTC 0
88.26
Travis Job 142.3
4 142.4 (2.2) 30 Apr 2018 02:03PM UTC 0
88.26
Travis Job 142.4
5 142.5 (2.1) 30 Apr 2018 02:05PM UTC 0
88.3
Travis Job 142.5
6 142.6 (jruby-9.1.5.0) 30 Apr 2018 02:11PM UTC 0
88.36
Travis Job 142.6
7 142.7 (ruby-head) 30 Apr 2018 02:05PM UTC 0
88.26
Travis Job 142.7
Source Files on build 142
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #142
  • 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