navi_client 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd3a1bcce2903ec5f270821dd82c8bce372b08520a26194d0b35b2e08431aea1
4
- data.tar.gz: a43ac149b5b35553f17314bd2b69f47c0969242959ebc0a569061344575db7c0
3
+ metadata.gz: fd0aa72e155dc4cd9e9ba261311254956e077dd65a937a8cadbb1425c34e9ad5
4
+ data.tar.gz: c1d6602c29586a616eb7d678b74c8180ec03ce425f5ec3d4455d27afad3c8cc6
5
5
  SHA512:
6
- metadata.gz: d95ca2c9f62fd8537ef68d92997df12063ce9b0726286786beb7bca54fb3a2c87460942f37f3ac045e92679647659fe0fd45ffc85ce6fd1965fdb3d7d768f523
7
- data.tar.gz: c5702e0a9bfffd6acd685393d18519153327e0297a0dcb975ffdbc665023065c029fa5fcb8f547df345677ddc08bf8a2f270ea9855674566b949b5a687ba2c13
6
+ metadata.gz: 2a37ebf281e631505e272b76093181219d6b8c13c3e61b94f376b051016df14958517c61935903c0908cf58790e1a3a66564c7dbe905b35e24e05e7328e2bc0b
7
+ data.tar.gz: 219ea63df081ff6e82a378e6474672cd4463b956f4630281fc48b09ffa803b50c5832dbf7d5b55dc1d0384bce3d25414147a990e37b92ac49824d1d05ffaea18
@@ -160,16 +160,17 @@ module NaviClient
160
160
  # We're out, which means there are some emails ready for us.
161
161
  # Go do a search for UNSEEN and fetch them.
162
162
  filenames = []
163
+ stamp = (Time.now.to_f * 1000).to_s
163
164
  retrieve_emails(imap, search_condition, folder) { |mail, i, isLast, id|
164
165
  callback.call(mail, i, id, false) unless callback.nil?
165
- filenames << process_email(mail, id)
166
+ filenames << process_email(mail, id, stamp)
166
167
  callback.call(mail, i, id, true) unless callback.nil?
167
168
  }
168
169
 
169
170
  @logger.info "Sending Request for #{filenames.size} emails to Navi AI."
170
171
  navi_control.call(true) unless navi_control.nil?
171
172
  stamp = (Time.now.to_f * 1000).to_s
172
- self.send_request(filenames, stamp, true)
173
+ self.send_request(filenames, stamp, is_last: true)
173
174
 
174
175
  # HTTPService::NaviAI.generate_csv("#{@gen_csv_url}?email=#{username}", @token)
175
176
 
@@ -1,3 +1,3 @@
1
1
  module NaviClient
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujit
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-05-26 00:00:00.000000000 Z
13
+ date: 2018-05-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler