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

bhuga / promising-future / 25 / 5
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 17 May 2016 02:57PM UTC
Files 7
Run time 0s
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

17 May 2016 02:53PM UTC coverage: 100.0%. Remained the same
rbx-2

Pull #27

travis-ci

raxoft
Make force work in conditions for futures, not only promises.

The Future#__force__ should return the resulting value, not the promise. Otherwise things like
``` ruby
   puts "true" if future{ true }.force
   puts "false" if future{ false }.force
   puts "nil" if future{ nil }.force
```
do not work as expected (currently all evaluate to true). I believe it should work consistently with promises:
``` ruby
   puts "true" if promise{ true }.force
   puts "false" if promise{ false }.force
   puts "nil" if promise{ nil }.force
```
The change above should achieve this. However note it may change how the marshalling works with regard to futures, as the special marshalling handling found in Promise becomes bypassed. You may want to review this aspect yourself.
Pull Request #27: Make force work in conditions for futures, not only promises.

238 of 238 relevant lines covered (100.0%)

11.01 hits per line

Source Files on job 25.5 (rbx-2)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25
  • Travis Job 25.5
  • e04f1d22 on github
  • Prev Job for rbx-2 on master (#24.5)
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