summaryrefslogtreecommitdiff
path: root/lib/csv
Commit message (Collapse)AuthorAgeFilesLines
* Merge csv-3.2.6Hiroshi SHIBATA2022-12-097-254/+926
|
* [DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada2022-10-121-1/+1
|
* [DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada2022-10-121-1/+1
|
* [ruby/csv] Revert "parser: fix a keep bug that some texts may be dropped ↵Sutou Kouhei2021-12-241-51/+34
| | | | | | | | | | 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
* [ruby/csv] parser: use row separator explicitlySutou Kouhei2021-12-241-3/+5
| | | | | | It will improve performance a bit. (But I haven't confirmed it yet...) https://github.com/ruby/csv/commit/06a65b0302
* [ruby/csv] parser: fix a keep bug that some texts may be dropped unexpectedlySutou Kouhei2021-12-241-34/+51
| | | | | | | | Ruby: [Bug #18245] [ruby-core:105587] Reported by Hassan Abdul Rehman. https://github.com/ruby/csv/commit/5c6523da0a
* [ruby/csv] Fix a bug that all of ARGF contents may not be consumedSutou Kouhei2021-12-241-1/+4
| | | | | | | | GitHub: fix GH-228 Reported by Rafael Navaza. Thanks!!! https://github.com/ruby/csv/commit/81f595b6a1
* [ruby/csv] Bump versionSutou Kouhei2021-12-241-1/+1
| | | | https://github.com/ruby/csv/commit/e32b666731
* [ruby/csv] Add handling for ambiguous parsing options ↵adamroyjones2021-12-241-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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
* [ruby/csv] Add support for Ractor (https://github.com/ruby/csv/pull/218)rm1552021-10-242-6/+7
| | | | https://github.com/ruby/csv/commit/a802690e11
* [ruby/csv] Use test-unit gem instead of test-framework of ruby repoSutou Kouhei2021-10-241-0/+1
| | | | https://github.com/ruby/csv/commit/9c4add0d31
* [ruby/csv] CI: Stop coverage mesurementKenta Murata2021-10-241-1/+0
| | | | https://github.com/ruby/csv/commit/5ff3b95018
* [ruby/csv] Use "\n" for the default row separator on Ruby 3.0 or laterSutou Kouhei2021-10-243-2/+35
| | | | https://github.com/ruby/csv/commit/1f9cbc170e
* [ruby/csv] Changed line ending handling to consider the combination \r\n as ↵Joakim Antman2021-10-241-4/+4
| | | | | | a single entry when row is faulty (https://github.com/ruby/csv/pull/220) https://github.com/ruby/csv/commit/29cef9ea9d
* [ruby/csv] Resolve CSV::Converters and HeaderConverters lazySutou Kouhei2021-10-241-2/+6
| | | | | | | | 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
* [ruby/csv] Bump versionSutou Kouhei2021-10-241-1/+1
| | | | https://github.com/ruby/csv/commit/3025070cea
* [ruby/csv] Bump versionSutou Kouhei2020-12-271-1/+1
| | | | https://github.com/ruby/csv/commit/5855c017ef
* [ruby/csv] Add support for \r\n with skip_lines: /...$/ againSutou Kouhei2020-11-241-0/+1
| | | | | | | | GitHub: fix GH-194 Reported by Josef Šimánek. Thanks!!! https://github.com/ruby/csv/commit/fd86afe081
* [ruby/csv] Bump versionSutou Kouhei2020-11-241-1/+1
| | | | https://github.com/ruby/csv/commit/e1b430d965
* [ruby/csv] Removed needless editorconfig file (#192)Hiroshi SHIBATA2020-11-241-0/+0
| | | | https://github.com/ruby/csv/commit/5623dee00e
* [ruby/csv] Split recipes into three pages: parsing, generating, filtering (#184)Burdette Lamar2020-11-241-1/+8
| | | | | | Co-authored-by: Sutou Kouhei <kou@clear-code.com> https://github.com/ruby/csv/commit/f0bab6a592
* [ruby/csv] Experimenting with recipes in CSV RDoc (#175)Burdette Lamar2020-11-241-0/+1
| | | | https://github.com/ruby/csv/commit/01ffd0d2de
* [ruby/csv] Enhanced RDoc for CSV::Row (#173)Burdette Lamar2020-11-241-10/+44
| | | | https://github.com/ruby/csv/commit/99956c671d
* [ruby/csv] Enhanced RDoc for CSV::Row (#171)Burdette Lamar2020-11-242-31/+119
| | | | https://github.com/ruby/csv/commit/cced8d8de9
* [ruby/csv] Enhanced RDoc for Row#[]= (#170)Burdette Lamar2020-11-241-10/+47
| | | | https://github.com/ruby/csv/commit/744e83043f
* [ruby/csv] Enhanced RDoc for Table::Row (#169)Burdette Lamar2020-11-241-26/+100
| | | | https://github.com/ruby/csv/commit/70ed12c1aa
* [ruby/csv] Don't change initialize_copy's return valueSutou Kouhei2020-11-241-1/+2
| | | | https://github.com/ruby/csv/commit/cf3b60db1c
* [ruby/csv] Enhanced RDoc for CSV::Table (#165)Burdette Lamar2020-11-241-18/+101
| | | | https://github.com/ruby/csv/commit/bce4b696a7
* [ruby/csv] Enhanced RDoc for values_at, <<, and push (#164)Burdette Lamar2020-11-241-15/+74
| | | | https://github.com/ruby/csv/commit/bb3eb242f2
* [ruby/csv] Enhanced RDoc for Table#[] (#162)Burdette Lamar2020-11-241-8/+85
| | | | | | | | * Enhanced RDoc for Table#[] * Enhanced RDoc for Table#[] https://github.com/ruby/csv/commit/5575ffc82e
* [ruby/csv] Bump versionSutou Kouhei2020-11-241-1/+1
| | | | https://github.com/ruby/csv/commit/e7628e6930
* [ruby/csv] Disable stringio >= 0.1.3 dependencySutou Kouhei2020-11-241-1/+1
| | | | | | | If we have it, we can use the csv gem with a Rack application on Passenger. https://github.com/ruby/csv/commit/e0c7074a82
* Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada2020-10-271-1/+1
|
* Update the license for the default gems to dual licensesHiroshi SHIBATA2020-08-181-1/+1
|
* [ruby/csv] Bump minimum ruby version to 2.5.0 (#159)Gabriel Nagy2020-07-211-1/+1
| | | | | | 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
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/f9cd046d66
* [ruby/csv] Require stringio 0.1.3 or laterSutou Kouhei2020-07-201-0/+1
| | | | https://github.com/ruby/csv/commit/09dd9f2771
* [ruby/csv] force_quotes: add support for specifying the target indexes or namesSutou Kouhei2020-07-201-3/+44
| | | | | | | | GitHub: fix GH-153 Reported by Aleksandr. Thanks!!! https://github.com/ruby/csv/commit/8812c58a26
* [ruby/csv] Fix an error for `CSV.open` (#131)Koichi ITO2020-07-201-1/+1
| | | | | | | | 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
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/c6577e5b6e
* [ruby/csv] Add missing document files to .gemSutou Kouhei2020-07-201-13/+24
| | | | | | | | GitHub: fix GH-125 Reported by joast. Thanks!!! https://github.com/ruby/csv/commit/bf41fa94cf
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/936f15f3cd
* [ruby/csv] test scanner: specify encoding explicitlySutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/6e83a1de9c
* [ruby/csv] Fix a bug that write_nil_value or write_empty_value don't work ↵Sutou Kouhei2020-07-201-1/+1
| | | | | | | | | | with non String GitHub: fix GH-123 Reported by asm256. Thanks!!! https://github.com/ruby/csv/commit/b4492139be
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/edc6cb9022
* [ruby/csv] Fix a parse bug when split character exists in middle of column valueSutou Kouhei2020-07-201-3/+8
| | | | | | | | GitHub: fix #115 Reported by TOMITA Masahiro. Thanks!!! https://github.com/ruby/csv/commit/398b3564c5
* [ruby/csv] Do not loop forever when skip_lines regexp matches zero length ↵Mike MacDonald2020-07-201-1/+1
| | | | | | | | | | | | | | with anchors (#110) * Do not loop forever when skip_lines regexp matches zero length with anchors * Remove needless white spaces * Add missing eos check in skip_needless_lines * Simplify test https://github.com/ruby/csv/commit/3b15d4a3e8
* [ruby/csv] Make CSV::Row#dup return a usable Row (#108)Jim Kane2020-07-201-1/+1
| | | | | | | | | | | | | | * Make CSV::Row#dup return a usable Row Previously, calling `dup` on a `CSV::Row` object yielded an object whose copy was too shallow. Changing the clone's fields would also change the fields on the source. This change makes the clone more distinct from the source, so that changes can be made to its fields without affecting the source. * Simplify https://github.com/ruby/csv/commit/64a1ea06fc
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/284ce810bc
* Import CSV 3.1.2 (#2547)Sutou Kouhei2019-10-126-50/+113
|