navilocal 1.0.9 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 223602614811ebf611613e5443045e790288bae8de501b2b711470e04d340715
4
- data.tar.gz: '0096e6ce6bde4b267a643159c9b7bf1c946f12b34084c2f08ed424f41625a71f'
3
+ metadata.gz: 062dab6bd5ee50e704fbc1942cd987d4cd6c7add6bcbaa4da2f84ec82393630b
4
+ data.tar.gz: 55cc9c2acff830d959cadfadcd011086d1c52b9191dec4d9182f1150913a8212
5
5
  SHA512:
6
- metadata.gz: 3159051407ce0afa9a42a00568fb4bff3520024cc96301c56ffc661e1737ac926dbdbb5e77539e666ca7477ba67d40a8a1941836e789610230114a42753707a6
7
- data.tar.gz: b2900d824e9e50e64f8f7452a73d5c06d9da2b7dffc0d814f54547f1426701ed5e8bde3a93acd8360d17f47b7fff3aba360de8146ea3b0695973c3a55e34f18a
6
+ metadata.gz: 1b4aeffbfa8d3ef6aba9fa6fe565f2dd0bcf4690720f775b7fd69ee46e858c02c52142e0ac18314d771198a465aba16989f704adbe17cee61c19c3ff5231e47c
7
+ data.tar.gz: c90e3bebc7287e12c15c10c803b9d2f3c2c1446e69367cc0781159c88dafd642c13fd949484af9a5529f46d0315c2a727e7060398efbd5e916254055566c54f1
@@ -133,8 +133,6 @@ module NaviClientInstaller
133
133
  @logger = CustomLogger.new @log_display.buffer, @iter_log, @client.logger
134
134
  @client.override_logger @logger
135
135
 
136
- new_emails = false
137
-
138
136
  #logging to loggly
139
137
  logToLoggly = true
140
138
  if logToLoggly
@@ -171,10 +169,12 @@ module NaviClientInstaller
171
169
  @client.logToLoggly({event:"EMAIL_SYNC_STARTED", env: ENV['env'], storage: "local", email: @settings.username, total_email: total, already_downloaded: downloaded})
172
170
 
173
171
  # start_naviai
172
+ @notifier.label = "Starting up.."
173
+ @logger.debug "Starting the system"
174
+ start_naviai
174
175
  @notifier.label = "Checking for previous failures.."
175
176
  @logger.debug "Parsing previously fetched emails"
176
- start_naviai
177
- new_emails = @client.parse_prev_failed_emails
177
+ @client.parse_prev_failed_emails
178
178
  @logger.debug "Complete. OK..."
179
179
  # stop_naviai
180
180
  @notifier.label = "Fetching emails..."
@@ -198,7 +198,7 @@ module NaviClientInstaller
198
198
  @notifier.label = "Parsing the emails..."
199
199
 
200
200
  start_naviai
201
- @client.send_request(filenames, stamp)
201
+ @client.send_request(filenames, stamp, is_last: isLast)
202
202
  # stop_naviai
203
203
 
204
204
  @logger.debug "Complete Ok... continue email sync"
@@ -212,13 +212,14 @@ module NaviClientInstaller
212
212
 
213
213
  dateEnded = DateTime.now
214
214
  totalTimeInSecs = (dateEnded - dateStarted) * 24 * 60 * 60
215
- new_emails = true
216
215
 
217
216
  @client.logToLoggly({event:"EMAIL_SYNC_FINISHED", env: ENV['env'], storage: "local", email: @settings.username, emailCount: index + 1, time_elapsed: totalTimeInSecs.to_f.round(2), total_email: total, already_downloaded: downloaded})
218
217
  @logger.debug "#{index + 1} emails from the #{folder} has been downloaded. OK"
219
218
  @logger.debug "started: #{dateStarted.to_s} , ended: #{dateEnded.to_s}, Total time: #{totalTimeInSecs.to_f.round(2)} secs"
220
219
  end
221
220
 
221
+ stamp = (Time.now.to_f * 1000).to_s.concat
222
+
222
223
  end
223
224
  end
224
225
 
@@ -226,8 +227,6 @@ module NaviClientInstaller
226
227
 
227
228
  @notifier.label = "Finalizing..."
228
229
 
229
- @client.initate_csv_generation(@settings.username) if new_emails
230
-
231
230
  callback = Proc.new do |mail, index, id, complete|
232
231
  # complete = args.first || false
233
232
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navilocal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Msanjib