contact-data 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +1 -0
- data/.rubocop.yml +16 -0
- data/Gemfile.lock +11 -1
- data/Rakefile +1 -1
- data/contact-data.gemspec +6 -4
- data/lib/contact-data.rb +3 -9
- data/lib/contact-data/contact.rb +11 -0
- data/lib/contact-data/deprecated.rb +3 -3
- data/lib/contact-data/fetcher.rb +21 -2
- data/lib/contact-data/link.rb +17 -0
- data/lib/contact-data/version.rb +3 -2
- data/spec/{contact-data_spec.rb → contact-data_contact_spec.rb} +3 -1
- data/spec/contact-data_deprecated_spec.rb +25 -12
- data/spec/contact-data_link_spec.rb +12 -0
- data/spec/spec_helper.rb +6 -3
- data/spec/support/cassettes/deprecated_contact_name_search.yml +55 -0
- data/spec/support/cassettes/deprecated_contact_search.yml +79 -0
- data/spec/support/cassettes/deprecated_link_metadata.yml +49 -0
- data/spec/support/cassettes/links_latest.yml +43709 -0
- data/spec/support/cassettes/name_search.yml +68 -0
- data/spec/support/vcr_setup.rb +8 -0
- metadata +51 -9
- data/lib/contact-data/links.rb +0 -12
- data/spec/contact-data_links_spec.rb +0 -10
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://public.xenapto.com/api/v2/search.json?name=Derek%20Jones%20III
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Thu, 12 Jun 2014 10:59:45 GMT
|
23
|
+
Status:
|
24
|
+
- 404 Not Found
|
25
|
+
Connection:
|
26
|
+
- close
|
27
|
+
Content-Type:
|
28
|
+
- text/html; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '728'
|
31
|
+
X-Request-Id:
|
32
|
+
- 90f7aaf2536951016e1548cce21ffc5f
|
33
|
+
X-Runtime:
|
34
|
+
- '0.006338'
|
35
|
+
X-Rack-Cache:
|
36
|
+
- miss
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: |
|
40
|
+
<!DOCTYPE html>
|
41
|
+
<html>
|
42
|
+
<head>
|
43
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
44
|
+
<style type="text/css">
|
45
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
46
|
+
div.dialog {
|
47
|
+
width: 25em;
|
48
|
+
padding: 0 4em;
|
49
|
+
margin: 4em auto 0 auto;
|
50
|
+
border: 1px solid #ccc;
|
51
|
+
border-right-color: #999;
|
52
|
+
border-bottom-color: #999;
|
53
|
+
}
|
54
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
55
|
+
</style>
|
56
|
+
</head>
|
57
|
+
|
58
|
+
<body>
|
59
|
+
<!-- This file lives in public/404.html -->
|
60
|
+
<div class="dialog">
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
</body>
|
65
|
+
</html>
|
66
|
+
http_version:
|
67
|
+
recorded_at: Thu, 12 Jun 2014 10:59:45 GMT
|
68
|
+
recorded_with: VCR 2.9.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -114,8 +114,35 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
-
|
118
|
-
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: vcr
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '2'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: webmock
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '1'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '1'
|
145
|
+
description: A Ruby gem to retrieve data about people and organizations from http://public.xenapto.com
|
119
146
|
email:
|
120
147
|
- developers@xenapto.com
|
121
148
|
executables: []
|
@@ -124,6 +151,8 @@ extra_rdoc_files: []
|
|
124
151
|
files:
|
125
152
|
- ".env"
|
126
153
|
- ".gitignore"
|
154
|
+
- ".hound.yml"
|
155
|
+
- ".rubocop.yml"
|
127
156
|
- ".ruby-version"
|
128
157
|
- Gemfile
|
129
158
|
- Gemfile.lock
|
@@ -132,14 +161,21 @@ files:
|
|
132
161
|
- Rakefile
|
133
162
|
- contact-data.gemspec
|
134
163
|
- lib/contact-data.rb
|
164
|
+
- lib/contact-data/contact.rb
|
135
165
|
- lib/contact-data/deprecated.rb
|
136
166
|
- lib/contact-data/fetcher.rb
|
137
|
-
- lib/contact-data/
|
167
|
+
- lib/contact-data/link.rb
|
138
168
|
- lib/contact-data/version.rb
|
169
|
+
- spec/contact-data_contact_spec.rb
|
139
170
|
- spec/contact-data_deprecated_spec.rb
|
140
|
-
- spec/contact-
|
141
|
-
- spec/contact-data_spec.rb
|
171
|
+
- spec/contact-data_link_spec.rb
|
142
172
|
- spec/spec_helper.rb
|
173
|
+
- spec/support/cassettes/deprecated_contact_name_search.yml
|
174
|
+
- spec/support/cassettes/deprecated_contact_search.yml
|
175
|
+
- spec/support/cassettes/deprecated_link_metadata.yml
|
176
|
+
- spec/support/cassettes/links_latest.yml
|
177
|
+
- spec/support/cassettes/name_search.yml
|
178
|
+
- spec/support/vcr_setup.rb
|
143
179
|
homepage: https://github.com/Xenapto/contact-data
|
144
180
|
licenses:
|
145
181
|
- MIT
|
@@ -165,7 +201,13 @@ signing_key:
|
|
165
201
|
specification_version: 4
|
166
202
|
summary: 'Example: ContactData.search(''John Smith III'')'
|
167
203
|
test_files:
|
204
|
+
- spec/contact-data_contact_spec.rb
|
168
205
|
- spec/contact-data_deprecated_spec.rb
|
169
|
-
- spec/contact-
|
170
|
-
- spec/contact-data_spec.rb
|
206
|
+
- spec/contact-data_link_spec.rb
|
171
207
|
- spec/spec_helper.rb
|
208
|
+
- spec/support/cassettes/deprecated_contact_name_search.yml
|
209
|
+
- spec/support/cassettes/deprecated_contact_search.yml
|
210
|
+
- spec/support/cassettes/deprecated_link_metadata.yml
|
211
|
+
- spec/support/cassettes/links_latest.yml
|
212
|
+
- spec/support/cassettes/name_search.yml
|
213
|
+
- spec/support/vcr_setup.rb
|
data/lib/contact-data/links.rb
DELETED