aliyun-sms 1.1.0 → 1.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 +4 -4
- data/README.zh-CN.md +3 -3
- data/aliyun-sms.gemspec +2 -2
- data/lib/aliyun/sms/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a9a72903af7fb822d6e6daf98cb3d3289b633db
|
|
4
|
+
data.tar.gz: 2aec6e65f39f8046ee2df7050076afb9f28386ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a66e1c2810850e5c876bd61378d1db7a0b56733d15158a8e0c91242507b6effa682c2a89953d0769277edb3b805f98373e3ed1b0f9cac5426aaa5f4c637e4221
|
|
7
|
+
data.tar.gz: 7c2921a212a3fcdf91770f05668a653eca4464762d210a4857a84e73b61035eabf54356947b632ca01f28d99d068ed40a80d11dbed4f0a0fe08bea7f4287b352
|
data/README.md
CHANGED
|
@@ -75,7 +75,7 @@ If you get a error as follows, when running above command:
|
|
|
75
75
|
You could switch to github resource, and modify the the Rails Gemfile to:
|
|
76
76
|
|
|
77
77
|
```ruby
|
|
78
|
-
gem 'aliyun-sms', '1.1.
|
|
78
|
+
gem 'aliyun-sms', '1.1.1', git: 'https://github.com/VICTOR-LUO-F/aliyun-sms.git'
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## Usage
|
|
@@ -122,7 +122,7 @@ return
|
|
|
122
122
|
Send message:
|
|
123
123
|
|
|
124
124
|
$ Aliyun::Sms.send(phone_numbers, template_code, template_param, out_id)
|
|
125
|
-
|
|
125
|
+
|
|
126
126
|
Explanation:
|
|
127
127
|
|
|
128
128
|
1. phone_numbers: the phone number, string type, such as '1234567890'. You can use multiple phone numbers devided by comma, such as '1234567890,12388888888'.
|
|
@@ -137,7 +137,7 @@ Explanation:
|
|
|
137
137
|
|
|
138
138
|
In Rails direction 'config/initializers/', create file 'aliyun-sms.rb', and add code:
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
config/initializers/aliyun-sms.rb
|
|
142
142
|
|
|
143
143
|
```ruby
|
|
@@ -153,7 +153,7 @@ Aliyun::Sms.configure do |config|
|
|
|
153
153
|
config.version = '2017-05-25' # default value
|
|
154
154
|
end
|
|
155
155
|
```
|
|
156
|
-
then, restart Rails application。
|
|
156
|
+
then, restart Rails application。
|
|
157
157
|
|
|
158
158
|
#### Second Step:
|
|
159
159
|
|
data/README.zh-CN.md
CHANGED
|
@@ -82,7 +82,7 @@ require 'aliyun/sms'
|
|
|
82
82
|
可以改为 Github 安装源,例如 Rails Gemfile 文件引用可以改为下面格式,即可正确安装。
|
|
83
83
|
|
|
84
84
|
```ruby
|
|
85
|
-
gem 'aliyun-sms', git: 'https://github.com/VICTOR-LUO-F/aliyun-sms.git'
|
|
85
|
+
gem 'aliyun-sms', '1.1.1', git: 'https://github.com/VICTOR-LUO-F/aliyun-sms.git'
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
## Usage 使用
|
|
@@ -128,7 +128,7 @@ $ Aliyun::Sms.configure do |config|
|
|
|
128
128
|
发送短信:
|
|
129
129
|
|
|
130
130
|
$ Aliyun::Sms.send(phone_numbers, template_code, template_param, out_id)
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
参数说明:
|
|
133
133
|
|
|
134
134
|
1. phone_numbers: 接收短信的手机号,必须为字符型,例如 '1234567890',如果有多个号码,中间用","隔开,例如:'1234567890,12388888888';
|
|
@@ -158,7 +158,7 @@ Aliyun::Sms.configure do |config|
|
|
|
158
158
|
config.version = '2017-05-25' # 服务版本,默认设置,不用修改
|
|
159
159
|
end
|
|
160
160
|
```
|
|
161
|
-
之后,重新启动 Rails,加载配置。
|
|
161
|
+
之后,重新启动 Rails,加载配置。
|
|
162
162
|
|
|
163
163
|
#### 第二步:
|
|
164
164
|
|
data/aliyun-sms.gemspec
CHANGED
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["VICTOR LUO"]
|
|
10
10
|
spec.email = ["victor-luo@outlook.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{A Ruby Gem for using aliyun sms service.}
|
|
13
|
-
spec.description = %q{A Ruby Gem for using aliyun sms service.}
|
|
12
|
+
spec.summary = %q{A Ruby Gem for using aliyun sms service, in accordance with aliyun sms 2017-05-25 version api. 适用于阿里云短信服务最新的 2017-05-25 版接口.}
|
|
13
|
+
spec.description = %q{A Ruby Gem for using aliyun sms service, in accordance with aliyun sms 2017-05-25 version api. 适用于阿里云短信服务最新的 2017-05-25 版接口.}
|
|
14
14
|
spec.homepage = "https://github.com/VICTOR-LUO-F/aliyun-sms"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
data/lib/aliyun/sms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aliyun-sms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- VICTOR LUO
|
|
@@ -66,7 +66,8 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
|
-
description: A Ruby Gem for using aliyun sms service
|
|
69
|
+
description: A Ruby Gem for using aliyun sms service, in accordance with aliyun sms
|
|
70
|
+
2017-05-25 version api. 适用于阿里云短信服务最新的 2017-05-25 版接口.
|
|
70
71
|
email:
|
|
71
72
|
- victor-luo@outlook.com
|
|
72
73
|
executables: []
|
|
@@ -108,5 +109,6 @@ rubyforge_project:
|
|
|
108
109
|
rubygems_version: 2.6.13
|
|
109
110
|
signing_key:
|
|
110
111
|
specification_version: 4
|
|
111
|
-
summary: A Ruby Gem for using aliyun sms service
|
|
112
|
+
summary: A Ruby Gem for using aliyun sms service, in accordance with aliyun sms 2017-05-25
|
|
113
|
+
version api. 适用于阿里云短信服务最新的 2017-05-25 版接口.
|
|
112
114
|
test_files: []
|