Skip to content

Commit

Permalink
add bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
lg2046 committed Mar 28, 2013
1 parent de5895e commit b636b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/upyun/bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_notify_params(params)
if params[:code].to_s == "200" && (params[:sign] == Digest::MD5.hexdigest("#{params[:code]}&#{params[:message]}&#{params[:url]}&#{params[:time]}&#{api_form_secret}"))
url = "http://#{bucketname}.b0.upaiyun.com#{params[:url]}"
mid = Digest::MD5.hexdigest(url)
image_attributes = { :mid => mid, :url => url }
image_attributes = { :mid => mid, :url => url, :bucket => bucketname }

if params["image-width"] && params["image-height"] && params["image-frames"] && params["image-type"]
image_attributes[:width] = params["image-width"].to_i
Expand Down
2 changes: 1 addition & 1 deletion lib/upyun/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Upyun
VERSION = "1.0.0"
VERSION = "1.1.0"
end

0 comments on commit b636b2b

Please sign in to comment.