mass-client 1.0.18 → 1.0.20
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/base-line/profile.rb +1 -1
- data/lib/base-line/source.rb +1 -1
- data/lib/first-line/profile_mta.rb +31 -27
- data/lib/first-line/profile_rpa.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ee4e0f04af40b7fb0a7e26fedb26ec7fa3d76602baec49add355f620940c9b0
|
|
4
|
+
data.tar.gz: 73fa2542b417954bedc8352420b131d81dbaeea82dacca0e43dffd96002728b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 458fd9aa4929a889264c7e90b69b856e8272ee9ed26106243e64dca225ece4ec847a91b0d536036c10d8f0a43525adf6922f88587e35de8963f40fc11d2b35f7
|
|
7
|
+
data.tar.gz: a20f0ce501ed952360e071a696fc39e0c060c18a5d8d89af7cea557709f0296db2700f79152e63430766e870b1ba2e66d811bc9c116635e7cccf82a340e460c6
|
data/lib/base-line/profile.rb
CHANGED
data/lib/base-line/source.rb
CHANGED
|
@@ -113,7 +113,7 @@ module Mass
|
|
|
113
113
|
|
|
114
114
|
# screenshot
|
|
115
115
|
l.logs 'Screenshot... '
|
|
116
|
-
job.desc['screenshots'] << job.profile.screenshot
|
|
116
|
+
job.desc['screenshots'] << job.profile.screenshot if job.profile.desc['allow_browser_to_download_multiple_files']
|
|
117
117
|
l.logf 'done'.green + " (#{job.desc['screenshots'].size.to_s.blue} total)"
|
|
118
118
|
end
|
|
119
119
|
end
|
|
@@ -91,7 +91,6 @@ module Mass
|
|
|
91
91
|
# l.logf "Instantly warming email".red
|
|
92
92
|
else
|
|
93
93
|
lead_email = envelope.from[0].mailbox.to_s + '@' + envelope.from[0].host.to_s
|
|
94
|
-
|
|
95
94
|
lead_name = envelope.from[0].name
|
|
96
95
|
subject = envelope.subject
|
|
97
96
|
body = imap.fetch(id, "BODY[]")[0].attr["BODY[]"]
|
|
@@ -101,33 +100,38 @@ module Mass
|
|
|
101
100
|
#is_bounce = !rep.nil?
|
|
102
101
|
#bounce_reason = rep[0].reason if rep
|
|
103
102
|
#bounce_diagnosticcode = rep[0].diagnosticcode if rep
|
|
104
|
-
|
|
105
|
-
h = {
|
|
106
|
-
# a scraped message is always a :performed message
|
|
107
|
-
'status' => :performed,
|
|
108
|
-
# what is the outreach type?
|
|
109
|
-
# e.g.: :LinkedIn_DirectMessage
|
|
110
|
-
# decide this in the child class.
|
|
111
|
-
'outreach_type' => :GMail_DirectMessage,
|
|
112
|
-
# hash descriptor of the profile who is scraping the inbox
|
|
113
|
-
'profile' => p.desc,
|
|
114
|
-
# hash descriptor of the lead who is the conversation partner
|
|
115
|
-
'lead_or_company' => {
|
|
116
|
-
'name' => lead_name,
|
|
117
|
-
'email' => lead_email,
|
|
118
|
-
},
|
|
119
|
-
# if the message has been sent by the profile, it is :outgoing.
|
|
120
|
-
# if the message has been sent by the lead, it is :incoming.
|
|
121
|
-
'direction' => :incoming,
|
|
122
|
-
# the content of the message
|
|
123
|
-
'subject' => subject,
|
|
124
|
-
'body' => body,
|
|
125
|
-
'message_id' => message_id,
|
|
126
|
-
'reply_to_message_id' => reply_to_message_id,
|
|
127
|
-
}
|
|
128
|
-
ret << h
|
|
129
103
|
|
|
130
|
-
|
|
104
|
+
if lead_name.nil?
|
|
105
|
+
l.skip(details: "lead_name is nil")
|
|
106
|
+
elsif lead_email.nil?
|
|
107
|
+
l.skip(details: "lead_email is nil")
|
|
108
|
+
else
|
|
109
|
+
h = {
|
|
110
|
+
# a scraped message is always a :performed message
|
|
111
|
+
'status' => :performed,
|
|
112
|
+
# what is the outreach type?
|
|
113
|
+
# e.g.: :LinkedIn_DirectMessage
|
|
114
|
+
# decide this in the child class.
|
|
115
|
+
'outreach_type' => :GMail_DirectMessage,
|
|
116
|
+
# hash descriptor of the profile who is scraping the inbox
|
|
117
|
+
'profile' => p.desc,
|
|
118
|
+
# hash descriptor of the lead who is the conversation partner
|
|
119
|
+
'lead_or_company' => {
|
|
120
|
+
'name' => lead_name,
|
|
121
|
+
'email' => lead_email,
|
|
122
|
+
},
|
|
123
|
+
# if the message has been sent by the profile, it is :outgoing.
|
|
124
|
+
# if the message has been sent by the lead, it is :incoming.
|
|
125
|
+
'direction' => :incoming,
|
|
126
|
+
# the content of the message
|
|
127
|
+
'subject' => subject,
|
|
128
|
+
'body' => body,
|
|
129
|
+
'message_id' => message_id,
|
|
130
|
+
'reply_to_message_id' => reply_to_message_id,
|
|
131
|
+
}
|
|
132
|
+
ret << h
|
|
133
|
+
l.logf "done".green
|
|
134
|
+
end
|
|
131
135
|
end
|
|
132
136
|
}
|
|
133
137
|
|
|
@@ -101,7 +101,7 @@ module Mass
|
|
|
101
101
|
|
|
102
102
|
# stop the adspower server for headless mode, if it is not already stopped and if headless is activated.
|
|
103
103
|
def self.clear_driver
|
|
104
|
-
self.
|
|
104
|
+
self.buffer_driver = nil
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
# close all tabs except one
|
|
@@ -344,7 +344,7 @@ module Mass
|
|
|
344
344
|
|
|
345
345
|
self.class.buffer_driver = nil if !c.check(self.desc['ads_power_id'])
|
|
346
346
|
sleep(1)
|
|
347
|
-
|
|
347
|
+
|
|
348
348
|
if self.class.buffer_driver.nil?
|
|
349
349
|
self.class.buffer_driver = c.driver(self.desc['ads_power_id'], headless)
|
|
350
350
|
self.class.buffer_driver.manage.window.resize_to(self.desc['browser_width'], self.desc['browser_height'])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mass-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leandro Daniel Sardi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: timeout
|