必要なもの Rubygems zipruby zlib1.dll (Windows 版 Ruby を利用している場合) zipruby をインストールする # gem install zipruby zlib1.dll を入手する(Windows 版 Ruby のみ) 入手先 zlib Home Site の zlib compiled DLL をダウンロードする。 zlib compiled DLL, version 1.2.3 (2008年10月21日現在) zlib1.dll を Ruby が保存しているディレクトリ下の bin ディレクトリに移動する。 サンプル require 'rubygems' require 'zipruby' file_path = 'your_directory' # ファイルが保存しているディレクトリ名 filename = 'your_file.tx