Compare commits

...
5 Commits
Author SHA1 Message Date
xushiwei 1af173d04f Merge pull request #15 from huobazi/master
修正 Qiniu::RS.generate_upload_toke 对参数处理和文档描述不一致
2012-08-18 10:25:03 -07:00
huobazi b176c7a604 文档中描述 Qiniu::RS.generate_upload_toke的参数为可选,默认值为3600,但代码中实际的处理并没有考虑参数未传值时取默认值
ref: http://docs.qiniutek.com/v3/sdk/ruby/#upload
2012-08-18 23:22:37 +08:00
xushiwei 88b56daabd Merge pull request #14 from why404/hotfix/v3.0.3
Hotfix/v3.0.3 - doc link version
2012-08-17 08:50:51 -07:00
404 bab0f4a602 verion updated 2012-08-17 23:22:03 +08:00
404 36d5fc0684 Merge branch 'hotfix/v3.0.2' 2012-08-17 09:43:43 +08:00
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
qiniu-rs (3.0.2)
qiniu-rs (3.0.3)
json (~> 1.7.3)
mime-types (~> 1.19)
rest-client (~> 1.6.7)
+1 -1
View File
@@ -2,6 +2,6 @@
module Qiniu
module RS
VERSION = "3.0.2"
VERSION = "3.0.3"
end
end
+1 -1
View File
@@ -14,7 +14,7 @@ module Qiniu
def initialize(opts = {})
@scope = opts[:scope]
@expires_in = opts[:expires_in]
@expires_in = opts[:expires_in] || 3600
@callback_url = opts[:callback_url]
@callback_body_type = opts[:callback_body_type]
@customer = opts[:customer]
+1 -1
View File
@@ -5,7 +5,7 @@ require File.expand_path('../lib/qiniu/rs/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["why404"]
gem.email = ["why404@gmail.com"]
gem.description = %q{Qiniu Resource (Cloud) Storage SDK for Ruby. See: http://docs.qiniutek.com/v2/sdk/ruby/}
gem.description = %q{Qiniu Resource (Cloud) Storage SDK for Ruby. See: http://docs.qiniutek.com/v3/sdk/ruby/}
gem.summary = %q{Qiniu Resource (Cloud) Storage SDK for Ruby}
gem.homepage = "https://github.com/qiniu/ruby-sdk"
+1 -1
View File
@@ -115,7 +115,7 @@ module Qiniu
context ".upload_file" do
it "should works" do
uptoken_opts = {:scope => @bucket, :expires_in => 3600}
uptoken_opts = {:scope => @bucket}
upload_opts = {
:uptoken => Qiniu::RS.generate_upload_token(uptoken_opts),
:file => __FILE__,
+1 -1
View File
@@ -8,7 +8,7 @@ RSpec.configure do |config|
config.before :all do
#=begin
Qiniu::RS.establish_connection! :access_key => "3fPHl_SLkPXdioqI_A8_NGngPWVJhlDk2ktRjogH",
:secret_key => "bXTPMDJrVYRJUiSDRFtFYwycVD_mjXxYWrCYlDHy",
:secret_key => "bXTPMDJrVYRJUiSDRFtFYwycVD_mjXxYWrCYlDHy"
#=end
=begin
Qiniu::RS.establish_connection! :access_key => "bE21M6FW9V7zAFrBY5psgKOKJQLiBj12qMWTpc57",