summaryrefslogtreecommitdiff
path: root/lib/csv
AgeCommit message (Collapse)Author
2023-10-03[ruby/csv] Add CSV::InvalidEncodingErrorKosuke Shibata
(https://github.com/ruby/csv/pull/287) To handle encoding errors in CSV parsing with the appropriate error class https://github.com/ruby/csv/commit/68b44887e5
2023-06-28[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e090da19b4
2023-06-28[ruby/csv] Fix a bug that the same line is used multiple timesSutou Kouhei
GitHub: fix https://github.com/ruby/csv/pull/279 It's happen when: * `keep_start`/`keep_{drop,back}` are nested. (e.g.: `strip: true, skip_lines: /.../`) * Row separator is `\r\n`. * `InputScanner` is used. (Small input doesn't use `InputScanner`) Reported by Gabriel Nagy. Thanks!!! https://github.com/ruby/csv/commit/183635ab56
2023-06-28[ruby/csv] Remove nonexistent variableSutou Kouhei
https://github.com/ruby/csv/commit/bfbd6bbf6f
2023-06-28[ruby/csv] parser: add one more traceSutou Kouhei
https://github.com/ruby/csv/commit/5df650be0c
2023-05-25[ruby/csv] Remove no longer required refinementsMau Magnaguagno
(https://github.com/ruby/csv/pull/250) Since PR #159, the minimum Ruby version is 2.5.0, a version which no longer requires refinements for String#delete_suffix?, String#match? and Regexp#match?. Notes: Merged: https://github.com/ruby/ruby/pull/7851
2023-02-21[ruby/csv] Remove unused @double_quote_character from ParserMau Magnaguagno
(https://github.com/ruby/csv/pull/273) https://github.com/ruby/csv/commit/e5622c53ae
2022-12-26[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/8606ee83e0 Notes: Merged: https://github.com/ruby/ruby/pull/7025
2022-12-09Merge csv-3.2.6Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/6890
2022-10-12[DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada
2022-10-12[DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada
2021-12-24[ruby/csv] Revert "parser: fix a keep bug that some texts may be dropped ↵Sutou Kouhei
unexpectedly" This reverts commit https://github.com/ruby/csv/commit/5c6523da0a61. This introduces another pbolem. We should try again later. https://github.com/ruby/csv/commit/43a1d6fff1 Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-12-24[ruby/csv] parser: use row separator explicitlySutou Kouhei
It will improve performance a bit. (But I haven't confirmed it yet...) https://github.com/ruby/csv/commit/06a65b0302 Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-12-24[ruby/csv] parser: fix a keep bug that some texts may be dropped unexpectedlySutou Kouhei
Ruby: [Bug #18245] [ruby-core:105587] Reported by Hassan Abdul Rehman. https://github.com/ruby/csv/commit/5c6523da0a Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-12-24[ruby/csv] Fix a bug that all of ARGF contents may not be consumedSutou Kouhei
GitHub: fix GH-228 Reported by Rafael Navaza. Thanks!!! https://github.com/ruby/csv/commit/81f595b6a1 Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-12-24[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e32b666731 Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-12-24[ruby/csv] Add handling for ambiguous parsing options ↵adamroyjones
(https://github.com/ruby/csv/pull/226) GitHub: fix GH-225 With Ruby 3.0.2 and csv 3.2.1, the file ```ruby require "csv" File.open("example.tsv", "w") { |f| f.puts("foo\t\tbar") } CSV.read("example.tsv", col_sep: "\t", strip: true) ``` produces the error ``` lib/csv/parser.rb:935:in `parse_quotable_robust': TODO: Meaningful message in line 1. (CSV::MalformedCSVError) ``` However, the CSV in this example is not malformed; instead, ambiguous options were provided to the parser. It is not obvious (to me) whether the string should be parsed as - `["foo\t\tbar"]`, - `["foo", "bar"]`, - `["foo", "", "bar"]`, or - `["foo", nil, "bar"]`. This commit adds code that raises an exception when this situation is encountered. Specifically, it checks if the column separator either ends with or starts with the characters that would be stripped away. This commit also adds unit tests and updates the documentation. https://github.com/ruby/csv/commit/cc317dd42d Notes: Merged: https://github.com/ruby/ruby/pull/5336
2021-10-24[ruby/csv] Add support for Ractor (https://github.com/ruby/csv/pull/218)rm155
https://github.com/ruby/csv/commit/a802690e11 Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] Use test-unit gem instead of test-framework of ruby repoSutou Kouhei
https://github.com/ruby/csv/commit/9c4add0d31 Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] CI: Stop coverage mesurementKenta Murata
https://github.com/ruby/csv/commit/5ff3b95018 Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] Use "\n" for the default row separator on Ruby 3.0 or laterSutou Kouhei
https://github.com/ruby/csv/commit/1f9cbc170e Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] Changed line ending handling to consider the combination \r\n as ↵Joakim Antman
a single entry when row is faulty (https://github.com/ruby/csv/pull/220) https://github.com/ruby/csv/commit/29cef9ea9d Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] Resolve CSV::Converters and HeaderConverters lazySutou Kouhei
It's for Ractor. If you want to use the built-in converters, you should call Ractor.make_shareable(CSV::Converters) and/or Ractor.make_shareable(CSV::HeaderConverters). https://github.com/ruby/csv/commit/b0b1325d6b Notes: Merged: https://github.com/ruby/ruby/pull/5010
2021-10-24[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/3025070cea Notes: Merged: https://github.com/ruby/ruby/pull/5010
2020-12-27[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/5855c017ef
2020-11-24[ruby/csv] Add support for \r\n with skip_lines: /...$/ againSutou Kouhei
GitHub: fix GH-194 Reported by Josef Šimánek. Thanks!!! https://github.com/ruby/csv/commit/fd86afe081 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e1b430d965 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Removed needless editorconfig file (#192)Hiroshi SHIBATA
https://github.com/ruby/csv/commit/5623dee00e Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Split recipes into three pages: parsing, generating, filtering (#184)Burdette Lamar
Co-authored-by: Sutou Kouhei <[email protected]> https://github.com/ruby/csv/commit/f0bab6a592 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Experimenting with recipes in CSV RDoc (#175)Burdette Lamar
https://github.com/ruby/csv/commit/01ffd0d2de Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for CSV::Row (#173)Burdette Lamar
https://github.com/ruby/csv/commit/99956c671d Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for CSV::Row (#171)Burdette Lamar
https://github.com/ruby/csv/commit/cced8d8de9 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for Row#[]= (#170)Burdette Lamar
https://github.com/ruby/csv/commit/744e83043f Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for Table::Row (#169)Burdette Lamar
https://github.com/ruby/csv/commit/70ed12c1aa Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Don't change initialize_copy's return valueSutou Kouhei
https://github.com/ruby/csv/commit/cf3b60db1c Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for CSV::Table (#165)Burdette Lamar
https://github.com/ruby/csv/commit/bce4b696a7 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for values_at, <<, and push (#164)Burdette Lamar
https://github.com/ruby/csv/commit/bb3eb242f2 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for Table#[] (#162)Burdette Lamar
* Enhanced RDoc for Table#[] * Enhanced RDoc for Table#[] https://github.com/ruby/csv/commit/5575ffc82e Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e7628e6930 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Disable stringio >= 0.1.3 dependencySutou Kouhei
If we have it, we can use the csv gem with a Rack application on Passenger. https://github.com/ruby/csv/commit/e0c7074a82 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-10-27Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada
2020-08-18Update the license for the default gems to dual licensesHiroshi SHIBATA
2020-07-21[ruby/csv] Bump minimum ruby version to 2.5.0 (#159)Gabriel Nagy
A dependency to stringio was added to csv, which requires Ruby version >= 2.5. Bump the gemspec version accordingly. https://github.com/ruby/csv/commit/bc5a26029f
2020-07-20[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/f9cd046d66 Notes: Merged: https://github.com/ruby/ruby/pull/3335
2020-07-20[ruby/csv] Require stringio 0.1.3 or laterSutou Kouhei
https://github.com/ruby/csv/commit/09dd9f2771 Notes: Merged: https://github.com/ruby/ruby/pull/3335
2020-07-20[ruby/csv] force_quotes: add support for specifying the target indexes or namesSutou Kouhei
GitHub: fix GH-153 Reported by Aleksandr. Thanks!!! https://github.com/ruby/csv/commit/8812c58a26 Notes: Merged: https://github.com/ruby/ruby/pull/3332
2020-07-20[ruby/csv] Fix an error for `CSV.open` (#131)Koichi ITO
Follow up to https://github.com/ruby/csv/pull/130/files#r434885191. This PR fixes `ArgumentError` for `CSV.open` when processing invalid byte sequence in UTF-8. https://github.com/ruby/csv/commit/a4b528c209 Notes: Merged: https://github.com/ruby/ruby/pull/3332
2020-07-20[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/c6577e5b6e Notes: Merged: https://github.com/ruby/ruby/pull/3332
2020-07-20[ruby/csv] Add missing document files to .gemSutou Kouhei
GitHub: fix GH-125 Reported by joast. Thanks!!! https://github.com/ruby/csv/commit/bf41fa94cf Notes: Merged: https://github.com/ruby/ruby/pull/3332
2020-07-20[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/936f15f3cd Notes: Merged: https://github.com/ruby/ruby/pull/3332