Skip to content

Simple ruby wrappers for LZMA compression and decompression. Fully functional, on Ruby, JRuby, and MacRuby.

Notifications You must be signed in to change notification settings

KojiNakamaru/ruby-lzma

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:[email protected]

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"))

About

Simple ruby wrappers for LZMA compression and decompression. Fully functional, on Ruby, JRuby, and MacRuby.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 37.0%
  • C++ 33.0%
  • Java 27.8%
  • Ruby 2.2%