{"id":17329630,"url":"https://github.com/haines/tar","last_synced_at":"2026-01-20T11:03:59.548Z","repository":{"id":20819287,"uuid":"91003205","full_name":"haines/tar","owner":"haines","description":"Read and write tar files with Ruby","archived":false,"fork":false,"pushed_at":"2020-05-21T15:12:21.000Z","size":126,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-17T11:50:31.383Z","etag":null,"topics":["ruby","tar"],"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/haines.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-11T16:57:58.000Z","updated_at":"2019-11-28T07:33:10.000Z","dependencies_parsed_at":"2022-08-27T17:20:32.744Z","dependency_job_id":null,"html_url":"https://github.com/haines/tar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/haines/tar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haines%2Ftar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haines%2Ftar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haines%2Ftar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haines%2Ftar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haines","download_url":"https://codeload.github.com/haines/tar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haines%2Ftar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ruby","tar"],"created_at":"2024-10-15T14:49:00.127Z","updated_at":"2026-01-20T11:03:59.526Z","avatar_url":"https://github.com/haines.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tar\n\n[![Latest version](https://img.shields.io/gem/v/tar.svg?style=flat-square)](https://rubygems.org/gems/tar)\u0026nbsp;\n[![Travis CI status](https://img.shields.io/travis/haines/tar.svg?style=flat-square)](https://travis-ci.org/haines/tar)\u0026nbsp;\n[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/haines/tar?style=flat-square)](https://codeclimate.com/github/haines/tar)\u0026nbsp;\n[![Code Climate coverage](https://img.shields.io/codeclimate/coverage/haines/tar?style=flat-square)](https://codeclimate.com/github/haines/tar/code)\u0026nbsp;\n\nRead and write tar files with Ruby.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"tar\"\n```\n\nAnd then execute:\n\n```console\n$ bundle\n```\n\nOr install it yourself as:\n\n```console\n$ gem install tar\n```\n\n\n## Usage\n\n### Reading tar files\n\nTar files can be read from IO streams, for example `File`s or `Zlib::GzipReader`s, using a `Tar::Reader`.\nFor example, to print the contents of the archive to stdout:\n\n```ruby\nrequire \"tar/reader\"\n\nFile.open \"example.tar\" do |archive|\n  Tar::Reader.new(archive).each do |file|\n    puts \"==\u003e #{file.header.path} (#{file.header.size} bytes)\"\n    puts file.read\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\nThen, run `bin/rake` to run the tests.\nYou can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bin/rake install`.\nTo release a new version, update the version number in `version.rb`, and then run `bin/rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/haines/tar.\nThis project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaines%2Ftar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaines%2Ftar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaines%2Ftar/lists"}