alisms 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 +3 -4
- data/lib/alisms.rb +1 -1
- data/lib/alisms/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7e48d19b68ff328619fa9a3655f8f76d6d079e9
|
|
4
|
+
data.tar.gz: 652a44a03066874d3f5028970a706b7b5f9f4892
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6957c276a93dfcd424879d0498cdfb434d018efa9ee93915fee05dcf9949c5f78e760e98a4f9d841cb7f1eb337d1f474410b8e8a50a8525d88f7315913de8286
|
|
7
|
+
data.tar.gz: dadce7d87e86031f83f6db841f0e1c321606bafeac077bc3e6a0474c7bcff790e1d65313a9cf03c8be42084323732b06e3ee5273df694d6abef41ed4e2c58064
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Alisms
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
This gem is for [aliyun sms service](https://market.aliyun.com/products/57002003/cmapi011900.html?spm=5176.730005-57002003.468004.2.pKQMdW).
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -23,9 +21,10 @@ Or install it yourself as:
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
23
|
### Without Rails
|
|
24
|
+
```ruby
|
|
26
25
|
Alisms.appcode = 'YOUR APP CODE'
|
|
27
26
|
Alisms::Client.send_sms(param_string).to(rec_num).with_template(template_code).by(sign_name)
|
|
28
|
-
|
|
27
|
+
```
|
|
29
28
|
|
|
30
29
|
### Within Rails
|
|
31
30
|
|
data/lib/alisms.rb
CHANGED
|
@@ -9,6 +9,7 @@ module Alisms
|
|
|
9
9
|
extend SingleForwardable
|
|
10
10
|
|
|
11
11
|
def_delegators :configuration, :appcode, :sign_name, :template_code
|
|
12
|
+
def_delegators :configuration, :appcode=, :sign_name=, :template_code=
|
|
12
13
|
|
|
13
14
|
def self.configure(&block)
|
|
14
15
|
yield configuration
|
|
@@ -19,5 +20,4 @@ module Alisms
|
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
private_class_method :configuration
|
|
22
|
-
# Your code goes here...
|
|
23
23
|
end
|
data/lib/alisms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alisms
|
|
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
|
- rocLv
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
124
|
version: '0'
|
|
125
125
|
requirements: []
|
|
126
126
|
rubyforge_project:
|
|
127
|
-
rubygems_version: 2.6.
|
|
127
|
+
rubygems_version: 2.6.14
|
|
128
128
|
signing_key:
|
|
129
129
|
specification_version: 4
|
|
130
130
|
summary: Write a short summary, because Rubygems requires one.
|