GitXplorerGitXplorer
h

tar

public
1 stars
0 forks
1 issues

Commits

List of commits on branch master.
Verified
1e0be46c1de14ddff29f3bd75ebf0372fbcaac4b

Merge pull request #8 from haines/dependabot/bundler/rubocop-tw-0.77.0

ddependabot-preview[bot] committed 5 years ago
Verified
a29f057914143b7dc5165db00d5dd5cad7c00a5f

Update rubocop requirement from ~> 0.76.0 to ~> 0.77.0

ddependabot-preview[bot] committed 5 years ago
Verified
5e809db18ba76a03e15285446c9fb2ce14bb4b24

Merge pull request #7 from haines/supported-rubies

hhaines committed 5 years ago
Verified
2ededc8dec1bebb216461aa5cb295b7d45f30b8c

Support JRuby 9.2

hhaines committed 5 years ago
Verified
244ba7449e20c86b967e6a84012893d37b47407e

Drop support for Ruby 2.3

hhaines committed 5 years ago
Verified
dd8e45fbfebeae4feaf7cf72ee4d46eb6082b1a8

Merge pull request #6 from haines/rubocop

hhaines committed 5 years ago

README

The README file for this repository.

Tar

Latest version  Travis CI status  Code Climate maintainability  Code Climate coverage 

Read and write tar files with Ruby.

Installation

Add this line to your application's Gemfile:

gem "tar"

And then execute:

$ bundle

Or install it yourself as:

$ gem install tar

Usage

Reading tar files

Tar files can be read from IO streams, for example Files or Zlib::GzipReaders, using a Tar::Reader. For example, to print the contents of the archive to stdout:

require "tar/reader"

File.open "example.tar" do |archive|
  Tar::Reader.new(archive).each do |file|
    puts "==> #{file.header.path} (#{file.header.size} bytes)"
    puts file.read
  end
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/rake to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bin/rake install. To 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/haines/tar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.