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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 4c74a2da1b21179e155f2e898b345a4cb08c93aacfe38e206d4f88fdac024676
4
- data.tar.gz: a86442c1aaa419a71d12f733da52d8ccf761ad79ab563f92d9d073c78005ef84
2
+ SHA1:
3
+ metadata.gz: 949c4337394becf4a0d6980e670b45bc38fea105
4
+ data.tar.gz: e6d8fd44f06792ef56939c7856e4607b0a81c8c5
5
5
  SHA512:
6
- metadata.gz: 717685e3b1cb8cc9df8fe35999493262a741da6a2a01511806ec75d40d3afc1292b1ecabb3500d59087a2216f9d86baa088949d63f35cd12bc10b31e92e22386
7
- data.tar.gz: a359761bf60359946934a2a58b9836077ffca149e08057850ef27f618d8662b09f6e9db93b729fd16d516b8200459762b88fb9fe363bfb57eb6b7369d5308db9
6
+ metadata.gz: feb7d93e9fc037ca0f2c11d35dadf7e66ceed9ab55704c6f13d3aa7c1402cc17dc2d326bb11a38e5e9618f7abe08b0791b498ed96d4ba341b677f5d0c8725efb
7
+ data.tar.gz: c251921132b0ad49a168a87abecdb73cf7ea9a33e509a51190c6459127977f00ae172e873a13ec7a98b72810ea8809d53b88aca84e5dea6f50f0ae9198429625
@@ -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
@@ -1,3 +1,3 @@
1
1
  module WhoisXMLAPI
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
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.18
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: 2018-12-01 00:00:00.000000000 Z
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.7.7
147
+ rubygems_version: 2.4.5.1
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: whoisxmlapi.com access