ContactDetective 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 150fdb3bbe1e1cee87ea25c36756a79f466fddc5
4
+ data.tar.gz: 651860f2e4d6a59789db627c294725aed9586ca5
5
+ SHA512:
6
+ metadata.gz: 3375c7e1bbecacddea2a63c44101d275eec20c03b8773999d8992e99a6c1b07e586f070dc57ee3dde51c139b3a020a1bcc1f9a6ae3b5c3e056694c73c924d5fe
7
+ data.tar.gz: b97e1d214a8df4738dce295efa8f5294005e29fd28891ce47bce06b514bcbc4997b00790d674acafc5719c52e384cf3cfc7573092e243a01bb3128b5681a89a5
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1 @@
1
+ ContactDetective
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build ContactDetective-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated file" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install ContactDetective-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install ContactDetective-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push ContactDetective-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="ModuleRunConfigurationManager">
13
+ <configuration default="false" name="IRB console: ContactDetective" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
14
+ <module name="ContactDetective" />
15
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
16
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
17
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
18
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
19
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
20
+ <envs />
21
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
22
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
23
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
24
+ <COVERAGE_PATTERN ENABLED="true">
25
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
26
+ </COVERAGE_PATTERN>
27
+ </EXTENSION>
28
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
29
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
30
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
31
+ <method />
32
+ </configuration>
33
+ </component>
34
+ <component name="NewModuleRootManager">
35
+ <content url="file://$MODULE_DIR$">
36
+ <excludeFolder url="file://$MODULE_DIR$/.bundle" />
37
+ <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
38
+ </content>
39
+ <orderEntry type="inheritedJdk" />
40
+ <orderEntry type="sourceFolder" forTests="false" />
41
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, RVM: ruby-2.2.0) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.2.0) [gem]" level="application" />
43
+ </component>
44
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
4
+ <OptionsSetting value="true" id="Add" />
5
+ <OptionsSetting value="true" id="Remove" />
6
+ <OptionsSetting value="true" id="Checkout" />
7
+ <OptionsSetting value="true" id="Update" />
8
+ <OptionsSetting value="true" id="Status" />
9
+ <OptionsSetting value="true" id="Edit" />
10
+ <ConfirmationsSetting value="0" id="Add" />
11
+ <ConfirmationsSetting value="0" id="Remove" />
12
+ </component>
13
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.2.0" project-jdk-type="RUBY_SDK" />
14
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ContactDetective.iml" filepath="$PROJECT_DIR$/.idea/ContactDetective.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,594 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="112f1632-f182-4687-9315-b7b1dd47585f" name="Default" comment="" />
5
+ <ignored path="ContactDetective.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <ignored path=".idea/dataSources.local.xml" />
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CoverageDataManager">
17
+ <SUITE FILE_PATH="coverage/ContactDetective@IRB_console__ContactDetective.coverage" NAME="IRB console: ContactDetective Coverage Results" MODIFIED="1452227484351" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ContactDetective" />
18
+ </component>
19
+ <component name="CreatePatchCommitExecutor">
20
+ <option name="PATCH_PATH" value="" />
21
+ </component>
22
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
23
+ <component name="FavoritesManager">
24
+ <favorites_list name="ContactDetective" />
25
+ </component>
26
+ <component name="FileEditorManager">
27
+ <leaf>
28
+ <file leaf-file-name="console" pinned="false" current-in-tab="false">
29
+ <entry file="file://$PROJECT_DIR$/bin/console">
30
+ <provider selected="true" editor-type-id="text-editor">
31
+ <state vertical-scroll-proportion="0.0">
32
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
33
+ <folding />
34
+ </state>
35
+ </provider>
36
+ </entry>
37
+ </file>
38
+ <file leaf-file-name="ContactDetective.rb" pinned="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/lib/ContactDetective.rb">
40
+ <provider selected="true" editor-type-id="text-editor">
41
+ <state vertical-scroll-proportion="0.0">
42
+ <caret line="27" column="0" selection-start-line="27" selection-start-column="0" selection-end-line="29" selection-end-column="43" />
43
+ <folding />
44
+ </state>
45
+ </provider>
46
+ </entry>
47
+ </file>
48
+ <file leaf-file-name="collectors.rb" pinned="false" current-in-tab="false">
49
+ <entry file="file://$PROJECT_DIR$/lib/collectors.rb">
50
+ <provider selected="true" editor-type-id="text-editor">
51
+ <state vertical-scroll-proportion="0.0">
52
+ <caret line="12" column="20" selection-start-line="12" selection-start-column="20" selection-end-line="12" selection-end-column="20" />
53
+ <folding />
54
+ </state>
55
+ </provider>
56
+ </entry>
57
+ </file>
58
+ <file leaf-file-name="setup" pinned="false" current-in-tab="false">
59
+ <entry file="file://$PROJECT_DIR$/bin/setup">
60
+ <provider selected="true" editor-type-id="text-editor">
61
+ <state vertical-scroll-proportion="0.0">
62
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
63
+ <folding />
64
+ </state>
65
+ </provider>
66
+ </entry>
67
+ </file>
68
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
69
+ <entry file="file://$PROJECT_DIR$/Rakefile">
70
+ <provider selected="true" editor-type-id="text-editor">
71
+ <state vertical-scroll-proportion="0.0">
72
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
73
+ <folding />
74
+ </state>
75
+ </provider>
76
+ </entry>
77
+ </file>
78
+ <file leaf-file-name="LICENSE.txt" pinned="false" current-in-tab="false">
79
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
80
+ <provider selected="true" editor-type-id="text-editor">
81
+ <state vertical-scroll-proportion="0.0">
82
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
83
+ <folding />
84
+ </state>
85
+ </provider>
86
+ </entry>
87
+ </file>
88
+ <file leaf-file-name="ContactDetective.gemspec" pinned="false" current-in-tab="true">
89
+ <entry file="file://$PROJECT_DIR$/ContactDetective.gemspec">
90
+ <provider selected="true" editor-type-id="text-editor">
91
+ <state vertical-scroll-proportion="0.36724564">
92
+ <caret line="13" column="169" selection-start-line="13" selection-start-column="169" selection-end-line="13" selection-end-column="169" />
93
+ <folding />
94
+ </state>
95
+ </provider>
96
+ </entry>
97
+ </file>
98
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
99
+ <entry file="file://$PROJECT_DIR$/.gitignore">
100
+ <provider selected="true" editor-type-id="text-editor">
101
+ <state vertical-scroll-proportion="-3.8888888">
102
+ <caret line="7" column="14" selection-start-line="7" selection-start-column="14" selection-end-line="7" selection-end-column="14" />
103
+ <folding />
104
+ </state>
105
+ </provider>
106
+ </entry>
107
+ </file>
108
+ <file leaf-file-name="Tests.rb" pinned="false" current-in-tab="false">
109
+ <entry file="file://$PROJECT_DIR$/test/Tests.rb">
110
+ <provider selected="true" editor-type-id="text-editor">
111
+ <state vertical-scroll-proportion="0.0">
112
+ <caret line="33" column="135" selection-start-line="33" selection-start-column="135" selection-end-line="33" selection-end-column="135" />
113
+ <folding />
114
+ </state>
115
+ </provider>
116
+ </entry>
117
+ </file>
118
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
119
+ <entry file="file://$PROJECT_DIR$/lib/ContactDetective/version.rb">
120
+ <provider selected="true" editor-type-id="text-editor">
121
+ <state vertical-scroll-proportion="0.0">
122
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
123
+ <folding />
124
+ </state>
125
+ </provider>
126
+ </entry>
127
+ </file>
128
+ </leaf>
129
+ </component>
130
+ <component name="FileTemplateManagerImpl">
131
+ <option name="RECENT_TEMPLATES">
132
+ <list>
133
+ <option value="TestUnit Test Template" />
134
+ <option value="Ruby Class Template" />
135
+ </list>
136
+ </option>
137
+ </component>
138
+ <component name="IdeDocumentHistory">
139
+ <option name="CHANGED_PATHS">
140
+ <list>
141
+ <option value="$PROJECT_DIR$/README.md" />
142
+ <option value="$PROJECT_DIR$/lib/ContactDetective/version.rb" />
143
+ <option value="$PROJECT_DIR$/Gemfile" />
144
+ <option value="$PROJECT_DIR$/lib/collectors.rb" />
145
+ <option value="$PROJECT_DIR$/test/Tests.rb" />
146
+ <option value="$PROJECT_DIR$/lib/ContactDetective.rb" />
147
+ <option value="$PROJECT_DIR$/ContactDetective.gemspec" />
148
+ </list>
149
+ </option>
150
+ </component>
151
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
152
+ <component name="JsBuildToolPackageJson" detection-done="true" />
153
+ <component name="JsGulpfileManager">
154
+ <detection-done>true</detection-done>
155
+ </component>
156
+ <component name="ProjectFrameBounds">
157
+ <option name="x" value="10" />
158
+ <option name="y" value="43" />
159
+ <option name="width" value="1260" />
160
+ <option name="height" value="686" />
161
+ </component>
162
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
163
+ <OptionsSetting value="true" id="Add" />
164
+ <OptionsSetting value="true" id="Remove" />
165
+ <OptionsSetting value="true" id="Checkout" />
166
+ <OptionsSetting value="true" id="Update" />
167
+ <OptionsSetting value="true" id="Status" />
168
+ <OptionsSetting value="true" id="Edit" />
169
+ <ConfirmationsSetting value="0" id="Add" />
170
+ <ConfirmationsSetting value="0" id="Remove" />
171
+ </component>
172
+ <component name="ProjectView">
173
+ <navigator currentView="ProjectPane" proportions="" version="1">
174
+ <flattenPackages />
175
+ <showMembers />
176
+ <showModules />
177
+ <showLibraryContents />
178
+ <hideEmptyPackages />
179
+ <abbreviatePackageNames />
180
+ <autoscrollToSource />
181
+ <autoscrollFromSource />
182
+ <sortByType />
183
+ <manualOrder />
184
+ <foldersAlwaysOnTop value="true" />
185
+ </navigator>
186
+ <panes>
187
+ <pane id="ProjectPane">
188
+ <subPane>
189
+ <PATH>
190
+ <PATH_ELEMENT>
191
+ <option name="myItemId" value="ContactDetective" />
192
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
193
+ </PATH_ELEMENT>
194
+ </PATH>
195
+ <PATH>
196
+ <PATH_ELEMENT>
197
+ <option name="myItemId" value="ContactDetective" />
198
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
199
+ </PATH_ELEMENT>
200
+ <PATH_ELEMENT>
201
+ <option name="myItemId" value="ContactDetective" />
202
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
203
+ </PATH_ELEMENT>
204
+ </PATH>
205
+ <PATH>
206
+ <PATH_ELEMENT>
207
+ <option name="myItemId" value="ContactDetective" />
208
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
209
+ </PATH_ELEMENT>
210
+ <PATH_ELEMENT>
211
+ <option name="myItemId" value="ContactDetective" />
212
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
213
+ </PATH_ELEMENT>
214
+ <PATH_ELEMENT>
215
+ <option name="myItemId" value="test" />
216
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
217
+ </PATH_ELEMENT>
218
+ </PATH>
219
+ <PATH>
220
+ <PATH_ELEMENT>
221
+ <option name="myItemId" value="ContactDetective" />
222
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
223
+ </PATH_ELEMENT>
224
+ <PATH_ELEMENT>
225
+ <option name="myItemId" value="ContactDetective" />
226
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
227
+ </PATH_ELEMENT>
228
+ <PATH_ELEMENT>
229
+ <option name="myItemId" value="lib" />
230
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
231
+ </PATH_ELEMENT>
232
+ </PATH>
233
+ <PATH>
234
+ <PATH_ELEMENT>
235
+ <option name="myItemId" value="ContactDetective" />
236
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
237
+ </PATH_ELEMENT>
238
+ <PATH_ELEMENT>
239
+ <option name="myItemId" value="ContactDetective" />
240
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
241
+ </PATH_ELEMENT>
242
+ <PATH_ELEMENT>
243
+ <option name="myItemId" value="lib" />
244
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
245
+ </PATH_ELEMENT>
246
+ <PATH_ELEMENT>
247
+ <option name="myItemId" value="ContactDetective" />
248
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
249
+ </PATH_ELEMENT>
250
+ </PATH>
251
+ <PATH>
252
+ <PATH_ELEMENT>
253
+ <option name="myItemId" value="ContactDetective" />
254
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
255
+ </PATH_ELEMENT>
256
+ <PATH_ELEMENT>
257
+ <option name="myItemId" value="ContactDetective" />
258
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
259
+ </PATH_ELEMENT>
260
+ <PATH_ELEMENT>
261
+ <option name="myItemId" value="bin" />
262
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
263
+ </PATH_ELEMENT>
264
+ </PATH>
265
+ </subPane>
266
+ </pane>
267
+ <pane id="Scratches" />
268
+ <pane id="Scope" />
269
+ </panes>
270
+ </component>
271
+ <component name="PropertiesComponent">
272
+ <property name="WebServerToolWindowFactoryState" value="false" />
273
+ <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
274
+ </component>
275
+ <component name="RecentsManager">
276
+ <key name="MoveFile.RECENT_KEYS">
277
+ <recent name="$PROJECT_DIR$/test" />
278
+ </key>
279
+ </component>
280
+ <component name="RunManager" selected="IRB console.IRB console: ContactDetective">
281
+ <configuration default="false" name="IRB console: ContactDetective" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
282
+ <module name="ContactDetective" />
283
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
284
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
285
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
286
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
287
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
288
+ <envs />
289
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
290
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
291
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
292
+ <COVERAGE_PATTERN ENABLED="true">
293
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
294
+ </COVERAGE_PATTERN>
295
+ </EXTENSION>
296
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
297
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
298
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
299
+ <method />
300
+ </configuration>
301
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
302
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
303
+ <module name="" />
304
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
305
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
306
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
307
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
308
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
309
+ <envs />
310
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
311
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
312
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
313
+ <COVERAGE_PATTERN ENABLED="true">
314
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
315
+ </COVERAGE_PATTERN>
316
+ </EXTENSION>
317
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
318
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
319
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
320
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
321
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
322
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
323
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
324
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
325
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
326
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
327
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
328
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
329
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
330
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
331
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
332
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
333
+ <method />
334
+ </configuration>
335
+ <configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
336
+ <module name="" />
337
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
338
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
339
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
340
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
341
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
342
+ <envs />
343
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
344
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
345
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
346
+ <COVERAGE_PATTERN ENABLED="true">
347
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
348
+ </COVERAGE_PATTERN>
349
+ </EXTENSION>
350
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
351
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
352
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
353
+ <method />
354
+ </configuration>
355
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
356
+ <method />
357
+ </configuration>
358
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
359
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
360
+ <module name="" />
361
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
362
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
363
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
364
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
365
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
366
+ <envs />
367
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
368
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
369
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
370
+ <COVERAGE_PATTERN ENABLED="true">
371
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
372
+ </COVERAGE_PATTERN>
373
+ </EXTENSION>
374
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
375
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
376
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
377
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
378
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
379
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
380
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
381
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
382
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
383
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
384
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
385
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
386
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
387
+ <method />
388
+ </configuration>
389
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
390
+ <module name="" />
391
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
392
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
393
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
394
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
395
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
396
+ <envs />
397
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
398
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
399
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
400
+ <COVERAGE_PATTERN ENABLED="true">
401
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
402
+ </COVERAGE_PATTERN>
403
+ </EXTENSION>
404
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
405
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
406
+ <method />
407
+ </configuration>
408
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
409
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
410
+ <module name="" />
411
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
412
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
413
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
414
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
415
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
416
+ <envs />
417
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
418
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
419
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
420
+ <COVERAGE_PATTERN ENABLED="true">
421
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
422
+ </COVERAGE_PATTERN>
423
+ </EXTENSION>
424
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
425
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
426
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
427
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
428
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
429
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
430
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
431
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
432
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
433
+ <method />
434
+ </configuration>
435
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
436
+ <method />
437
+ </configuration>
438
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
439
+ <command value="run-script" />
440
+ <scripts />
441
+ <envs />
442
+ <method />
443
+ </configuration>
444
+ <list size="1">
445
+ <item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: ContactDetective" />
446
+ </list>
447
+ <recent_temporary>
448
+ <list size="1">
449
+ <item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: ContactDetective" />
450
+ </list>
451
+ </recent_temporary>
452
+ </component>
453
+ <component name="ShelveChangesManager" show_recycled="false" />
454
+ <component name="SvnConfiguration">
455
+ <configuration />
456
+ </component>
457
+ <component name="TaskManager">
458
+ <task active="true" id="Default" summary="Default task">
459
+ <changelist id="112f1632-f182-4687-9315-b7b1dd47585f" name="Default" comment="" />
460
+ <created>1452150557613</created>
461
+ <option name="number" value="Default" />
462
+ <updated>1452150557613</updated>
463
+ </task>
464
+ <servers />
465
+ </component>
466
+ <component name="ToolWindowManager">
467
+ <frame x="10" y="43" width="1260" height="686" extended-state="0" />
468
+ <editor active="true" />
469
+ <layout>
470
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
471
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
472
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
473
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
474
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32970452" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
475
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
476
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
477
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
478
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
479
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
480
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
481
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
482
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
483
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
484
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
485
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
486
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
487
+ </layout>
488
+ </component>
489
+ <component name="VcsContentAnnotationSettings">
490
+ <option name="myLimit" value="2678400000" />
491
+ </component>
492
+ <component name="XDebuggerManager">
493
+ <breakpoint-manager />
494
+ <watches-manager />
495
+ </component>
496
+ <component name="editorHistoryManager">
497
+ <entry file="file://$PROJECT_DIR$/README.md">
498
+ <provider selected="true" editor-type-id="text-editor">
499
+ <state vertical-scroll-proportion="-1.1111112">
500
+ <caret line="2" column="118" selection-start-line="2" selection-start-column="118" selection-end-line="2" selection-end-column="118" />
501
+ <folding />
502
+ </state>
503
+ </provider>
504
+ </entry>
505
+ <entry file="file://$PROJECT_DIR$/Gemfile">
506
+ <provider selected="true" editor-type-id="text-editor">
507
+ <state vertical-scroll-proportion="0.0">
508
+ <caret line="5" column="34" selection-start-line="5" selection-start-column="34" selection-end-line="5" selection-end-column="34" />
509
+ <folding />
510
+ </state>
511
+ </provider>
512
+ </entry>
513
+ <entry file="file://$PROJECT_DIR$/bin/setup">
514
+ <provider selected="true" editor-type-id="text-editor">
515
+ <state vertical-scroll-proportion="0.0">
516
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
517
+ <folding />
518
+ </state>
519
+ </provider>
520
+ </entry>
521
+ <entry file="file://$PROJECT_DIR$/bin/console">
522
+ <provider selected="true" editor-type-id="text-editor">
523
+ <state vertical-scroll-proportion="0.0">
524
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
525
+ <folding />
526
+ </state>
527
+ </provider>
528
+ </entry>
529
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
530
+ <provider selected="true" editor-type-id="text-editor">
531
+ <state vertical-scroll-proportion="0.0">
532
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
533
+ <folding />
534
+ </state>
535
+ </provider>
536
+ </entry>
537
+ <entry file="file://$PROJECT_DIR$/.gitignore">
538
+ <provider selected="true" editor-type-id="text-editor">
539
+ <state vertical-scroll-proportion="-3.8888888">
540
+ <caret line="7" column="14" selection-start-line="7" selection-start-column="14" selection-end-line="7" selection-end-column="14" />
541
+ <folding />
542
+ </state>
543
+ </provider>
544
+ </entry>
545
+ <entry file="file://$PROJECT_DIR$/lib/ContactDetective/version.rb">
546
+ <provider selected="true" editor-type-id="text-editor">
547
+ <state vertical-scroll-proportion="0.0">
548
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
549
+ <folding />
550
+ </state>
551
+ </provider>
552
+ </entry>
553
+ <entry file="file://$PROJECT_DIR$/lib/collectors.rb">
554
+ <provider selected="true" editor-type-id="text-editor">
555
+ <state vertical-scroll-proportion="0.0">
556
+ <caret line="12" column="20" selection-start-line="12" selection-start-column="20" selection-end-line="12" selection-end-column="20" />
557
+ <folding />
558
+ </state>
559
+ </provider>
560
+ </entry>
561
+ <entry file="file://$PROJECT_DIR$/Rakefile">
562
+ <provider selected="true" editor-type-id="text-editor">
563
+ <state vertical-scroll-proportion="0.0">
564
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
565
+ <folding />
566
+ </state>
567
+ </provider>
568
+ </entry>
569
+ <entry file="file://$PROJECT_DIR$/test/Tests.rb">
570
+ <provider selected="true" editor-type-id="text-editor">
571
+ <state vertical-scroll-proportion="0.0">
572
+ <caret line="33" column="135" selection-start-line="33" selection-start-column="135" selection-end-line="33" selection-end-column="135" />
573
+ <folding />
574
+ </state>
575
+ </provider>
576
+ </entry>
577
+ <entry file="file://$PROJECT_DIR$/lib/ContactDetective.rb">
578
+ <provider selected="true" editor-type-id="text-editor">
579
+ <state vertical-scroll-proportion="0.0">
580
+ <caret line="27" column="0" selection-start-line="27" selection-start-column="0" selection-end-line="29" selection-end-column="43" />
581
+ <folding />
582
+ </state>
583
+ </provider>
584
+ </entry>
585
+ <entry file="file://$PROJECT_DIR$/ContactDetective.gemspec">
586
+ <provider selected="true" editor-type-id="text-editor">
587
+ <state vertical-scroll-proportion="0.36724564">
588
+ <caret line="13" column="169" selection-start-line="13" selection-start-column="169" selection-end-line="13" selection-end-column="169" />
589
+ <folding />
590
+ </state>
591
+ </provider>
592
+ </entry>
593
+ </component>
594
+ </project>
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ContactDetective/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ContactDetective"
8
+ spec.version = ContactDetective::VERSION
9
+ spec.authors = ["Joshua Weinstein"]
10
+ spec.email = ["jweinst1@berkeley.edu"]
11
+
12
+ spec.summary = %q{A simple API for extracting contact data out of text or HTML links.}
13
+ spec.description = %q{A simple Ruby API for extracting contact data, such as emails, addresses, and phone numbers from
14
+ text documents and hyperlinks. Also has the ability to save the extracted data as JSON objects and files. For more info, see https://github.com/jweinst1/ContactDetective}
15
+ spec.homepage = "https://github.com/jweinst1/ContactDetective"
16
+ spec.license = "MIT"
17
+
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.11"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ end
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ContactDetective.gemspec
4
+ gemspec
5
+
6
+ gem 'ContactDetective', :path => ''
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Joshua Weinstein
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,65 @@
1
+ # ContactDetective
2
+
3
+ ContactDetective is a simple, straight forward API that allows you to extract and mine contact data from text and HTML. Specifically, the `ContactDetective` module allows your to extract physical addresses, emails and phone numbers from links and text documents. The API is a Ruby gem thats easily installable.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'ContactDetective'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install ContactDetective
21
+
22
+ ## Usage
23
+
24
+ ###Main Functions:
25
+
26
+ #####`ContactDetective::gethtmlfromlink(link)`:
27
+ Returns the HTML string from a hyper link string. Will raise an error if the link is invalid or does not load an HTML document
28
+
29
+ #####`ContactDetective::phonenumbers(link)`:
30
+ Returns an array of strings representing the phone numbers present in the link given. The following phone number formats will be recognized: `(XXX) XXX-XXXX`, `XXX-XXX-XXXX`, and `XXX XXX XXXX`, where `X` is a number in 0-9.
31
+
32
+ #####`ContactDetective::emails(link)`:
33
+ Returns an array of strings representing the email addresses present in the link given. Emails will only be captured if represented in the format `Albert@Something.com`, with any possible names or website extensions.
34
+
35
+ #####`ContactDetective::addresses(link)`:
36
+ Returns an array of strings representing the physical addresses present in the link given. It will pick up street numbers and names, cities and states, as well as zipcodes. The specific address class allows you to select addresses from specific streets.
37
+
38
+ #####`ContactDetective::allcontacts(link)`:
39
+ Returns a Hash object of all contact data from the given link. Represents the data under these keys:
40
+ ```
41
+ contacts['emails'] = emails(link)
42
+ contacts['phonenumbers'] = phonenumbers(link)
43
+ contacts['addresses'] = addresses(link)
44
+ ```
45
+
46
+ #####`ContactDetective::contactsjson(link, name)`:
47
+ Takes the Hash object from the `allcontacts()` function and serializses it to a JSON object and saves it as a JSON file in the working directory that gem is run on.
48
+
49
+ For functions from specific classes, see the wiki.
50
+
51
+ ## Development
52
+
53
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
54
+
55
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
56
+
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jweinst1/ContactDetective.
60
+
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
65
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ContactDetective"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,133 @@
1
+ require "ContactDetective/version"
2
+
3
+ module ContactDetective
4
+ #main functions______
5
+ #gets html from a link
6
+ def self.gethtmlfromlink(link)
7
+ require 'open-uri'
8
+ return open(link, &:read)
9
+ end
10
+ #gets all emails from a link
11
+ def self.emails(link)
12
+ text = ContactDetective::gethtmlfromlink(link)
13
+ text.scan(/[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-z]+/)
14
+ end
15
+ def self.phonenumbers(link)
16
+ text = ContactDetective::gethtmlfromlink(link)
17
+ ContactDetective::Phonenumbers.getallnumbers(text)
18
+ end
19
+ def self.addresses(link)
20
+ text = ContactDetective::gethtmlfromlink(link)
21
+ citystatezip = ContactDetective::Addresses.citystatezip(text)
22
+ streets = ContactDetective::Addresses.getstreets(text)
23
+ return citystatezip + streets
24
+ end
25
+ #creates Hash object of all contact data
26
+ def self.allcontacts(link)
27
+ contacts = Hash.new()
28
+ contacts['emails'] = emails(link)
29
+ contacts['phonenumbers'] = phonenumbers(link)
30
+ contacts['addresses'] = addresses(link)
31
+ return contacts
32
+ end
33
+ #writes the contact data to a json file
34
+ def self.contactsjson(link, name)
35
+ require 'json'
36
+ contact = allcontacts(link).to_json
37
+ File.open(name, 'w') { |file| file.write(contact) }
38
+ end
39
+ class Emails
40
+ #gets every email in the text
41
+ def self.getallemails(text)
42
+ text.scan(/[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-z]+/)
43
+ end
44
+ #gets every email with specific extension
45
+ def self.emailswithext(text, ext)
46
+ string = '[a-zA-Z0-9]+@[a-zA-Z0-9]+\.' + ext
47
+ patt = Regexp.new(string)
48
+ text.scan(patt)
49
+ end
50
+ #gets emails with prefix before @ sign
51
+ def self.emailswithname(text, name)
52
+ string = name + '@[a-zA-Z0-9]+\.[a-z]+'
53
+ patt = Regexp.new(string)
54
+ text.scan(patt)
55
+ end
56
+ end
57
+ class Phonenumbers
58
+ def self.getallnumbers(text)
59
+ pattone = text.scan(/[0-9]{3}\-[0-9]{3}\-[0-9]{4}/)
60
+ patttwo = text.scan(/\([0-9]{3}\)\-[0-9]{3}\-[0-9]{3}/)
61
+ pattthree = text.scan(/[0-9]{3} [0-9]{3} [0-9]{4}/)
62
+ return pattone + pattwo
63
+ end
64
+ #gets numbers by area code
65
+ def self.getnumbersbyarea(text, areacode)
66
+ string = areacode + '\-[0-9]{3}\-[0-9]{4}'
67
+ patt = Regexp.new(string)
68
+ text.scan(patt)
69
+ end
70
+ #all numbers without a specific area
71
+ def self.getwithoutarea(text, areacode)
72
+ nums = text.scan(/[0-9]{3}\-[0-9]{3}\-[0-9]{4}/)
73
+ antipatt = Regexp.new(areacode + '\-[0-9]{3}\-[0-9]{4}')
74
+ nums.reject {|elem| elem =~ antipatt}
75
+ end
76
+
77
+ end
78
+ class Addresses
79
+ def self.getstreets(text)
80
+ text.scan(/[0-9]+ [a-zA-Z] street/)
81
+ end
82
+ def self.getlanes(text)
83
+ text.scan(/[0-9]+ [a-zA-Z] lane/)
84
+ end
85
+ def self.getroadext(text, road)
86
+ patt = Regexp.new('[0-9]+ [a-zA-Z] ' + road)
87
+ text.scan(patt)
88
+ end
89
+ #gets city state in format City, ST
90
+ def self.getcitystates(text)
91
+ text.scan(/[A-Z][a-z]+, [A-Z]{2}/)
92
+ end
93
+ def self.citystatezip(text)
94
+ text.scan(/[A-Z][a-z]+, [A-Z]{2} [0-9]{5}/)
95
+ end
96
+ end
97
+ class Utils
98
+
99
+ def self.removebrackets(text)
100
+ text.split(/<[^<>]+>/)
101
+ end
102
+ def self.onlybrackets(text)
103
+ text.scan(/<[^<>]+>/)
104
+ end
105
+ def self.replacebrackets(text)
106
+ text.gsub(/<[^<>]+>/, "")
107
+ end
108
+ def self.sentfragments(text)
109
+ wordfrags = []
110
+ text.split(/<[^<>]+>/).each do |elem|
111
+ if elem =~ /^[a-zA-Z]+ [a-zA-Z]*$/
112
+ wordfrags << elem
113
+ end
114
+ end
115
+ return wordfrags
116
+ end
117
+ def self.getwords(text)
118
+ words = text.scan(/ ([a-zA-Z]+) /)
119
+ filtered = []
120
+ words.each {|elem| filtered << elem[0]}
121
+ end
122
+ def self.makeregex(string)
123
+ Regexp.new(string)
124
+ end
125
+ def self.getnumeric(string)
126
+ string.scan(/[0-9]+/)
127
+ end
128
+ def makeJSON(hashobj)
129
+ require 'json'
130
+ hashobj.to_json
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,3 @@
1
+ module ContactDetective
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,20 @@
1
+ #class for sc
2
+
3
+ class Collector
4
+ def initialize(pattern)
5
+ @pattern = pattern
6
+ @bin = []
7
+ end
8
+ def input(string)
9
+ if string =~ @pattern
10
+ @bin << string
11
+ end
12
+ end
13
+ #tests for a match
14
+ def ismatch(string)
15
+ (string =~ @pattern) ? true : false
16
+ end
17
+ def matches
18
+ @bin
19
+ end
20
+ end
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ContactDetective
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Joshua Weinstein
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-01-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: |-
42
+ A simple Ruby API for extracting contact data, such as emails, addresses, and phone numbers from
43
+ text documents and hyperlinks. Also has the ability to save the extracted data as JSON objects and files. For more info, see https://github.com/jweinst1/ContactDetective
44
+ email:
45
+ - jweinst1@berkeley.edu
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - ".idea/.name"
52
+ - ".idea/.rakeTasks"
53
+ - ".idea/ContactDetective.iml"
54
+ - ".idea/encodings.xml"
55
+ - ".idea/misc.xml"
56
+ - ".idea/modules.xml"
57
+ - ".idea/workspace.xml"
58
+ - ContactDetective.gemspec
59
+ - Gemfile
60
+ - LICENSE.txt
61
+ - README.md
62
+ - Rakefile
63
+ - bin/console
64
+ - bin/setup
65
+ - lib/ContactDetective.rb
66
+ - lib/ContactDetective/version.rb
67
+ - lib/collectors.rb
68
+ homepage: https://github.com/jweinst1/ContactDetective
69
+ licenses:
70
+ - MIT
71
+ metadata: {}
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ requirements: []
87
+ rubyforge_project:
88
+ rubygems_version: 2.4.6
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: A simple API for extracting contact data out of text or HTML links.
92
+ test_files: []