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

mvidner / ruby-dbus
88%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.25.0
DEFAULT BRANCH: master
Repo Added 01 Feb 2014 07:34PM UTC
Files 29
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

LAST BUILD ON BRANCH unknown-interface
branch: unknown-interface
CHANGE BRANCH
x
Reset
  • unknown-interface
  • api-1
  • auth-refactor
  • autointrospect
  • avoid-type-type
  • better-request-name
  • branch-coverage
  • bus-and-connection
  • bus-lookup
  • client-types-properties-set
  • container-type-refactor
  • coveralls-merge
  • coveralls-merge2
  • data-robust-value
  • data-unmarshal
  • dbus-reader-attr-accessor
  • diffable-introspection
  • doubly-nested-variant
  • emits_changed_signal
  • fix-dbus-session-bus-address-extraction
  • fix_array_typed
  • github-actions
  • marshall-typed-array
  • master
  • nested_on_signal
  • no-ipv6-in-obs
  • object-manager-service
  • object-server-api-fixes
  • other-endianness
  • path-without-object
  • propget-error-mention-propname
  • propschanged-type
  • ractor-compatible
  • refresh-activesupport
  • refs/tags/ctor-spec
  • refs/tags/v0.17.0
  • refs/tags/v0.18.0.beta1
  • refs/tags/v0.18.0.beta2
  • refs/tags/v0.18.0.beta3
  • refs/tags/v0.18.0.beta4
  • refs/tags/v0.18.0.beta5
  • refs/tags/v0.18.0.beta6
  • refs/tags/v0.18.0.beta7
  • refs/tags/v0.18.0.beta8
  • refs/tags/v0.18.1
  • refs/tags/v0.19.0
  • refs/tags/v0.20.0
  • refs/tags/v0.21.0
  • refs/tags/v0.22.0
  • refs/tags/v0.22.1
  • refs/tags/v0.23.0.beta1
  • refs/tags/v0.23.0.beta2
  • refs/tags/v0.23.1
  • refs/tags/v0.24.0
  • refs/tags/v0.25.0
  • rubocop
  • rubocop-1.0
  • ruby-lint
  • ruby34-fix
  • ruby34-quoting
  • service-properties
  • service-vs-proxy-service
  • static-socket-buffer
  • struct-properties
  • threads-signals
  • timeout
  • two-return-values
  • unmarshall-spec
  • use-dbus-run-session
  • v0.11.2
  • v0.12.0
  • v0.13.0
  • v0.14.1
  • v0.15.0
  • v0.16.0
  • validate-object-paths
  • variant-values

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

Relevant lines Covered
Build:
Build:
1499 RELEVANT LINES 1319 COVERED LINES
5867.12 HITS PER LINE
Source Files on unknown-interface
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
142 unknown-interface 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 u... push 30 Apr 2018 02:02PM UTC mvidner travis-ci pending completion  
See All Builds (333)
  • Repo 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

© 2025 Coveralls, Inc