mongoload 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43f6d35204451fe83d744d022348bfa75bf44b4d
4
- data.tar.gz: 0643e2e4a61dedc69853f13e243c48569a738828
3
+ metadata.gz: 78571a15bc95933c04087943f3b5f13ff672c199
4
+ data.tar.gz: acf8006f8200bc0c63bf3b173bee0ec573d9aafa
5
5
  SHA512:
6
- metadata.gz: 21d8fda99c4ff3fbb6f7d4b822610364d3fcc1cf7cf62149a8c5709e89c84880809eab6d2ab4e4d2484578d1ad0ff58c26183b3e4a28a6f1c2368dc430e5c877
7
- data.tar.gz: 1ffff4324c1417821d7189191e06835a72228d692870e4bf321c57c6f43a131b8b23505255636cf1623e467939afe2dd1620afbb6a267ffeca94aa036bf83226
6
+ metadata.gz: 28e7a8b10d772f055fd60c407d5c019b2bd2d2972b4dd824672e14eddd37d86ab59a12478e390b3f5db0a0230125fd864ddcce8db857130a5ff7f1ed6a6504a9
7
+ data.tar.gz: 7d0c29e43d846ea5c12e350bb325d2595b4d108314aedad9c7f6340eaaa53fda186ad4b8c04b58df10d008d5433fd2585ca5d4763adc99be40c17362666a73e8
@@ -4,12 +4,6 @@ module Mongoload
4
4
  def documents_for_iteration
5
5
  results = super
6
6
  if results.is_a?(Mongo::Collection::View)
7
- require 'byebug'
8
- begin
9
- results.to_a
10
- rescue SystemStackError
11
- byebug
12
- end
13
7
  results = results.map { |doc| Mongoid::Factory.from_db(klass, doc, criteria.options[:fields]) }
14
8
  end
15
9
  results.tap do |documents|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Mongoload
3
3
  # mongoload version
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaloku Sang