qiniu-rs 3.4.5 → 3.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGE LOG
2
2
 
3
+ ### v3.4.6
4
+
5
+ - `Qiniu::RS.generate_download_token()` 方法的 `:pattern` 调整为必选项。
6
+
3
7
  ### v3.4.5
4
8
 
5
9
  - `Qiniu::RS.generate_upload_token()` 方法新增 `:callback_body` 和 `return_url` 选项。
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiniu-rs (3.4.5)
4
+ qiniu-rs (3.4.6)
5
5
  json (~> 1.7)
6
6
  mime-types (~> 1.19)
7
7
  rest-client (~> 1.6)
data/docs/README.md CHANGED
@@ -330,7 +330,7 @@ expires_in
330
330
  : 可选,数字类型,用于设置上传 URL 的有效期,单位:秒,缺省为 3600 秒,即 1 小时后该下载授权凭证(downloadToken)不再有效。
331
331
 
332
332
  pattern
333
- : 可选,字符串类型,用于设置可匹配的下载链接。参考:[downloadToken pattern 详解](http://docs.qiniutek.com/v3/api/io/#download-token-pattern)
333
+ : 必选,字符串类型,用于设置可匹配的下载链接。参考:[downloadToken pattern 详解](http://docs.qiniutek.com/v3/api/io/#download-token-pattern)
334
334
 
335
335
 
336
336
  <a name="other-download-features"></a>
@@ -5,7 +5,7 @@ module Qiniu
5
5
  module Version
6
6
  MAJOR = 3
7
7
  MINOR = 4
8
- PATCH = 5
8
+ PATCH = 6
9
9
  # Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
10
10
  #
11
11
  # Example
@@ -13,7 +13,7 @@ module Qiniu
13
13
  attr_accessor :pattern, :expires_in
14
14
 
15
15
  def initialize(opts = {})
16
- @pattern = opts[:pattern] || "*"
16
+ @pattern = opts[:pattern]
17
17
  @expires_in = opts[:expires_in] || 3600
18
18
  end
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu-rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.5
4
+ version: 3.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -186,12 +186,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  - - ! '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
+ segments:
190
+ - 0
191
+ hash: 4277870360728960910
189
192
  required_rubygems_version: !ruby/object:Gem::Requirement
190
193
  none: false
191
194
  requirements:
192
195
  - - ! '>='
193
196
  - !ruby/object:Gem::Version
194
197
  version: '0'
198
+ segments:
199
+ - 0
200
+ hash: 4277870360728960910
195
201
  requirements: []
196
202
  rubyforge_project:
197
203
  rubygems_version: 1.8.25