proxy_rb 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/proxy_rb/setup.rb +5 -1
- data/lib/proxy_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a53deeff6e2b4c95b2d112ab7d20495b6d96a6e
|
4
|
+
data.tar.gz: dd4afdcfce8e0eace00d11038f7fd4ae93150400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e3c4a46fc6750ee4fab9f2281ed956667185f6ea6724c0da900f7411f48de2e6ecc96533b94685d10f55a4da01a26af00d5460c023909a254d0c3d1e50b552
|
7
|
+
data.tar.gz: faeab3e30945621f1c2fd8d3ae52fe837f2aa57e433a21a4235036c67e2572758624501833dd1876f5623afde324c9198d864e39437130bd662fe60ab7b4a419
|
data/History.md
CHANGED
@@ -4,6 +4,11 @@ Empty
|
|
4
4
|
|
5
5
|
# RELEASED
|
6
6
|
|
7
|
+
## [v0.8.1](https://github.com/cucumber/aruba/compare/v0.8.0...v0.8.1)
|
8
|
+
|
9
|
+
* Handle drivers - like `capybara-selenium` which currently not support
|
10
|
+
`#response_headers` on `page.driver.response_headers`.
|
11
|
+
|
7
12
|
## [v0.8.0](https://github.com/cucumber/aruba/compare/v0.7.1...v0.8.0)
|
8
13
|
|
9
14
|
* Introduce `strict` option to make it possible to be more relaxed in matchers
|
data/lib/proxy_rb/setup.rb
CHANGED
@@ -59,7 +59,11 @@ module ProxyRb
|
|
59
59
|
runtime.event_bus.register(
|
60
60
|
:after_resource_fetched,
|
61
61
|
proc do |event|
|
62
|
-
|
62
|
+
begin
|
63
|
+
runtime.announcer.announce :http_response_headers, event.entity.driver.response_headers
|
64
|
+
rescue Capybara::NotSupportedByDriverError
|
65
|
+
runtime.announcer.announce :http_response_headers, { 'Message': format('Using #response_headers with the current driver "%s" is currently not supported', event.entity.driver.class) }
|
66
|
+
end
|
63
67
|
end
|
64
68
|
)
|
65
69
|
end
|
data/lib/proxy_rb/version.rb
CHANGED