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

mongoid / moped / 970
97%

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

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%)

1537 of 1598 relevant lines covered (96.18%)

489.33 hits per line

Jobs
ID Job ID Ran Files Coverage
2 970.2 (2.0.0, CI="travis") 27 Nov 2013 05:12PM UTC 0
96.16
Travis Job 970.2
3 970.3 (ruby-head, CI="travis") 27 Nov 2013 05:10PM UTC 0
48.75
Travis Job 970.3
4 970.4 (jruby, CI="travis") 27 Nov 2013 05:14PM UTC 0
94.02
Travis Job 970.4
5 970.5 (jruby, CI="travis") 27 Nov 2013 05:15PM UTC 0
93.83
Travis Job 970.5
6 970.6 (jruby-head, CI="travis") 09 Mar 2015 05:20PM UTC 0
Travis Job 970.6
Source Files on build 970
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #970
  • 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