From 34fc65bd998e5354e908a7deaf4e40462c762f93 Mon Sep 17 00:00:00 2001 From: Liang Tao Date: Sun, 20 Apr 2014 09:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=B7=B2=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E7=9A=84publish/unpublish=E6=8E=A5=E5=8F=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ Gemfile.lock | 2 +- lib/qiniu.rb | 10 ---------- lib/qiniu/management.rb | 12 ------------ lib/qiniu/version.rb | 2 +- 5 files changed, 4 insertions(+), 24 deletions(-) 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