contact-data 0.0.5 → 0.0.6

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.
@@ -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
@@ -0,0 +1,8 @@
1
+ require 'vcr'
2
+
3
+ VCR.configure do |c|
4
+ c.configure_rspec_metadata!
5
+ c.cassette_library_dir = 'spec/support/cassettes'
6
+ c.hook_into :webmock
7
+ # c.default_cassette_options = { record: :new_episodes }
8
+ end
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.5
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-09 00:00:00.000000000 Z
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
- description: A Ruby gem to retrieve information about people and organizations from
118
- http://public.xenapto.com
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/links.rb
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-data_links_spec.rb
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-data_links_spec.rb
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
@@ -1,12 +0,0 @@
1
- # encoding: utf-8
2
- class ContactData
3
- class Links
4
- BASE = :links
5
-
6
- class << self
7
- def latest(params = {})
8
- Fetcher.get(:latest, base: BASE, params: params)
9
- end
10
- end
11
- end
12
- end
@@ -1,10 +0,0 @@
1
- # encoding: utf-8
2
- require 'spec_helper'
3
- require 'contact-data'
4
-
5
- describe ContactData::Links do
6
- it 'gets latest links with related slug' do
7
- result = ContactData::Links.latest
8
- expect(result).to be_an(Array)
9
- end
10
- end