├── .gitignore ├── .rspec ├── .travis.yml ├── .yardopts ├── CHANGELOG.md ├── Gemfile ├── LICENSE ├── README-CN.md ├── README.md ├── Rakefile ├── aliyun-sdk.gemspec ├── examples └── aliyun │ ├── oss │ ├── bucket.rb │ ├── callback.rb │ ├── object.rb │ ├── resumable_download.rb │ ├── resumable_upload.rb │ ├── streaming.rb │ └── using_sts.rb │ └── sts │ └── assume_role.rb ├── ext └── crcx │ ├── crc64_ecma.c │ ├── crcx.c │ ├── crcx.h │ └── extconf.rb ├── lib └── aliyun │ ├── common.rb │ ├── common │ ├── exception.rb │ ├── logging.rb │ └── struct.rb │ ├── oss.rb │ ├── oss │ ├── bucket.rb │ ├── client.rb │ ├── config.rb │ ├── download.rb │ ├── exception.rb │ ├── http.rb │ ├── iterator.rb │ ├── multipart.rb │ ├── object.rb │ ├── protocol.rb │ ├── struct.rb │ ├── upload.rb │ └── util.rb │ ├── sts.rb │ ├── sts │ ├── client.rb │ ├── config.rb │ ├── exception.rb │ ├── protocol.rb │ ├── struct.rb │ └── util.rb │ └── version.rb ├── rails ├── Gemfile ├── aliyun_oss_callback_server.rb ├── aliyun_oss_helper.rb └── aliyun_oss_init.rb ├── spec ├── aliyun │ ├── oss │ │ ├── bucket_spec.rb │ │ ├── client │ │ │ ├── bucket_spec.rb │ │ │ ├── client_spec.rb │ │ │ ├── resumable_download_spec.rb │ │ │ └── resumable_upload_spec.rb │ │ ├── http_spec.rb │ │ ├── multipart_spec.rb │ │ ├── object_spec.rb │ │ ├── service_spec.rb │ │ └── util_spec.rb │ └── sts │ │ ├── client_spec.rb │ │ └── util_spec.rb └── spec_helper.rb └── tests ├── config.rb ├── example.jpg ├── helper.rb ├── test_bucket.rb ├── test_content_encoding.rb ├── test_content_type.rb ├── test_crc_check.rb ├── test_custom_headers.rb ├── test_encoding.rb ├── test_large_file.rb ├── test_multipart.rb ├── test_object_acl.rb ├── test_object_key.rb ├── test_object_url.rb └── test_resumable.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/.travis.yml -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | --private 2 | --protected 3 | - 4 | CHANGELOG.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/LICENSE -------------------------------------------------------------------------------- /README-CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/README-CN.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/Rakefile -------------------------------------------------------------------------------- /aliyun-sdk.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/aliyun-sdk.gemspec -------------------------------------------------------------------------------- /examples/aliyun/oss/bucket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/bucket.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/callback.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/callback.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/object.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/object.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/resumable_download.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/resumable_download.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/resumable_upload.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/resumable_upload.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/streaming.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/streaming.rb -------------------------------------------------------------------------------- /examples/aliyun/oss/using_sts.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/oss/using_sts.rb -------------------------------------------------------------------------------- /examples/aliyun/sts/assume_role.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/examples/aliyun/sts/assume_role.rb -------------------------------------------------------------------------------- /ext/crcx/crc64_ecma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/ext/crcx/crc64_ecma.c -------------------------------------------------------------------------------- /ext/crcx/crcx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/ext/crcx/crcx.c -------------------------------------------------------------------------------- /ext/crcx/crcx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/ext/crcx/crcx.h -------------------------------------------------------------------------------- /ext/crcx/extconf.rb: -------------------------------------------------------------------------------- 1 | require 'mkmf' 2 | 3 | create_makefile('aliyun/crcx') 4 | -------------------------------------------------------------------------------- /lib/aliyun/common.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/common.rb -------------------------------------------------------------------------------- /lib/aliyun/common/exception.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/common/exception.rb -------------------------------------------------------------------------------- /lib/aliyun/common/logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/common/logging.rb -------------------------------------------------------------------------------- /lib/aliyun/common/struct.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/common/struct.rb -------------------------------------------------------------------------------- /lib/aliyun/oss.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/bucket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/bucket.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/client.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/config.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/download.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/download.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/exception.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/exception.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/http.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/http.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/iterator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/iterator.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/multipart.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/multipart.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/object.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/object.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/protocol.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/protocol.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/struct.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/struct.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/upload.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/upload.rb -------------------------------------------------------------------------------- /lib/aliyun/oss/util.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/oss/util.rb -------------------------------------------------------------------------------- /lib/aliyun/sts.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/client.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/config.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/exception.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/exception.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/protocol.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/protocol.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/struct.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/struct.rb -------------------------------------------------------------------------------- /lib/aliyun/sts/util.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/sts/util.rb -------------------------------------------------------------------------------- /lib/aliyun/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/lib/aliyun/version.rb -------------------------------------------------------------------------------- /rails/Gemfile: -------------------------------------------------------------------------------- 1 | gem 'aliyun-sdk', '~> 0.1.0' 2 | -------------------------------------------------------------------------------- /rails/aliyun_oss_callback_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/rails/aliyun_oss_callback_server.rb -------------------------------------------------------------------------------- /rails/aliyun_oss_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/rails/aliyun_oss_helper.rb -------------------------------------------------------------------------------- /rails/aliyun_oss_init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/rails/aliyun_oss_init.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/bucket_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/bucket_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/client/bucket_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/client/bucket_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/client/client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/client/client_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/client/resumable_download_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/client/resumable_download_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/client/resumable_upload_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/client/resumable_upload_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/http_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/http_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/multipart_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/multipart_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/object_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/object_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/service_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/service_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/oss/util_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/oss/util_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/sts/client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/sts/client_spec.rb -------------------------------------------------------------------------------- /spec/aliyun/sts/util_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/aliyun/sts/util_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /tests/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/config.rb -------------------------------------------------------------------------------- /tests/example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/example.jpg -------------------------------------------------------------------------------- /tests/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/helper.rb -------------------------------------------------------------------------------- /tests/test_bucket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_bucket.rb -------------------------------------------------------------------------------- /tests/test_content_encoding.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_content_encoding.rb -------------------------------------------------------------------------------- /tests/test_content_type.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_content_type.rb -------------------------------------------------------------------------------- /tests/test_crc_check.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_crc_check.rb -------------------------------------------------------------------------------- /tests/test_custom_headers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_custom_headers.rb -------------------------------------------------------------------------------- /tests/test_encoding.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_encoding.rb -------------------------------------------------------------------------------- /tests/test_large_file.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_large_file.rb -------------------------------------------------------------------------------- /tests/test_multipart.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_multipart.rb -------------------------------------------------------------------------------- /tests/test_object_acl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_object_acl.rb -------------------------------------------------------------------------------- /tests/test_object_key.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_object_key.rb -------------------------------------------------------------------------------- /tests/test_object_url.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_object_url.rb -------------------------------------------------------------------------------- /tests/test_resumable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-oss-ruby-sdk/HEAD/tests/test_resumable.rb --------------------------------------------------------------------------------