An archive extraction tool. Intends to support tar, zip, tgz, etc without much fuss.
Presently crude ... but effective? Maybe!
gem 'swathe'
# This should work from the root of this checked out project.
%w(tar tgz zip).each do |archive_type|
archive = Swathe::Archive.open("samples/sample.#{archive_type}")
puts "Opening: sample.#{archive_type}"
puts "First file is #{archive.first.full_name}"
p "Contents are: #{archive.first.read}"
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request