Fetching contributors…
Cannot retrieve contributors at this time
36 lines (20 sloc) 1.45 KB
== Rubygems
The easiest way to install aliyun/oss is with Rubygems:
% gem i aliyun-oss -ry
== Directly from git
% git clone git://
== Dependencies
Aliyun::OSS requires Ruby 1.8.4 or greater.
It also has the following dependencies:
gem i xml-simple -ry
gem i builder -ry
gem i mime-types -ry
=== XML parsing (xml-simple)
Aliyun::OSS depends on XmlSimple ( When installing aliyun/oss with
Rubygems, this dependency will be taken care of for you. Otherwise, installation instructions are listed on the xml-simple
If your system has the Ruby libxml bindings installed ( they will be used instead of REXML (which is what XmlSimple uses). For those concerned with speed and efficiency, it would behoove you to install libxml (instructions here: as it is considerably faster and less expensive than REXML.
=== XML generation (builder)
Aliyun::OSS also depends on the Builder library ( and This will also automatically be installed for you when using Rubygems.
=== Content type inference (mime-types)
Aliyun::OSS depends on the MIME::Types library ( to infer the content type of an object that does not explicitly specify it. This library will automatically be installed for you when using Rubygems.