{"id":13750119,"url":"https://github.com/peterc/rsmaz","last_synced_at":"2025-05-09T15:31:35.671Z","repository":{"id":536455,"uuid":"165827","full_name":"peterc/rsmaz","owner":"peterc","description":"Ruby port of Smaz - a short string compression library","archived":false,"fork":false,"pushed_at":"2023-02-22T04:22:33.000Z","size":294,"stargazers_count":44,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-02T21:57:36.442Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterc.png","metadata":{"files":{"readme":"README.rdoc","changelog":"HISTORY","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2009-04-02T03:30:04.000Z","updated_at":"2022-07-09T22:11:33.000Z","dependencies_parsed_at":"2023-07-05T15:00:46.422Z","dependency_job_id":null,"html_url":"https://github.com/peterc/rsmaz","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":"0.44999999999999996","last_synced_commit":"cdc86378176ed04bc7581807c1423ec82d09e929"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterc%2Frsmaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterc%2Frsmaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterc%2Frsmaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterc%2Frsmaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterc","download_url":"https://codeload.github.com/peterc/rsmaz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253275605,"owners_count":21882334,"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-08-03T08:00:21.881Z","updated_at":"2025-05-09T15:31:35.438Z","avatar_url":"https://github.com/peterc.png","language":"Ruby","funding_links":[],"categories":["SMAZ"],"sub_categories":[],"readme":"= rsmaz\n\n* http://github.com/peterc/rsmaz/tree/master\n* http://github.com/antirez/smaz/tree/master (original C version)\n\n== DESCRIPTION:\n\nShort String Compression for Ruby.\n\nRSmaz is a pure-Ruby port of the Smaz short string compression\nalgorithm by Salvatore Sanfilippo and released as a C library at:\nhttp://github.com/antirez/smaz/tree/master\n\nI've done some initial cleanup of a pure Ruby-\u003eC port, but this\nis not yet complete. It does pass the specs, however! Feel free\nto clean it up as it's a bit memory inefficient right now... :)\n\n== REQUIREMENTS:\n\n* MiniTest (in the Ruby 1.9 stdlib or `gem install minitest` on Ruby 1.8)\n\n== INSTALLATION:\n\n  gem install rsmaz\n\n== USAGE:\n\n  require 'rsmaz'\n  r = RSmaz.compress(\"whatever\")\n  puts RSmaz.decompress(r)\n\n=== Ruby 1.9 and encodings\n\nRSmaz.compress always returns a string with the binary encoding. The\ninput can be any encoding, it will internally force it to binary\nand compress byte-by-byte.\n\nRSmaz.decompress also always returns a string with the binary encoding.\nYou must manually force the encoding back to the right one because\nRSmaz does not store information about the original encoding.\n\n== RSMAZ LICENSE:\n\nCopyright (c) 2009-2011 Peter Cooper, Salvatore Sanfilippo, Hongli Lai\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n== SMAZ LICENSE:\n\nCopyright (c) 2006-2009, Salvatore Sanfilippo\nAll rights reserved.\n \nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditions are met:\n \n    * Redistributions of source code must retain the above copyright \n      notice, this list of conditions and the following disclaimer.\n    * Redistributions in binary form must reproduce the above copyright \n      notice, this list of conditions and the following disclaimer in the \n      documentation and/or other materials provided with the distribution.\n    * Neither the name of Smaz nor the names of its contributors may be \n      used to endorse or promote products derived from this software without \n      specific prior written permission.\n \nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterc%2Frsmaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterc%2Frsmaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterc%2Frsmaz/lists"}