bots 1.0.8 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser.rb +6 -1
- 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: be18e066f6136f7a3d57a2b2b0519a3c570187c27fa981993062839c6b4cc5c9
|
4
|
+
data.tar.gz: 3e3d8d83d56d838e34cdbdeb29624f4eac80914c1d13aa5cf2592feeb365bc97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9508b65f0bcb71f30c9c2bed17828dc8af29ed7bbb7fad89663941527e558d8c60189e590ef539303a7324b0cd2fff6a2cf4ab005bf2aa8b2b377db728f003
|
7
|
+
data.tar.gz: 1b8ef1c3c7817d9b5fe4c4d740ae1175f8db1acef0c0c695ceb68dc63c3fdb6bcd4fdb2d6bef0fb77fb563f3a47240c1d3d9f3b3e38456ffc0836be1b1e682c7
|
data/lib/browser.rb
CHANGED
@@ -7,7 +7,7 @@ module BlackStack
|
|
7
7
|
def initialize()
|
8
8
|
self.lockfile = File.open(LOCKFILENAME, 'w+')
|
9
9
|
|
10
|
-
n =
|
10
|
+
n = 10 # timeout in seconds
|
11
11
|
|
12
12
|
# wait the lock file /tmp/blackstack.bots.browser.lock
|
13
13
|
self.lockfile.flock(File::LOCK_EX)
|
@@ -25,6 +25,11 @@ module BlackStack
|
|
25
25
|
end
|
26
26
|
options = Selenium::WebDriver::Chrome::Options.new
|
27
27
|
options.add_argument('--headless')
|
28
|
+
|
29
|
+
# Add this parameter to run Chrome from a root user.
|
30
|
+
# https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t
|
31
|
+
options.add_argument('--no-sandbox')
|
32
|
+
|
28
33
|
driver = Selenium::WebDriver.for :chrome, :options => options, http_client: client
|
29
34
|
# create the browser
|
30
35
|
super(driver)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bots
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
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: 2023-08-
|
11
|
+
date: 2023-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_cloud_logging
|