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.
- data/Gemfile.lock +1 -1
- data/lib/qiniu/rs/auth.rb +7 -1
- data/lib/qiniu/rs/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/qiniu/rs/auth.rb
CHANGED
@@ -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
|
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
|
data/lib/qiniu/rs/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -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 => "
|
10
|
-
:secret_key => "
|
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
|
+
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-
|
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:
|
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:
|
193
|
+
hash: 1125478179497758513
|
194
194
|
requirements: []
|
195
195
|
rubyforge_project:
|
196
196
|
rubygems_version: 1.8.24
|