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

stripe / stripe-ruby / 3481
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 04 Oct 2019 08:08PM UTC
Jobs 5
Files 291
Run time 3min
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
3481

Pull #861

travis-ci

web-flow
Nicer error when specifying non-nil non-string opt value

Previously, if you specified a non-nil non-string opt value, like a
symbol for `idempotency_key`, you'd get a pretty user-unfriendly error
from `Net::HTTP`:

```
/Users/brandur/.rbenv/versions/2.4.5/lib/ruby/2.4.0/net/http/header.rb:21:in `block in initialize_http_header': undefined method `strip' for :foo:Symbol (NoMethodError)
```

Here, we introduce a new argument error that makes it a little easier
for someone to read. The impetus for the change is that we had an
internal product quality report where someone ran into this and was
confused.

I'm pretty sure this change is backward compatible because `Net::HTTP`
would call `strip` on anything that was passed in as a value, and
generally just strings would support that. There may be some other less
common data type that was accidentally compatible that someone was
using, but that case should be quite unusual.
Pull Request #861: Nicer error when specifying non-nil non-string opt value

9 of 9 new or added lines in 1 file covered. (100.0%)

5748 of 5979 relevant lines covered (96.14%)

2404.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3481.1 (2.3) 04 Oct 2019 08:08PM UTC 0
96.2
Travis Job 3481.1
2 3481.2 (2.4) 04 Oct 2019 08:09PM UTC 0
96.2
Travis Job 3481.2
3 3481.3 (2.5) 04 Oct 2019 08:09PM UTC 0
96.2
Travis Job 3481.3
4 3481.4 (2.6) 04 Oct 2019 08:09PM UTC 0
96.17
Travis Job 3481.4
5 3481.5 (jruby-9.2.7.0) 04 Oct 2019 08:12PM UTC 0
0.0
Travis Job 3481.5
Source Files on build 3481
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3481
  • Pull Request #861
  • PR Base - master (#3477)
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