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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c2db4d1708b0e2eb31f698ab716f0ef58d4f2860d37b85ea94bda2b793f6c22
4
- data.tar.gz: 674799dc86c3f148b9b01a9ba38d64fa569e9b788e92725713a962f4bcd310ec
3
+ metadata.gz: 2f98b24dd6a7ad41ce1ffe2e01752d5a63bca2a11297c5f9ec9984094637b340
4
+ data.tar.gz: 87157f4efc0824f5c7c2ad42477b6a4861dba0db9f68a6b75ba2ab4067c63cd7
5
5
  SHA512:
6
- metadata.gz: 5729c3e921e135ec6580243e4bc6ca975c505c3caaddb2cf4533804e59cc4abea94388cff4fd896a3b658a1abc8306e9a494e2caeeaedc88d080dda1f592a852
7
- data.tar.gz: ba40730e93832c7be943317a56f33f6a8618e9816f1fb5f51ebad97236bccf5541f96cb8d1e02427a0ef1f30913d6651dc93891d50238413a543e008cdb4f1b8
6
+ metadata.gz: bcbf9f4e1802567b9b0f5f08b630b6dc6e94ef00b521e208bc378d19680efc80db1a05e403b5bd8949749407a990a22200519069b8ce87237b1acd21b4f9c515
7
+ data.tar.gz: 0540dc972adc83344d2431a30d4266aecbfa24663eaf716d0fdbd059b20a68e0d6cf0e5753ab72d1ff735c75815e479de1f5d5be0bdb730fa07ae554037a5745
@@ -1,71 +1,72 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- africastalking-ruby (2.1.1.beta.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 (5.2.0)
11
- actionview (= 5.2.0)
12
- activesupport (= 5.2.0)
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.2)
17
- actionview (5.2.0)
18
- activesupport (= 5.2.0)
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.0, >= 1.0.3)
23
- activesupport (5.2.0)
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.3)
30
+ builder (3.2.4)
30
31
  coderay (1.1.2)
31
- concurrent-ruby (1.0.5)
32
- crass (1.0.4)
32
+ concurrent-ruby (1.1.5)
33
+ crass (1.0.5)
33
34
  diff-lcs (1.3)
34
- erubi (1.7.1)
35
+ erubi (1.9.0)
35
36
  httparty (0.16.1)
36
37
  multi_xml (>= 0.5.2)
37
- i18n (1.0.0)
38
+ i18n (1.8.1)
38
39
  concurrent-ruby (~> 1.0)
39
- loofah (2.2.2)
40
+ loofah (2.4.0)
40
41
  crass (~> 1.0.2)
41
42
  nokogiri (>= 1.5.9)
42
- method_source (0.9.0)
43
- mini_portile2 (2.3.0)
44
- minitest (5.11.3)
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.8.2)
47
- mini_portile2 (~> 2.3.0)
48
- parallel (1.12.1)
49
- parser (2.5.0.5)
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.1)
52
- pry (0.11.3)
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.4)
56
- rack-test (1.0.0)
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.4)
62
- loofah (~> 2.2, >= 2.2.2)
63
- railties (5.2.0)
64
- actionpack (= 5.2.0)
65
- activesupport (= 5.2.0)
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.18.1, < 2.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.9.0)
100
- thor (0.20.0)
100
+ ruby-progressbar (1.10.1)
101
+ thor (1.0.1)
101
102
  thread_safe (0.3.6)
102
- tzinfo (1.2.5)
103
+ tzinfo (1.2.6)
103
104
  thread_safe (~> 0.1)
104
- unicode-display_width (1.3.0)
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.16.2
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`: Shortcode or alphanumeric ID that is registered with Africa's Talking account.`REQUIRED`
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
@@ -1,11 +1,7 @@
1
- require "AfricasTalking/version"
2
1
  require 'httparty'
3
- require "AfricasTalking/Sms"
4
- require "AfricasTalking/Airtime"
5
- require "AfricasTalking/Payments"
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
@@ -13,9 +13,10 @@ class Voice
13
13
  def call options
14
14
  if validateParamsPresence?(options, ['from', 'to'])
15
15
  post_body = {
16
- 'username' => @username,
17
- 'from' => options['from'],
18
- 'to' => options['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)
@@ -1,3 +1,3 @@
1
1
  module AfricasTalking
2
- VERSION = "2.1.3"
2
+ VERSION = "2.1.4"
3
3
  end
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.3
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: 2019-10-08 00:00:00.000000000 Z
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
- rubyforge_project:
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