Sha256: 882e2abd24f8372f5e5bbbd40565e07f806e2ff00dd49b5d6fc4ab1f4590a831
Contents?: true
Size: 1.99 KB
Versions: 3
Compression:
Stored size: 1.99 KB
Contents
# RealZip ## Usage ```ruby require 'real_zip' # create zip file with given file structure and transfer files to the directory of your choice within the zip file. RealZip '/path/to/file/file.zip', {:dir1 => ["/path/tofile1/file1"], :dir2 => ["path/tofile2/file2"], 'dir2/dir3' => ["path/tofile3/file3"]} ## Use Cases RealZip 'temp.zip', {:html => ["/home/Files/a.html"], :pdf => ["/home/Files/c.pdf"], :rb => ["/home/Files/b.rb"]} # Results in puts `unzip -l temp.zip | awk '{print $4}'` =========================================== html/ pdf/ rb/ html/a.html pdf/c.pdf rb/b.rb RealZip 'temp.zip', {'doc/html' => ["/home/Files/a.html"], 'doc/pdf' => ["/home/Files/c.pdf"], 'doc/pdf/rb' => ["/home/Files/b.rb"]} # Results in puts `unzip -l temp.zip | awk '{print $4}'` =========================================== doc/html/ doc/pdf/ doc/pdf/rb/ doc/html/a.html doc/pdf/c.pdf doc/pdf/rb/b.rb # Symlinks or Softlinks can also be used to reference files. ``` ## Installation Add this line to your application's Gemfile: gem 'real_zip' And then execute: $ bundle install Or install it yourself as: $ gem install real_zip ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## Acknowledgement This software is built upon [Alexander K](https://github.com/sowcow)'s [Fake_Zip](https://github.com/sowcow/fake_zip) gem. A hearty thanks to him for making it freely available. This project would not be possible without [Ravi Baghele](https://github.com/rbaghele)'s major input in implementing the core file tranfer functionality. I would also like to thank <a href="https://github.com/indermishra">Indrajeet Mishra</a> for his valuable insights about testing and debugging the gem. Our team leader <a href ="https://github.com/stormfire">Mr. Pankaj Gupta</a> has provided invaluable support and guidance throughout the project.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
real_zip-1.1.7 | README.md |
real_zip-1.1.6 | README.md |
real_zip-1.0.1 | README.md |