navi_email_sync 0.0.7 → 0.0.8

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: 41f423b28b30e17d80e50291a6d8acf869bdeba029926f7ceb879e78843d80c5
4
- data.tar.gz: c546ea58ae70d0a8742a75cd7a001ed4854d253fef3b82a1d85fae2e162e0ed7
3
+ metadata.gz: c81dcb543d3cae099d7637eecc84cc283497421784b1d211e264daa82d69c095
4
+ data.tar.gz: 86cebb13b0fa2e8c28a73ffb2d1e922ca9d728428fcfc8a84c74719f37286fc6
5
5
  SHA512:
6
- metadata.gz: c6588ebd5c9a08b34c731826cc9d7a00df4f95fcaef1c58c94adc0038e220eb83f8cc5041260faf667cdf9f4fb527d6a8f64f7fc1adc5877181eda4c5ed0dd4f
7
- data.tar.gz: cd9bdc5e0034a94f5a47168b4acd2d3c5a1a591becd976c9b4a393daf50ccd5821970f0076ec060eab8a8306ade9d3de3b978a805340e2197e082c79be3e41d8
6
+ metadata.gz: 0e0c7740f329f9cc2091073476f37677e2d644b8ed3847a52c68ce7de5e0adfb73f2a5b8f1b46eef27ef7cc66de4d0075d9697eb3f15e8509f26ac49a6a6b733
7
+ data.tar.gz: 9c72f30623c29a87fd7b53f3ba949f4aee5b3a3a88a82107075d2c252517d26d578064d09dd2d0f0436868f9632b2d0c0b9e17b88154f10990f2929a3d60393a
@@ -61,8 +61,9 @@ module NaviEmailSync
61
61
  @logger = logger
62
62
  end
63
63
 
64
- def set_token(token)
64
+ def set_token(token, client_token)
65
65
  @token = token
66
+ @client = client_token
66
67
  end
67
68
 
68
69
  ##
@@ -119,7 +120,8 @@ module NaviEmailSync
119
120
  File.open(filename, 'w') do |f|
120
121
  in_filenames.each { |element| f.puts(element) }
121
122
  end
122
- response = HTTPService::NaviAI.start(filepath: filename, client_type: @client_type, token: @token, client: @client,email: config['username'], is_last: is_last, email_count: email_count, total_emails: @total_emails)
123
+
124
+ response = HTTPService::NaviAI.start(filepath: filename, client_type: @client_type, token: @token, client: @client,email: @current_user_email, is_last: is_last, email_count: email_count, total_emails: @total_emails)
123
125
  return response
124
126
  end
125
127
  end
@@ -226,7 +228,7 @@ module NaviEmailSync
226
228
  changes = false
227
229
  Dir[@download_path + 'inputs/temp*'].each do |file_name|
228
230
  if File.file? file_name
229
- HTTPService::NaviAI.start(filepath: file_name, client_type: @client_type, token: @token, email: @current_user_email, total_emails: @total_emails)
231
+ HTTPService::NaviAI.start(filepath: file_name, client_type: @client_type, client: @client, token: @token, email: @current_user_email, total_emails: @total_emails)
230
232
  changes = true
231
233
  end
232
234
  end
@@ -1,3 +1,3 @@
1
1
  module NaviEmailSync
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navi_email_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sanjib
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-05 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.7.3
159
+ rubygems_version: 2.7.7
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Write a short summary, because Rubygems requires one.