diff --git a/README.md b/README.md index 02ba877..751a9e2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Iris has a readline interface that can be used to navigate the message corpus. ### Readline Interface Example ``` %> iris -Welcome to Iris v. 1.0.9. Type "help" for a list of commands.; Ctrl-D or 'quit' to leave. +Welcome to Iris v. 1.0.10. Type "help" for a list of commands.; Ctrl-D or 'quit' to leave. | ID | U | TIMESTAMP | AUTHOR | TITLE | 1 | | 2018-01-24T05:49:53Z | jimmy_foo@ctrl-c.club | Welcome! @@ -308,7 +308,7 @@ This outputs the current version of Iris, along with messsage, topic, and author ``` jennie_minnie@ctrl-c.club~> info -Iris 1.0.9 +Iris 1.0.10 13 topics, 0 unread. 50 messages, 0 unread. 10 authors. @@ -341,7 +341,7 @@ iris --version ``` ``` -Iris 1.0.9 +Iris 1.0.10 ``` --- @@ -357,7 +357,7 @@ iris --stats ``` ``` -Iris 1.0.9 +Iris 1.0.10 13 topics, 0 unread. 50 messages, 0 unread. 10 authors. diff --git a/TODO.md b/TODO.md index c9072ec..d48baa5 100644 --- a/TODO.md +++ b/TODO.md @@ -106,3 +106,6 @@ # Completed as of 1.0.9 * Stop checking domain on user validation * Fix bug causing color overflow when color tags break. Special thanks go out to Japanoise (https://github.com/japanoise) for reporting this bug! + +# Completed as of 1.0.10 +* Fix bug causing system to crash when a user removes read permissions from their directory/iris.messages file diff --git a/iris.rb b/iris.rb index 48776b9..37eb3e5 100755 --- a/iris.rb +++ b/iris.rb @@ -8,7 +8,7 @@ require 'time' # require 'pry' # Only needed for debugging class Config - VERSION = '1.0.9' + VERSION = '1.0.10' MESSAGE_FILE = "#{ENV['HOME']}/.iris.messages" HISTORY_FILE = "#{ENV['HOME']}/.iris.history" IRIS_SCRIPT = __FILE__ @@ -255,6 +255,9 @@ class IrisFile Display.say " * Unable to parse #{filepath}, skipping..." return [] end + rescue Errno::EACCES => e + Display.say " * Unable to read data from #{filepath}, permission denied. Skipping..." + return [] end unless payload.is_a?(Array)