diff --git a/CHANGELOG.md b/CHANGELOG.md index 5935def..ad6c305 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## CHANGE LOG +### v6.2.1 + ### v6.2.0 - 重写与授权相关的函数并归入Qiniu::Auth空间,原授权凭证生成类维持不变。 diff --git a/Gemfile.lock b/Gemfile.lock index 9ce9541..1d1df68 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/lib/qiniu.rb b/lib/qiniu.rb index e7a36e5..302125a 100755 --- a/lib/qiniu.rb +++ b/lib/qiniu.rb @@ -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 diff --git a/lib/qiniu/management.rb b/lib/qiniu/management.rb index 911d2e1..300372b 100755 --- a/lib/qiniu/management.rb +++ b/lib/qiniu/management.rb @@ -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) diff --git a/lib/qiniu/version.rb b/lib/qiniu/version.rb index 820edea..8b5af3f 100755 --- a/lib/qiniu/version.rb +++ b/lib/qiniu/version.rb @@ -4,7 +4,7 @@ module Qiniu module Version MAJOR = 6 MINOR = 2 - PATCH = 0 + PATCH = 1 # Returns a version string by joining MAJOR, MINOR, and PATCH with '.' # # Example