Skip to content

Commit

Permalink
Crystal 0.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
docelic committed Apr 12, 2020
1 parent ead276e commit 7ddfc2c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add the following to your application's "shard.yml":
dependencies:
maildir:
github: crystallabs/maildir.cr
version 5.0.1
version 6.0.0

And run "shards install".

Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: maildir
version: 5.0.1
version: 6.0.0

authors:
- Davor Ocelic <docelic@crystallabs.io>

crystal: 0.32.0
crystal: 0.34.0

license: MIT

Expand Down
14 changes: 5 additions & 9 deletions src/message.cr
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,14 @@ class Maildir
# false, otherwise reraises Errno::ENOENT
protected def guard(reraise = false, &block)
yield
rescue e : Errno
if e.errno== Errno::ENOENT
if ok= @old_key
# Restore ourselves to the old state
parse_key(ok)
end
rescue e : File::NotFoundError
if ok= @old_key
# Restore ourselves to the old state
parse_key(ok)
end

# # Don't allow further modifications
# #freeze
else
raise(Exception.new)
end

reraise ? raise(Exception.new) : false
end
Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Maildir
VERSION = "5.0.1"
VERSION = "6.0.0"
end

0 comments on commit 7ddfc2c

Please sign in to comment.