fastercsv 1.4.0 → 1.5.5
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.
- data/CHANGELOG +37 -0
- data/INSTALL +4 -6
- data/LICENSE +2 -0
- data/Rakefile +5 -6
- data/examples/shortcut_interface.rb +1 -1
- data/lib/faster_csv.rb +1814 -1786
- data/lib/fastercsv.rb +1 -1
- data/test/line_endings.gz +0 -0
- data/test/tc_csv_parsing.rb +29 -2
- data/test/tc_csv_writing.rb +1 -1
- data/test/tc_data_converters.rb +1 -1
- data/test/tc_encodings.rb +1 -1
- data/test/tc_features.rb +1 -1
- data/test/tc_headers.rb +1 -1
- data/test/tc_interface.rb +18 -2
- data/test/tc_row.rb +1 -1
- data/test/tc_serialization.rb +1 -1
- data/test/tc_speed.rb +1 -1
- data/test/tc_table.rb +9 -1
- data/test/ts_all.rb +1 -1
- metadata +34 -32
- data/setup.rb +0 -1360
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
|
-
|
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
|
-
|
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 =
|
16
|
-
test.verbose =
|
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.
|
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
|
-
|
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
|