Compare commits

...
2 Commits
Author SHA1 Message Date
404 8cf75eecbd Merge branch 'hotfix/v2.0.5' 2012-06-29 11:46:12 +08:00
404 ccd46828c6 fixed raise NoSuchFileError bug. #3 2012-06-29 11:45:42 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
qiniu-rs (2.0.4)
qiniu-rs (2.0.5)
json (~> 1.7.3)
mime-types (~> 1.19)
rest-client (~> 1.6.7)
+1 -1
View File
@@ -21,7 +21,7 @@ module Qiniu
end
def put_file(url, local_file, bucket = nil, key = nil, mime_type = nil, custom_meta = nil, callback_params = nil, enable_crc32_check = false)
raise NoSuchFileError unless File.exist?(local_file)
raise NoSuchFileError, local_file unless File.exist?(local_file)
key = Digest::SHA1.hexdigest(local_file + Time.now.to_s) if key.nil?
entry_uri = bucket + ':' + key
if mime_type.nil?
+1 -1
View File
@@ -2,6 +2,6 @@
module Qiniu
module RS
VERSION = "2.0.4"
VERSION = "2.0.5"
end
end