ocean-rails 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/api.rb +4 -2
- data/lib/ocean/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: 93da2aaae658c8d687731caf9767b5aaf2b16437
|
4
|
+
data.tar.gz: 9ca92f90ec4f77bb28eca4caec17af0d9f16f60e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e471acbac49e52dca44a319c08cb6df22a64f8e85b1c1255aa9b60fc32d01df1b0befca5d1bbb27e2dbb566dbd71780009b7e7b5ef541f93eeedca755e87e7
|
7
|
+
data.tar.gz: 87b58bd0d2d2b4701c3b666972d748a7c4c6be2d3d1921e5f5004a7f50f71f961bab6591765e4dada345f122630316f7e93dcafab050feefed84418c267b3c87
|
data/lib/ocean/api.rb
CHANGED
@@ -133,7 +133,8 @@ class Api
|
|
133
133
|
# +ssl_verifypeer+ (true by default), controls SSL peer verification.
|
134
134
|
#
|
135
135
|
def self.request(url, http_method, args: nil, headers: {}, body: nil,
|
136
|
-
x_api_token: headers['X-API-Token'],
|
136
|
+
x_api_token: headers['X-API-Token'],
|
137
|
+
ssl_verifypeer: true, ssl_verifyhost: 2)
|
137
138
|
# Set up the request
|
138
139
|
headers['Accept'] = "application/json"
|
139
140
|
headers['Content-Type'] = "application/json"
|
@@ -146,7 +147,8 @@ class Api
|
|
146
147
|
headers: headers,
|
147
148
|
params: args,
|
148
149
|
body: body,
|
149
|
-
ssl_verifypeer: ssl_verifypeer
|
150
|
+
ssl_verifypeer: ssl_verifypeer,
|
151
|
+
ssl_verifyhost: ssl_verifyhost)
|
150
152
|
# Run it
|
151
153
|
response = Response.new(request.run)
|
152
154
|
# If successful, return
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|