upyun-rb 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module Upyun
30
30
  def put(path, file)
31
31
  uri = "/#{@bucket}/#{path}"
32
32
  date = Upyun::Util.current_date
33
- mime_type = `file -Ib #{file}`.gsub(/\n/,"").split(';')[0]
33
+ mime_type = `file -b --mime #{file}`.gsub(/\n/,"").split(';')[0]
34
34
  file_size = file.nil? ? 0 : File.size(file)
35
35
  sign = Digest::MD5.hexdigest("PUT&#{uri}&#{date}&#{file_size}&#{@signed_password}")
36
36
 
@@ -1,3 +1,3 @@
1
1
  module Upyun
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upyun-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: