rorvswild 1.0.0.pre.alpha6 → 1.0.0.pre.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rorvswild/client.rb +14 -5
- data/lib/rorvswild/version.rb +1 -1
- data/rorvswild.gemspec +0 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e11a687453e3e7c28fc36d5c750f2208a783ae
|
4
|
+
data.tar.gz: 261bc6f599ace16dd0e6edb37258fddc55c9ebfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df0c430db43b135fdd90228aaaba9aff75281e2f425ae7aac411aed5fbdbce58daac1f443099160a7c06889a222454abee0d62feaa26a13d531b5acdd9aeef7
|
7
|
+
data.tar.gz: 63b75b0ae22780242e8dce27c8799869f654a9997bf23379d113066ee6eb4a095d77b5a770a2563cc1a27808c670bd76d68044027edf12f6133998d9c810d372
|
data/lib/rorvswild/client.rb
CHANGED
@@ -2,7 +2,6 @@ require "set"
|
|
2
2
|
require "uri"
|
3
3
|
require "json/ext"
|
4
4
|
require "net/http"
|
5
|
-
require "net/http/persistent"
|
6
5
|
|
7
6
|
module RorVsWild
|
8
7
|
class Client
|
@@ -30,11 +29,21 @@ module RorVsWild
|
|
30
29
|
end
|
31
30
|
|
32
31
|
def http
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
@http ||= new_http
|
33
|
+
end
|
34
|
+
|
35
|
+
def new_http
|
36
|
+
uri = URI(api_url)
|
37
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
36
38
|
http.open_timeout = timeout
|
37
|
-
|
39
|
+
|
40
|
+
if uri.scheme == HTTPS
|
41
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
42
|
+
http.ca_file = CERTIFICATE_AUTHORITIES_PATH
|
43
|
+
http.use_ssl = true
|
44
|
+
end
|
45
|
+
|
46
|
+
http
|
38
47
|
end
|
39
48
|
|
40
49
|
def post_async(path, data)
|
data/lib/rorvswild/version.rb
CHANGED
data/rorvswild.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rorvswild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.alpha7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Bernard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: net-http-persistent
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.9.4
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 2.9.4
|
41
27
|
description: Performances & quality insights for rails developers.
|
42
28
|
email:
|
43
29
|
- alexis@bernard.io
|