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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0b35aae16aebd67ba39e0c271a9aba00d353e4
4
- data.tar.gz: a3d6e06b041387de0854fe301e9a44aaf27c6281
3
+ metadata.gz: 3288a223c2c2f07dde18fbca430cdd854cb9752b
4
+ data.tar.gz: 85d0c8310e8d646954a1e2e1748ff115214b72ba
5
5
  SHA512:
6
- metadata.gz: 5ee0170e5a13b14dfed9ecdbc4208bb055630e95573b80ae4fee4483918838cce6effd3615fd3572bb8659d057f1de99ab35309b3f5391f72a831604805d5046
7
- data.tar.gz: 43f8abb01d6d0173b66e8b8b235dd697c9982ac6b1e66b41a885bcf430aafd1ee8c9917119278e2450e86955f40cbf95fbf21d96b93a94e627be5c3435ee3e80
6
+ metadata.gz: 294af241e1e202c2eaa466f414602fa2b540d72b552a72abe7bbb928c76c63fee2abc39d8af72d3bf7aee1c4cbdc07dcf66583f19a9305398012860281452dec
7
+ data.tar.gz: 597a62571261b6d7d3232639f0a3b20b5211de372a577fdad6d6b55875f1240534c914db587bc010af93607069bebd1312072c11bf75bc023937fb6956fe0d3b
@@ -5,5 +5,4 @@ rvm:
5
5
  - 2.2.2
6
6
  - 2.1.1
7
7
  - 2.1.0
8
- - 2.0.0
9
8
  before_install: gem install bundler -v 1.12.5
@@ -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 send(recipients)
5
+ def buy_airtime(recipients)
6
6
  post('/version1/airtime/send', build_airtime(recipients))
7
7
  end
8
- alias_method :buy, :send
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 send(recipients, message)
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 {|r| msg_recipients << r.strip}
42
+ recipients.split(',').each {|recipient| msg_recipients << recipient.strip}
43
43
  msg_recipients.join(', ')
44
44
  end
45
45
 
@@ -15,7 +15,6 @@ module Africastalking
15
15
  def upload_file(url)
16
16
  post('/mediaUpload', {"username" => Africastalking.config.username, 'url' => url})
17
17
  end
18
-
19
18
  end
20
19
  end
21
20
  end
@@ -1,3 +1,3 @@
1
1
  module Africastalking
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2016-08-24 00:00:00.000000000 Z
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.5.1
146
+ rubygems_version: 2.6.10
133
147
  signing_key:
134
148
  specification_version: 4
135
149
  summary: Africas Best SMS/AIRTIME API