🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ruby-lzma

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby-lzma

0.4.3
Rubygems
Version published
Maintainers
1
Created
Source

LZMA Ruby bindings

Simple LZMA compression and decompression routines. No features to speak of presently. Works in Ruby 1.8.6+ and JRuby, with compatibility between the two 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

Examples

Compressing String Data:

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

Decompressing String Data:

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

FAQs

Package last updated on 08 Jun 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts