navi_email_sync 0.0.2 → 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.
- checksums.yaml +4 -4
- data/lib/cloud/navi_cloud_client.rb +1 -1
- data/lib/http_service/naviai.rb +2 -2
- data/lib/local/navi_local_client.rb +2 -2
- data/lib/navi_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f7263894a0508ceabfb220f1fb238cdd51ba57ec849ff716a79888971edfe3b
|
4
|
+
data.tar.gz: bd2cd97459faa9f8e946ac08ae5c1885cc8c6f3c2307d710888d9b4029695d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/http_service/naviai.rb
CHANGED
@@ -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
|
data/lib/navi_client/version.rb
CHANGED