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

theckman / tunnelbroker / 37
100%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2014 01:37AM UTC
Jobs 3
Files 5
Run time 44s
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
37

Pull #17

travis-ci

theckman
try to improve TunnelBroker::Client

The `build_messenger_config()` method was seen as being too complex in CodeClimate so this attempts to address that. Also, increase release version to `0.0.11`.

I've reduced `build_messenger_config()` to just iterate over the config fields. For each item it calls `config_hash_item()` and merges the result of that in to the running config hash.

`config_hash_item()` returns a Hash to be merged in to the config hash:
- When given an invalid config key it raises a NoMethodError (maybe this should be a custom Exception)
- When the key is `:url` and config.url is unset, it defaults to the `ENDPOINT` constant
- When the config key is valid, and set, it returns a Hash with `{ :keyname => config.keyname }`
- When the config key is unset, and not url, return an empty Hash
Pull Request #17: try to improve TunnelBroker::Client

101 of 101 relevant lines covered (100.0%)

20.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37.1 (2.1.1) 13 Apr 2014 01:38AM UTC 0
100.0
Travis Job 37.1
2 37.2 (2.1.0) 13 Apr 2014 01:37AM UTC 0
100.0
Travis Job 37.2
3 37.3 (2.0.0) 13 Apr 2014 01:37AM UTC 0
100.0
Travis Job 37.3
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #37
  • Pull Request #17
  • PR Base - master (#36)
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