music_today_api_wrapper 29.02 → 29.03

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e0a8f8f34a6cd2f81a86031c20c20f77ace2795
4
- data.tar.gz: e079d5a619926488e18b6ee275af379b2d7cef89
3
+ metadata.gz: 8cccc2834691cfd4c637c5d8db5d3275c7df064f
4
+ data.tar.gz: 2be6324dae2081decdf951fd5ba41e1e19a8a47f
5
5
  SHA512:
6
- metadata.gz: 04f5d54127a3602a558bba4ba4fa661055b212553b8fd35a7eb709580d63f8ecd7cde29bc8d68a5e6bc950bb5419bb09ddc3e2d4ab8d291c6446fb00d4628100
7
- data.tar.gz: 3b30b3ad17b16d0b9b36b3755876b1dadb9567c75ed2f4ff6a49f6086dc79ddf135e29a9e2c27809ac6fe94b01d570a0a39e38debc6909a753240e778089496e
6
+ metadata.gz: 4c5cb2cd78572f94fc80eb3072e2294231645849b66af29f9c4753fbd306c6d9009404665562ef10a0459c58cd2bda620d40339c31f7160458a66405d4b19aae
7
+ data.tar.gz: 6b6bf090782ced45939bc6f063387545b01f69f6dc22a41ac2b18ddb659e0ce85f54853cdf278b97c7a236341aa384234dd7d24d13c9c8a1b0375175e197e9b6
@@ -75,7 +75,10 @@ module MusicTodayApiWrapper
75
75
  request = Net::HTTP::Post.new(uri)
76
76
  request.body = body.to_json
77
77
  request.content_type = 'application/json'
78
- Net::HTTP.start(uri.hostname) { |http| http.request(request) }
78
+ use_ssl = (uri.scheme == 'https')
79
+ Net::HTTP.start(uri.hostname, use_ssl: use_ssl) do |http|
80
+ http.request(request)
81
+ end
79
82
  end
80
83
  end
81
84
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_today_api_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: '29.02'
4
+ version: '29.03'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-04 00:00:00.000000000 Z
12
+ date: 2016-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec