zipruby1.9 0.3.5-mswin32 → 0.3.6-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/i386-mswin32/zipruby.so +0 -0
  2. data/zipruby.c +8 -0
  3. metadata +1 -1
Binary file
data/zipruby.c CHANGED
@@ -553,6 +553,10 @@ static VALUE zipruby_archive_close(VALUE self) {
553
553
  rb_raise(Error, "Close archive failed: %s", zip_strerror(p_archive->archive));
554
554
  }
555
555
 
556
+ if (!NIL_P(p_archive->sources)){
557
+ rb_ary_clear(p_archive->sources);
558
+ }
559
+
556
560
  if (!NIL_P(p_archive->buffer) && changed) {
557
561
  rb_funcall(p_archive->buffer, rb_intern("replace"), 1, rb_funcall(self, rb_intern("read"), 0));
558
562
  }
@@ -1498,6 +1502,10 @@ static VALUE zipruby_archive_commit(VALUE self) {
1498
1502
  rb_raise(Error, "Commit archive failed: %s", zip_strerror(p_archive->archive));
1499
1503
  }
1500
1504
 
1505
+ if (!NIL_P(p_archive->sources)){
1506
+ rb_ary_clear(p_archive->sources);
1507
+ }
1508
+
1501
1509
  if (!NIL_P(p_archive->buffer) && changed) {
1502
1510
  rb_funcall(p_archive->buffer, rb_intern("replace"), 1, rb_funcall(self, rb_intern("read"), 0));
1503
1511
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipruby1.9
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: mswin32
6
6
  authors:
7
7
  - winebarrel