去除已废弃的publish/unpublish接口。

This commit is contained in:
Liang Tao
2014-04-20 09:25:15 +08:00
parent ecbeb51339
commit 34fc65bd99
5 changed files with 4 additions and 24 deletions
+2
View File
@@ -1,5 +1,7 @@
## CHANGE LOG
### v6.2.1
### v6.2.0
- 重写与授权相关的函数并归入Qiniu::Auth空间,原授权凭证生成类维持不变。
+1 -1
View File
@@ -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)
-10
View File
@@ -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
-12
View File
@@ -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)
+1 -1
View File
@@ -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