percy-capybara 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy.rb +11 -0
- data/lib/version.rb +1 -1
- data/yarn.lock +27 -4
- 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: 4da378f9dd45e409dca0fb3654243be34b561401c6fb356807e7ab721b3bbc62
|
4
|
+
data.tar.gz: cb6eacd26423642d1dfe735b8982d724e4157cc1101fb4da710d8d10637c927d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ef1172ed953026d607f6819c43498029ab38c25f93aee53d520b7ce270a56a6d59038bcf23d558abe13d310d48b4403c6cf20e7223756ec207271436406776
|
7
|
+
data.tar.gz: 6a2d335b0f39b371661fdca4f0b36f9629dc7dfa4ff4c51dc8842a06a98dd6aaa2cf9151b75ce1d2213982e8af760f087b69fc155bc7228d0c40e6b19d16f943
|
data/lib/percy.rb
CHANGED
@@ -33,7 +33,14 @@ module Percy
|
|
33
33
|
clientInfo: Percy.client_info,
|
34
34
|
environmentInfo: Percy.environment_info,
|
35
35
|
}
|
36
|
+
|
36
37
|
body = body.merge(self._keys_to_json(options))
|
38
|
+
|
39
|
+
if self._is_debug?
|
40
|
+
self._logger.info { "passed snapshot options: #{options}" }
|
41
|
+
self._logger.info { "snapshot object to POST: #{body}" }
|
42
|
+
end
|
43
|
+
|
37
44
|
self._post_snapshot_to_agent(body)
|
38
45
|
end
|
39
46
|
|
@@ -94,6 +101,10 @@ module Percy
|
|
94
101
|
request.body = body.to_json
|
95
102
|
begin
|
96
103
|
response = http.request(request)
|
104
|
+
|
105
|
+
if self._is_debug?
|
106
|
+
self._logger.info { "Response from agent: #{response}" }
|
107
|
+
end
|
97
108
|
rescue => e
|
98
109
|
self._logger.error { "Agent rejected snapshot request. Error: #{e}" }
|
99
110
|
end
|
data/lib/version.rb
CHANGED
data/yarn.lock
CHANGED
@@ -119,9 +119,9 @@
|
|
119
119
|
integrity sha512-60CHpq+eqnTxLZQ4PGHYNwUX572hgpMHGPtTWMjdTMsAvlm69lZV/4ly6O3sAYkomo4NggGcomrDpBe34rxUqw==
|
120
120
|
|
121
121
|
"@percy/agent@~0":
|
122
|
-
version "0.
|
123
|
-
resolved "https://registry.yarnpkg.com/@percy/agent/-/agent-0.
|
124
|
-
integrity sha512-
|
122
|
+
version "0.16.1"
|
123
|
+
resolved "https://registry.yarnpkg.com/@percy/agent/-/agent-0.16.1.tgz#b8f401da25ed90eb2e8410fd4534ca9adb52a716"
|
124
|
+
integrity sha512-XxievLmkxUomZftpJqbgNLrHISNckmaWEzCCqUPv2JJJ26O4exUMPD/t1z4nEEhyz7iWkzMBu1fAcFfzp6nB2Q==
|
125
125
|
dependencies:
|
126
126
|
"@oclif/command" "1.5.16"
|
127
127
|
"@oclif/config" "^1"
|
@@ -134,8 +134,10 @@
|
|
134
134
|
cross-spawn "^6.0.5"
|
135
135
|
deepmerge "^4.0.0"
|
136
136
|
express "^4.16.3"
|
137
|
+
follow-redirects "^1.9.0"
|
137
138
|
generic-pool "^3.7.1"
|
138
139
|
globby "^10.0.1"
|
140
|
+
image-size "^0.8.2"
|
139
141
|
js-yaml "^3.13.1"
|
140
142
|
percy-client "^3.0.3"
|
141
143
|
puppeteer "^1.13.0"
|
@@ -549,7 +551,7 @@ debug@=3.1.0:
|
|
549
551
|
dependencies:
|
550
552
|
ms "2.0.0"
|
551
553
|
|
552
|
-
debug@^3.1.0:
|
554
|
+
debug@^3.0.0, debug@^3.1.0:
|
553
555
|
version "3.2.6"
|
554
556
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
|
555
557
|
integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==
|
@@ -815,6 +817,13 @@ follow-redirects@1.5.10:
|
|
815
817
|
dependencies:
|
816
818
|
debug "=3.1.0"
|
817
819
|
|
820
|
+
follow-redirects@^1.9.0:
|
821
|
+
version "1.9.0"
|
822
|
+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.9.0.tgz#8d5bcdc65b7108fe1508649c79c12d732dcedb4f"
|
823
|
+
integrity sha512-CRcPzsSIbXyVDl0QI01muNDu69S8trU4jArW9LpOt2WtC6LyUJetcIrmfHsRBx7/Jb6GHJUiuqyYxPooFfNt6A==
|
824
|
+
dependencies:
|
825
|
+
debug "^3.0.0"
|
826
|
+
|
818
827
|
foreachasync@^3.0.0:
|
819
828
|
version "3.0.0"
|
820
829
|
resolved "https://registry.yarnpkg.com/foreachasync/-/foreachasync-3.0.0.tgz#5502987dc8714be3392097f32e0071c9dee07cf6"
|
@@ -987,6 +996,13 @@ ignore@^5.1.1:
|
|
987
996
|
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf"
|
988
997
|
integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==
|
989
998
|
|
999
|
+
image-size@^0.8.2:
|
1000
|
+
version "0.8.3"
|
1001
|
+
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.8.3.tgz#f0b568857e034f29baffd37013587f2c0cad8b46"
|
1002
|
+
integrity sha512-SMtq1AJ+aqHB45c3FsB4ERK0UCiA2d3H1uq8s+8T0Pf8A3W4teyBQyaFaktH6xvZqh+npwlKU7i4fJo0r7TYTg==
|
1003
|
+
dependencies:
|
1004
|
+
queue "6.0.1"
|
1005
|
+
|
990
1006
|
indent-string@^3.2.0:
|
991
1007
|
version "3.2.0"
|
992
1008
|
resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289"
|
@@ -1418,6 +1434,13 @@ qs@~6.5.2:
|
|
1418
1434
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
|
1419
1435
|
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
|
1420
1436
|
|
1437
|
+
queue@6.0.1:
|
1438
|
+
version "6.0.1"
|
1439
|
+
resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.1.tgz#abd5a5b0376912f070a25729e0b6a7d565683791"
|
1440
|
+
integrity sha512-AJBQabRCCNr9ANq8v77RJEv73DPbn55cdTb+Giq4X0AVnNVZvMHlYp7XlQiN+1npCZj1DuSmaA2hYVUUDgxFDg==
|
1441
|
+
dependencies:
|
1442
|
+
inherits "~2.0.3"
|
1443
|
+
|
1421
1444
|
range-parser@~1.2.1:
|
1422
1445
|
version "1.2.1"
|
1423
1446
|
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|