fix :pattern requried

This commit is contained in:
why404
2013-09-28 03:42:00 +08:00
parent b1e6235b2e
commit 0bb4edcade
4 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
## CHANGE LOG
### v3.4.6
- `Qiniu::RS.generate_download_token()` 方法的 `:pattern` 调整为必选项。
### v3.4.5
- `Qiniu::RS.generate_upload_token()` 方法新增 `:callback_body``return_url` 选项。
+1 -1
View File
@@ -330,7 +330,7 @@ expires_in
: 可选,数字类型,用于设置上传 URL 的有效期,单位:秒,缺省为 3600 秒,即 1 小时后该下载授权凭证(downloadToken)不再有效。
pattern
: 选,字符串类型,用于设置可匹配的下载链接。参考:[downloadToken pattern 详解](http://docs.qiniutek.com/v3/api/io/#download-token-pattern)
: 选,字符串类型,用于设置可匹配的下载链接。参考:[downloadToken pattern 详解](http://docs.qiniutek.com/v3/api/io/#download-token-pattern)
<a name="other-download-features"></a>
+1 -1
View File
@@ -5,7 +5,7 @@ module Qiniu
module Version
MAJOR = 3
MINOR = 4
PATCH = 5
PATCH = 6
# Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
#
# Example
+1 -1
View File
@@ -13,7 +13,7 @@ module Qiniu
attr_accessor :pattern, :expires_in
def initialize(opts = {})
@pattern = opts[:pattern] || "*"
@pattern = opts[:pattern]
@expires_in = opts[:expires_in] || 3600
end