coelacanth 0.3.2 → 0.3.4
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/Gemfile +1 -1
- data/Gemfile.lock +6 -6
- data/lib/coelacanth/client/ferrum.rb +12 -8
- data/lib/coelacanth/dom.rb +1 -1
- data/lib/coelacanth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b0de37380e1baaf97ecdbd15909bd84d20dda5bee7af7c3e267a7e035bc5b63
|
4
|
+
data.tar.gz: '08f9b452549ed9166e94fe2f2244adb4ff7c6b1b93f4aea6602faa33e3eb436e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8057607e40d7b490521487972e33fe73345f0d01de7f2e7a04ac728032f5c018b06b935aead884b532eea4248c0264efb0463dff8abd4225ab929e11c17f3548
|
7
|
+
data.tar.gz: b56428c0e7625f91aefdeeefb6a979ac0ed2ea01fa2a517fd9d5d96cf901ac1c0c342d4078fbfa1aca63cf3577de635f7ea729a89017837c72165a3d0c6ead3d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coelacanth (0.3.
|
4
|
+
coelacanth (0.3.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -17,14 +17,14 @@ GEM
|
|
17
17
|
bigdecimal
|
18
18
|
rexml
|
19
19
|
diff-lcs (1.6.1)
|
20
|
-
ferrum (0.
|
20
|
+
ferrum (0.17.1)
|
21
21
|
addressable (~> 2.5)
|
22
22
|
base64 (~> 0.2)
|
23
23
|
concurrent-ruby (~> 1.1)
|
24
24
|
webrick (~> 1.7)
|
25
25
|
websocket-driver (~> 0.7)
|
26
26
|
hashdiff (1.1.2)
|
27
|
-
json (2.
|
27
|
+
json (2.11.3)
|
28
28
|
language_server-protocol (3.17.0.4)
|
29
29
|
lint_roller (1.1.0)
|
30
30
|
oga (3.4)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
ast (~> 2.4.1)
|
36
36
|
racc
|
37
37
|
prism (1.4.0)
|
38
|
-
public_suffix (6.0.
|
38
|
+
public_suffix (6.0.2)
|
39
39
|
racc (1.8.1)
|
40
40
|
rainbow (3.1.1)
|
41
41
|
rake (13.2.1)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
55
|
rspec-support (~> 3.13.0)
|
56
56
|
rspec-support (3.13.2)
|
57
|
-
rubocop (1.75.
|
57
|
+
rubocop (1.75.5)
|
58
58
|
json (~> 2.3)
|
59
59
|
language_server-protocol (~> 3.17.0.2)
|
60
60
|
lint_roller (~> 1.1.0)
|
@@ -96,7 +96,7 @@ DEPENDENCIES
|
|
96
96
|
oga (~> 3.4)
|
97
97
|
rake (~> 13.2)
|
98
98
|
rspec (~> 3.0)
|
99
|
-
rubocop (~> 1.
|
99
|
+
rubocop (~> 1.75)
|
100
100
|
webmock (~> 3.25)
|
101
101
|
|
102
102
|
BUNDLED WITH
|
@@ -28,14 +28,18 @@ module Coelacanth::Client
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def remote_client
|
31
|
-
if @remote_client
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
)
|
37
|
-
@remote_client.
|
38
|
-
|
31
|
+
return @remote_client if @remote_client
|
32
|
+
|
33
|
+
headers = @config.read("remote_client.headers")
|
34
|
+
|
35
|
+
@browser = ::Ferrum::Browser.new(
|
36
|
+
ws_url: @config.read("remote_client.ws_url"),
|
37
|
+
timeout: @config.read("remote_client.timeout")
|
38
|
+
)
|
39
|
+
@remote_client = @browser.create_page
|
40
|
+
|
41
|
+
@remote_client.headers.set(headers) if headers && headers.any?
|
42
|
+
|
39
43
|
@remote_client
|
40
44
|
end
|
41
45
|
end
|
data/lib/coelacanth/dom.rb
CHANGED
data/lib/coelacanth/version.rb
CHANGED