africastalking-ruby 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +40 -38
- data/README.md +2 -1
- data/lib/AfricasTalking.rb +3 -7
- data/lib/AfricasTalking/Voice.rb +4 -3
- data/lib/AfricasTalking/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f98b24dd6a7ad41ce1ffe2e01752d5a63bca2a11297c5f9ec9984094637b340
|
|
4
|
+
data.tar.gz: 87157f4efc0824f5c7c2ad42477b6a4861dba0db9f68a6b75ba2ab4067c63cd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcbf9f4e1802567b9b0f5f08b630b6dc6e94ef00b521e208bc378d19680efc80db1a05e403b5bd8949749407a990a22200519069b8ce87237b1acd21b4f9c515
|
|
7
|
+
data.tar.gz: 0540dc972adc83344d2431a30d4266aecbfa24663eaf716d0fdbd059b20a68e0d6cf0e5753ab72d1ff735c75815e479de1f5d5be0bdb730fa07ae554037a5745
|
data/Gemfile.lock
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
africastalking-ruby (2.1.
|
|
4
|
+
africastalking-ruby (2.1.4)
|
|
5
5
|
httparty (= 0.16.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actionpack (
|
|
11
|
-
actionview (=
|
|
12
|
-
activesupport (=
|
|
13
|
-
rack (~> 2.0)
|
|
10
|
+
actionpack (6.0.2.1)
|
|
11
|
+
actionview (= 6.0.2.1)
|
|
12
|
+
activesupport (= 6.0.2.1)
|
|
13
|
+
rack (~> 2.0, >= 2.0.8)
|
|
14
14
|
rack-test (>= 0.6.3)
|
|
15
15
|
rails-dom-testing (~> 2.0)
|
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
|
17
|
-
actionview (
|
|
18
|
-
activesupport (=
|
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
17
|
+
actionview (6.0.2.1)
|
|
18
|
+
activesupport (= 6.0.2.1)
|
|
19
19
|
builder (~> 3.1)
|
|
20
20
|
erubi (~> 1.4)
|
|
21
21
|
rails-dom-testing (~> 2.0)
|
|
22
|
-
rails-html-sanitizer (~> 1.
|
|
23
|
-
activesupport (
|
|
22
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
23
|
+
activesupport (6.0.2.1)
|
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
25
25
|
i18n (>= 0.7, < 2)
|
|
26
26
|
minitest (~> 5.1)
|
|
27
27
|
tzinfo (~> 1.1)
|
|
28
|
+
zeitwerk (~> 2.2)
|
|
28
29
|
ast (2.4.0)
|
|
29
|
-
builder (3.2.
|
|
30
|
+
builder (3.2.4)
|
|
30
31
|
coderay (1.1.2)
|
|
31
|
-
concurrent-ruby (1.
|
|
32
|
-
crass (1.0.
|
|
32
|
+
concurrent-ruby (1.1.5)
|
|
33
|
+
crass (1.0.5)
|
|
33
34
|
diff-lcs (1.3)
|
|
34
|
-
erubi (1.
|
|
35
|
+
erubi (1.9.0)
|
|
35
36
|
httparty (0.16.1)
|
|
36
37
|
multi_xml (>= 0.5.2)
|
|
37
|
-
i18n (1.
|
|
38
|
+
i18n (1.8.1)
|
|
38
39
|
concurrent-ruby (~> 1.0)
|
|
39
|
-
loofah (2.
|
|
40
|
+
loofah (2.4.0)
|
|
40
41
|
crass (~> 1.0.2)
|
|
41
42
|
nokogiri (>= 1.5.9)
|
|
42
|
-
method_source (0.9.
|
|
43
|
-
mini_portile2 (2.
|
|
44
|
-
minitest (5.
|
|
43
|
+
method_source (0.9.2)
|
|
44
|
+
mini_portile2 (2.4.0)
|
|
45
|
+
minitest (5.13.0)
|
|
45
46
|
multi_xml (0.6.0)
|
|
46
|
-
nokogiri (1.
|
|
47
|
-
mini_portile2 (~> 2.
|
|
48
|
-
parallel (1.
|
|
49
|
-
parser (2.
|
|
47
|
+
nokogiri (1.10.7)
|
|
48
|
+
mini_portile2 (~> 2.4.0)
|
|
49
|
+
parallel (1.19.1)
|
|
50
|
+
parser (2.7.0.2)
|
|
50
51
|
ast (~> 2.4.0)
|
|
51
|
-
powerpack (0.1.
|
|
52
|
-
pry (0.
|
|
52
|
+
powerpack (0.1.2)
|
|
53
|
+
pry (0.12.2)
|
|
53
54
|
coderay (~> 1.1.0)
|
|
54
55
|
method_source (~> 0.9.0)
|
|
55
|
-
rack (2.0.
|
|
56
|
-
rack-test (1.
|
|
56
|
+
rack (2.0.8)
|
|
57
|
+
rack-test (1.1.0)
|
|
57
58
|
rack (>= 1.0, < 3)
|
|
58
59
|
rails-dom-testing (2.0.3)
|
|
59
60
|
activesupport (>= 4.2.0)
|
|
60
61
|
nokogiri (>= 1.6)
|
|
61
|
-
rails-html-sanitizer (1.0
|
|
62
|
-
loofah (~> 2.
|
|
63
|
-
railties (
|
|
64
|
-
actionpack (=
|
|
65
|
-
activesupport (=
|
|
62
|
+
rails-html-sanitizer (1.3.0)
|
|
63
|
+
loofah (~> 2.3)
|
|
64
|
+
railties (6.0.2.1)
|
|
65
|
+
actionpack (= 6.0.2.1)
|
|
66
|
+
activesupport (= 6.0.2.1)
|
|
66
67
|
method_source
|
|
67
68
|
rake (>= 0.8.7)
|
|
68
|
-
thor (>= 0.
|
|
69
|
+
thor (>= 0.20.3, < 2.0)
|
|
69
70
|
rainbow (3.0.0)
|
|
70
71
|
rake (10.5.0)
|
|
71
72
|
rspec (3.7.0)
|
|
@@ -96,12 +97,13 @@ GEM
|
|
|
96
97
|
rainbow (>= 2.2.2, < 4.0)
|
|
97
98
|
ruby-progressbar (~> 1.7)
|
|
98
99
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
99
|
-
ruby-progressbar (1.
|
|
100
|
-
thor (0.
|
|
100
|
+
ruby-progressbar (1.10.1)
|
|
101
|
+
thor (1.0.1)
|
|
101
102
|
thread_safe (0.3.6)
|
|
102
|
-
tzinfo (1.2.
|
|
103
|
+
tzinfo (1.2.6)
|
|
103
104
|
thread_safe (~> 0.1)
|
|
104
|
-
unicode-display_width (1.
|
|
105
|
+
unicode-display_width (1.6.0)
|
|
106
|
+
zeitwerk (2.2.2)
|
|
105
107
|
|
|
106
108
|
PLATFORMS
|
|
107
109
|
ruby
|
|
@@ -116,4 +118,4 @@ DEPENDENCIES
|
|
|
116
118
|
rubocop (~> 0.54.0)
|
|
117
119
|
|
|
118
120
|
BUNDLED WITH
|
|
119
|
-
1.
|
|
121
|
+
1.17.2
|
data/README.md
CHANGED
|
@@ -157,7 +157,8 @@ voice.call options
|
|
|
157
157
|
- `options`
|
|
158
158
|
- `to`: A single recipient or an array of recipients. `REQUIRED`
|
|
159
159
|
- array of recipients contains ['2XXXXXXXX', '2XXXXXXXX']
|
|
160
|
-
- `from`:
|
|
160
|
+
- `from`: Phone number that is registered with Africa's Talking account.`REQUIRED`
|
|
161
|
+
- `clientRequestId`: String sent to your Events Callback URL that can be used to tag the call. `OPTIONAL`
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
#### Fetch queued calls
|
data/lib/AfricasTalking.rb
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
require "AfricasTalking/version"
|
|
2
1
|
require 'httparty'
|
|
3
|
-
|
|
4
|
-
require
|
|
5
|
-
|
|
6
|
-
require "AfricasTalking/Voice"
|
|
7
|
-
require "AfricasTalking/Token"
|
|
8
|
-
require "AfricasTalking/Application"
|
|
2
|
+
Dir[File.expand_path('AfricasTalking/*.rb', __dir__)].reverse.each do |f|
|
|
3
|
+
require f
|
|
4
|
+
end
|
|
9
5
|
|
|
10
6
|
module AfricasTalking
|
|
11
7
|
DEBUG = false
|
data/lib/AfricasTalking/Voice.rb
CHANGED
|
@@ -13,9 +13,10 @@ class Voice
|
|
|
13
13
|
def call options
|
|
14
14
|
if validateParamsPresence?(options, ['from', 'to'])
|
|
15
15
|
post_body = {
|
|
16
|
-
'username'
|
|
17
|
-
'from'
|
|
18
|
-
'to'
|
|
16
|
+
'username' => @username,
|
|
17
|
+
'from' => options['from'],
|
|
18
|
+
'to' => options['to'],
|
|
19
|
+
'clientRequestId' => options['clientRequestId']
|
|
19
20
|
}
|
|
20
21
|
#
|
|
21
22
|
response = sendNormalRequest(getVoiceHost() + "/call", post_body)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: africastalking-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Mwirigi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -153,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
153
|
- !ruby/object:Gem::Version
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
|
-
|
|
157
|
-
rubygems_version: 2.7.7
|
|
156
|
+
rubygems_version: 3.0.3
|
|
158
157
|
signing_key:
|
|
159
158
|
specification_version: 4
|
|
160
159
|
summary: Simple gem that helps you build integrations with AfricasTalking
|