{"id":19687177,"url":"https://github.com/trinitronx/lzop-file","last_synced_at":"2025-02-27T07:51:16.565Z","repository":{"id":22557228,"uuid":"25898367","full_name":"trinitronx/lzop-file","owner":"trinitronx","description":"Ruby library for writing LZOP files.","archived":false,"fork":false,"pushed_at":"2014-11-04T23:19:38.000Z","size":184,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T07:47:15.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trinitronx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-29T01:24:15.000Z","updated_at":"2020-02-02T21:56:32.000Z","dependencies_parsed_at":"2022-08-05T18:15:19.917Z","dependency_job_id":null,"html_url":"https://github.com/trinitronx/lzop-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Flzop-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Flzop-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Flzop-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Flzop-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trinitronx","download_url":"https://codeload.github.com/trinitronx/lzop-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993952,"owners_count":19890419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:33:19.389Z","updated_at":"2025-02-27T07:51:16.535Z","avatar_url":"https://github.com/trinitronx.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"LZOP::File\n==========\n\n[![Build Status](http://img.shields.io/travis/trinitronx/lzop-file.svg)](https://travis-ci.org/trinitronx/lzop-file)\n[![Gratipay](http://img.shields.io/gratipay/trinitronx.svg)](https://www.gratipay.com/trinitronx)\n\nRuby library for writing [LZOP](http://www.lzop.org/) files.\n\nThis gem writes the binary file format for `.lzo` or `.lz` files in native Ruby code.\nThe [lzoruby](https://bitbucket.org/winebarrel/lzo-ruby/src) gem is used to compress the data.\n\n## Known Issues\n\nThis release of lzop-file is currently not feature-complete \u0026 should be treated as a beta release!\nThere are known issues with the current implementation with regards to output file compatibility with the `lzop` tool:\n\n - CRC32 or Adler32 checksum is **not** currently written to the output file headers\n - There may be other header bits that are incorrect\n - Ruby 1.8.x is not supported due to [Array#pack()](http://ruby-doc.org/core-1.8.7/Array.html#method-i-pack) not supporting the endian-ness modifiers we need.\n - lzoruby version 0.1.3 does **not** provide `LZO_VERSION` constant directly from the external lzo library, instead it supplies the value of `LZO_VERSION_STRING`.  We will attempt to remain compatible with lzoruby 0.1.3 for now, and fudge the `LZO_VERSION` to latest current for lzo-2.08 `0x2080`.  Hopefully, a [future release of lzopruby](https://bitbucket.org/winebarrel/lzo-ruby/pull-request/1/get-lzo-library-version-from-external/diff) will contain the real external library version ;-)\n\n## Installation\n\nNotes: This gem depends on `lzoruby` which uses native C extensions, and depends on the [lzo library](http://www.oberhumer.com/opensource/lzo/).\nAs such, it has dependencies that should probably not be used on JRuby in production.\n\nTo install the LZO Library:\n\n - Ubuntu/Debian: `apt-get install liblzo2-dev`\n - RedHat/CentOS/Fedora: `yum install lzo-devel`\n - Mac OSX: `brew install lzo`\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'lzop-file'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lzop-file\n\n## Usage\n\nWriting LZO Compressed files is simple:\n\n    require 'lzop-file'\n    \n    uncompressed_file_data = \"Hello World\\n\" * 100\n    \n    my_test_file = LZOP::File.new( '/tmp/my_test_file.lzo' )\n    my_test_file.write( uncompressed_file_data )\n\nOr to write just the header:\n\n    require 'lzop-file'\n    \n    LZOP::File.new( '/tmp/my_test_file.lzo_header' ).write_header\n\n## Contributing\n\n1. Fork it ( https://github.com/trinitronx/lzop-file/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Flzop-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrinitronx%2Flzop-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Flzop-file/lists"}