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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c36b492ae663e188b2b761af1716c716b6c118b0
4
- data.tar.gz: cc0469ace681b08d32e4d1cc3e2ef5fc89fd518e
3
+ metadata.gz: 54231531a3525502f001d7520cd3c8438b38f8ae
4
+ data.tar.gz: 4a6a358d5dad6579fad774f1fabf8de214dd7607
5
5
  SHA512:
6
- metadata.gz: 9503ca0875dc3403bd1e7a6af3d3118ecf9811f0e00c73700b4c1ad9c22eb33c78adbb71d7db89b832a1630530cf0988ec32379a19c3214138baafcd0865a751
7
- data.tar.gz: 0e0421f1afcc35dafafd8c2d3b8fa562664d6cf832ee93fab9f6e9e5ba3744f0a43ee1ced46e6e5a5ee47cd961f301245f72c2d83ac8d0f6ea40647bf9f39df8
6
+ metadata.gz: 8f6c44fde705d97f373abef710ffb1111104efa02cee5d4fcf9ff89e517ba8cef776c88f18675d2ad7102a4577a2fb69b35aaa34a0124da5e3c65262449e0b8d
7
+ data.tar.gz: d6bb4a5a5634829e12dbe3d905e44e875e4289b1efbe195c10be1e9cfaf7abebff246806a5799a578061cbf0339225f89f1e4faf768f7c9f4495ca1e59d951aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- contact-data (0.0.6)
4
+ contact-data (0.0.7)
5
5
  rest-client (~> 1)
6
6
 
7
7
  GEM
@@ -1,4 +1,6 @@
1
1
  # encoding: utf-8
2
+ require 'rest-client'
3
+
2
4
  module ContactData
3
5
  class Fetcher
4
6
  URL = 'http://public.xenapto.com'
@@ -1,4 +1,4 @@
1
1
  # Gem version
2
2
  module ContactData
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
@@ -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.info url: url, verbose: true
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto