ar_http_wrapper 0.1.8 → 0.1.9

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.
@@ -39,7 +39,9 @@ class ActiveRecordHttpWrapper
39
39
  n_batches.times do |i|
40
40
  options = {:body => {:offset => i * batch_size, :limit => batch_size}}
41
41
  records = get(to_path("/"), options).try(:map) { |h| OpenStruct.new(h) }
42
- yield records if block_given?
42
+ records.each do |r|
43
+ yield r if block_given?
44
+ end
43
45
  end
44
46
  end
45
47
 
@@ -1,3 +1,3 @@
1
1
  module ArHttpWrapper
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_http_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: