miscellany 0.1.20 → 0.1.21

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: 31028be35ab95451d190d0a669321bd265bc82230f8c07ddab8c52a4e526fcf0
4
- data.tar.gz: ee7c51e33f2147ab49e05f3c0783dd5a8f938a931a33468d1289214233b34a4e
3
+ metadata.gz: 7ec30930b46e2c70b23b56abcf878afe159e0f18ffb3233c7ab1e87de6483573
4
+ data.tar.gz: b4eea0d8cb2ea1dfc0b3d52351f63fd54dcb9581ed877967ea78beb5cbc96a2f
5
5
  SHA512:
6
- metadata.gz: 9f94c830dc69bf00eb3b0c9e423741ce5d70caac4f7cad67e85e4df9c9b929fc60ad2034516ed9924c2f37ce2dab6cbb56f92d02a45b7cd6179b753479f278d8
7
- data.tar.gz: 7cfdc3d21e2c648c9031ce061a59529db42236734b50a00bfc058fafde17039ef7660def4f8e8a8775d4a0b65cf30317fc4bbd87a01900b61d6866823904ba19
6
+ metadata.gz: 53a2d235b7ea3e209b0249eab4964eb3f2426e2de48c7ac6594a06fb077bae34f7df160ff9f7b8bd797fc2a1d47a2cf8f63cf223f45ef71e4899884fd43dd0c6
7
+ data.tar.gz: ee1e2a42ce1376ecd3a182e0aa228b248e154b554fcd9fdf6126a4c42855db20e83063b6a71ecd291c7a3fedfc6aa409b001a5d998e78ec8357c0e50d24f6941
@@ -47,7 +47,7 @@ module Miscellany
47
47
  end
48
48
  psql += " LIMIT #{length} OFFSET #{start}"
49
49
  records = ActiveRecord::Base.connection.exec_query(psql).to_a
50
- records.map!(&:with_indifferent_access)
50
+ records = records.map(&:with_indifferent_access)
51
51
  augment_batch(records)
52
52
  records
53
53
  end
@@ -63,7 +63,7 @@ module Miscellany
63
63
  batch = ActiveRecord::Base.connection.exec_query(
64
64
  "SELECT * FROM #{tbl} LIMIT #{of} OFFSET #{offset}",
65
65
  )
66
- batch.map!(&:with_indifferent_access)
66
+ batch = batch.map(&:with_indifferent_access)
67
67
  augment_batch(batch)
68
68
  yield batch
69
69
  offset += of
@@ -1,3 +1,3 @@
1
1
  module Miscellany
2
- VERSION = "0.1.20".freeze
2
+ VERSION = "0.1.21".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miscellany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Knapp