rahyab 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 8fc79c97f17192cbc62659a8e62ef32063437af4
4
- data.tar.gz: 69649e0f1691fcc92f52f96bf716fdae9fa74210
3
+ metadata.gz: 2ed4741f788421efdb13bd4b66422f0a1ff1c127
4
+ data.tar.gz: 0d889afcda7ffd750cc6a8d096d42c85b7197255
5
5
  SHA512:
6
- metadata.gz: 8064c6c3f5db36681688313103809a894f11e3d7c4041932a62d72710637b62efd797f1c5daaf22835e881b9feb777852e63e45dd97f8f3866b3813a3ecdfd05
7
- data.tar.gz: a98c0b8a3e9d3ab341237aba67cec14109dd73f8724bf536c0cb2c865db6438b28f5e9d1098383c1dc3c8e19fab8f99582e7fd9fde0802f84e822923fdfa7513
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
- TODO: Write usage instructions here
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.
@@ -1,10 +1,10 @@
1
1
  # coding: utf-8
2
- require "rahyab/version"
3
- require "builder"
2
+ require 'rahyab/version'
3
+ require 'builder'
4
4
  require 'net/http'
5
5
  require 'xml'
6
6
  require 'libxml_to_hash'
7
- require 'pry'
7
+
8
8
 
9
9
  module Rahyab
10
10
  require 'rahyab/string'
@@ -1,3 +1,3 @@
1
1
  module Rahyab
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -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 = ['+989125601735']
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.0
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-19 00:00:00.000000000 Z
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: