rahyab 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/README.md +19 -1
- data/lib/rahyab.rb +3 -3
- data/lib/rahyab/version.rb +1 -1
- data/rahyab-0.1.0.gem +0 -0
- data/spec/sms_spec.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed4741f788421efdb13bd4b66422f0a1ff1c127
|
4
|
+
data.tar.gz: 0d889afcda7ffd750cc6a8d096d42c85b7197255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 596d91e44e1f8bca429e99982b093c5e847dedf46c89d7defb7dc8d7fc0a810776903e59d35d1ce03c9b92773bddc75faa785e03959a71942f3d47d43b77812c
|
7
|
+
data.tar.gz: a7e3a45306d7f8e8180f4b348bd33eeee0751a437ac035ee3cdb6ac8d0c1393c2a00d04b02bd0c3150197d5c107c5b24c7aba33a11240fa14705373b3cca817a
|
data/README.md
CHANGED
@@ -20,8 +20,26 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
### Initialize
|
24
|
+
```
|
25
|
+
@sms = Rahyab::SMS.new(@url, @user, @password, @company)
|
26
|
+
```
|
27
|
+
|
28
|
+
### Send SMS
|
29
|
+
|
30
|
+
```
|
31
|
+
sms = @sms.send_sms(@sender, @numbers, @text)
|
32
|
+
```
|
24
33
|
|
34
|
+
### Get Delivery
|
35
|
+
```
|
36
|
+
delivery = @sms.get_delivery(@batchID)
|
37
|
+
```
|
38
|
+
|
39
|
+
### Check balance
|
40
|
+
```
|
41
|
+
balance = @sms.get_balance
|
42
|
+
```
|
25
43
|
## Development
|
26
44
|
|
27
45
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/rahyab.rb
CHANGED
data/lib/rahyab/version.rb
CHANGED
data/rahyab-0.1.0.gem
ADDED
Binary file
|
data/spec/sms_spec.rb
CHANGED
@@ -8,7 +8,7 @@ describe Rahyab::SMS do
|
|
8
8
|
@password = ENV['RAHYAB_PASS']
|
9
9
|
@company = ENV['RAHYAB_COMPANY']
|
10
10
|
@sender = ENV['RAHYAB_SENDER']
|
11
|
-
@numbers = ['
|
11
|
+
@numbers = ENV['RAHYAB_NUMBERS']
|
12
12
|
@sms = Rahyab::SMS.new(@url, @user, @password, @company)
|
13
13
|
@text = "sms"
|
14
14
|
@batchID = ENV['RAHYAB_BATCH_ID']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rahyab
|
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
|
- Behnam Ahmad Khan Beigi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/rahyab.rb
|
127
127
|
- lib/rahyab/string.rb
|
128
128
|
- lib/rahyab/version.rb
|
129
|
+
- rahyab-0.1.0.gem
|
129
130
|
- rahyab.gemspec
|
130
131
|
- spec/sms_spec.rb
|
131
132
|
homepage: http://www.yellowen.ir
|
@@ -155,3 +156,4 @@ specification_version: 4
|
|
155
156
|
summary: Ruby interface of Rahyab SMS service
|
156
157
|
test_files:
|
157
158
|
- spec/sms_spec.rb
|
159
|
+
has_rdoc:
|