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

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

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2013 05:12PM 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: 96.161%. Remained the same
2.0.0, 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

1503 of 1563 relevant lines covered (96.16%)

443.29 hits per line

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