ar_http_wrapper 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: