csv_filter 0.1.0 → 0.1.1
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/VERSION +1 -1
- data/csv_filter.gemspec +2 -2
- data/spec/csv_filter_spec.rb +5 -1
- data/spec/sample.tsv +1 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/csv_filter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "csv_filter"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kris Luminar"]
|
12
|
-
s.date = "2012-12-
|
12
|
+
s.date = "2012-12-10"
|
13
13
|
s.description = "Filters CSV or TSV files (default) by column names and optionally by a match on any field in rows."
|
14
14
|
s.email = "kris.luminar@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/spec/csv_filter_spec.rb
CHANGED
@@ -5,7 +5,11 @@ describe "CsvFilter" do
|
|
5
5
|
@tsv = CsvFilter.new(File.expand_path(File.dirname(__FILE__) + '/sample.tsv'))
|
6
6
|
end
|
7
7
|
|
8
|
-
it "should grab just the columns specified"
|
8
|
+
it "should grab just the columns specified" do
|
9
|
+
columns = @tsv.filter('value', 'url')
|
10
|
+
(columns.gets =~ 'value').should_not be_true
|
11
|
+
end
|
12
|
+
|
9
13
|
it "should grep for a string in rows"
|
10
14
|
describe "console output"
|
11
15
|
it "should send output to stndout"
|
data/spec/sample.tsv
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
segments:
|
133
133
|
- 0
|
134
|
-
hash: -
|
134
|
+
hash: -4116722112536306353
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
none: false
|
137
137
|
requirements:
|