mass-client 1.0.25 → 1.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base-line/profile.rb +2 -2
- data/lib/first-line/profile_rpa.rb +6 -2
- data/lib/mass-client.rb +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 133144975142345da5264d7f64c7b5b4d3e8eeb2dd43a831ce6179de3445ed9d
|
4
|
+
data.tar.gz: d35fb41dbb971df3bb74a7dde7654056f1999df08fe60e3ebf398f07f07d99ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d844268b3c371ad253843e6f7ee6f32211b9379aa9425a3f64a783cfbf829d41f5cca2ef31a5af740a0214fbd67468b410029447a205f0969368783054def5f0
|
7
|
+
data.tar.gz: 965e2a526949322ffa384a5f28168b1607594e29ac1747f875e56780fa714fbada1729bdf9b7a4185c06a447015b65311f4edeacd3b6eba837baff3fd83d5108
|
data/lib/base-line/profile.rb
CHANGED
@@ -4,7 +4,7 @@ module Mass
|
|
4
4
|
|
5
5
|
# DROPBOX LOCKFILE PARAMETERS
|
6
6
|
LOCKFILE_PATH = '/tmp/dropbox_upload.lock' # Path to your lockfile
|
7
|
-
LOCK_TIMEOUT =
|
7
|
+
LOCK_TIMEOUT = 60 # Maximum time in seconds to wait for the lock
|
8
8
|
|
9
9
|
# DROPBOX LOCKFILE FUNCTIONS
|
10
10
|
def acquire_lock
|
@@ -28,7 +28,7 @@ module Mass
|
|
28
28
|
|
29
29
|
def upload_to_dropbox_with_lock(tmp_path, path)
|
30
30
|
s = ''
|
31
|
-
acquire_lock
|
31
|
+
# acquire_lock # https://github.com/MassProspecting/docs/issues/320 - I started getting error "Timeout while waiting for lockfile." very often.
|
32
32
|
begin
|
33
33
|
# Upload the file to Dropbox
|
34
34
|
s = BlackStack::DropBox.dropbox_upload_file(tmp_path, path)
|
@@ -2,7 +2,7 @@ module Mass
|
|
2
2
|
class ProfileRPA < Mass::Profile
|
3
3
|
|
4
4
|
@@buffer_driver = nil
|
5
|
-
attr_accessor :headless
|
5
|
+
attr_accessor :headless, :read_timeout
|
6
6
|
|
7
7
|
# SELENIUM FUNCTIONS
|
8
8
|
def self.buffer_driver
|
@@ -16,6 +16,7 @@ module Mass
|
|
16
16
|
def initialize(desc)
|
17
17
|
super(desc)
|
18
18
|
headless = true
|
19
|
+
read_timeout = 300 # 300 seconds - 5 minutes
|
19
20
|
end
|
20
21
|
|
21
22
|
def self.domain
|
@@ -304,7 +305,10 @@ module Mass
|
|
304
305
|
sleep(1)
|
305
306
|
|
306
307
|
if self.class.buffer_driver.nil?
|
307
|
-
self.class.buffer_driver = c.
|
308
|
+
self.class.buffer_driver = c.driver2( self.desc['ads_power_id'],
|
309
|
+
headless: headless,
|
310
|
+
read_timeout: read_timeout
|
311
|
+
)
|
308
312
|
self.class.buffer_driver.manage.window.resize_to(self.desc['browser_width'], self.desc['browser_height'])
|
309
313
|
self.one_tab
|
310
314
|
|
data/lib/mass-client.rb
CHANGED
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.27
|
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-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: timeout
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.1.2
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: adspower-client
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.0.14
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.14
|
139
153
|
description: Ruby library for MassProspecting API.
|
140
154
|
email: leandro@massprospecting.com
|
141
155
|
executables: []
|