whoisxmlapi 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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/whoisxmlapi/client.rb +15 -15
- data/lib/whoisxmlapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc59532bdf58423ad8c014f8b114ed040c5e9c6f
|
4
|
+
data.tar.gz: 5dbb8973161279e48ea162577e1d8ce97dc4b926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9059d667de7eb734115db0a7fa55dbcebd30c8aff19ec388a3aebe07d03f3734f962f07bf60162dd6ba456482da87d9f221f94623582cc69fab260002be4afb
|
7
|
+
data.tar.gz: 941444ad0ec3b0e9e6613aa4e5f79f66b704ac4eb9366ac22ed4962a3a434f12b53aafea0ebba4fc4b216f3ab6bd796f72ce7ddbc773a8666b0773f969a3762a
|
data/Gemfile.lock
CHANGED
data/lib/whoisxmlapi/client.rb
CHANGED
@@ -189,6 +189,21 @@ module WhoisXMLAPI
|
|
189
189
|
end
|
190
190
|
|
191
191
|
end
|
192
|
+
|
193
|
+
def self.create_and_send_rwhois_request(params_basic)
|
194
|
+
uri = URI.parse('https://reverse-whois-api.whoisxmlapi.com/api/v2')
|
195
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
196
|
+
http.use_ssl = true
|
197
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
198
|
+
request = Net::HTTP::Post.new(uri.request_uri)
|
199
|
+
request.add_field('Content-Type', 'application/json')
|
200
|
+
request.add_field('Accept', 'application/json')
|
201
|
+
request.body = params_basic.to_json
|
202
|
+
r = http.request(request)
|
203
|
+
# used for debugging
|
204
|
+
# puts JSON.parse(r.body).to_yaml
|
205
|
+
return r
|
206
|
+
end
|
192
207
|
|
193
208
|
|
194
209
|
####################################################################################################
|
@@ -198,19 +213,4 @@ module WhoisXMLAPI
|
|
198
213
|
|
199
214
|
end # of class Client
|
200
215
|
|
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
|
215
|
-
|
216
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.20
|
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: 2019-03-
|
14
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|