mirror of https://github.com/Calamitous/iris.git
Fix file permission bug and bump Iris version to 1.0.10
This commit is contained in:
parent
b9985a6f65
commit
53b900e5b3
|
@ -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.
|
||||
|
|
3
TODO.md
3
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
|
||||
|
|
5
iris.rb
5
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)
|
||||
|
|
Loading…
Reference in New Issue