uniq-red-process 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,7 @@ def mark_issue_read(issue_no)
48
48
  issues_entries_hash[issue_no.to_i].each do |entry|
49
49
  entry.toggle_read
50
50
  end
51
+ issues_entries_hash.delete(issue_no.to_i)
51
52
  end
52
53
 
53
54
  def issue_updates_count(issue_no)
@@ -72,7 +73,7 @@ puts ""
72
73
  puts "Try: n - to read the next issue"
73
74
 
74
75
  cmd = ''
75
- while cmd != 'q'
76
+ while cmd != 'q' && issues_entries_hash.count > 0
76
77
  if cmd == 'n'
77
78
  issue_no = read_next_issue
78
79
  puts "Opening #{issue_no}..."
@@ -1,5 +1,5 @@
1
1
  module Uniq
2
2
  module RedProcess
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniq-red-process
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: