africastalking 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/africastalking.gemspec +1 -0
- data/lib/africastalking/airtime.rb +2 -2
- data/lib/africastalking/message.rb +2 -2
- data/lib/africastalking/talk.rb +0 -1
- data/lib/africastalking/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3288a223c2c2f07dde18fbca430cdd854cb9752b
|
4
|
+
data.tar.gz: 85d0c8310e8d646954a1e2e1748ff115214b72ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294af241e1e202c2eaa466f414602fa2b540d72b552a72abe7bbb928c76c63fee2abc39d8af72d3bf7aee1c4cbdc07dcf66583f19a9305398012860281452dec
|
7
|
+
data.tar.gz: 597a62571261b6d7d3232639f0a3b20b5211de372a577fdad6d6b55875f1240534c914db587bc010af93607069bebd1312072c11bf75bc023937fb6956fe0d3b
|
data/.travis.yml
CHANGED
data/africastalking.gemspec
CHANGED
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'httparty', "~> 0.13.7"
|
31
31
|
|
32
32
|
spec.add_development_dependency "pry", "~>0.10.4"
|
33
|
+
spec.add_development_dependency "rubycritic", '~> 2.8'
|
33
34
|
spec.add_development_dependency "bundler", "~> 1.12"
|
34
35
|
spec.add_development_dependency "rake", "~> 10.0"
|
35
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
@@ -2,10 +2,10 @@ module Africastalking
|
|
2
2
|
class Airtime < Connection
|
3
3
|
class << self
|
4
4
|
|
5
|
-
def
|
5
|
+
def buy_airtime(recipients)
|
6
6
|
post('/version1/airtime/send', build_airtime(recipients))
|
7
7
|
end
|
8
|
-
alias_method :buy, :
|
8
|
+
alias_method :buy, :buy_airtime
|
9
9
|
|
10
10
|
private
|
11
11
|
|
@@ -6,7 +6,7 @@ module Africastalking
|
|
6
6
|
get("/version1/messaging?username=#{Africastalking.config.username}&lastReceivedId=#{last_received_id}")
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def deliver(recipients, message)
|
10
10
|
post('/version1/messaging', build_message(recipients, message))
|
11
11
|
end
|
12
12
|
|
@@ -39,7 +39,7 @@ module Africastalking
|
|
39
39
|
|
40
40
|
def prepare_recipients(recipients)
|
41
41
|
msg_recipients = Array.new
|
42
|
-
recipients.split(',').each {|
|
42
|
+
recipients.split(',').each {|recipient| msg_recipients << recipient.strip}
|
43
43
|
msg_recipients.join(', ')
|
44
44
|
end
|
45
45
|
|
data/lib/africastalking/talk.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: africastalking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Chuck
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.10.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubycritic
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.8'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.8'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
143
|
version: '0'
|
130
144
|
requirements: []
|
131
145
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.6.10
|
133
147
|
signing_key:
|
134
148
|
specification_version: 4
|
135
149
|
summary: Africas Best SMS/AIRTIME API
|