dynamicloud 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 016f892db6c591b7973ad2b3bd61ba4169a1ae0b
4
- data.tar.gz: 51f27223adea97982135f75771115b45d9d0e4ea
3
+ metadata.gz: 3fc59d572ffe3c853c46a76e83649221bebb7226
4
+ data.tar.gz: 9dfbe5d0d24ad16dc1f678bad532f8f406da8859
5
5
  SHA512:
6
- metadata.gz: a2c57f201b49758ce779392c5d23b5e4c0222f94a19c1107ffed545210bf9bf370925d4c45f269422ffafdc035b45125aa7b8649659a45bdda5daadb82388f92
7
- data.tar.gz: 1c94eeca48d2235f49a1c4bb475eec50f8409654d04033aedac046841bf46f650eaab73c969691c29e593d20307c163ad457466b3a1599207410fc633918924e
6
+ metadata.gz: 3ddb9b24d5b6e3b9b550742030ffee4b415afbcade7e35e14df1cb4426d4317c18384910b5bc14527408ca074e4226e246038eab70d0503b69e40b6ec2ec67e1
7
+ data.tar.gz: 3400829a6e22f4b10d62531a412ba0036311ff7b0c781d4c1cadcac0d5982d0d7c982ce027d08191163a28804a58156303c9cb8f297160784af800526266e670
data/lib/configuration.rb CHANGED
@@ -40,7 +40,7 @@ class Configuration
40
40
  :url_update_selection => '/api_records/{csk}/{aci}/update_using_selection/{mid}',
41
41
  # this url must be executed using post method
42
42
  :url_delete_selection => '/api_records/{csk}/{aci}/delete_using_selection/{mid}',
43
- :version => '1.1.3'
43
+ :version => '1.1.4'
44
44
  }
45
45
  end
46
46
 
@@ -18,12 +18,14 @@ module DynamicService
18
18
  def self.call_service(service_url, params = {}, method = 'post', headers = {}, destiny = nil)
19
19
  http = HTTPClient.new
20
20
  http.connect_timeout = 10
21
- http.ssl_config.set_trust_ca("#{GEM_ROOT}/lib/cacert.pem")
21
+ if service_url.start_with? 'https'
22
+ http.ssl_config.set_trust_ca("#{GEM_ROOT}/lib/cacert.pem")
23
+ end
22
24
 
23
- headers['User-Agent'] = 'Dynamicloud client'
24
- headers['API_Version'] = Configuration::PROPERTIES.get_property :version
25
- headers['Dynamicloud_API'] = 'Ruby'
26
- headers['Accept-Encoding'] = 'gzip, deflate'
25
+ headers['User-Agent'] = 'Dynamicloud Client'
26
+ headers['API-Version'] = Configuration::PROPERTIES.get_property :version
27
+ headers['Dynamicloud-API'] = 'Ruby'
28
+ headers['Accept-Encoding'] = 'deflate'
27
29
 
28
30
  # download file
29
31
  if destiny
@@ -1,3 +1,3 @@
1
1
  module Dynamicloud
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamicloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - dynamicloud