indico 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/indico/helper.rb CHANGED
@@ -5,7 +5,7 @@ module Indico
5
5
 
6
6
  def self.url_join(root, api)
7
7
  if !root
8
- 'http://apiv2.indico.io/' + api
8
+ 'https://apiv2.indico.io/' + api
9
9
  else
10
10
  Indico.cloud_protocol + root + '.indico.domains/' + api
11
11
  end
@@ -47,6 +47,10 @@ module Indico
47
47
 
48
48
  http = Net::HTTP.new(uri.host, uri.port)
49
49
 
50
+ if url.index('https') == 0
51
+ http.use_ssl = true
52
+ end
53
+
50
54
  request = Net::HTTP::Post.new(uri.request_uri)
51
55
  request.body = data_dict
52
56
 
@@ -1,3 +1,3 @@
1
1
  module Indico
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: