contact-data 0.0.19 → 0.0.20
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db881d9279bf05f8e29a5061727511ea7d16b562
|
4
|
+
data.tar.gz: f01b935abf8f2168eaa3d49a7faf9e4e510b2015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cca2ca481dd431965bf8fbd2f404fbd8147dbbeb8d5f453b809abe9ec31c8edf76536d086be780191818e6fcf2462c3ba4d8483a38ef13f3a13da71efb471c6
|
7
|
+
data.tar.gz: 6a92b1b36a1e09bf2a28bc277a80a60209da113366795563e2b6430263e0aeec1272e6808134008c988dcbbeb07281ffb2af13dd8d7529092becd04972e04704
|
data/Gemfile.lock
CHANGED
data/lib/contact-data/version.rb
CHANGED
@@ -4,6 +4,7 @@ require 'contact-data'
|
|
4
4
|
|
5
5
|
describe ContactData::Deprecated do
|
6
6
|
let(:name) { 'Derek Jones III' }
|
7
|
+
let(:name_xml_bug) { 'XXXXXXXXXX ?' }
|
7
8
|
|
8
9
|
context 'contact' do
|
9
10
|
it 'searches by name' do
|
@@ -12,6 +13,13 @@ describe ContactData::Deprecated do
|
|
12
13
|
expect(result).to be_a(Hash)
|
13
14
|
end
|
14
15
|
end
|
16
|
+
|
17
|
+
it 'searches successfully with name that gave XML bug' do
|
18
|
+
VCR.use_cassette('deprecated_contact_search') do
|
19
|
+
result = ContactData::Deprecated.search(name_xml_bug)
|
20
|
+
expect(result).to be_a(Hash)
|
21
|
+
end
|
22
|
+
end
|
15
23
|
end
|
16
24
|
|
17
25
|
context 'contact name' do
|
@@ -76,4 +76,139 @@ http_interactions:
|
|
76
76
|
Jones","slug":"derek-jones","count":10,"version":"v1"}'
|
77
77
|
http_version:
|
78
78
|
recorded_at: Thu, 12 Jun 2014 10:53:38 GMT
|
79
|
+
- request:
|
80
|
+
method: get
|
81
|
+
uri: http://public.xenapto.com/name/XXXXX+%253F.json
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ''
|
85
|
+
headers:
|
86
|
+
Accept:
|
87
|
+
- "*/*; q=0.5, application/xml"
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip, deflate
|
90
|
+
User-Agent:
|
91
|
+
- Ruby
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Date:
|
98
|
+
- Wed, 13 Aug 2014 16:33:29 GMT
|
99
|
+
Status:
|
100
|
+
- 200 OK
|
101
|
+
Connection:
|
102
|
+
- close
|
103
|
+
Content-Type:
|
104
|
+
- application/json; charset=utf-8
|
105
|
+
Content-Length:
|
106
|
+
- '79'
|
107
|
+
X-Ua-Compatible:
|
108
|
+
- IE=Edge,chrome=1
|
109
|
+
Etag:
|
110
|
+
- '"50cd64a593ffbd41a6f90d88fafde183"'
|
111
|
+
Cache-Control:
|
112
|
+
- max-age=0, private, must-revalidate
|
113
|
+
X-Request-Id:
|
114
|
+
- 296e310ed791fbad627564e461951566
|
115
|
+
X-Runtime:
|
116
|
+
- '0.032884'
|
117
|
+
X-Rack-Cache:
|
118
|
+
- miss
|
119
|
+
body:
|
120
|
+
encoding: UTF-8
|
121
|
+
string: '{"contacts":[],"name":"Not found","slug":"xxxxx-plus","count":0,"version":"v1"}'
|
122
|
+
http_version:
|
123
|
+
recorded_at: Wed, 13 Aug 2014 16:33:29 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: http://public.xenapto.com/name/XXXXXXXXXX+%253F.json
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers:
|
131
|
+
Accept:
|
132
|
+
- "*/*; q=0.5, application/xml"
|
133
|
+
Accept-Encoding:
|
134
|
+
- gzip, deflate
|
135
|
+
User-Agent:
|
136
|
+
- Ruby
|
137
|
+
response:
|
138
|
+
status:
|
139
|
+
code: 200
|
140
|
+
message: OK
|
141
|
+
headers:
|
142
|
+
Date:
|
143
|
+
- Wed, 13 Aug 2014 16:35:55 GMT
|
144
|
+
Status:
|
145
|
+
- 200 OK
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Content-Type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
Content-Length:
|
151
|
+
- '84'
|
152
|
+
X-Ua-Compatible:
|
153
|
+
- IE=Edge,chrome=1
|
154
|
+
Etag:
|
155
|
+
- '"253398129d504e94f0911f40498f71b1"'
|
156
|
+
Cache-Control:
|
157
|
+
- max-age=0, private, must-revalidate
|
158
|
+
X-Request-Id:
|
159
|
+
- 7df57910c30b2c48aba43d05f6288798
|
160
|
+
X-Runtime:
|
161
|
+
- '0.044715'
|
162
|
+
X-Rack-Cache:
|
163
|
+
- miss
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '{"contacts":[],"name":"Not found","slug":"xxxxxxxxxx-plus","count":0,"version":"v1"}'
|
167
|
+
http_version:
|
168
|
+
recorded_at: Wed, 13 Aug 2014 16:35:55 GMT
|
169
|
+
- request:
|
170
|
+
method: get
|
171
|
+
uri: http://public.xenapto.com/name/Derek+Jones+III.json
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ''
|
175
|
+
headers:
|
176
|
+
Accept:
|
177
|
+
- "*/*; q=0.5, application/xml"
|
178
|
+
Accept-Encoding:
|
179
|
+
- gzip, deflate
|
180
|
+
User-Agent:
|
181
|
+
- Ruby
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 200
|
185
|
+
message: OK
|
186
|
+
headers:
|
187
|
+
Date:
|
188
|
+
- Wed, 13 Aug 2014 16:35:55 GMT
|
189
|
+
Status:
|
190
|
+
- 200 OK
|
191
|
+
Connection:
|
192
|
+
- close
|
193
|
+
Content-Type:
|
194
|
+
- application/json; charset=utf-8
|
195
|
+
Content-Length:
|
196
|
+
- '94'
|
197
|
+
X-Ua-Compatible:
|
198
|
+
- IE=Edge,chrome=1
|
199
|
+
Etag:
|
200
|
+
- '"5e7d9fa614dc656a150e4fdca993850e"'
|
201
|
+
Cache-Control:
|
202
|
+
- max-age=0, private, must-revalidate
|
203
|
+
X-Request-Id:
|
204
|
+
- 4569407b925ec6da38345e3e4eac86cb
|
205
|
+
X-Runtime:
|
206
|
+
- '0.058324'
|
207
|
+
X-Rack-Cache:
|
208
|
+
- miss
|
209
|
+
body:
|
210
|
+
encoding: UTF-8
|
211
|
+
string: '{"contacts":[],"name":"Not found","slug":"derek-plus-jones-plus-iii","count":0,"version":"v1"}'
|
212
|
+
http_version:
|
213
|
+
recorded_at: Wed, 13 Aug 2014 16:35:55 GMT
|
79
214
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|