ccsv 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ccsv might be problematic. Click here for more details.

data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- BLs���t�]��y�z�ܷ��j��� (��y�Rxg?���:�{ZCu3���G"��&;y��6����1��a�ߊ�9
2
- ���ȧZ�hs
3
- �(��l�ѵ9�i{�ڻ��M��+ #����ҷ��iQha��IO��p ���i.�#��ECp��~& ns� *�j5P�<�a��&w
1
+ ���VH��S�����M��z��h�0sCRub�F2n?��Qtkl����oM���;*<��I���1����0N�"t���?em^s���ع+x��nXH���� i���q|�/Ħ8!�y� s/�4jR�~�^���J�0�Z�*��t����9�R�_2%��Q���R���R =�g A;�`�3�So3�����]�l0/���`����#*��?<Z<�fۣ��� $3�,o�R!�T
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
- v0.1.1 remove env.h and node.h for compilation for ruby 1.9.3
1
+ v0.1.2. Allow lines of any length (crossman).
2
+
3
+ v0.1.1 Remove env.h and node.h for compilation for ruby 1.9.3 (pronix).
2
4
 
3
5
  v0.1. Nil out the array after each pass; don't freeze the array anymore.
4
6
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'echoe'
2
2
 
3
3
  Echoe.new("ccsv") do |p|
4
4
  p.author = "Evan Weaver"
5
- p.project = "fauna"
5
+ p.project = "evan"
6
6
  p.summary = "A pure-C CSV parser."
7
7
  p.url = "http://github.com/evan/ccsv/"
8
8
  p.docs_host = "evan.github.com/fauna/"
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ccsv}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Evan Weaver}]
9
9
  s.cert_chain = [%q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem}]
10
- s.date = %q{2012-02-11}
10
+ s.date = %q{2012-02-24}
11
11
  s.description = %q{A pure-C CSV parser.}
12
12
  s.email = %q{}
13
13
  s.extensions = [%q{ext/extconf.rb}]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.homepage = %q{http://github.com/evan/ccsv/}
17
17
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Ccsv}, %q{--main}, %q{README.rdoc}]
18
18
  s.require_paths = [%q{lib}, %q{ext}]
19
- s.rubyforge_project = %q{fauna}
19
+ s.rubyforge_project = %q{evan}
20
20
  s.rubygems_version = %q{1.8.6}
21
21
  s.signing_key = %q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-private_key.pem}
22
22
  s.summary = %q{A pure-C CSV parser.}
data/ext/ccsv.c CHANGED
@@ -8,13 +8,14 @@ static VALUE foreach(VALUE self, VALUE filename) {
8
8
  if (file == NULL)
9
9
  rb_raise(rb_eRuntimeError, "File not found");
10
10
 
11
- char line[MAX_LENGTH];
11
+ char *line = NULL;
12
+ size_t len = 0;
12
13
  char *token;
13
14
  int idx;
14
15
 
15
16
  VALUE ary;
16
-
17
- while (fgets(line, sizeof(line), file) != NULL) {
17
+
18
+ while (getline(&line, &len, file) != -1) {
18
19
  ary = rb_ary_new();
19
20
  token = strtok(line, DELIMITERS);
20
21
  idx = 0;
data/ext/ccsv.h CHANGED
@@ -1,5 +1,4 @@
1
1
  #include "ruby.h"
2
2
 
3
3
  #define DELIMITERS ",\n"
4
- #define MAX_LENGTH 2048
5
4
  #define ARY_DEFAULT_SIZE 16
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ccsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,7 +50,7 @@ cert_chain:
50
50
  -----END CERTIFICATE-----
51
51
 
52
52
  '
53
- date: 2012-02-11 00:00:00.000000000Z
53
+ date: 2012-02-24 00:00:00.000000000Z
54
54
  dependencies: []
55
55
  description: A pure-C CSV parser.
56
56
  email: ''
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '1.2'
105
105
  requirements: []
106
- rubyforge_project: fauna
106
+ rubyforge_project: evan
107
107
  rubygems_version: 1.8.6
108
108
  signing_key:
109
109
  specification_version: 3
metadata.gz.sig CHANGED
Binary file