csvbuilder-importer 0.1.5 → 0.1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/csvbuilder/importer/internal/import/csv.rb +2 -2
- data/lib/csvbuilder/importer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b7ef3908dc9244684d9332fba0f25089b39abc5ac9757c6754431597162166d
|
4
|
+
data.tar.gz: de8ae2d006614ee45e139a077ffdc5458472afa702a5d1c7a9048cf8bb55f889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40530fa7d450630ecfaef9892ee13119d03042d12e61fb86922bbd7bb02cfe91476d417fcb420aa8f7462506fcb5f107adc1877567b989765623c6e86d6a1f35
|
7
|
+
data.tar.gz: 365319e0776682a6ff9d2317a0ee73f0a084ea99289d14465346fb58cb8e0bdf29d3c212a9dabd55a2801a115b39df30532c663e397a700738b4f62e1c07f75a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Released]
|
4
4
|
|
5
|
+
## [0.1.5.1] - 2023-07-26
|
6
|
+
|
7
|
+
- Revert: Using Less Memory And Quicker Line Counter https://github.com/joel/csvbuilder-importer/pull/11
|
8
|
+
|
5
9
|
## [0.1.5] - 2023-07-26
|
6
10
|
|
7
11
|
- Add a way to abort at the importer level, handy to handle wrong headers check https://github.com/joel/csvbuilder-importer/pull/12
|
data/Gemfile.lock
CHANGED
@@ -20,10 +20,10 @@ module Csvbuilder
|
|
20
20
|
reset
|
21
21
|
end
|
22
22
|
|
23
|
-
#
|
23
|
+
# http://stackoverflow.com/questions/2650517/count-the-number-of-lines-in-a-file-without-reading-entire-file-into-memory
|
24
24
|
# @return [Integer] the number of rows in the file, including empty new lines
|
25
25
|
def size
|
26
|
-
@size ||= ::File.
|
26
|
+
@size ||= ::File.readlines(file_path).length
|
27
27
|
end
|
28
28
|
|
29
29
|
# If the current position is at the headers, skip it and return it. Otherwise, only return false.
|