alidayu-sms 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: 036c0a3bcf59057018aab95aeee0eb309b36c690
4
- data.tar.gz: 5958f8e2aece43c3c89bdf7743e358b1c43c62b6
3
+ metadata.gz: 9be7b669eecf8440e6147eb98239a4d6652ef0e4
4
+ data.tar.gz: 28b027c9305bb96878cfd4d9bf8e27644c065b5f
5
5
  SHA512:
6
- metadata.gz: 115438d024fea75816aaa2273dc905b40260d5cedad826cddfa111c0d3c0c55e75c77d319ff5c936c22c01635be590c22176b5f8802a31ee85336ed1cff35367
7
- data.tar.gz: '03914b905d94c5ae519bcf546d5dafc9949e61817bd82bfc0537a2fc33d36f92320684ae5db98ac6becee855b4e6223e0bae73bee4c406acb9c2a5501fed4cac'
6
+ metadata.gz: 4685e33b136d70e1ab9d22a38ddc0a341a41fa17d79cabd26dd93285ea3de8aec4a1a1b17f08a9cfe1eb22b99172a9fb48f4efd6ad9cbabf2e10b2bf3777fcef
7
+ data.tar.gz: a049101ea13c8ee412c909f44aa10cdd277b8a84f5c3e79327e5294bb6a11d0a5eb83eb057ed7798841286a1ec2769678aed4808d48c7bd7432c7ffddfb03e09
data/README.md CHANGED
@@ -22,8 +22,8 @@ alisms.send_to!(138xxxxxxxx, {code: 1234})
22
22
  ```
23
23
  You can also use `send_sms` to send Alidayu sms, it's an alias of `send_to`.
24
24
 
25
- ### Configration ###
26
- Before you sending any sms message, a valid configration is necessary.
25
+ ### Configuration ###
26
+ Before you sending any sms message, a valid configuration is necessary.
27
27
  Alidayu-sms supports you use it under Rails or in pure Ruby environment.
28
28
 
29
29
  #### Rails ####
@@ -45,10 +45,12 @@ production:
45
45
  ```
46
46
 
47
47
  #### Non-rails ####
48
- If you are using Sinatra or anything pure Ruby, use `Alidayu::Sms.configration` to configrate Alidayu-sms.
48
+ If you are using Sinatra or anything pure Ruby, use `Alidayu::Sms.configuration` to configrate Alidayu-sms.
49
49
 
50
50
  ```ruby
51
- Alidayu::Sms.configration do |config|
51
+ require 'alidayu/sms'
52
+
53
+ Alidayu::Sms.configuration do |config|
52
54
  config.access_key_id = YOUR_ACCESS_KEY_ID
53
55
  config.access_key_secret = YOUR_ACCESS_KEY_SECRET
54
56
  end
data/lib/alidayu/sms.rb CHANGED
@@ -64,7 +64,7 @@ module Alidayu
64
64
  end
65
65
 
66
66
  def send_to(*args)
67
- send!(*args) rescue false
67
+ send_to!(*args) rescue false
68
68
  end
69
69
 
70
70
  alias send_sms send_to
@@ -1,5 +1,5 @@
1
1
  module Alidayu
2
2
  class Sms
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alidayu-sms
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
  - cenxky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-31 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler