https://github.com/davispuh/ruby-libmspack
Ruby wrapper for libmspack. Library for compressing and decompressing Microsoft compression formats, CAB, CHM, HLP, LIT, KWAJ and SZDD.
https://github.com/davispuh/ruby-libmspack
Last synced: 10 months ago
JSON representation
Ruby wrapper for libmspack. Library for compressing and decompressing Microsoft compression formats, CAB, CHM, HLP, LIT, KWAJ and SZDD.
- Host: GitHub
- URL: https://github.com/davispuh/ruby-libmspack
- Owner: davispuh
- License: unlicense
- Created: 2013-12-25T21:19:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T00:36:40.000Z (over 2 years ago)
- Last Synced: 2025-08-22T13:59:28.788Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Libmspack
This is Ruby wrapper for [libmspack](http://www.cabextract.org.uk/libmspack/) library.
Compressing and decompressing some loosely related Microsoft compression formats, CAB, CHM, HLP, LIT, KWAJ and SZDD.
## Installation
Add this line to your application's Gemfile:
gem 'libmspack'
And then execute:
$ bundle
Or install it yourself as:
$ gem install libmspack
### Dependencies
gems:
* `ffi` (required)
* `ffi-compiler2` (required for compiling libmspack)
## Usage
```ruby
require 'libmspack'
decompressor = LibMsPack::CabDecompressor.new
cab = decompressor.search('data.cab')
puts cab.files.filename
decompressor.close(cab)
decompressor.destroy
```
## Code status
[](https://travis-ci.org/davispuh/ruby-libmspack)
[](https://gemnasium.com/davispuh/ruby-libmspack)
[](https://codeclimate.com/github/davispuh/ruby-libmspack)
## Unlicense

All text, documentation, code and files in this repository are in public domain (including this text, README).
It means you can copy, modify, distribute and include in your own work/code, even for commercial purposes, all without asking permission.
[About Unlicense](http://unlicense.org/)
### BUT
libmspack library itself is licensed with the [GNU LGPL](http://www.gnu.org/licenses/lgpl.txt)
## Contributing
Feel free to improve anything.
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
**Warning**: By sending pull request to this repository you dedicate any and all copyright interest in pull request (code files and all other) to the public domain. (files will be in public domain even if pull request doesn't get merged)
Also before sending pull request you acknowledge that you own all copyrights or have authorization to dedicate them to public domain.
If you don't want to dedicate code to public domain or if you're not allowed to (eg. you don't own required copyrights) then DON'T send pull request.