From 66589d6fb1e742ad83f25e2abb5426d75dfd4c31 Mon Sep 17 00:00:00 2001 From: Tianlong Wu Date: Thu, 3 Dec 2015 13:22:09 +0800 Subject: [PATCH 1/2] fix comments errors --- lib/aliyun/oss/bucket.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/aliyun/oss/bucket.rb b/lib/aliyun/oss/bucket.rb index cb7cb3e..90aed8f 100644 --- a/lib/aliyun/oss/bucket.rb +++ b/lib/aliyun/oss/bucket.rb @@ -178,8 +178,8 @@ def list_objects(opts = {}) # @option opts [Hash] :metas 设置object的meta,这是一些用户自定 # 义的属性,它们会和object一起存储,在{#get_object}的时候会 # 返回这些meta。属性的key不区分大小写。例如:{ 'year' => '2015' } - # @yield [HTTP::StreamWriter] 如果调 - # 用的时候传递了block,则写入到object的数据由block指定 + # @yield [HTTP::StreamWriter] 如果调用的时候传递了block,则写入 + # 到object的数据由block指定 # @example 流式上传数据 # put_object('x'){ |stream| 100.times { |i| stream << i.to_s } } # put_object('x'){ |stream| stream << get_data } @@ -188,9 +188,6 @@ def list_objects(opts = {}) # @example 指定Content-Type和metas # put_object('x', :file => '/tmp/x', :content_type => 'text/html', # :metas => {'year' => '2015', 'people' => 'mary'}) - # @note 采用streaming的方式时,提供的数据必须是有结束标记的数据。 - # 因为put_object会不断地从StreamWriter中读取数据上传到OSS,直到 - # 它读到的数据为nil停止。 # @note 如果opts中指定了:file,则block会被忽略 def put_object(key, opts = {}, &block) args = opts.dup From fb1f155c216ff94fddd86c08546fe97372530bb5 Mon Sep 17 00:00:00 2001 From: Tianlong Wu Date: Thu, 3 Dec 2015 13:24:45 +0800 Subject: [PATCH 2/2] test 1.9.2 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4e484d8..7f7e24a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: ruby rvm: + - 1.9.2 - 1.9.3 - 2.0 - 2.1