vmail 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -230,10 +230,10 @@ module Vmail
230
230
  # gets 100 messages prior to id
231
231
  def more_messages
232
232
  log "Getting more_messages"
233
- log "old @start_index: #{@start_index}"
233
+ log "Old start_index: #{@start_index}"
234
234
  max = @start_index - 1
235
235
  @start_index = [(max + 1 - @limit), 1].max
236
- log "new @start_index: #{@start_index}"
236
+ log "New start_index: #{@start_index}"
237
237
  fetch_ids = search_query? ? @ids[@start_index..max] : (@start_index..max).to_a
238
238
  log fetch_ids.inspect
239
239
  message_ids = fetch_and_cache_headers(fetch_ids)
@@ -106,7 +106,7 @@ module Vmail
106
106
 
107
107
  def with_more_message_line(res)
108
108
  remaining = @start_index
109
- if remaining < 1
109
+ if remaining <= 1
110
110
  return res
111
111
  end
112
112
  res + "\n> Load #{[100, remaining].min} more messages. #{remaining} remaining."
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.1
5
+ version: 2.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi