colander 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Colander
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/spec/base_spec.rb CHANGED
@@ -7,4 +7,15 @@ describe Colander::Parser::Base do
7
7
  Colander::Parser::Base.new("foo/bar").should respond_to :emails
8
8
  end
9
9
  end
10
+
11
+ describe ".parse" do
12
+ sample_dir = File.join(File.dirname(File.expand_path(__FILE__)), "fixtures", "samples")
13
+ Dir.entries(sample_dir).each do |file_name|
14
+ sample = File.join(sample_dir, file_name)
15
+ next unless File.file?(sample)
16
+ it "should be able to parse the sample #{file_name}" do
17
+ Colander.parse(sample).emails.should be_an(Array)
18
+ end
19
+ end
20
+ end
10
21
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-21 00:00:00.000000000 Z
13
+ date: 2012-03-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zip
17
- requirement: &70203123886720 !ruby/object:Gem::Requirement
17
+ requirement: &70336028771120 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70203123886720
25
+ version_requirements: *70336028771120
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70203123886060 !ruby/object:Gem::Requirement
28
+ requirement: &70336028770620 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70203123886060
36
+ version_requirements: *70336028770620
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: pry
39
- requirement: &70203123885380 !ruby/object:Gem::Requirement
39
+ requirement: &70336028770000 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70203123885380
47
+ version_requirements: *70336028770000
48
48
  description: Exctract an array of emails from various file formats (xls, xlsx)
49
49
  email:
50
50
  - dev@mynewsdesk.com
@@ -72,6 +72,7 @@ files:
72
72
  - spec/fixtures/excel95.xls
73
73
  - spec/fixtures/new-format.xlsx
74
74
  - spec/fixtures/old-format.xls
75
+ - spec/fixtures/samples/golferns.xlsx
75
76
  - spec/spec_helper.rb
76
77
  - spec/xls_spec.rb
77
78
  - spec/xlsx_spec.rb
@@ -106,6 +107,7 @@ test_files:
106
107
  - spec/fixtures/excel95.xls
107
108
  - spec/fixtures/new-format.xlsx
108
109
  - spec/fixtures/old-format.xls
110
+ - spec/fixtures/samples/golferns.xlsx
109
111
  - spec/spec_helper.rb
110
112
  - spec/xls_spec.rb
111
113
  - spec/xlsx_spec.rb