archive-zip 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/NEWS +7 -0
  2. data/lib/archive/zip.rb +2 -0
  3. data/test/test_archive.rb +1 -1
  4. metadata +14 -14
data/NEWS CHANGED
@@ -6,6 +6,13 @@ detailed information is available in the rest of the documentation.
6
6
  <b>NOTE:</b> Date stamps in the following entries are in YYYY/MM/DD format.
7
7
 
8
8
 
9
+ == v0.1.1 (2008/07/11)
10
+
11
+ * Archive files are now closed when the Archive::Zip object is closed even when
12
+ no changes were made to the archive, a problem on Windows if you want to
13
+ delete the archive after extracting it within the same script.
14
+
15
+
9
16
  == v0.1.0 (2008/07/10)
10
17
 
11
18
  * Initial release
@@ -145,6 +145,8 @@ module Archive # :nodoc:
145
145
  # in use to be replaced as is required when trying to update the archive
146
146
  # "in place".
147
147
  File.rename(tmp_archive_path, @archive_path) if @archive_out.nil?
148
+ elsif ! @archive_in.nil? then
149
+ @archive_in.close
148
150
  end
149
151
 
150
152
  closed = true
@@ -3,6 +3,6 @@ require 'archive/zip'
3
3
  FileUtils.rm_f('export.zip')
4
4
  FileUtils.rm_rf('extract_test')
5
5
 
6
- Archive::Zip.archive('export.zip', 'test/data/.', :symlinks => false, :ignore_error => true)
6
+ Archive::Zip.archive('export.zip', 'test/data/.', :symlinks => false)
7
7
  #Archive::Zip.archive('export.zip', 'test/data/.', :symlinks => true, :exclude => lambda { |e| e.file? })
8
8
  Archive::Zip.extract('export.zip', 'extract_test', :symlinks => true, :exclude => lambda { |e| e.symlink? })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archive-zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Bopp
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-10 00:00:00 -05:00
12
+ date: 2008-07-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,22 +37,22 @@ extra_rdoc_files:
37
37
  - NEWS
38
38
  - README
39
39
  files:
40
- - lib/archive/support/io-like.rb
41
- - lib/archive/support/io.rb
42
- - lib/archive/support/iowindow.rb
43
- - lib/archive/support/stringio.rb
44
- - lib/archive/support/time.rb
45
- - lib/archive/support/zlib.rb
46
- - lib/archive/zip/codec/deflate.rb
47
- - lib/archive/zip/codec/store.rb
48
40
  - lib/archive/zip/codec.rb
49
- - lib/archive/zip/datadescriptor.rb
50
- - lib/archive/zip/entry.rb
51
- - lib/archive/zip/error.rb
52
41
  - lib/archive/zip/extrafield/extendedtimestamp.rb
53
- - lib/archive/zip/extrafield/raw.rb
54
42
  - lib/archive/zip/extrafield/unix.rb
43
+ - lib/archive/zip/extrafield/raw.rb
44
+ - lib/archive/zip/entry.rb
45
+ - lib/archive/zip/error.rb
55
46
  - lib/archive/zip/extrafield.rb
47
+ - lib/archive/zip/codec/store.rb
48
+ - lib/archive/zip/codec/deflate.rb
49
+ - lib/archive/zip/datadescriptor.rb
50
+ - lib/archive/support/io.rb
51
+ - lib/archive/support/iowindow.rb
52
+ - lib/archive/support/zlib.rb
53
+ - lib/archive/support/io-like.rb
54
+ - lib/archive/support/time.rb
55
+ - lib/archive/support/stringio.rb
56
56
  - lib/archive/zip.rb
57
57
  - test/test_archive.rb
58
58
  - CONTRIBUTORS