fastcsv 0.0.5 → 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: a4bd98782c7284ce6b9041b789f9048aa7d9772b
4
- data.tar.gz: b970c8d7cd54e52aaa56ab5b88f61b575a7dd811
2
+ SHA256:
3
+ metadata.gz: 9961fdfc11b53ad67c47fd690868d7891e7416cc8ac4c157930d62f1c62f1fad
4
+ data.tar.gz: 9137429193c843e7d9c04174b03e213ca37aec32febbd3e07c0935a30514ea04
5
5
  SHA512:
6
- metadata.gz: 407c12a75c2e24a14f0f65d144e9b525c79ae8c531b8dcaa67f12520083a6474a6af9ceebcf2eecaed86516730a6346a9c3323d7f0b2c2c63e9c50a197f18f5b
7
- data.tar.gz: 8b8880a373dc298da5e40c7b038ac04b9156c004222ba8ba7f315354b008805388da72b9e954d450bda6ccddec85559aaedc2e076354646c5b62b17bdc8eee94
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
 
@@ -40,9 +39,9 @@ end
40
39
 
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
- * 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)
45
- * 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.
42
+ * The `:row_sep` option is ignored. The default `:auto` is implemented [#9](https://github.com/jpmckinney/fastcsv/issues/9).
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.
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:
48
47
 
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