Skip to content

Commit

Permalink
Updated for Crystal 0.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Jun 22, 2020
1 parent 3f53a40 commit 09c36f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: xz
version: 0.1.2
version: 0.1.3

authors:
- Ali Naqvi <syed.alinaqvi@gmail.com>
description: |
Crystal bindings to the XZ (lzma) compression library.
crystal: 0.35.0
crystal: 0.35.1

license: MIT
2 changes: 1 addition & 1 deletion src/xz.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "semantic_version"

module Compress::XZ
VERSION = "0.1.2"
VERSION = "0.1.3"

LZMA_VERSION = SemanticVersion.parse String.new(LZMA.version_string)
LZMA_VERSION_MINIMUM = SemanticVersion.parse("5.2.4")
Expand Down
5 changes: 2 additions & 3 deletions src/xz/writer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,14 @@ class Compress::XZ::Writer < IO
end

# See `IO#write`.
def write(slice : Bytes) : Int64
def write(slice : Bytes) : Nil
check_open

return 0i64 if slice.empty?
return if slice.empty?

@stream.next_in = slice.to_unsafe
@stream.avail_in = slice.size
do_action LZMA::Action::Run
slice.size.to_i64
end

# See `IO#flush`.
Expand Down

0 comments on commit 09c36f1

Please sign in to comment.