qiniu-rs 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiniu-rs (2.0.4)
4
+ qiniu-rs (2.0.5)
5
5
  json (~> 1.7.3)
6
6
  mime-types (~> 1.19)
7
7
  rest-client (~> 1.6.7)
data/lib/qiniu/rs/io.rb CHANGED
@@ -21,7 +21,7 @@ module Qiniu
21
21
  end
22
22
 
23
23
  def put_file(url, local_file, bucket = nil, key = nil, mime_type = nil, custom_meta = nil, callback_params = nil, enable_crc32_check = false)
24
- raise NoSuchFileError unless File.exist?(local_file)
24
+ raise NoSuchFileError, local_file unless File.exist?(local_file)
25
25
  key = Digest::SHA1.hexdigest(local_file + Time.now.to_s) if key.nil?
26
26
  entry_uri = bucket + ':' + key
27
27
  if mime_type.nil?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qiniu
4
4
  module RS
5
- VERSION = "2.0.4"
5
+ VERSION = "2.0.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu-rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
12
+ date: 2012-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -2122920232978999027
176
+ hash: -3585720177753596868
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: -2122920232978999027
185
+ hash: -3585720177753596868
186
186
  requirements: []
187
187
  rubyforge_project:
188
188
  rubygems_version: 1.8.24