miscellany 0.1.14 → 0.1.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 735168167aa19b15e9b56db6a20025dc7374526319744526d08238577caf4983
4
- data.tar.gz: c4df4a5c364cb04632ab017f2e7393d9f8dc5f5228ba7da41303d8a7595606ea
3
+ metadata.gz: '0292657fd777bbea4bc0f5388da1bf36a8996fb289734680e659e8d454a31581'
4
+ data.tar.gz: '087408e70b210183a78aed078d86ea593e8810eccd3b22cc9885805de6a98c02'
5
5
  SHA512:
6
- metadata.gz: 94f572010617e6295e19d0167c05cb59b683496f87502a83bb53f91c3303fb11cfb65a7c7f0a2c85c254896700c22bc9d441e02ebb09a93741cb4867e13596a3
7
- data.tar.gz: 8064920b660a82326a0172ac4828c95bf072b65ec3e9e7fe87dcb842ace9ec4a11072e0095eb73e4247c8d83e5e412bd4bd62947b35edefb9b82576b1a5e9423
6
+ metadata.gz: 243f605f61a02d0df1704fae338c395f573341a251f53ed734a43e843f6cb3619bf0ad49c399f20c70963c2a586c03783416c29247e86f740aff765afcf5ede5
7
+ data.tar.gz: 9839a4ecaf808730cfb587b498feb9266b3394929a0e2f7d06ca2efcab4f7715041a82a93446eedcb729b8d141b08d76a1aa1f8d9cbf1a4ddc0f7ddfc649d1a9
@@ -60,11 +60,11 @@ module Miscellany
60
60
  offset = 0
61
61
  loop do
62
62
  batch = ActiveRecord::Base.connection.exec_query(
63
- "SELECT * FROM #{tbl} LIMIT #{batch_size} OFFSET #{offset}",
63
+ "SELECT * FROM #{tbl} LIMIT #{of} OFFSET #{offset}",
64
64
  )
65
65
  augment_batch(batch)
66
66
  yield batch
67
- offset += batch_size
67
+ offset += of
68
68
  break if batch.empty?
69
69
  end
70
70
  ensure
@@ -1,3 +1,3 @@
1
1
  module Miscellany
2
- VERSION = "0.1.14".freeze
2
+ VERSION = "0.1.15".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miscellany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Knapp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails