whoisxmlapi 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/whoisxmlapi/client.rb +15 -16
- data/lib/whoisxmlapi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 949c4337394becf4a0d6980e670b45bc38fea105
|
4
|
+
data.tar.gz: e6d8fd44f06792ef56939c7856e4607b0a81c8c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb7d93e9fc037ca0f2c11d35dadf7e66ceed9ab55704c6f13d3aa7c1402cc17dc2d326bb11a38e5e9618f7abe08b0791b498ed96d4ba341b677f5d0c8725efb
|
7
|
+
data.tar.gz: c251921132b0ad49a168a87abecdb73cf7ea9a33e509a51190c6459127977f00ae172e873a13ec7a98b72810ea8809d53b88aca84e5dea6f50f0ae9198429625
|
data/lib/whoisxmlapi/client.rb
CHANGED
@@ -191,27 +191,26 @@ module WhoisXMLAPI
|
|
191
191
|
end
|
192
192
|
|
193
193
|
|
194
|
-
def self.create_and_send_rwhois_request(params_basic)
|
195
|
-
uri = URI.parse('https://reverse-whois-api.whoisxmlapi.com/api/v2')
|
196
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
197
|
-
http.use_ssl = true
|
198
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
199
|
-
request = Net::HTTP::Post.new(uri.request_uri)
|
200
|
-
request.add_field('Content-Type', 'application/json')
|
201
|
-
request.add_field('Accept', 'application/json')
|
202
|
-
request.body = params_basic.to_json
|
203
|
-
r = http.request(request)
|
204
|
-
# used for debugging
|
205
|
-
# puts JSON.parse(r.body).to_yaml
|
206
|
-
return r
|
207
|
-
end
|
208
|
-
|
209
|
-
|
210
194
|
####################################################################################################
|
211
195
|
private
|
212
196
|
####################################################################################################
|
213
197
|
|
214
198
|
|
215
199
|
end # of class Client
|
200
|
+
|
201
|
+
def self.create_and_send_rwhois_request(params_basic)
|
202
|
+
uri = URI.parse('https://reverse-whois-api.whoisxmlapi.com/api/v2')
|
203
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
204
|
+
http.use_ssl = true
|
205
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
206
|
+
request = Net::HTTP::Post.new(uri.request_uri)
|
207
|
+
request.add_field('Content-Type', 'application/json')
|
208
|
+
request.add_field('Accept', 'application/json')
|
209
|
+
request.body = params_basic.to_json
|
210
|
+
r = http.request(request)
|
211
|
+
# used for debugging
|
212
|
+
# puts JSON.parse(r.body).to_yaml
|
213
|
+
return r
|
214
|
+
end
|
216
215
|
|
217
216
|
end # of module WhoisXMLAPI
|
data/lib/whoisxmlapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoisxmlapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Maujean
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.4.5.1
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: whoisxmlapi.com access
|