aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-10-18 14:31:21 -0400
committerPaul Duncan <pabs@pablotron.org>2016-10-18 14:31:21 -0400
commit07fd283f15d17a148bef6cc034fbe0de883630dc (patch)
tree0657da62f0e94fe6e856809a7d934d0bf373cf46
parentfb911cf88d314328c90b8fdb8a319ee8a933f58f (diff)
downloadzip-crystal-0.1.1.tar.bz2
zip-crystal-0.1.1.zip
update version to 0.1.1v0.1.1
-rw-r--r--shard.yml2
-rw-r--r--spec/zip_spec.cr15
-rw-r--r--src/zip.cr2
3 files changed, 16 insertions, 3 deletions
diff --git a/shard.yml b/shard.yml
index 3a73c95..b83b9de 100644
--- a/shard.yml
+++ b/shard.yml
@@ -1,5 +1,5 @@
name: zip-crystal
-version: 0.1.0
+version: 0.1.1
authors:
- Paul Duncan <pabs@pablotron.org>
diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr
index 7f539cc..8d58f25 100644
--- a/spec/zip_spec.cr
+++ b/spec/zip_spec.cr
@@ -93,7 +93,6 @@ describe Zip do
puts "file has #{zip.size} entries"
zip.each do |e|
-
if e.dir?
puts "#{e.path} is a directory"
else
@@ -105,4 +104,18 @@ describe Zip do
end
end
end
+
+ it "reads jnl.zip" do
+ Zip.read(File.join(TEST_DIR, "jnl.zip")) do |zip|
+ puts "file has #{zip.size} entries"
+
+ zip.each do |e|
+ if e.dir?
+ puts "#{e.path} is a directory"
+ else
+ puts "#{e.path} is a file"
+ end
+ end
+ end
+ end
end
diff --git a/src/zip.cr b/src/zip.cr
index a972286..d8f649a 100644
--- a/src/zip.cr
+++ b/src/zip.cr
@@ -77,7 +77,7 @@ module Zip
#
# Version of zip-crystal library.
#
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
#
# Magic numbers for various data in Zip stream.