alidayu-sms 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 +4 -4
- data/README.md +6 -4
- data/lib/alidayu/sms.rb +1 -1
- data/lib/alidayu/sms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9be7b669eecf8440e6147eb98239a4d6652ef0e4
|
|
4
|
+
data.tar.gz: 28b027c9305bb96878cfd4d9bf8e27644c065b5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
###
|
|
26
|
-
Before you sending any sms message, a valid
|
|
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.
|
|
48
|
+
If you are using Sinatra or anything pure Ruby, use `Alidayu::Sms.configuration` to configrate Alidayu-sms.
|
|
49
49
|
|
|
50
50
|
```ruby
|
|
51
|
-
|
|
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
data/lib/alidayu/sms/version.rb
CHANGED
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.
|
|
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:
|
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|