fastcsv 0.0.6 → 0.0.8
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.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.travis.yml +5 -3
- data/.yardopts +3 -0
- data/Gemfile +1 -1
- data/README.md +1 -2
- data/Rakefile +5 -5
- data/ext/fastcsv/fastcsv.c +545 -1129
- data/ext/fastcsv/fastcsv.rl +5 -5
- data/fastcsv.gemspec +5 -3
- data/lib/fastcsv.rb +1 -1
- data/spec/fastcsv_spec.rb +16 -1
- metadata +26 -27
- data/USAGE +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b513ec5127ee6796ccdd956f54b390ff99d2dc8b19575263b069c15ee0261669
|
4
|
+
data.tar.gz: 3b86ed1a974a255ac4f89cd5ef92a7ec1c2c6b3a6b35a3d51b74c6be8ffb2346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad6595400d0676d7b180314d859d05d4e059b267b6ff8bb4d3db740b4ef256cac4b32275c498acea32e0393bd353f1d2299b1f60167ae6dc94fa87888505139
|
7
|
+
data.tar.gz: 42ac4d1e4c4ac8946095d7e76326d6b1d006acb9277bc29190edccc8c0702d63910901d8fbdc0871f47c982be6edc5e0a1557f71af77530d962b08c7e7ef8b59
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
3
|
+
cache: bundler
|
2
4
|
rvm:
|
3
5
|
- 1.9.3
|
4
6
|
- 2.0.0
|
5
7
|
- 2.1.0
|
6
8
|
- 2.2.0
|
7
9
|
before_script:
|
8
|
-
- rake compile
|
10
|
+
- bundle exec rake compile
|
9
11
|
script:
|
10
|
-
- rake
|
12
|
+
- bundle exec rake
|
11
13
|
# The CSV tests in test/ are specific to Ruby 2.1.0.
|
12
|
-
- if [ $TRAVIS_RUBY_VERSION = '2.1.0' ]; then rspec test/runner.rb test/csv; fi
|
14
|
+
- if [ $TRAVIS_RUBY_VERSION = '2.1.0' ]; then bundle exec rspec test/runner.rb test/csv; fi
|
data/.yardopts
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/fastcsv)
|
4
4
|
[](https://travis-ci.org/jpmckinney/fastcsv)
|
5
|
-
[](https://gemnasium.com/jpmckinney/fastcsv)
|
6
5
|
[](https://coveralls.io/r/jpmckinney/fastcsv)
|
7
6
|
[](https://codeclimate.com/github/jpmckinney/fastcsv)
|
8
7
|
|
@@ -41,7 +40,7 @@ end
|
|
41
40
|
FastCSV can be used as a drop-in replacement for [CSV](http://ruby-doc.org/stdlib-2.1.1/libdoc/csv/rdoc/CSV.html) (replace `CSV` with `FastCSV`) except:
|
42
41
|
|
43
42
|
* The `:row_sep` option is ignored. The default `:auto` is implemented [#9](https://github.com/jpmckinney/fastcsv/issues/9).
|
44
|
-
* The `:col_sep` option must be a single-byte string, like the default `,` [#8](https://github.com/jpmckinney/fastcsv/issues/8). [Python](https://docs.python.org/3/library/csv.html#dialects-and-formatting-parameters) and [PHP](http://php.net/fgetcsv) support single-byte delimiters only, as do the major libraries in [JavaScript](http://papaparse.com/docs), [Java](http://commons.apache.org/proper/commons-csv/apidocs/index.html), [C](https://github.com/robertpostill/libcsv/blob/master/FAQ), [Objective-C](https://github.com/davedelong/CHCSVParser#parsing) and [Perl](http://search.cpan.org/~makamaka/Text-CSV-1.32/lib/Text/CSV.pm). A major [Node](https://github.com/wdavidw/node-csv-parse/issues/26) library supports multi-byte delimiters.
|
43
|
+
* The `:col_sep` option must be a single-byte string, like the default `,` [#8](https://github.com/jpmckinney/fastcsv/issues/8). [Python](https://docs.python.org/3/library/csv.html#dialects-and-formatting-parameters) and [PHP](http://php.net/fgetcsv) support single-byte delimiters only, as do the major libraries in [JavaScript](http://papaparse.com/docs), [Java](http://commons.apache.org/proper/commons-csv/apidocs/index.html), [C](https://github.com/robertpostill/libcsv/blob/master/FAQ), [Objective-C](https://github.com/davedelong/CHCSVParser#parsing) and [Perl](http://search.cpan.org/~makamaka/Text-CSV-1.32/lib/Text/CSV.pm). A major [Node](https://github.com/wdavidw/node-csv-parse/issues/26) library supports multi-byte delimiters. The [CSV Dialect Description Format](http://dataprotocols.org/csv-dialect/) allows only single-byte delimiters.
|
45
44
|
* If FastCSV raises an error, you can't continue reading [#3](https://github.com/jpmckinney/fastcsv/issues/3). Its error messages don't perfectly match those of CSV.
|
46
45
|
|
47
46
|
A few minor caveats:
|
data/Rakefile
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
-
require 'rake/extensiontask'
|
5
|
-
Rake::ExtensionTask.new('fastcsv') do |ext|
|
6
|
-
ext.lib_dir = 'lib/fastcsv'
|
7
|
-
end
|
8
|
-
|
9
4
|
require 'rspec/core/rake_task'
|
10
5
|
RSpec::Core::RakeTask.new(:spec)
|
11
6
|
|
@@ -19,3 +14,8 @@ rescue LoadError
|
|
19
14
|
abort 'YARD is not available. In order to run yard, you must: gem install yard'
|
20
15
|
end
|
21
16
|
end
|
17
|
+
|
18
|
+
require 'rake/extensiontask'
|
19
|
+
Rake::ExtensionTask.new('fastcsv') do |ext|
|
20
|
+
ext.lib_dir = 'lib/fastcsv'
|
21
|
+
end
|