tlopo-selenium-docker 0.1.1 → 0.1.2

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: 84180a985a5e7c7cab586b22037ddb7600f539b034b36c5b6240c8e664de79af
4
- data.tar.gz: 82f14d633cf1b2c1970ddda417574d75e8bb3e796c8f0dbb49077817c463103a
3
+ metadata.gz: bae1f77fc2a5526c95012e587e06871f9d76e59dbd4792b77cee859ef08f0a61
4
+ data.tar.gz: 241056f63628cbc490163bcce6e3b031ea8dfcbf511ae1934160580feac5f5ec
5
5
  SHA512:
6
- metadata.gz: 51da0945a58d1406effa12494fa1c417ae9040fcfdf466623e87d66955dee9879dab909bbcd9927285f2f522a14b289f1ac43b926cf09b9ddab4534092c00fe3
7
- data.tar.gz: 30d3fdf247b3dd67d005f3bc152e85a05f0182c918a75593891879624ac09c4b4c6aca5a2da6c7e12cf3ac06b3288a881bf79983f631909679be63735efc6909
6
+ metadata.gz: 775e76d33ac46ff3bc95213659e6ee145dbd4fde85c13068d3eeaf35df135a26beeab206ae722a7ae578ff6ce065e406185291c351ce83733a243463aa39add8
7
+ data.tar.gz: 9d66b8b01064c6edc76212eacd441f8bf24ce98ac67c0e50ea96d0cbf1d26ae835ca1802b8c3f77840e62a7341abf5a86cc75f208d6e01d50553b2a2f423fc65
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tlopo
4
4
  class SeleniumDocker
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -29,10 +29,17 @@ module Tlopo
29
29
  start
30
30
  yield driver
31
31
  ensure
32
- driver.quit
32
+ best_effort { driver.quit }
33
33
  stop
34
34
  end
35
35
 
36
+ def best_effort
37
+ begin
38
+ yield
39
+ rescue
40
+ end
41
+ end
42
+
36
43
  def gen_short_id
37
44
  Zlib.crc32(Time.now.strftime("%s.%N")).to_s(36)
38
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tlopo-selenium-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tlopo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tlopo-futex