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

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

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2013 05:14PM 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: 94.022% (+0.2%) from 93.827%
jruby, 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

1447 of 1539 relevant lines covered (94.02%)

28.01 hits per line

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

© 2026 Coveralls, Inc