alexjp-blackbook_csv 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.markdown +44 -0
- data/Manifest.txt +59 -0
- data/README.markdown +72 -0
- data/Rakefile +39 -0
- data/debug_blackbook.rb +10 -0
- data/init.rb +1 -0
- data/lib/blackbook/exporter/base.rb +16 -0
- data/lib/blackbook/exporter/vcf.rb +45 -0
- data/lib/blackbook/exporter/xml.rb +28 -0
- data/lib/blackbook/importer/aol.rb +83 -0
- data/lib/blackbook/importer/base.rb +39 -0
- data/lib/blackbook/importer/csv.rb +87 -0
- data/lib/blackbook/importer/gmail.rb +66 -0
- data/lib/blackbook/importer/hotmail.rb +124 -0
- data/lib/blackbook/importer/page_scraper.rb +86 -0
- data/lib/blackbook/importer/yahoo.rb +61 -0
- data/lib/blackbook.rb +76 -0
- data/test/fixtures/aol_application_page.html +566 -0
- data/test/fixtures/aol_bad_login_response_stage_3.html +565 -0
- data/test/fixtures/aol_contacts.html +90 -0
- data/test/fixtures/aol_login_response_stage_1.html +158 -0
- data/test/fixtures/aol_login_response_stage_2.html +559 -0
- data/test/fixtures/aol_login_response_stage_3.html +61 -0
- data/test/fixtures/aol_login_response_stage_4.html +48 -0
- data/test/fixtures/aol_login_response_stage_5.html +404 -0
- data/test/fixtures/aol_new_contacts.html +431 -0
- data/test/fixtures/gmail.csv +3 -0
- data/test/fixtures/gmail_bad_login_response_stage_2.html +560 -0
- data/test/fixtures/gmail_contacts.html +228 -0
- data/test/fixtures/gmail_login_response_stage_1.html +556 -0
- data/test/fixtures/gmail_login_response_stage_2.html +1 -0
- data/test/fixtures/gmail_login_response_stage_2a.html +1 -0
- data/test/fixtures/gmail_login_response_stage_3.html +249 -0
- data/test/fixtures/hotmail_bad_login_response_stage_2.html +31 -0
- data/test/fixtures/hotmail_contacts.html +191 -0
- data/test/fixtures/hotmail_login_response_stage_1.html +31 -0
- data/test/fixtures/hotmail_login_response_stage_2.html +1 -0
- data/test/fixtures/hotmail_login_response_stage_3.html +380 -0
- data/test/fixtures/yahoo_bad_login_response_stage_2.html +443 -0
- data/test/fixtures/yahoo_contacts.csv +3 -0
- data/test/fixtures/yahoo_contacts_not_logged_in.html +432 -0
- data/test/fixtures/yahoo_contacts_stage_1.html +399 -0
- data/test/fixtures/yahoo_login_response_stage_1.html +433 -0
- data/test/fixtures/yahoo_login_response_stage_2.html +16 -0
- data/test/scripts/live_test.rb +25 -0
- data/test/test_blackbook.rb +60 -0
- data/test/test_blackbook_exporter_base.rb +16 -0
- data/test/test_blackbook_exporter_vcf.rb +52 -0
- data/test/test_blackbook_exporter_xml.rb +16 -0
- data/test/test_blackbook_importer_aol.rb +113 -0
- data/test/test_blackbook_importer_base.rb +24 -0
- data/test/test_blackbook_importer_csv.rb +60 -0
- data/test/test_blackbook_importer_gmail.rb +117 -0
- data/test/test_blackbook_importer_hotmail.rb +147 -0
- data/test/test_blackbook_importer_page_scraper.rb +51 -0
- data/test/test_blackbook_importer_yahoo.rb +97 -0
- data/test/test_helper.rb +69 -0
- data/vendor/plugins/blackbook/lib/autotest/blackbook.rb +27 -0
- data/vendor/plugins/blackbook/lib/autotest/discover.rb +3 -0
- metadata +176 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'autotest'
|
2
|
+
|
3
|
+
class Autotest::Blackbook < Autotest
|
4
|
+
|
5
|
+
def initialize # :nodoc:
|
6
|
+
super
|
7
|
+
@exceptions = /\.svn|\.html/
|
8
|
+
@test_mappings = {
|
9
|
+
%r%^lib/blackbook/([^\/]+)/([^\/]+)\.rb$% => proc { |_, m|
|
10
|
+
["test/test_blackbook_#{m[1]}_#{m[2]}.rb"]
|
11
|
+
},
|
12
|
+
%r%^lib/blackbook.rb$% => proc { |_, m|
|
13
|
+
["test/test_blackbook.rb"]
|
14
|
+
},
|
15
|
+
%r%^test/test_blackbook_.*\.rb$% => proc { |filename, _|
|
16
|
+
filename
|
17
|
+
}
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def path_to_classname(s)
|
22
|
+
f = s.sub(/test\/(.+).rb$/, '\1')
|
23
|
+
f = f.map { |path| path.split(/_/).map { |seg| seg.capitalize }.join }
|
24
|
+
f.join('::')
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: alexjp-blackbook_csv
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Contentfree
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1taWtl
|
14
|
+
bW9uZHJhZ29uMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
15
|
+
FgNjb20wHhcNMDcwODI3MTk1NjQ1WhcNMDgwODI2MTk1NjQ1WjBEMRYwFAYDVQQD
|
16
|
+
DA1taWtlbW9uZHJhZ29uMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
|
17
|
+
k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD9J/K2
|
18
|
+
wp3uqpMzXOfOlY+zb2qRuP0Q6SaqPf8+Y/OD4n+KR91999nRcd9MED4b9okQb5XF
|
19
|
+
KjbIRtEyXRtX+nmajf3CqrtOe+Gej9Uru1jBiqwdegCipN2HRrqqOX0Tv15o2W6n
|
20
|
+
Lxayxj4JD/DWLrBaKWagv87MCwb0FeKB45Z6bZFA62QM7beBSB9TY+Lv7qpW+uPk
|
21
|
+
vlLC9nj765cU0jZNcddgLZcKVl4AihhA5YNOI6XztxA+DSYze8EryrkES8YjY+O7
|
22
|
+
oPSSvyi/13QnIPpB884/k9alxWqzx3+qQI6UxXeVY1idS9M+1q3QC6vteo5KqE41
|
23
|
+
enZ5Unpw288x+gc5AgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
|
24
|
+
A1UdDgQWBBQfSk8NE+/Ad8ZKbEAgwIoKvI5H+TANBgkqhkiG9w0BAQUFAAOCAQEA
|
25
|
+
ZyBadUGUGP/x2pZEIPYVcP9vG0l64wLDksJNVJ90rEgToaQqypCElvipbCXYF9Pe
|
26
|
+
y+5G/bJItH/OKiIHcdJUs8UdXMH5icCpyqNgNopHVkVsE8gghMYm0ptHyKWswRAK
|
27
|
+
6nBO3mw0C2n+KiWdTSXf6HtF9sBg5SV+I/kZEGHbiFEglxfiVoUnlvsCbRt2QlCC
|
28
|
+
uMBzJ1sNVgCL3bqeEZwZj0o2HLxOHg0sSOc16rCfX5yvDo7bFM0XAMvwNgYg8ifQ
|
29
|
+
zeHINowDygx2eefh0hynPGd/QwgANxHpr4+V93KLsyLosIgAIsqoXRkNx3a5gecL
|
30
|
+
q8SfeAt4oNk4pWm9Ocmiww==
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
|
33
|
+
date: 2008-02-26 15:00:00 -08:00
|
34
|
+
default_executable:
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mechanize
|
38
|
+
type: :runtime
|
39
|
+
version_requirement:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.7.0
|
45
|
+
version:
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: fastercsv
|
48
|
+
type: :runtime
|
49
|
+
version_requirement:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.2.0
|
55
|
+
version:
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: hoe
|
58
|
+
type: :runtime
|
59
|
+
version_requirement:
|
60
|
+
version_requirements: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.5.0
|
65
|
+
version:
|
66
|
+
description: "== DESCRIPTION: Blackbook automates the nitty-gritty of importing contacts from various services and files and exporting them as VCard, XML, or simple Hash. Utilize those contacts from services like AOL, GMail, Yahoo Mail, Hotmail or CSV to help your social networking site become GIGANTIC overnight! You'll be able to get big and sell for millions before anyone figures out it's just like every other social network."
|
67
|
+
email: dave.myron@contentfree.com
|
68
|
+
executables: []
|
69
|
+
|
70
|
+
extensions: []
|
71
|
+
|
72
|
+
extra_rdoc_files:
|
73
|
+
- CHANGES.markdown
|
74
|
+
- Manifest.txt
|
75
|
+
- README.markdown
|
76
|
+
files:
|
77
|
+
- CHANGES.markdown
|
78
|
+
- Manifest.txt
|
79
|
+
- README.markdown
|
80
|
+
- Rakefile
|
81
|
+
- debug_blackbook.rb
|
82
|
+
- init.rb
|
83
|
+
- lib/blackbook.rb
|
84
|
+
- lib/blackbook/exporter/base.rb
|
85
|
+
- lib/blackbook/exporter/vcf.rb
|
86
|
+
- lib/blackbook/exporter/xml.rb
|
87
|
+
- lib/blackbook/importer/aol.rb
|
88
|
+
- lib/blackbook/importer/base.rb
|
89
|
+
- lib/blackbook/importer/csv.rb
|
90
|
+
- lib/blackbook/importer/gmail.rb
|
91
|
+
- lib/blackbook/importer/hotmail.rb
|
92
|
+
- lib/blackbook/importer/page_scraper.rb
|
93
|
+
- lib/blackbook/importer/yahoo.rb
|
94
|
+
- test/fixtures/aol_application_page.html
|
95
|
+
- test/fixtures/aol_bad_login_response_stage_3.html
|
96
|
+
- test/fixtures/aol_contacts.html
|
97
|
+
- test/fixtures/aol_login_response_stage_1.html
|
98
|
+
- test/fixtures/aol_login_response_stage_2.html
|
99
|
+
- test/fixtures/aol_login_response_stage_3.html
|
100
|
+
- test/fixtures/aol_login_response_stage_4.html
|
101
|
+
- test/fixtures/aol_login_response_stage_5.html
|
102
|
+
- test/fixtures/aol_new_contacts.html
|
103
|
+
- test/fixtures/gmail.csv
|
104
|
+
- test/fixtures/gmail_bad_login_response_stage_2.html
|
105
|
+
- test/fixtures/gmail_contacts.html
|
106
|
+
- test/fixtures/gmail_login_response_stage_1.html
|
107
|
+
- test/fixtures/gmail_login_response_stage_2.html
|
108
|
+
- test/fixtures/gmail_login_response_stage_2a.html
|
109
|
+
- test/fixtures/gmail_login_response_stage_3.html
|
110
|
+
- test/fixtures/hotmail_bad_login_response_stage_2.html
|
111
|
+
- test/fixtures/hotmail_contacts.html
|
112
|
+
- test/fixtures/hotmail_login_response_stage_1.html
|
113
|
+
- test/fixtures/hotmail_login_response_stage_2.html
|
114
|
+
- test/fixtures/hotmail_login_response_stage_3.html
|
115
|
+
- test/fixtures/yahoo_bad_login_response_stage_2.html
|
116
|
+
- test/fixtures/yahoo_contacts.csv
|
117
|
+
- test/fixtures/yahoo_contacts_not_logged_in.html
|
118
|
+
- test/fixtures/yahoo_contacts_stage_1.html
|
119
|
+
- test/fixtures/yahoo_login_response_stage_1.html
|
120
|
+
- test/fixtures/yahoo_login_response_stage_2.html
|
121
|
+
- test/scripts/live_test.rb
|
122
|
+
- test/test_blackbook.rb
|
123
|
+
- test/test_blackbook_exporter_base.rb
|
124
|
+
- test/test_blackbook_exporter_vcf.rb
|
125
|
+
- test/test_blackbook_exporter_xml.rb
|
126
|
+
- test/test_blackbook_importer_aol.rb
|
127
|
+
- test/test_blackbook_importer_base.rb
|
128
|
+
- test/test_blackbook_importer_csv.rb
|
129
|
+
- test/test_blackbook_importer_gmail.rb
|
130
|
+
- test/test_blackbook_importer_hotmail.rb
|
131
|
+
- test/test_blackbook_importer_page_scraper.rb
|
132
|
+
- test/test_blackbook_importer_yahoo.rb
|
133
|
+
- test/test_helper.rb
|
134
|
+
- vendor/plugins/blackbook/lib/autotest/blackbook.rb
|
135
|
+
- vendor/plugins/blackbook/lib/autotest/discover.rb
|
136
|
+
has_rdoc: true
|
137
|
+
homepage: http://rubyforge.org/projects/contentfree/
|
138
|
+
licenses:
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options:
|
141
|
+
- --main
|
142
|
+
- README.txt
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: "0"
|
150
|
+
version:
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: "0"
|
156
|
+
version:
|
157
|
+
requirements: []
|
158
|
+
|
159
|
+
rubyforge_project: contentfree
|
160
|
+
rubygems_version: 1.3.5
|
161
|
+
signing_key:
|
162
|
+
specification_version: 2
|
163
|
+
summary: Blackbook handles the nitty-gritty of importing contacts from various service providers and contact lists and exporting them in a useful format.
|
164
|
+
test_files:
|
165
|
+
- test/test_blackbook_importer_aol.rb
|
166
|
+
- test/test_blackbook_importer_csv.rb
|
167
|
+
- test/test_blackbook_importer_gmail.rb
|
168
|
+
- test/test_blackbook_importer_yahoo.rb
|
169
|
+
- test/test_blackbook_exporter_base.rb
|
170
|
+
- test/test_blackbook_exporter_vcf.rb
|
171
|
+
- test/test_blackbook_exporter_xml.rb
|
172
|
+
- test/test_blackbook_importer_page_scraper.rb
|
173
|
+
- test/test_helper.rb
|
174
|
+
- test/test_blackbook_importer_hotmail.rb
|
175
|
+
- test/test_blackbook.rb
|
176
|
+
- test/test_blackbook_importer_base.rb
|