graybook 1.0.22

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 (78) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGES.md +49 -0
  3. data/Manifest.txt +59 -0
  4. data/README.md +66 -0
  5. data/Rakefile +40 -0
  6. data/VERSION +1 -0
  7. data/VERSION.yml +4 -0
  8. data/VERSION_NAME +1 -0
  9. data/debug_graybook.rb +10 -0
  10. data/init.rb +1 -0
  11. data/lib/graybook/exporter/base.rb +16 -0
  12. data/lib/graybook/exporter/vcf.rb +45 -0
  13. data/lib/graybook/exporter/xml.rb +28 -0
  14. data/lib/graybook/importer/aol.rb +87 -0
  15. data/lib/graybook/importer/base.rb +39 -0
  16. data/lib/graybook/importer/csv.rb +74 -0
  17. data/lib/graybook/importer/freenet.rb +62 -0
  18. data/lib/graybook/importer/gmail.rb +84 -0
  19. data/lib/graybook/importer/gmx.rb +68 -0
  20. data/lib/graybook/importer/hotmail.rb +135 -0
  21. data/lib/graybook/importer/page_scraper.rb +86 -0
  22. data/lib/graybook/importer/web.de.rb +67 -0
  23. data/lib/graybook/importer/yahoo.rb +63 -0
  24. data/lib/graybook.rb +83 -0
  25. data/test/config/credentials.yml.example +9 -0
  26. data/test/fixtures/aol_application_page.html +566 -0
  27. data/test/fixtures/aol_bad_login_response_stage_3.html +565 -0
  28. data/test/fixtures/aol_contacts.html +102 -0
  29. data/test/fixtures/aol_login_response_stage_1.html +158 -0
  30. data/test/fixtures/aol_login_response_stage_2.html +559 -0
  31. data/test/fixtures/aol_login_response_stage_3.html +48 -0
  32. data/test/fixtures/aol_login_response_stage_4.html +404 -0
  33. data/test/fixtures/aol_login_response_stage_5.html +404 -0
  34. data/test/fixtures/aol_new_contacts.html +431 -0
  35. data/test/fixtures/gmail.csv +3 -0
  36. data/test/fixtures/gmail_bad_login_response_stage_2.html +560 -0
  37. data/test/fixtures/gmail_contacts.html +228 -0
  38. data/test/fixtures/gmail_login_response_stage_1.html +556 -0
  39. data/test/fixtures/gmail_login_response_stage_2.html +1 -0
  40. data/test/fixtures/gmail_login_response_stage_2a.html +1 -0
  41. data/test/fixtures/gmail_login_response_stage_3.html +249 -0
  42. data/test/fixtures/gmail_redirect_body.html +10 -0
  43. data/test/fixtures/hotmail_bad_login_response_stage_2.html +31 -0
  44. data/test/fixtures/hotmail_contacts.html +262 -0
  45. data/test/fixtures/hotmail_login_response_stage_1.html +31 -0
  46. data/test/fixtures/hotmail_login_response_stage_2.html +1 -0
  47. data/test/fixtures/hotmail_login_response_stage_3.html +519 -0
  48. data/test/fixtures/hotmail_scrape_first_page.html +77 -0
  49. data/test/fixtures/hotmail_scrape_response_stage_1.html +90 -0
  50. data/test/fixtures/hotmail_scrape_response_stage_2.html +77 -0
  51. data/test/fixtures/hotmail_scrape_response_stage_3.html +0 -0
  52. data/test/fixtures/yahoo_bad_login_response_stage_2.html +443 -0
  53. data/test/fixtures/yahoo_contacts.csv +3 -0
  54. data/test/fixtures/yahoo_contacts_not_logged_in.html +432 -0
  55. data/test/fixtures/yahoo_contacts_stage_1.html +399 -0
  56. data/test/fixtures/yahoo_login_response_stage_1.html +433 -0
  57. data/test/fixtures/yahoo_login_response_stage_2.html +16 -0
  58. data/test/fixtures/yahoo_no_user_response_stage_2.html +574 -0
  59. data/test/freenet_importer_test.rb +53 -0
  60. data/test/gmx_importer_test.rb +53 -0
  61. data/test/scripts/live_test.rb +25 -0
  62. data/test/test_graybook.rb +60 -0
  63. data/test/test_graybook_exporter_base.rb +16 -0
  64. data/test/test_graybook_exporter_vcf.rb +52 -0
  65. data/test/test_graybook_exporter_xml.rb +16 -0
  66. data/test/test_graybook_importer_aol.rb +108 -0
  67. data/test/test_graybook_importer_base.rb +24 -0
  68. data/test/test_graybook_importer_csv.rb +60 -0
  69. data/test/test_graybook_importer_gmail.rb +116 -0
  70. data/test/test_graybook_importer_hotmail.rb +165 -0
  71. data/test/test_graybook_importer_page_scraper.rb +51 -0
  72. data/test/test_graybook_importer_yahoo.rb +137 -0
  73. data/test/test_helper.rb +71 -0
  74. data/test/web.de_importer_test.rb +53 -0
  75. data/updater.rb +15 -0
  76. data/vendor/plugins/graybook/lib/autotest/discover.rb +3 -0
  77. data/vendor/plugins/graybook/lib/autotest/graybook.rb +27 -0
  78. metadata +185 -0
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graybook
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.22
5
+ platform: ruby
6
+ authors:
7
+ - kojul
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-30 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hpricot
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.7.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mechanize
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.7.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: hoe
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.5.0
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: fastercsv
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.2.0
54
+ version:
55
+ description: It does things. Like import contacts from EVERYWHERE.
56
+ email: kojul@kojul.com
57
+ executables: []
58
+
59
+ extensions: []
60
+
61
+ extra_rdoc_files:
62
+ - README.md
63
+ files:
64
+ - .gitignore
65
+ - CHANGES.md
66
+ - Manifest.txt
67
+ - README.md
68
+ - Rakefile
69
+ - VERSION
70
+ - VERSION.yml
71
+ - VERSION_NAME
72
+ - debug_graybook.rb
73
+ - init.rb
74
+ - lib/graybook.rb
75
+ - lib/graybook/exporter/base.rb
76
+ - lib/graybook/exporter/vcf.rb
77
+ - lib/graybook/exporter/xml.rb
78
+ - lib/graybook/importer/aol.rb
79
+ - lib/graybook/importer/base.rb
80
+ - lib/graybook/importer/csv.rb
81
+ - lib/graybook/importer/freenet.rb
82
+ - lib/graybook/importer/gmail.rb
83
+ - lib/graybook/importer/gmx.rb
84
+ - lib/graybook/importer/hotmail.rb
85
+ - lib/graybook/importer/page_scraper.rb
86
+ - lib/graybook/importer/web.de.rb
87
+ - lib/graybook/importer/yahoo.rb
88
+ - test/config/credentials.yml.example
89
+ - test/fixtures/aol_application_page.html
90
+ - test/fixtures/aol_bad_login_response_stage_3.html
91
+ - test/fixtures/aol_contacts.html
92
+ - test/fixtures/aol_login_response_stage_1.html
93
+ - test/fixtures/aol_login_response_stage_2.html
94
+ - test/fixtures/aol_login_response_stage_3.html
95
+ - test/fixtures/aol_login_response_stage_4.html
96
+ - test/fixtures/aol_login_response_stage_5.html
97
+ - test/fixtures/aol_new_contacts.html
98
+ - test/fixtures/gmail.csv
99
+ - test/fixtures/gmail_bad_login_response_stage_2.html
100
+ - test/fixtures/gmail_contacts.html
101
+ - test/fixtures/gmail_login_response_stage_1.html
102
+ - test/fixtures/gmail_login_response_stage_2.html
103
+ - test/fixtures/gmail_login_response_stage_2a.html
104
+ - test/fixtures/gmail_login_response_stage_3.html
105
+ - test/fixtures/gmail_redirect_body.html
106
+ - test/fixtures/hotmail_bad_login_response_stage_2.html
107
+ - test/fixtures/hotmail_contacts.html
108
+ - test/fixtures/hotmail_login_response_stage_1.html
109
+ - test/fixtures/hotmail_login_response_stage_2.html
110
+ - test/fixtures/hotmail_login_response_stage_3.html
111
+ - test/fixtures/hotmail_scrape_first_page.html
112
+ - test/fixtures/hotmail_scrape_response_stage_1.html
113
+ - test/fixtures/hotmail_scrape_response_stage_2.html
114
+ - test/fixtures/hotmail_scrape_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/fixtures/yahoo_no_user_response_stage_2.html
122
+ - test/freenet_importer_test.rb
123
+ - test/gmx_importer_test.rb
124
+ - test/scripts/live_test.rb
125
+ - test/test_graybook.rb
126
+ - test/test_graybook_exporter_base.rb
127
+ - test/test_graybook_exporter_vcf.rb
128
+ - test/test_graybook_exporter_xml.rb
129
+ - test/test_graybook_importer_aol.rb
130
+ - test/test_graybook_importer_base.rb
131
+ - test/test_graybook_importer_csv.rb
132
+ - test/test_graybook_importer_gmail.rb
133
+ - test/test_graybook_importer_hotmail.rb
134
+ - test/test_graybook_importer_page_scraper.rb
135
+ - test/test_graybook_importer_yahoo.rb
136
+ - test/test_helper.rb
137
+ - test/web.de_importer_test.rb
138
+ - updater.rb
139
+ - vendor/plugins/graybook/lib/autotest/discover.rb
140
+ - vendor/plugins/graybook/lib/autotest/graybook.rb
141
+ has_rdoc: true
142
+ homepage: http://github.com/kojul/gray
143
+ licenses: []
144
+
145
+ post_install_message:
146
+ rdoc_options:
147
+ - --charset=UTF-8
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: "0"
155
+ version:
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: "0"
161
+ version:
162
+ requirements: []
163
+
164
+ rubyforge_project:
165
+ rubygems_version: 1.3.5
166
+ signing_key:
167
+ specification_version: 3
168
+ summary: It does things. Like import contacts from EVERYWHERE.
169
+ test_files:
170
+ - test/freenet_importer_test.rb
171
+ - test/gmx_importer_test.rb
172
+ - test/scripts/live_test.rb
173
+ - test/test_graybook.rb
174
+ - test/test_graybook_exporter_base.rb
175
+ - test/test_graybook_exporter_vcf.rb
176
+ - test/test_graybook_exporter_xml.rb
177
+ - test/test_graybook_importer_aol.rb
178
+ - test/test_graybook_importer_base.rb
179
+ - test/test_graybook_importer_csv.rb
180
+ - test/test_graybook_importer_gmail.rb
181
+ - test/test_graybook_importer_hotmail.rb
182
+ - test/test_graybook_importer_page_scraper.rb
183
+ - test/test_graybook_importer_yahoo.rb
184
+ - test/test_helper.rb
185
+ - test/web.de_importer_test.rb