navi_email_sync 0.0.2 → 0.0.3

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: 934537074827c79c56832c092e7bd92d6c288e839907625753e7d0b1710b6150
4
- data.tar.gz: efac55ec81d6230e7e8ccfce6a0f2ad021c63fe61447c23c4a476bbca0bc0c59
3
+ metadata.gz: 9f7263894a0508ceabfb220f1fb238cdd51ba57ec849ff716a79888971edfe3b
4
+ data.tar.gz: bd2cd97459faa9f8e946ac08ae5c1885cc8c6f3c2307d710888d9b4029695d1b
5
5
  SHA512:
6
- metadata.gz: 44d59ea927679c55fa2d02b1e0498dab9392c06f9d885c2cf9e8d8da8a7768e63ecb098a8fee57ab2ff174880415d73b7ce2b0c4dbd04d413149b5211d002086
7
- data.tar.gz: f40da4bc55e6680fe6db4ab2ba56624e75b65cf2eba47160aa9271a5f3e3d8615126cecc63252eeaa4ed845d0e3c4db37d5f1f236fba11a3f58db7fbfa035b8e
6
+ metadata.gz: a5e6ea51aa890d3374078abd4f162c672a5027f6572fef4a4234646628b8cf83e16a16c66d00b8fee7b7d237b60e993e849538e267fa6986fddf904910a2bbf6
7
+ data.tar.gz: f174ac921b15039733ec24bbff9dd162422730f9b03a36c3df111cd4e3f220b5dc0468c721cb863528343b446ef175e8876156b6b86a0e8cc11d5791c90d4280
@@ -71,7 +71,7 @@ module NaviEmailSync
71
71
  filepath = download_path + "/inputs/" + (Time.now.to_f * 1000).to_s
72
72
  filename = upload_to_s3(filepath, in_filenames.join("\n"))
73
73
 
74
- HTTPService::NaviAI.start(filepath: filename, client_id: @id, client_type: @client_type, token: @token, email: @current_user_email, is_last: is_last, email_count: email_count)
74
+ HTTPService::NaviAI.start(filepath: filename, client_id: @id, client_type: @client_type, token: @token, email: @current_user_email, is_last: is_last, email_count: email_count, total_emails: @total_emails)
75
75
  end
76
76
  end
77
77
 
@@ -3,9 +3,9 @@ require "httparty"
3
3
  module HTTPService
4
4
  class NaviAI
5
5
 
6
- def self.start(filepath:, client_id: nil, client_type:, token:, email:, is_last: false, email_count:)
6
+ def self.start(filepath:, client_id: nil, client_type:, token:, email:, is_last: false, email_count: 0, total_emails:)
7
7
  go_url = "#{ENV['parser_url']}/v2/metas"
8
- HTTParty.post(go_url, body: { client_id: client_id, client_type: client_type, list_meta_path: filepath, token: token, email: email, is_last: is_last, email_count: email_count }.to_json, timeout: 400)
8
+ HTTParty.post(go_url, body: { client_id: client_id, client_type: client_type, list_meta_path: filepath, token: token, email: email, is_last: is_last, email_count: email_count, total_emails: total_emails }.to_json, timeout: 400)
9
9
  end
10
10
 
11
11
  def self.generate_csv(url, token)
@@ -120,7 +120,7 @@ module NaviEmailSync
120
120
  in_filenames.each { |element| f.puts(element) }
121
121
  end
122
122
 
123
- response = HTTPService::NaviAI.start(filepath: filename, client_type: @client_type, token: @token, email: config['username'], is_last: is_last, email_count: email_count)
123
+ response = HTTPService::NaviAI.start(filepath: filename, client_type: @client_type, token: @token, email: config['username'], is_last: is_last, email_count: email_count, total_emails: @total_emails)
124
124
  return response
125
125
  end
126
126
  end
@@ -227,7 +227,7 @@ module NaviEmailSync
227
227
  changes = false
228
228
  Dir[@download_path + 'inputs/temp*'].each do |file_name|
229
229
  if File.file? file_name
230
- HTTPService::NaviAI.start(filepath: file_name, client_type: @client_type, token: @token, email: @current_user_email )
230
+ HTTPService::NaviAI.start(filepath: file_name, client_type: @client_type, token: @token, email: @current_user_email, total_emails: @total_emails)
231
231
  changes = true
232
232
  end
233
233
  end
@@ -1,3 +1,3 @@
1
1
  module NaviEmailSync
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navi_email_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sanjib