almundo-restconnector 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almundo-restconnector.rb +7 -0
- 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: 819ca2c9a17f22f603e1263585a1b6fddec2f940
|
4
|
+
data.tar.gz: bd795fcc66644f842dce2ebf16f48ffa8e3d6083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7979b62fc6a0f38f6b3308f82767a17495fc4020985750c842a5956efd8cba0c28cbab09e54ee1f3570b69d616d1ee55adb5310d0d346c86a8d58ec4d2a8efc0
|
7
|
+
data.tar.gz: e931371a7f10863f5afb0df180c9bfa307305688275202fe5dd544005d47b791c9526ca8bdac5a8ddcb6f6b0488dd75ced5685028427819a26702b408bf0acab
|
@@ -18,6 +18,7 @@ class RestConnector
|
|
18
18
|
@uri
|
19
19
|
@response
|
20
20
|
@method
|
21
|
+
@ssl = false
|
21
22
|
|
22
23
|
@read_timeout = 45
|
23
24
|
@@logger.debug "[RestConnector] read_timeout setted by default in 45s"
|
@@ -35,6 +36,11 @@ class RestConnector
|
|
35
36
|
@@logger.debug "[RestConnector] open_timeout setted in #{seconds}s"
|
36
37
|
end
|
37
38
|
|
39
|
+
def set_ssl
|
40
|
+
@ssl = true
|
41
|
+
@@logger.debug "[RestConnector] ssl actived"
|
42
|
+
end
|
43
|
+
|
38
44
|
#######################
|
39
45
|
## => VERB METHODS
|
40
46
|
#######################
|
@@ -122,6 +128,7 @@ class RestConnector
|
|
122
128
|
http = Net::HTTP.new(@uri.host, @uri.port)
|
123
129
|
http.read_timeout = @read_timeout
|
124
130
|
http.open_timeout = @open_timeout
|
131
|
+
http.use_ssl = @ssl
|
125
132
|
|
126
133
|
http.start do |http|
|
127
134
|
@response = http.request(@request)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almundo-restconnector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matías Sueiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|