whoisxmlapi 0.0.19 → 0.0.20

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
2
  SHA1:
3
- metadata.gz: 949c4337394becf4a0d6980e670b45bc38fea105
4
- data.tar.gz: e6d8fd44f06792ef56939c7856e4607b0a81c8c5
3
+ metadata.gz: cc59532bdf58423ad8c014f8b114ed040c5e9c6f
4
+ data.tar.gz: 5dbb8973161279e48ea162577e1d8ce97dc4b926
5
5
  SHA512:
6
- metadata.gz: feb7d93e9fc037ca0f2c11d35dadf7e66ceed9ab55704c6f13d3aa7c1402cc17dc2d326bb11a38e5e9618f7abe08b0791b498ed96d4ba341b677f5d0c8725efb
7
- data.tar.gz: c251921132b0ad49a168a87abecdb73cf7ea9a33e509a51190c6459127977f00ae172e873a13ec7a98b72810ea8809d53b88aca84e5dea6f50f0ae9198429625
6
+ metadata.gz: f9059d667de7eb734115db0a7fa55dbcebd30c8aff19ec388a3aebe07d03f3734f962f07bf60162dd6ba456482da87d9f221f94623582cc69fab260002be4afb
7
+ data.tar.gz: 941444ad0ec3b0e9e6613aa4e5f79f66b704ac4eb9366ac22ed4962a3a434f12b53aafea0ebba4fc4b216f3ab6bd796f72ce7ddbc773a8666b0773f969a3762a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- whoisxmlapi (0.0.19)
4
+ whoisxmlapi (0.0.20)
5
5
  activesupport (~> 3.2)
6
6
  httparty
7
7
  mongoid
@@ -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
@@ -1,3 +1,3 @@
1
1
  module WhoisXMLAPI
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
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.19
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 00:00:00.000000000 Z
14
+ date: 2019-03-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport