smarter_csv 1.17.2 → 1.17.3

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.
@@ -195,8 +195,10 @@ module SmarterCSV
195
195
  return [nil, n] if all_blank
196
196
  end
197
197
 
198
- # Batch-strip using C-level map! — faster than per-element strip inside the loop
199
- fields.map!(&:strip) if strip
198
+ # In-place strip! — allocation-free when there's no surrounding whitespace
199
+ # (matches the sister site in parse_csv_line_ruby; completes the
200
+ # "strip -> strip!" sweep documented in the 1.17.0 commit notes).
201
+ fields.each(&:strip!) if strip
200
202
 
201
203
  remove_empty = options[:remove_empty_values]
202
204
  hash = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmarterCSV
4
- VERSION = "1.17.2"
4
+ VERSION = "1.17.3"
5
5
  end
data/smarter_csv.gemspec CHANGED
@@ -30,11 +30,13 @@ Gem::Specification.new do |spec|
30
30
  spec.homepage = "https://github.com/tilo/smarter_csv"
31
31
  spec.license = 'MIT'
32
32
 
33
- spec.metadata["homepage_uri"] = spec.homepage
34
- spec.metadata["source_code_uri"] = spec.homepage
35
- spec.metadata["changelog_uri"] = "https://github.com/tilo/smarter_csv/blob/main/CHANGELOG.md"
36
- spec.metadata["documentation_uri"] = "https://github.com/tilo/smarter_csv/tree/main/docs"
37
- spec.metadata["bug_tracker_uri"] = "https://github.com/tilo/smarter_csv/issues"
33
+ spec.metadata["homepage_uri"] = spec.homepage
34
+ spec.metadata["source_code_uri"] = spec.homepage
35
+ spec.metadata["changelog_uri"] = "https://github.com/tilo/smarter_csv/blob/main/CHANGELOG.md"
36
+ spec.metadata["documentation_uri"] = "https://github.com/tilo/smarter_csv/tree/main/docs"
37
+ spec.metadata["bug_tracker_uri"] = "https://github.com/tilo/smarter_csv/issues"
38
+ spec.metadata["upgrade_uri"] = "https://github.com/tilo/smarter_csv/blob/main/UPGRADING.md"
39
+ spec.metadata["upgrade_wizard_uri"] = "https://tilo.github.io/smarter_csv/upgrade_wizard.html"
38
40
 
39
41
  spec.required_ruby_version = ">= 2.6.0"
40
42
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.2
4
+ version: 1.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilo Sloboda
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-05-21 00:00:00.000000000 Z
10
+ date: 2026-05-27 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  SmarterCSV is a high-performance CSV reader and writer for Ruby focused on
@@ -39,6 +39,8 @@ files:
39
39
  - LICENSE.txt
40
40
  - README.md
41
41
  - Rakefile
42
+ - UPGRADING.md
43
+ - docs/.nojekyll
42
44
  - docs/_introduction.md
43
45
  - docs/bad_row_quarantine.md
44
46
  - docs/basic_read_api.md
@@ -63,6 +65,8 @@ files:
63
65
  - docs/releases/1.17.0/performance_notes.md
64
66
  - docs/row_col_sep.md
65
67
  - docs/ruby_csv_pitfalls.md
68
+ - docs/upgrade_path.json
69
+ - docs/upgrade_wizard.html
66
70
  - docs/value_converters.md
67
71
  - docs/warnings.md
68
72
  - ext/smarter_csv/extconf.rb
@@ -101,6 +105,8 @@ metadata:
101
105
  changelog_uri: https://github.com/tilo/smarter_csv/blob/main/CHANGELOG.md
102
106
  documentation_uri: https://github.com/tilo/smarter_csv/tree/main/docs
103
107
  bug_tracker_uri: https://github.com/tilo/smarter_csv/issues
108
+ upgrade_uri: https://github.com/tilo/smarter_csv/blob/main/UPGRADING.md
109
+ upgrade_wizard_uri: https://tilo.github.io/smarter_csv/upgrade_wizard.html
104
110
  rdoc_options: []
105
111
  require_paths:
106
112
  - lib