Project

ruby-lzma

0.01
No commit activity in last 3 years
No release in over 3 years
Simple ruby and jruby wrappers for LZMA compression and decompression.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

LZMA Ruby bindings

Simple LZMA compression and decompression routines. No features to speak of presently. Works in Ruby 1.8.6+, Ruby 1.9.1+, JRuby 1.4.1+, and MacRuby 0.6+. All versions are compatible with each other, and with other LZMA implementations.

Send questions to mailto:ian@ianlevesque.org

Installation (MRI)

gem install ruby-lzma

OR

git clone http://github.com/ianlevesque/ruby-lzma.git
cd ruby-lzma
rake install

Installation (JRuby)

jruby -S gem install ruby-lzma

Installation (MacRuby)

macgem install ruby-lzma

Examples

Compressing String Data:

require 'lzma'
compressed = LZMA.compress('data to compress')

Decompressing String Data:

require 'lzma'
decompressed = LZMA.decompress(File.read("compressed.lzma"))