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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 580efd5d55a6c7af840eb1b8a2d4a4b004744791
4
- data.tar.gz: 4b35d9194465cda927956f1dcc4d19c8857c1ebf
2
+ SHA256:
3
+ metadata.gz: b513ec5127ee6796ccdd956f54b390ff99d2dc8b19575263b069c15ee0261669
4
+ data.tar.gz: 3b86ed1a974a255ac4f89cd5ef92a7ec1c2c6b3a6b35a3d51b74c6be8ffb2346
5
5
  SHA512:
6
- metadata.gz: 70393b8705405bb70d2571aa63b7ac3925f2e194bfde800075a4ff370416c4d2835de0f6f4800925a9927cbed40d4a6f5773f099561242d5584e3e5341daef71
7
- data.tar.gz: 8c3897c6523b5c602ea141e67eabff1336d1cf759ce15ae4fe0093e7a0aa72ffdc5a905179b13e04161730983e68a8c3061bc01ba6d1c1b6f31f2981e82977b3
6
+ metadata.gz: 6ad6595400d0676d7b180314d859d05d4e059b267b6ff8bb4d3db740b4ef256cac4b32275c498acea32e0393bd353f1d2299b1f60167ae6dc94fa87888505139
7
+ data.tar.gz: 42ac4d1e4c4ac8946095d7e76326d6b1d006acb9277bc29190edccc8c0702d63910901d8fbdc0871f47c982be6edc5e0a1557f71af77530d962b08c7e7ef8b59
data/.gitignore CHANGED
@@ -6,3 +6,5 @@ doc/*
6
6
  pkg/*
7
7
  tmp/*
8
8
  lib/fastcsv/fastcsv.bundle
9
+ /coverage/
10
+ /vendor/
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
@@ -0,0 +1,3 @@
1
+ --hide-void-return
2
+ --embed-mixin ClassMethods
3
+ --markup=markdown
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "https://rubygems.org/"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in the gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/fastcsv.svg)](https://badge.fury.io/rb/fastcsv)
4
4
  [![Build Status](https://secure.travis-ci.org/jpmckinney/fastcsv.png)](https://travis-ci.org/jpmckinney/fastcsv)
5
- [![Dependency Status](https://gemnasium.com/jpmckinney/fastcsv.png)](https://gemnasium.com/jpmckinney/fastcsv)
6
5
  [![Coverage Status](https://coveralls.io/repos/jpmckinney/fastcsv/badge.png)](https://coveralls.io/r/jpmckinney/fastcsv)
7
6
  [![Code Climate](https://codeclimate.com/github/jpmckinney/fastcsv.png)](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