contact-data 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/contact-data/fetcher.rb +2 -0
- data/lib/contact-data/version.rb +1 -1
- data/spec/contact-data_link_spec.rb +1 -1
- data/spec/support/cassettes/links_info_search.yml +46 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54231531a3525502f001d7520cd3c8438b38f8ae
|
4
|
+
data.tar.gz: 4a6a358d5dad6579fad774f1fabf8de214dd7607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f6c44fde705d97f373abef710ffb1111104efa02cee5d4fcf9ff89e517ba8cef776c88f18675d2ad7102a4577a2fb69b35aaa34a0124da5e3c65262449e0b8d
|
7
|
+
data.tar.gz: d6bb4a5a5634829e12dbe3d905e44e875e4289b1efbe195c10be1e9cfaf7abebff246806a5799a578061cbf0339225f89f1e4faf768f7c9f4495ca1e59d951aa
|
data/Gemfile.lock
CHANGED
data/lib/contact-data/fetcher.rb
CHANGED
data/lib/contact-data/version.rb
CHANGED
@@ -14,7 +14,7 @@ describe ContactData::Link do
|
|
14
14
|
|
15
15
|
it 'gets metadata about a url' do
|
16
16
|
VCR.use_cassette('links_info_search') do
|
17
|
-
result = ContactData::Link.
|
17
|
+
result = ContactData::Link.search url: url, verbose: true
|
18
18
|
expect(result).to be_a(Hash)
|
19
19
|
end
|
20
20
|
end
|
@@ -46,4 +46,50 @@ http_interactions:
|
|
46
46
|
Numbers Authority","news_source":"Internet Assigned Numbers Authority","summary":null,"version":"v2"}'
|
47
47
|
http_version:
|
48
48
|
recorded_at: Thu, 19 Jun 2014 12:06:08 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: http://public.xenapto.com/api/v2/links/search.json?url=http://iana.org
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
Accept:
|
57
|
+
- "*/*; q=0.5, application/xml"
|
58
|
+
Accept-Encoding:
|
59
|
+
- gzip, deflate
|
60
|
+
User-Agent:
|
61
|
+
- Ruby
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Date:
|
68
|
+
- Thu, 19 Jun 2014 12:24:59 GMT
|
69
|
+
Status:
|
70
|
+
- 200 OK
|
71
|
+
Connection:
|
72
|
+
- close
|
73
|
+
Content-Type:
|
74
|
+
- application/json; charset=utf-8
|
75
|
+
Content-Length:
|
76
|
+
- '213'
|
77
|
+
X-Ua-Compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
Etag:
|
80
|
+
- '"37c7690f162d7e84536d18edf2df448e"'
|
81
|
+
Cache-Control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
X-Request-Id:
|
84
|
+
- c897abac4d03e775b72dc3814759a60a
|
85
|
+
X-Runtime:
|
86
|
+
- '3.034072'
|
87
|
+
X-Rack-Cache:
|
88
|
+
- miss
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: '{"contacts":[],"mentions":[],"emails":[],"url":"http://iana.org","domain":"iana.org","title":"Internet
|
92
|
+
Assigned Numbers Authority","news_source":"Internet Assigned Numbers Authority","summary":null,"version":"v2"}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Thu, 19 Jun 2014 12:24:59 GMT
|
49
95
|
recorded_with: VCR 2.9.2
|