fastercsv 1.4.0 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -2,6 +2,43 @@
2
2
 
3
3
  Below is a complete listing of changes for each revision of FasterCSV.
4
4
 
5
+ == 1.5.5
6
+
7
+ * Removed setup.rb due to licensing concerns.
8
+ * Updated and clarified Copyright notices.
9
+ * Improved stray quoting error message (patch by Edvard Majakari).
10
+ * Improved line ending detection algorithm (patch by Alexey Smolianinov).
11
+
12
+ == 1.5.4
13
+
14
+ * Improved test coverage for the parser.
15
+ * Improved documentation.
16
+ * Fixed a bug that prevented <tt>^</tt> from being used as <tt>:quote_char</tt>.
17
+ * Switched from abort() to throwing exceptions on Ruby 1.9.
18
+
19
+ == 1.5.3
20
+
21
+ * A bug fix from Timothy Elliott to return the new parser to its strict quote
22
+ tolerance.
23
+
24
+ == 1.5.2
25
+
26
+ * A bug fix to allow IO Exceptions to reach the calling code from Moses Hohman.
27
+ * Added support for <tt>:write_headers => false</tt> to Table.to_csv().
28
+
29
+ == 1.5.1
30
+
31
+ * A bug fix for deleting blank Table rows from Andy Hartford.
32
+ * Added gem build instructions.
33
+
34
+ == 1.5.0
35
+
36
+ * The main parser has been rewritten by Timothy Elliott to avoid big input
37
+ issues with Ruby 1.8's regex engine. This makes FasterCSV handle more inputs
38
+ gracefully.
39
+ * FasterCSV will now exit with a notice to upgrade if required in Ruby 1.9.
40
+ * Included a missing file so the tests will run in source packages.
41
+
5
42
  == 1.4.0
6
43
 
7
44
  * Added encoding support patch from Michael Reinsch.
data/INSTALL CHANGED
@@ -14,13 +14,11 @@ version, simply enter the following into your command prompt:
14
14
  You must have RubyGems[http://rubyforge.org/projects/rubygems/] installed for
15
15
  the above to work.
16
16
 
17
- == Installing Manually
17
+ If you want to build the gem locally, make sure you have
18
+ Rake[http://rubyforge.org/projects/rake/] installed then run the following
19
+ command:
18
20
 
19
- Download the latest version of FasterCSV from the
20
- {RubyForge project page}[http://rubyforge.org/frs/?group_id=1102]. Navigate to
21
- the root project directory and enter:
22
-
23
- $ sudo ruby setup.rb
21
+ $ rake package
24
22
 
25
23
  == Running the Tests
26
24
 
data/LICENSE CHANGED
@@ -1,5 +1,7 @@
1
1
  = License Terms
2
2
 
3
+ This project is copyright Gray Productions Software Inc. and Ubiquitous Business Technology, Inc. with all rights reserved.
4
+
3
5
  Distributed under the user's choice of the {GPL Version 2}[http://www.gnu.org/licenses/old-licenses/gpl-2.0.html] (see COPYING for details) or the
4
6
  {Ruby software license}[http://www.ruby-lang.org/en/LICENSE.txt] by
5
7
  James Edward Gray II.
data/Rakefile CHANGED
@@ -12,14 +12,15 @@ task :default => [:test]
12
12
 
13
13
  Rake::TestTask.new do |test|
14
14
  test.libs << "test"
15
- test.test_files = [ "test/ts_all.rb" ]
16
- test.verbose = true
15
+ test.test_files = %w[test/ts_all.rb]
16
+ test.verbose = true
17
17
  end
18
18
 
19
19
  Rake::RDocTask.new do |rdoc|
20
20
  rdoc.main = "README"
21
21
  rdoc.rdoc_dir = "doc/html"
22
22
  rdoc.title = "FasterCSV Documentation"
23
+ rdoc.options = %w[--charset utf-8]
23
24
  rdoc.rdoc_files.include( "README", "INSTALL",
24
25
  "TODO", "CHANGELOG",
25
26
  "AUTHORS", "COPYING",
@@ -45,8 +46,6 @@ task :benchmark do
45
46
  path = "test/test_data.csv"
46
47
  sh %Q{time ruby -r csv -e } +
47
48
  %Q{'#{TESTS}.times { CSV.foreach("#{path}") { |row| } }'}
48
- sh %Q{time ruby -r lightcsv -e } +
49
- %Q{'#{TESTS}.times { LightCsv.foreach("#{path}") { |row| } }'}
50
49
  sh %Q{time ruby -r lib/faster_csv -e } +
51
50
  %Q{'#{TESTS}.times { FasterCSV.foreach("#{path}") { |row| } }'}
52
51
  end
@@ -58,12 +57,12 @@ spec = Gem::Specification.new do |spec|
58
57
  spec.platform = Gem::Platform::RUBY
59
58
  spec.summary = "FasterCSV is CSV, but faster, smaller, and cleaner."
60
59
 
61
- spec.test_suite_file = "test/ts_all.rb"
60
+ spec.test_files = %w[test/ts_all.rb]
62
61
  spec.files = Dir.glob("{lib,test,examples}/**/*.rb").
63
62
  reject { |item| item.include?(".svn") } +
64
63
  Dir.glob("{test,examples}/**/*.csv").
65
64
  reject { |item| item.include?(".svn") } +
66
- ["Rakefile", "setup.rb"]
65
+ %w[Rakefile test/line_endings.gz]
67
66
 
68
67
  spec.has_rdoc = true
69
68
  spec.extra_rdoc_files = %w[ AUTHORS COPYING README INSTALL TODO CHANGELOG
@@ -3,7 +3,7 @@
3
3
  # shortcut_interface.rb
4
4
  #
5
5
  # Created by James Edward Gray II on 2006-04-01.
6
- # Copyright 2006 Gray Productions. All rights reserved.
6
+ # Copyright 2012 Gray Productions. All rights reserved.
7
7
  #
8
8
  # Feature implementation and example code by Ara.T.Howard.
9
9