outlook_importer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/VERSION +1 -1
- data/{outlook_importer.rb → lib/outlook_importer.rb} +0 -0
- data/outlook_importer.gemspec +3 -2
- data/pkg/outlook_importer-0.1.0.gem +0 -0
- data/test/test_helper.rb +1 -1
- metadata +5 -4
data/README.md
CHANGED
@@ -13,11 +13,19 @@ Initialize the importer with a lookup table that specifies which strings in the
|
|
13
13
|
}
|
14
14
|
importer = OutlookImporter.new(lookup_table)
|
15
15
|
|
16
|
+
If you don't specify a lookup table, the importer tries to guess one using the CSV headers.
|
17
|
+
|
18
|
+
importer = OutlookImporter.new
|
19
|
+
|
16
20
|
After initialization let the importer read a file and you can access you contacts via the contacts method.
|
17
21
|
|
18
22
|
importer.read('example.csv')
|
19
23
|
importer.contacts # => [["Robin Example", "robin@example.de"]]
|
20
24
|
|
25
|
+
Instead of a path, you can also provide a file.
|
26
|
+
|
27
|
+
importer.read(File.new('example.csv'))
|
28
|
+
|
21
29
|
For further reference please see the outlook importer test in this project.
|
22
30
|
|
23
31
|
|
@@ -27,6 +35,7 @@ For further reference please see the outlook importer test in this project.
|
|
27
35
|
* Frank Prößdorf
|
28
36
|
* Thilo Utke
|
29
37
|
|
38
|
+
|
30
39
|
# LICENSE
|
31
40
|
|
32
41
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
File without changes
|
data/outlook_importer.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{outlook_importer}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Frank Pr\303\266\303\237dorf, Thilo Utke"]
|
@@ -19,8 +19,9 @@ Gem::Specification.new do |s|
|
|
19
19
|
"README.md",
|
20
20
|
"Rakefile",
|
21
21
|
"VERSION",
|
22
|
+
"lib/outlook_importer.rb",
|
22
23
|
"outlook_importer.gemspec",
|
23
|
-
"outlook_importer.
|
24
|
+
"pkg/outlook_importer-0.1.0.gem",
|
24
25
|
"test/livemail_de.csv",
|
25
26
|
"test/outlook_2007_de.csv",
|
26
27
|
"test/outlook_importer_test.rb",
|
Binary file
|
data/test/test_helper.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'test/unit'
|
2
|
-
require File.dirname(__FILE__) + '/../outlook_importer'
|
2
|
+
require File.dirname(__FILE__) + '/../lib/outlook_importer'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: outlook_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Frank Pr\xC3\xB6\xC3\x9Fdorf, Thilo Utke"
|
@@ -62,8 +62,9 @@ files:
|
|
62
62
|
- README.md
|
63
63
|
- Rakefile
|
64
64
|
- VERSION
|
65
|
+
- lib/outlook_importer.rb
|
65
66
|
- outlook_importer.gemspec
|
66
|
-
- outlook_importer.
|
67
|
+
- pkg/outlook_importer-0.1.0.gem
|
67
68
|
- test/livemail_de.csv
|
68
69
|
- test/outlook_2007_de.csv
|
69
70
|
- test/outlook_importer_test.rb
|