nexmo 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexmo/call_dtmf.rb +4 -0
- data/lib/nexmo/call_stream.rb +4 -0
- data/lib/nexmo/call_talk.rb +4 -0
- data/lib/nexmo/calls.rb +4 -0
- data/lib/nexmo/namespace.rb +10 -2
- data/lib/nexmo/numbers.rb +1 -1
- data/lib/nexmo/version.rb +1 -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: 315e374cd8f45d02cc74f027820f3baa7171206d
|
4
|
+
data.tar.gz: e6ce98ae4cb4c2924c2cf113730c4c2320ba56e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c33722d8569ae134d2c74e304de846831a52c8576bf561729b93ff58c6d6cb8806c7fc033cc41e5054521cb979279f21769a6bce6a812ee646d2725deeae02
|
7
|
+
data.tar.gz: 678e56aff509db8cd86d65fe60ab38903f29d7729d45d47ac8a3da1552022610acbcddd4d8b0daeb221e2048522595f38c68f53e89fed5890bd3b42f2d231a6c
|
data/lib/nexmo/call_dtmf.rb
CHANGED
data/lib/nexmo/call_stream.rb
CHANGED
data/lib/nexmo/call_talk.rb
CHANGED
data/lib/nexmo/calls.rb
CHANGED
data/lib/nexmo/namespace.rb
CHANGED
@@ -22,6 +22,10 @@ module Nexmo
|
|
22
22
|
false
|
23
23
|
end
|
24
24
|
|
25
|
+
def json_body?
|
26
|
+
false
|
27
|
+
end
|
28
|
+
|
25
29
|
def request(path, params: nil, type: Get, &block)
|
26
30
|
uri = URI('https://' + host + path)
|
27
31
|
|
@@ -38,8 +42,12 @@ module Nexmo
|
|
38
42
|
message = type.new(uri.request_uri)
|
39
43
|
|
40
44
|
if type::REQUEST_HAS_BODY
|
41
|
-
|
42
|
-
|
45
|
+
if json_body?
|
46
|
+
message['Content-Type'] = 'application/json'
|
47
|
+
message.body = JSON.generate(params)
|
48
|
+
else
|
49
|
+
message.form_data = params
|
50
|
+
end
|
43
51
|
end
|
44
52
|
|
45
53
|
message['Authorization'] = @client.authorization if authorization_header?
|
data/lib/nexmo/numbers.rb
CHANGED
data/lib/nexmo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Craft
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|