mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 12:56:21 +10:00
去除已废弃的publish/unpublish接口。
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
## CHANGE LOG
|
||||
|
||||
### v6.2.1
|
||||
|
||||
### v6.2.0
|
||||
|
||||
- 重写与授权相关的函数并归入Qiniu::Auth空间,原授权凭证生成类维持不变。
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
qiniu (6.2.0)
|
||||
qiniu (6.2.1)
|
||||
json (~> 1.7)
|
||||
mime-types (~> 1.19)
|
||||
rest-client (~> 1.6)
|
||||
|
||||
@@ -156,16 +156,6 @@ module Qiniu
|
||||
code == StatusOK ? data : false
|
||||
end
|
||||
|
||||
def publish(domain, bucket)
|
||||
code, data = Storage.publish(domain, bucket)
|
||||
code == StatusOK
|
||||
end
|
||||
|
||||
def unpublish(domain)
|
||||
code, data = Storage.unpublish(domain)
|
||||
code == StatusOK
|
||||
end
|
||||
|
||||
def drop(bucket)
|
||||
code, data = Storage.drop(bucket)
|
||||
code == StatusOK
|
||||
|
||||
@@ -60,18 +60,6 @@ module Qiniu
|
||||
return HTTP.management_post(url)
|
||||
end # delete
|
||||
|
||||
def publish(domain, bucket)
|
||||
encoded_domain = Utils.urlsafe_base64_encode(domain)
|
||||
url = Config.settings[:rs_host] + "/publish/#{encoded_domain}/from/#{bucket}"
|
||||
return HTTP.management_post(url)
|
||||
end # publish
|
||||
|
||||
def unpublish(domain)
|
||||
encoded_domain = Utils.urlsafe_base64_encode(domain)
|
||||
url = Config.settings[:rs_host] + "/unpublish/#{encoded_domain}"
|
||||
return HTTP.management_post(url)
|
||||
end # unpublish
|
||||
|
||||
def drop(bucket)
|
||||
url = Config.settings[:rs_host] + "/drop/#{bucket}"
|
||||
return HTTP.management_post(url)
|
||||
|
||||
@@ -4,7 +4,7 @@ module Qiniu
|
||||
module Version
|
||||
MAJOR = 6
|
||||
MINOR = 2
|
||||
PATCH = 0
|
||||
PATCH = 1
|
||||
# Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
|
||||
#
|
||||
# Example
|
||||
|
||||
Reference in New Issue
Block a user