nexmo 5.8.0 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/nexmo.rb +1 -1
- data/lib/nexmo/account.rb +36 -1
- data/lib/nexmo/alerts.rb +46 -0
- data/lib/nexmo/applications.rb +118 -0
- data/lib/nexmo/applications_v2.rb +71 -0
- data/lib/nexmo/authentication/abstract.rb +3 -1
- data/lib/nexmo/authentication/basic.rb +3 -1
- data/lib/nexmo/authentication/bearer_token.rb +3 -1
- data/lib/nexmo/authentication/key_secret_params.rb +3 -1
- data/lib/nexmo/authentication/key_secret_query.rb +3 -1
- data/lib/nexmo/call_dtmf.rb +12 -0
- data/lib/nexmo/call_stream.rb +26 -0
- data/lib/nexmo/call_talk.rb +30 -0
- data/lib/nexmo/calls.rb +188 -0
- data/lib/nexmo/client.rb +77 -1
- data/lib/nexmo/conversation_events.rb +47 -0
- data/lib/nexmo/conversation_legs.rb +14 -0
- data/lib/nexmo/conversation_members.rb +74 -0
- data/lib/nexmo/conversation_users.rb +63 -0
- data/lib/nexmo/conversations.rb +110 -0
- data/lib/nexmo/errors.rb +41 -0
- data/lib/nexmo/errors/error.rb +0 -27
- data/lib/nexmo/form_data.rb +3 -1
- data/lib/nexmo/http.rb +3 -1
- data/lib/nexmo/json.rb +3 -1
- data/lib/nexmo/jwt.rb +25 -0
- data/lib/nexmo/keys.rb +3 -1
- data/lib/nexmo/logger.rb +3 -1
- data/lib/nexmo/namespace.rb +4 -2
- data/lib/nexmo/number_insight.rb +102 -0
- data/lib/nexmo/numbers.rb +155 -0
- data/lib/nexmo/params.rb +3 -1
- data/lib/nexmo/redact.rb +20 -0
- data/lib/nexmo/secrets.rb +53 -0
- data/lib/nexmo/signature.rb +24 -13
- data/lib/nexmo/sms.rb +88 -0
- data/lib/nexmo/user_agent.rb +3 -1
- data/lib/nexmo/verify.rb +144 -0
- data/lib/nexmo/version.rb +1 -1
- data/nexmo.gemspec +2 -0
- metadata +31 -3
- data/lib/nexmo/problem.rb +0 -20
data/lib/nexmo/version.rb
CHANGED
data/nexmo.gemspec
CHANGED
@@ -14,9 +14,11 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.required_ruby_version = '>= 2.1.0'
|
15
15
|
s.add_dependency('jwt', '~> 2')
|
16
16
|
s.add_development_dependency('rake', '~> 12.0')
|
17
|
+
s.add_development_dependency('yard', '~> 0.9')
|
17
18
|
s.add_development_dependency('minitest', '~> 5.0')
|
18
19
|
s.add_development_dependency('webmock', '~> 3.0')
|
19
20
|
s.add_development_dependency('simplecov', '~> 0.16')
|
21
|
+
s.add_development_dependency('coveralls', '~> 0.8.15')
|
20
22
|
s.require_path = 'lib'
|
21
23
|
s.metadata = {
|
22
24
|
'homepage' => 'https://github.com/Nexmo/nexmo-ruby',
|
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.
|
4
|
+
version: 5.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nexmo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '12.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.9'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.9'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: minitest
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +94,20 @@ dependencies:
|
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0.16'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.8.15
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.8.15
|
83
111
|
description: Nexmo Client Library for Ruby
|
84
112
|
email:
|
85
113
|
- devrel@nexmo.com
|
@@ -111,6 +139,7 @@ files:
|
|
111
139
|
- lib/nexmo/conversations.rb
|
112
140
|
- lib/nexmo/conversions.rb
|
113
141
|
- lib/nexmo/entity.rb
|
142
|
+
- lib/nexmo/errors.rb
|
114
143
|
- lib/nexmo/errors/authentication_error.rb
|
115
144
|
- lib/nexmo/errors/client_error.rb
|
116
145
|
- lib/nexmo/errors/error.rb
|
@@ -129,7 +158,6 @@ files:
|
|
129
158
|
- lib/nexmo/params.rb
|
130
159
|
- lib/nexmo/pricing.rb
|
131
160
|
- lib/nexmo/pricing_types.rb
|
132
|
-
- lib/nexmo/problem.rb
|
133
161
|
- lib/nexmo/redact.rb
|
134
162
|
- lib/nexmo/secrets.rb
|
135
163
|
- lib/nexmo/signature.rb
|
data/lib/nexmo/problem.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
module Nexmo
|
5
|
-
module Problem # :nodoc:
|
6
|
-
extend self
|
7
|
-
|
8
|
-
def parse(body)
|
9
|
-
problem = ::JSON.parse(body)
|
10
|
-
|
11
|
-
title = problem['title']
|
12
|
-
|
13
|
-
detail = problem['detail']
|
14
|
-
|
15
|
-
url = problem['type']
|
16
|
-
|
17
|
-
"#{title}. #{detail} See #{url} for more info, or email support@nexmo.com if you have any questions."
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|