secured_cloud_api_client 0.0.2 → 0.0.3

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: 916195ff166c0e20fa129e31f298034f147678dc
4
- data.tar.gz: 0897f1d09d6f64740314bd33dfb90a29d8495a6f
3
+ metadata.gz: ebe769098769ab361d1f3ec4f280a60c72a8928e
4
+ data.tar.gz: bae48e09d4e7670ff3d884cbb8c7d3d307476c3e
5
5
  SHA512:
6
- metadata.gz: a2d734f61a03dfcb7966accd27efa0a90ecafcfda80d87f6057d50ede2f7c613c457701ce27c39fec398227b8d3fee6c8658b95fd02bc113a962a3aea01af0a7
7
- data.tar.gz: a337d3ae467d0e7362f044633b3c2aae233120b3c9dfb2add5698bee7ead8e2a2563daa5ffd31476c0b3d86b8b5d8776647c2ede88264d47a4af6f4bf90f84be
6
+ metadata.gz: 09eb2be1dc2b87cce445b9df62c621d94e9e111bcdfff8dce7becc387c6a5033f6c72ce306df654c1f0a629adfc32f2ca6f3d993847cefcf0da6b1d3e8f41f12
7
+ data.tar.gz: f5bbfcd85ce4741b8dd37fb46e185a6d335af5119d2190c46fdfd42f683c435a193c57dac961ccd4eaca26bc8f68775bcc1c0a2e8e50ed56cfffa105d0507e51
@@ -31,7 +31,7 @@ class HttpClient
31
31
  req['Authorization'] = AUTH_SCHEME + createAuthorization("GET", url)
32
32
 
33
33
  #Execute request.
34
- res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
34
+ res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
35
35
 
36
36
  #Return response.
37
37
  return res
@@ -54,7 +54,7 @@ class HttpClient
54
54
  req['Authorization'] = AUTH_SCHEME + createAuthorization("POST", url)
55
55
 
56
56
  #Execute request.
57
- res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
57
+ res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
58
58
 
59
59
  #Return response.
60
60
  return res
@@ -87,7 +87,7 @@ class HttpClient
87
87
  req['Authorization'] = AUTH_SCHEME + createAuthorization("DELETE", url)
88
88
 
89
89
  #Execute request.
90
- res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
90
+ res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
91
91
 
92
92
  #Return response.
93
93
  return res
@@ -120,7 +120,7 @@ class HttpClient
120
120
  req['Authorization'] = AUTH_SCHEME + createAuthorization("PUT", url)
121
121
 
122
122
  #Execute request.
123
- res = Net::HTTP.start(@url.host, @url.port) {|http|http.request(req)} # Net::HTTPResponse object
123
+ res = Net::HTTP.start(@url.host, @url.port,:use_ssl => @url.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|http.request(req)} # Net::HTTPResponse object
124
124
 
125
125
  #Return response.
126
126
  return res
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secured_cloud_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Vella