Merge remote-tracking branch 'qiniu/master'

This commit is contained in:
404
2012-08-19 01:59:03 +08:00
3 changed files with 3 additions and 3 deletions
+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
@@ -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",