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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/almundo-restconnector.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e6b52235f0715136daa768301e51d96d76a0f19
4
- data.tar.gz: 302d6a2f2d0040571cb8b7d14365a61e2a9fe6c2
3
+ metadata.gz: 819ca2c9a17f22f603e1263585a1b6fddec2f940
4
+ data.tar.gz: bd795fcc66644f842dce2ebf16f48ffa8e3d6083
5
5
  SHA512:
6
- metadata.gz: 4a7d08c816f578374644ac9c9d4768e997e956442992693b76edb99e54b64dee59c2bead534c7064208e936e16a619d0f907ac159c62cac3f63902c8b8fadc03
7
- data.tar.gz: 4e9c98acc2bcf720dc909a325183e20cc5ac1bfeed64b71f2b1cb52271d0ff6c0d30768bc6cc8bb3bd6ce904f8d54702120cb51914cd502a5f6868b8700a8034
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.11
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-11 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json