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 +4 -4
- data/lib/rest_clients/music_today_rest_client.rb +4 -1
- 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: 8cccc2834691cfd4c637c5d8db5d3275c7df064f
|
4
|
+
data.tar.gz: 2be6324dae2081decdf951fd5ba41e1e19a8a47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|