aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv
Commit message (Collapse)AuthorAgeFilesLines
* Rename RubyVM::MJIT to RubyVM::JITTakashi Kokubun2021-01-131-1/+1
| | | | | | | | because the name "MJIT" is an internal code name, it's inconsistent with --jit while they are related to each other, and I want to discourage future JIT implementation-specific (e.g. MJIT-specific) APIs by this rename. [Feature #17490]
* [ruby/csv] Add support for \r\n with skip_lines: /...$/ againSutou Kouhei2020-11-241-0/+6
| | | | | | | | GitHub: fix GH-194 Reported by Josef Šimánek. Thanks!!! https://github.com/ruby/csv/commit/fd86afe081
* [ruby/csv] Fix CSV.filter to preserve headers (#174)Burdette Lamar2020-11-241-1/+66
| | | | | | Co-authored-by: Sutou Kouhei <kou@clear-code.com> https://github.com/ruby/csv/commit/203c5e0574
* [ruby/csv] CSV.generate_line: use the encoding of the first non ASCII field ↵Sutou Kouhei2020-07-201-0/+12
| | | | | | | | as the expected encoding See also: https://github.com/ruby/stringio/issues/13#issuecomment-660543554 https://github.com/ruby/csv/commit/004cf49d18
* [ruby/csv] force_quotes: add support for specifying the target indexes or namesSutou Kouhei2020-07-201-0/+78
| | | | | | | | GitHub: fix GH-153 Reported by Aleksandr. Thanks!!! https://github.com/ruby/csv/commit/8812c58a26
* [ruby/csv] Add `invalid: :replace` for `CSV.open` (#130)Koichi ITO2020-07-201-0/+30
| | | | | This PR adds `invalid: :replace` for `CSV.open`. It is a PR similar to #129. https://github.com/ruby/csv/commit/5bf687341c
* [ruby/csv] Fix an error for `CSV.open` (#131)Koichi ITO2020-07-201-0/+10
| | | | | | | | 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] Add `undef: :replace` for `CSV.open` (#129)Koichi ITO2020-07-201-0/+22
| | | | | | | | | This PR adds `undef: :replace` option for `CSV.open`. `File.open` has `undef: :replace` option, but `CSV.open` does not. It would be convenient if `CSV.open` could have a shortcut by having `undef: :replace` option. https://github.com/ruby/csv/commit/cff8b18480
* [ruby/csv] Fix a bug that write_nil_value or write_empty_value don't work ↵Sutou Kouhei2020-07-201-4/+4
| | | | | | | | | | with non String GitHub: fix GH-123 Reported by asm256. Thanks!!! https://github.com/ruby/csv/commit/b4492139be
* [ruby/csv] Revert "test: use binary mode explicitly for Ruby 2.7"Sutou Kouhei2020-07-201-1/+1
| | | | | | | | This reverts commit 736174d28413a4c36630b0daf2f170c8d2fc9abe. It doesn't solve anything. https://github.com/ruby/csv/commit/0ee3bdd0d3
* [ruby/csv] test: use binary mode explicitly for Ruby 2.7Sutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/736174d284
* [ruby/csv] Fix a parse bug when split character exists in middle of column valueSutou Kouhei2020-07-201-0/+5
| | | | | | | | GitHub: fix #115 Reported by TOMITA Masahiro. Thanks!!! https://github.com/ruby/csv/commit/398b3564c5
* [ruby/csv] Ensuring StringIO's encoding in CSV.generate (#111)Seiei Miyagi2020-07-203-24/+36
| | | | https://github.com/ruby/csv/commit/dbf55ef008
* [ruby/csv] Do not loop forever when skip_lines regexp matches zero length ↵Mike MacDonald2020-07-201-0/+7
| | | | | | | | | | | | | | 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-0/+3
| | | | | | | | | | | | | | * 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] Suppress warningsSutou Kouhei2020-07-201-2/+16
| | | | https://github.com/ruby/csv/commit/b37df55f46
* Revert "test/csv/write/test_general.rb: suppress warnings"Nobuyoshi Nakada2020-07-201-4/+0
| | | | | This reverts commit 375cf129189f32f7be76ac525035bcde691a63e7, to sync csv from the upstream.
* Removed trailing spaces [ci skip]Nobuyoshi Nakada2020-05-141-1/+1
|
* Fixed for older versionsNobuyoshi Nakada2020-02-261-1/+4
| | | | | Fix up 66d1900423e6fb9774c2fe72dba8c2968b54d7ab, `RubyVM::MJIT` is available since ruby 2.6.
* Increase timeout for CSV test with --jit-waitTakashi Kokubun2020-02-251-1/+2
| | | | | To prevent CI failures like http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995
* Remove unneeded exec bits from some filesDavid Rodríguez2019-11-095-0/+0
| | | | | | | | | | | | | I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ```
* test/csv/write/test_general.rb: suppress warningsYusuke Endoh2019-10-151-0/+4
| | | | of "setting Encoding.default_internal".
* Import CSV 3.1.2 (#2547)Sutou Kouhei2019-10-126-16/+68
|
* Fix keyword argument warnings in the tests from Class#newJeremy Evans2019-09-062-3/+3
| | | | This were previously hidden because calls from C were not warned.
* Fix remaining warning issues in the tests due to keyword argument separationJeremy Evans2019-08-302-11/+11
|
* Fix keyword argument separation warnings in testJeremy Evans2019-08-302-7/+7
|
* Aliases capture_output to capture_io for test-unit compatiblity.Hiroshi SHIBATA2019-08-081-1/+1
|
* [ruby/csv] Fix a bug that strip: true removes newlinesKouhei Sutou2019-07-141-0/+30
| | | | https://github.com/ruby/csv/commit/5540d35a30
* [ruby/csv] Don't raise on eof?Kouhei Sutou2019-07-141-0/+3
| | | | | | | | GitHub: fix #86 Reported by krororo. Thanks!!! https://github.com/ruby/csv/commit/5a8d9d9297
* Restore support library for only test files that are digest and csv.Hiroshi SHIBATA2019-07-091-1/+1
|
* with_different_ofs.rb has been moved tooNobuyoshi Nakada2019-07-021-1/+1
|
* Removed unused variablesNobuyoshi Nakada2019-06-301-1/+0
|
* Import CSV 3.0.9kou2019-04-151-1/+1
| | | | | | | This fixes test failures on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import CSV 3.0.8kou2019-04-1416-534/+993
| | | | | | | | This includes performance improvements and backward incompatibility fixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Upgrade CSV to 3.0.4kou2019-01-2519-511/+788
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trailing spaces [ci skip]nobu2018-12-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import CSV 3.0.2kou2018-12-235-62/+240
| | | | | | | | This includes performance improvement especially writing. Writing is about 2 times faster. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge csv-3.0.0 from ruby/csv repository.hsbt2018-09-056-98/+126
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge csv-1.0.2 from upstream.hsbt2018-05-0910-43/+302
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/csv/test_features.rb: enable accidentally-disabled assertionsmame2018-04-171-10/+8
| | | | | | CSV.new does not yield the instance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_features.rb: fix unused variable warningk0kubun2017-09-261-1/+1
| | | | | | test/csv/test_features.rb:357: warning: assigned but unused variable - csv git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed regression to convert blank value at r45497.hsbt2017-08-221-0/+9
| | | | | | [Bug #11126][ruby-core:69088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Gracefully handle CSV IO when file descriptor closed.hsbt2017-08-221-0/+8
| | | | | | [Bug #10504][ruby-core:66240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed equality method fails when given the object that doesn't support table ↵hsbt2017-08-221-0/+3
| | | | | | | | method. [Bug #12422][ruby-core:75707] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed to write_headers option behavior when given no rows.hsbt2017-08-221-0/+13
| | | | | | [Bug #9988][ruby-core:63375] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Escape skip_lines string before convert to Regexp.hsbt2017-08-221-0/+9
| | | | | | | | It ignored all of lines when given Regexp special characters. [Feature #9147][ruby-core:58549] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* csv.rb: fix incompatibility introduced in r59428glass2017-07-282-0/+12
| | | | | | | | | | | | | * lib/csv.rb: fix incompatibility introduced in r59428. CSV.new takes options as keyword arguments. * test/csv/test_features.rb: add a test to ensure it raises error againt unknown options * test/csv/test_features.rb: add a test to ensure row_sep option is properly applied git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* csv.rb: use keyword parametersglass2017-07-271-6/+0
| | | | | | | | * lib/csv.rb: usb keyword parameters to receive options * test/csv/test_features.rb: remove a test for checking options git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Strip punctuation from CSV headers in symbol converter.hsbt2017-05-161-0/+7
| | | | | | Patch by @cllns. [Fix GH-957] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added accessor of original line when parsing.hsbt2017-05-161-0/+14
| | | | | | [Feature #11865][ruby-core:72452][fix GH-1170] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e