qiniu_jxb_fix 6.4.2 → 6.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/qiniu/upload.rb CHANGED
@@ -55,6 +55,12 @@ module Qiniu
55
55
  url += '/'
56
56
 
57
57
  ### 构造HTTP Body
58
+ if local_file.is_a?(String)
59
+ tmp = Tempfile.new('foo')
60
+ tmp.write(local_file)
61
+ tmp.close
62
+ local_file = tmp
63
+ end
58
64
  file = File.new(local_file, 'rb')
59
65
  if not opts[:content_type].nil?
60
66
  file.define_singleton_method("content_type") do
data/lib/qiniu/version.rb CHANGED
@@ -4,7 +4,7 @@ module Qiniu
4
4
  module Version
5
5
  MAJOR = 6
6
6
  MINOR = 4
7
- PATCH = 2
7
+ PATCH = 3
8
8
  # Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
9
9
  #
10
10
  # Example
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu_jxb_fix
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.2
4
+ version: 6.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: