hopcsv 0.4.2 → 0.4.3

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.
Files changed (5) hide show
  1. data/CHANGELOG +2 -0
  2. data/Manifest +1 -0
  3. data/README.rdoc +20 -5
  4. data/hopcsv.gemspec +2 -2
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.4.3. updated documentation. Rubygems releqase.
2
+
1
3
  v0.4.2. Fixed ranges list processig
2
4
 
3
5
  v0.4.1. Fixed passing nil as range
data/Manifest CHANGED
@@ -9,6 +9,7 @@ compile
9
9
  ext/extconf.rb
10
10
  ext/hopcsv.c
11
11
  ext/hopcsv.h
12
+ hopcsv.gemspec
12
13
  test/data.csv
13
14
  test/data_small.csv
14
15
  test/unit/test_hopcsv.rb
@@ -1,27 +1,42 @@
1
1
 
2
- Ccsv
2
+ Hopcsv
3
3
 
4
4
  A pure-C CSV parser.
5
5
 
6
6
  == Installation
7
7
 
8
- gem install ccsv
8
+ gem install hopcsv
9
9
 
10
10
  == Usage
11
11
 
12
12
  require 'rubygems'
13
- require 'ccsv'
13
+ require 'hopcsv'
14
14
 
15
- Ccsv.foreach("data.csv") do |line|
15
+ Hopcsv.foreach("data.csv") do |line|
16
16
  # Do something with the line array
17
17
  end
18
18
 
19
- Ccsv.foreach("/etc/passwd",":") do |line|
19
+ Hopcsv.foreach("/etc/passwd",":") do |line|
20
20
  puts line[0]
21
21
  end
22
22
 
23
+ == Advanced usage
24
+
25
+ Get users from passwd file, with UIDs between 1000 and 1010 and between 2000 and 2010.
26
+ Works with numbers only!
27
+ Third argument is column index, then one or more intervals.
28
+
29
+ Hopcsv.foreach("/etc/passwd",":",2,[1000..1010],[2000..2010]) do |line|
30
+ puts line[0]
31
+ end
32
+
33
+ == Contacts
34
+
35
+ Forks, pull-requests and other contacts via guthub: https://github.com/zhum/hopcsv
36
+
23
37
  == License
24
38
 
25
39
  Copyright 2012 Sergey Zhumatiy
40
+
26
41
  Copyright 2007-2012 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
27
42
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "hopcsv"
5
- s.version = "0.4.2"
5
+ s.version = "0.4.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sergey Zhumatiy"]
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.email = "serg@parallel.ru"
12
12
  s.extensions = ["ext/extconf.rb"]
13
13
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.rdoc", "ext/extconf.rb", "ext/hopcsv.c", "ext/hopcsv.h"]
14
- s.files = ["CHANGELOG", "Gemfile", "Gemfile.lock", "LICENSE", "Manifest", "README.rdoc", "Rakefile", "compile", "ext/extconf.rb", "ext/hopcsv.c", "ext/hopcsv.h", "test/data.csv", "test/data_small.csv", "test/unit/test_hopcsv.rb", "hopcsv.gemspec"]
14
+ s.files = ["CHANGELOG", "Gemfile", "Gemfile.lock", "LICENSE", "Manifest", "README.rdoc", "Rakefile", "compile", "ext/extconf.rb", "ext/hopcsv.c", "ext/hopcsv.h", "hopcsv.gemspec", "test/data.csv", "test/data_small.csv", "test/unit/test_hopcsv.rb"]
15
15
  s.homepage = "http://github.com/zhum/hopcsv"
16
16
  s.rdoc_options = ["--line-numbers", "--title", "Hopcsv", "--main", "README.rdoc"]
17
17
  s.require_paths = ["lib", "ext"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hopcsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,10 +36,10 @@ files:
36
36
  - ext/extconf.rb
37
37
  - ext/hopcsv.c
38
38
  - ext/hopcsv.h
39
+ - hopcsv.gemspec
39
40
  - test/data.csv
40
41
  - test/data_small.csv
41
42
  - test/unit/test_hopcsv.rb
42
- - hopcsv.gemspec
43
43
  homepage: http://github.com/zhum/hopcsv
44
44
  licenses: []
45
45
  post_install_message: