plivo 0.3.19 → 4.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +11 -0
- data/AUTHORS.md +4 -0
- data/CHANGELOG.md +158 -0
- data/Gemfile +10 -0
- data/Jenkinsfile +7 -0
- data/LICENSE.txt +19 -0
- data/README.md +155 -24
- data/Rakefile +9 -0
- data/ci/config.yml +7 -0
- data/examples/conference_bridge.rb +108 -0
- data/examples/jwt.rb +32 -0
- data/examples/lookup.rb +24 -0
- data/examples/multi_party_call.rb +295 -0
- data/examples/phlos.rb +55 -0
- data/examples/regulatory_compliance.rb +167 -0
- data/lib/plivo/base/resource.rb +148 -0
- data/lib/plivo/base/resource_interface.rb +108 -0
- data/lib/plivo/base/response.rb +38 -0
- data/lib/plivo/base.rb +17 -0
- data/lib/plivo/base_client.rb +393 -0
- data/lib/plivo/exceptions.rb +50 -0
- data/lib/plivo/jwt.rb +120 -0
- data/lib/plivo/phlo_client.rb +29 -0
- data/lib/plivo/resources/accounts.rb +181 -0
- data/lib/plivo/resources/addresses.rb +302 -0
- data/lib/plivo/resources/applications.rb +258 -0
- data/lib/plivo/resources/call_feedback.rb +55 -0
- data/lib/plivo/resources/calls.rb +559 -0
- data/lib/plivo/resources/conferences.rb +367 -0
- data/lib/plivo/resources/endpoints.rb +132 -0
- data/lib/plivo/resources/identities.rb +319 -0
- data/lib/plivo/resources/lookup.rb +88 -0
- data/lib/plivo/resources/media.rb +97 -0
- data/lib/plivo/resources/messages.rb +215 -0
- data/lib/plivo/resources/multipartycalls.rb +554 -0
- data/lib/plivo/resources/nodes.rb +83 -0
- data/lib/plivo/resources/numbers.rb +319 -0
- data/lib/plivo/resources/phlo_member.rb +64 -0
- data/lib/plivo/resources/phlos.rb +55 -0
- data/lib/plivo/resources/powerpacks.rb +717 -0
- data/lib/plivo/resources/pricings.rb +43 -0
- data/lib/plivo/resources/recordings.rb +116 -0
- data/lib/plivo/resources/regulatory_compliance.rb +610 -0
- data/lib/plivo/resources.rb +25 -0
- data/lib/plivo/rest_client.rb +63 -0
- data/lib/plivo/utils.rb +294 -0
- data/lib/plivo/version.rb +3 -0
- data/lib/plivo/xml/break.rb +31 -0
- data/lib/plivo/xml/conference.rb +20 -0
- data/lib/plivo/xml/cont.rb +13 -0
- data/lib/plivo/xml/dial.rb +16 -0
- data/lib/plivo/xml/dtmf.rb +13 -0
- data/lib/plivo/xml/element.rb +106 -0
- data/lib/plivo/xml/emphasis.rb +17 -0
- data/lib/plivo/xml/get_digits.rb +15 -0
- data/lib/plivo/xml/get_input.rb +16 -0
- data/lib/plivo/xml/hangup.rb +12 -0
- data/lib/plivo/xml/lang.rb +29 -0
- data/lib/plivo/xml/message.rb +13 -0
- data/lib/plivo/xml/multipartycall.rb +188 -0
- data/lib/plivo/xml/number.rb +13 -0
- data/lib/plivo/xml/p.rb +12 -0
- data/lib/plivo/xml/phoneme.rb +20 -0
- data/lib/plivo/xml/play.rb +13 -0
- data/lib/plivo/xml/plivo_xml.rb +19 -0
- data/lib/plivo/xml/pre_answer.rb +12 -0
- data/lib/plivo/xml/prosody.rb +28 -0
- data/lib/plivo/xml/record.rb +17 -0
- data/lib/plivo/xml/redirect.rb +13 -0
- data/lib/plivo/xml/response.rb +21 -0
- data/lib/plivo/xml/s.rb +12 -0
- data/lib/plivo/xml/say_as.rb +24 -0
- data/lib/plivo/xml/speak.rb +28 -0
- data/lib/plivo/xml/sub.rb +16 -0
- data/lib/plivo/xml/user.rb +13 -0
- data/lib/plivo/xml/w.rb +17 -0
- data/lib/plivo/xml/wait.rb +12 -0
- data/lib/plivo/xml.rb +39 -0
- data/lib/plivo.rb +12 -815
- data/plivo.gemspec +44 -0
- metadata +181 -41
- data/ext/mkrf_conf.rb +0 -9
data/plivo.gemspec
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'plivo/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'plivo'
|
9
|
+
spec.version = Plivo::VERSION
|
10
|
+
spec.authors = ['The Plivo SDKs Team']
|
11
|
+
spec.email = ['sdks@plivo.com']
|
12
|
+
|
13
|
+
spec.summary = 'A Ruby SDK to make voice calls & send SMS using Plivo '\
|
14
|
+
'and to generate Plivo XML'
|
15
|
+
spec.description = 'The Plivo Ruby SDK makes it simpler to integrate '\
|
16
|
+
'communications into your Ruby applications using the '\
|
17
|
+
'Plivo REST API. Using the SDK, you will be able to '\
|
18
|
+
'make voice calls, send SMS and generate Plivo XML to '\
|
19
|
+
'control your call flows.'\
|
20
|
+
''\
|
21
|
+
'See https://github.com/plivo/plivo-ruby for more information.'
|
22
|
+
spec.homepage = 'https://github.com/plivo/plivo-ruby'
|
23
|
+
spec.license = 'MIT'
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
|
29
|
+
spec.bindir = 'bin'
|
30
|
+
spec.require_paths = ['lib']
|
31
|
+
|
32
|
+
spec.required_ruby_version = '>= 2.0.0'
|
33
|
+
|
34
|
+
spec.add_dependency 'faraday', '~> 1.0.1'
|
35
|
+
spec.add_dependency 'faraday_middleware', '~> 1.0.0'
|
36
|
+
spec.add_dependency 'htmlentities'
|
37
|
+
spec.add_dependency 'jwt'
|
38
|
+
|
39
|
+
spec.add_development_dependency 'bundler', '>= 1.14', '<3.0'
|
40
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
|
+
spec.add_development_dependency 'json'
|
43
|
+
spec.add_development_dependency 'simplecov'
|
44
|
+
end
|
metadata
CHANGED
@@ -1,101 +1,240 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plivo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Plivo
|
7
|
+
- The Plivo SDKs Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 1.6.7
|
33
|
+
version: 1.0.0
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
40
|
+
version: 1.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: htmlentities
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
44
52
|
- - ">="
|
45
53
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
56
|
+
name: jwt
|
49
57
|
requirement: !ruby/object:Gem::Requirement
|
50
58
|
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '1.6'
|
54
59
|
- - ">="
|
55
60
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
61
|
+
version: '0'
|
57
62
|
type: :runtime
|
58
63
|
prerelease: false
|
59
64
|
version_requirements: !ruby/object:Gem::Requirement
|
60
65
|
requirements:
|
61
|
-
- - "
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
62
74
|
- !ruby/object:Gem::Version
|
63
|
-
version: '1.
|
75
|
+
version: '1.14'
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '3.0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
64
83
|
- - ">="
|
65
84
|
- !ruby/object:Gem::Version
|
66
|
-
version: 1.
|
85
|
+
version: '1.14'
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.0'
|
67
89
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
90
|
+
name: rake
|
69
91
|
requirement: !ruby/object:Gem::Requirement
|
70
92
|
requirements:
|
71
93
|
- - "~>"
|
72
94
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
74
|
-
|
95
|
+
version: '10.0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
75
101
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
77
|
-
|
102
|
+
version: '10.0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rspec
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.0'
|
110
|
+
type: :development
|
78
111
|
prerelease: false
|
79
112
|
version_requirements: !ruby/object:Gem::Requirement
|
80
113
|
requirements:
|
81
114
|
- - "~>"
|
82
115
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
116
|
+
version: '3.0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: json
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simplecov
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
84
142
|
- - ">="
|
85
143
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
description:
|
88
|
-
|
144
|
+
version: '0'
|
145
|
+
description: The Plivo Ruby SDK makes it simpler to integrate communications into
|
146
|
+
your Ruby applications using the Plivo REST API. Using the SDK, you will be able
|
147
|
+
to make voice calls, send SMS and generate Plivo XML to control your call flows.See
|
148
|
+
https://github.com/plivo/plivo-ruby for more information.
|
149
|
+
email:
|
150
|
+
- sdks@plivo.com
|
89
151
|
executables: []
|
90
|
-
extensions:
|
91
|
-
|
92
|
-
extra_rdoc_files:
|
93
|
-
- README.md
|
152
|
+
extensions: []
|
153
|
+
extra_rdoc_files: []
|
94
154
|
files:
|
155
|
+
- ".gitignore"
|
156
|
+
- ".rspec"
|
157
|
+
- ".travis.yml"
|
158
|
+
- AUTHORS.md
|
159
|
+
- CHANGELOG.md
|
160
|
+
- Gemfile
|
161
|
+
- Jenkinsfile
|
162
|
+
- LICENSE.txt
|
95
163
|
- README.md
|
96
|
-
-
|
164
|
+
- Rakefile
|
165
|
+
- ci/config.yml
|
166
|
+
- examples/conference_bridge.rb
|
167
|
+
- examples/jwt.rb
|
168
|
+
- examples/lookup.rb
|
169
|
+
- examples/multi_party_call.rb
|
170
|
+
- examples/phlos.rb
|
171
|
+
- examples/regulatory_compliance.rb
|
97
172
|
- lib/plivo.rb
|
98
|
-
|
173
|
+
- lib/plivo/base.rb
|
174
|
+
- lib/plivo/base/resource.rb
|
175
|
+
- lib/plivo/base/resource_interface.rb
|
176
|
+
- lib/plivo/base/response.rb
|
177
|
+
- lib/plivo/base_client.rb
|
178
|
+
- lib/plivo/exceptions.rb
|
179
|
+
- lib/plivo/jwt.rb
|
180
|
+
- lib/plivo/phlo_client.rb
|
181
|
+
- lib/plivo/resources.rb
|
182
|
+
- lib/plivo/resources/accounts.rb
|
183
|
+
- lib/plivo/resources/addresses.rb
|
184
|
+
- lib/plivo/resources/applications.rb
|
185
|
+
- lib/plivo/resources/call_feedback.rb
|
186
|
+
- lib/plivo/resources/calls.rb
|
187
|
+
- lib/plivo/resources/conferences.rb
|
188
|
+
- lib/plivo/resources/endpoints.rb
|
189
|
+
- lib/plivo/resources/identities.rb
|
190
|
+
- lib/plivo/resources/lookup.rb
|
191
|
+
- lib/plivo/resources/media.rb
|
192
|
+
- lib/plivo/resources/messages.rb
|
193
|
+
- lib/plivo/resources/multipartycalls.rb
|
194
|
+
- lib/plivo/resources/nodes.rb
|
195
|
+
- lib/plivo/resources/numbers.rb
|
196
|
+
- lib/plivo/resources/phlo_member.rb
|
197
|
+
- lib/plivo/resources/phlos.rb
|
198
|
+
- lib/plivo/resources/powerpacks.rb
|
199
|
+
- lib/plivo/resources/pricings.rb
|
200
|
+
- lib/plivo/resources/recordings.rb
|
201
|
+
- lib/plivo/resources/regulatory_compliance.rb
|
202
|
+
- lib/plivo/rest_client.rb
|
203
|
+
- lib/plivo/utils.rb
|
204
|
+
- lib/plivo/version.rb
|
205
|
+
- lib/plivo/xml.rb
|
206
|
+
- lib/plivo/xml/break.rb
|
207
|
+
- lib/plivo/xml/conference.rb
|
208
|
+
- lib/plivo/xml/cont.rb
|
209
|
+
- lib/plivo/xml/dial.rb
|
210
|
+
- lib/plivo/xml/dtmf.rb
|
211
|
+
- lib/plivo/xml/element.rb
|
212
|
+
- lib/plivo/xml/emphasis.rb
|
213
|
+
- lib/plivo/xml/get_digits.rb
|
214
|
+
- lib/plivo/xml/get_input.rb
|
215
|
+
- lib/plivo/xml/hangup.rb
|
216
|
+
- lib/plivo/xml/lang.rb
|
217
|
+
- lib/plivo/xml/message.rb
|
218
|
+
- lib/plivo/xml/multipartycall.rb
|
219
|
+
- lib/plivo/xml/number.rb
|
220
|
+
- lib/plivo/xml/p.rb
|
221
|
+
- lib/plivo/xml/phoneme.rb
|
222
|
+
- lib/plivo/xml/play.rb
|
223
|
+
- lib/plivo/xml/plivo_xml.rb
|
224
|
+
- lib/plivo/xml/pre_answer.rb
|
225
|
+
- lib/plivo/xml/prosody.rb
|
226
|
+
- lib/plivo/xml/record.rb
|
227
|
+
- lib/plivo/xml/redirect.rb
|
228
|
+
- lib/plivo/xml/response.rb
|
229
|
+
- lib/plivo/xml/s.rb
|
230
|
+
- lib/plivo/xml/say_as.rb
|
231
|
+
- lib/plivo/xml/speak.rb
|
232
|
+
- lib/plivo/xml/sub.rb
|
233
|
+
- lib/plivo/xml/user.rb
|
234
|
+
- lib/plivo/xml/w.rb
|
235
|
+
- lib/plivo/xml/wait.rb
|
236
|
+
- plivo.gemspec
|
237
|
+
homepage: https://github.com/plivo/plivo-ruby
|
99
238
|
licenses:
|
100
239
|
- MIT
|
101
240
|
metadata: {}
|
@@ -107,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
246
|
requirements:
|
108
247
|
- - ">="
|
109
248
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
249
|
+
version: 2.0.0
|
111
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
251
|
requirements:
|
113
252
|
- - ">="
|
@@ -115,8 +254,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
254
|
version: '0'
|
116
255
|
requirements: []
|
117
256
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
257
|
+
rubygems_version: 2.6.14.4
|
119
258
|
signing_key:
|
120
259
|
specification_version: 4
|
121
|
-
summary: A Ruby
|
260
|
+
summary: A Ruby SDK to make voice calls & send SMS using Plivo and to generate Plivo
|
261
|
+
XML
|
122
262
|
test_files: []
|
data/ext/mkrf_conf.rb
DELETED