fastcsv 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
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: 9961fdfc11b53ad67c47fd690868d7891e7416cc8ac4c157930d62f1c62f1fad
4
+ data.tar.gz: 9137429193c843e7d9c04174b03e213ca37aec32febbd3e07c0935a30514ea04
5
5
  SHA512:
6
- metadata.gz: 70393b8705405bb70d2571aa63b7ac3925f2e194bfde800075a4ff370416c4d2835de0f6f4800925a9927cbed40d4a6f5773f099561242d5584e3e5341daef71
7
- data.tar.gz: 8c3897c6523b5c602ea141e67eabff1336d1cf759ce15ae4fe0093e7a0aa72ffdc5a905179b13e04161730983e68a8c3061bc01ba6d1c1b6f31f2981e82977b3
6
+ metadata.gz: fb880cd945cb1653c0ab1b3d981a5ab47360f640964a70bebddf9b0795afba59de0a8ab8e993955cb844746241518fff4f5f2601c9e2b1cebf4a92f0e91ab2a1
7
+ data.tar.gz: 2e61c0bfeb2e4647874358d22d74fd07bbb1b010baea6d58394ef45b7a632862bc765e8e1b859bb0d1d118bba471418f6cb58dd1d618a1bd9fe4ea8a09ff38d9
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