simple_record 1.1.56 → 1.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,8 +97,8 @@ module SimpleRecord
97
97
  options = @params[1]
98
98
  limit = options[:limit]
99
99
 
100
- @items.each do |v|
101
- # puts @i.to_s
100
+ @items[i..@items.size].each do |v|
101
+ puts "i=" + i.to_s
102
102
  yield v
103
103
  i += 1
104
104
  if !limit.nil? && i >= limit
@@ -31,6 +31,13 @@ class TestResultsArray < TestBase
31
31
  i+=1
32
32
  end
33
33
  assert i == num_made
34
+ # running through all the results twice to ensure it works properly after lazy loading complete.
35
+ i = 0
36
+ rs.each do |x|
37
+ #puts 'x=' + x.id
38
+ i+=1
39
+ end
40
+ assert i == num_made
34
41
  end
35
42
 
36
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.56
4
+ version: 1.1.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-01-03 00:00:00 -08:00
14
+ date: 2010-01-04 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -79,8 +79,8 @@ test_files:
79
79
  - test/my_child_model.rb
80
80
  - test/my_model.rb
81
81
  - test/paging_array_test.rb
82
- - test/results_tests.rb
83
82
  - test/temp_test.rb
84
83
  - test/test_base.rb
85
84
  - test/test_helpers.rb
85
+ - test/test_results_array.rb
86
86
  - test/test_simple_record.rb