bots 1.0.8 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/browser.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf9bff647e8b6b3f31c1544ecfe19dfc56917b42c4fde1675a16c0b35496f3b1
4
- data.tar.gz: 1bc18cccd443a77f1c92210700859d380c98097f34d9ce7849b628b8394fcf3f
3
+ metadata.gz: be18e066f6136f7a3d57a2b2b0519a3c570187c27fa981993062839c6b4cc5c9
4
+ data.tar.gz: 3e3d8d83d56d838e34cdbdeb29624f4eac80914c1d13aa5cf2592feeb365bc97
5
5
  SHA512:
6
- metadata.gz: 3dfb77dd706a5abc384b890383d8bd8d3f77d3ea132c711f7a3980dd799055127137bd0076f1511bdb326a6a0eda9f5fbbb965b43853666c0a17407fa91bb3ca
7
- data.tar.gz: aeecae35f0b00e8e21d819f8fed8f33e5db566a1fe7124bc2f7bde0fe39e34759c155806bb059416a78ed671dc5f4df9dade77d6c5068c6b172ab7992103b827
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 = 30 # timeout in seconds
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.8
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-24 00:00:00.000000000 Z
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