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

mongoid / moped / 969
97%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2013 05:05PM UTC
Jobs 5
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

pending completion
969

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

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

1538 of 1599 relevant lines covered (96.19%)

1335.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 969.1 (1.9.3, CI="travis") 27 Nov 2013 05:06PM UTC 0
96.16
Travis Job 969.1
2 969.2 (2.0.0, CI="travis") 27 Nov 2013 05:05PM UTC 0
96.16
Travis Job 969.2
3 969.3 (ruby-head, CI="travis") 27 Nov 2013 05:06PM UTC 0
96.16
Travis Job 969.3
4 969.4 (jruby, CI="travis") 27 Nov 2013 05:08PM UTC 0
93.83
Travis Job 969.4
5 969.5 (jruby, CI="travis") 27 Nov 2013 05:06PM UTC 0
93.83
Travis Job 969.5
Source Files on build 969
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #969
  • Pull Request #238
  • PR Base - master (#968)
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