From a5b002ca02f076dcb685c5e695bd4cc6de0a85cf Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 29 Aug 2012 18:49:29 -0700 Subject: [PATCH 1/2] Add missing changelog entry for ziprequire removal --- NEWS | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 4c04da5..959d46e 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,10 @@ even though there is actually a comment. Fixed: "Unitialized constant NullInputStream" error += Version 0.9.5 + +Removed support for loading ruby in zip files (ziprequire.rb). + = Version 0.9.4 Changed ZipOutputStream.put_next_entry signature (API CHANGE!). Now @@ -103,11 +107,11 @@ Fixed ZipFile.get_output_stream bug. List of changes: * Ruby 1.8.0 and ruby-zlib 0.6.0 compatibility -* Changed method names from camelCase to rubys underscore style. +* Changed method names from camelCase to rubys underscore style. * Installs to zip/ subdir instead of directly to site_ruby * Added ZipFile.directory and ZipFile.file - each method return an object that can be used like Dir and File only for the contents of the -zip file. +zip file. * Added sample application zipfind which works like Find.find, only Zip::ZipFind.find traverses into zip archives too. @@ -122,11 +126,11 @@ modules from a zip file, in a fashion similar to jar files in Java. Added gtkRubyzip, another sample application. Implemented ZipInputStream.lineno and ZipInputStream.rewind -Bug fixes: +Bug fixes: -* Read and write date and time information correctly for zip entries. +* Read and write date and time information correctly for zip entries. * Fixed read() using separate buffer, causing mix of gets/readline/read to -cause problems. +cause problems. = Version 0.4.2 From c34ac4d4c21f671653383c7a1797e086897e08c5 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 29 Aug 2012 18:50:41 -0700 Subject: [PATCH 2/2] Remove link to ziprequire. See #51 --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 14087a2..468e59e 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,12 @@ gem 'rubyzip' ```ruby require 'rubygems' require 'zip/zip' - + folder = "Users/me/Desktop/stuff_to_zip" input_filenames = ['image.jpg', 'description.txt', 'stats.csv'] - + zipfile_name = "/Users/me/Desktop/archive.zip" - + Zip::ZipFile.open(zipfile_name, Zip::ZipFile::CREATE) do |zipfile| input_filenames.each do |filename| # Two arguments: @@ -59,10 +59,6 @@ Zip::ZipFileSystem API. Using this API files can be read from and written to the archive in much the same manner as ruby's builtin classes allows files to be read from and written to the file system. -rubyzip also features the -zip/ziprequire.rb[link:files/lib/zip/ziprequire_rb.html] module which -allows ruby to load ruby modules from zip archives. - For details about the specific behaviour of classes and methods refer to the test suite. Finally you can generate the rdoc documentation or visit http://rubyzip.sourceforge.net.