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

mongoid / moped / 970 / 3
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2013 05:10PM UTC
Files 58
Run time –
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

27 Nov 2013 05:03PM UTC coverage: 48.752%. Remained the same
ruby-head, CI="travis"

Pull #238

travis-ci

fancyremarker
Add @cache to Moped::Cursor for out-of-block iteration

The Mongo Ruby driver (and thus Mongoid 2.x) supported iterating over a
cursor outside a block, using such operations as take(). For example:

    batch_size = 10
    cursor = session[:users].find({}).cursor
    while (users = cursor.take(batch_size)).present?
      # Do stuff...
    end
    # Do more stuff...

This was a convenient pattern for implementing lots of algorithms in a
more readable way than if they were written using each().
Pull Request #238: Add @cache to Moped::Cursor for out-of-block iteration

762 of 1563 relevant lines covered (48.75%)

0.7 hits per line

Source Files on job 970.3 (ruby-head, CI="travis")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 970
  • Travis Job 970.3
  • 77b6949e on github
  • Prev Job for ruby-head, CI="travis" on master (#968.3)
  • Next Job for ruby-head, CI="travis" on master (#971.3)
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