qiniu-rs 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiniu-rs (3.0.4)
4
+ qiniu-rs (3.0.5)
5
5
  json (~> 1.7.5)
6
6
  mime-types (~> 1.19)
7
7
  rest-client (~> 1.6.7)
@@ -70,7 +70,13 @@ module Qiniu
70
70
  else
71
71
  code, data = Auth.call_with_signature(url, data, 0, options)
72
72
  end
73
- rescue [MissingAccessToken, MissingRefreshToken, MissingUsernameOrPassword] => e
73
+ rescue MissingAccessToken => e
74
+ Log.logger.error e
75
+ code, data = 401, {}
76
+ rescue MissingRefreshToken => e
77
+ Log.logger.error e
78
+ code, data = 401, {}
79
+ rescue MissingUsernameOrPassword => e
74
80
  Log.logger.error e
75
81
  code, data = 401, {}
76
82
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qiniu
4
4
  module RS
5
- VERSION = "3.0.4"
5
+ VERSION = "3.0.5"
6
6
  end
7
7
  end
@@ -6,8 +6,8 @@ require 'rspec'
6
6
 
7
7
  RSpec.configure do |config|
8
8
  config.before :all do
9
- Qiniu::RS.establish_connection! :access_key => "bE21M6FW9V7zAFrBY5psgKOKJQLiBj12qMWTpc57",
10
- :secret_key => "uMo7Nyq_eDK_CuQ8_FYCxoTHQZqjiaPh-cbiKO7L",
9
+ Qiniu::RS.establish_connection! :access_key => "dFX_wMGVrRzwdWaraW-Qe5ZCDT-kcSmIAGKQOkXh",
10
+ :secret_key => "VllxxDfkn_h2ZIqeKYTnHJiN4LVODfDBlJHy_KsW",
11
11
  :auth_url => "http://m1.qbox.me:13001/oauth2/token",
12
12
  :rs_host => "http://m1.qbox.me:13003",
13
13
  :io_host => "http://m1.qbox.me:13004",
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: 3.0.4
4
+ version: 3.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-08-18 00:00:00.000000000 Z
12
+ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: 3686017908626256653
184
+ hash: 1125478179497758513
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements:
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  segments:
192
192
  - 0
193
- hash: 3686017908626256653
193
+ hash: 1125478179497758513
194
194
  requirements: []
195
195
  rubyforge_project:
196
196
  rubygems_version: 1.8.24