qiniu-rs 2.3.1 → 2.3.2
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 +2 -2
- data/lib/qiniu/rs/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/qiniu/rs/auth.rb
CHANGED
@@ -59,7 +59,7 @@ module Qiniu
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def call_with_signature(url, data, retry_times = 0, options = {})
|
62
|
-
code, data = http_request url, data, options.merge
|
62
|
+
code, data = http_request url, data, options.merge({:qbox_signature_token => generate_qbox_signature(url, data)})
|
63
63
|
[code, data]
|
64
64
|
end
|
65
65
|
|
@@ -68,7 +68,7 @@ module Qiniu
|
|
68
68
|
if Config.settings[:access_key].empty? || Config.settings[:secret_key].empty?
|
69
69
|
code, data = Auth.call_with_logged_in(url, data)
|
70
70
|
else
|
71
|
-
code, data = Auth.call_with_signature(url, data, options)
|
71
|
+
code, data = Auth.call_with_signature(url, data, 0, options)
|
72
72
|
end
|
73
73
|
rescue [MissingAccessToken, MissingRefreshToken, MissingUsernameOrPassword] => e
|
74
74
|
Log.logger.error e
|
data/lib/qiniu/rs/version.rb
CHANGED
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.3.
|
4
|
+
version: 2.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
segments:
|
179
179
|
- 0
|
180
|
-
hash:
|
180
|
+
hash: -274925002457974401
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
segments:
|
188
188
|
- 0
|
189
|
-
hash:
|
189
|
+
hash: -274925002457974401
|
190
190
|
requirements: []
|
191
191
|
rubyforge_project:
|
192
192
|
rubygems_version: 1.8.24
|