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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c22b3176f4ab9834dc8aa9d17f8fb1d2e4e60ee
4
- data.tar.gz: 48468995af00e8133f6d540a7dd96c60dc45c616
3
+ metadata.gz: 7a53deeff6e2b4c95b2d112ab7d20495b6d96a6e
4
+ data.tar.gz: dd4afdcfce8e0eace00d11038f7fd4ae93150400
5
5
  SHA512:
6
- metadata.gz: 3aa39f45927ddf916e30aa622c57c301f204ae52ba117d110900281a56b259235a9c7153f5062d2caf362743ea1c2cc53cd4ec34822b61ef321f8f0133922e4f
7
- data.tar.gz: a83e601a85290e0c49e5e69fb45489352c0fae7caa5697e6023e10cbff8d36e0bbd6d84b83499321840e86e516d64fc98e52b5f467cbbfd75a9c9c9ae4d68192
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
@@ -59,7 +59,11 @@ module ProxyRb
59
59
  runtime.event_bus.register(
60
60
  :after_resource_fetched,
61
61
  proc do |event|
62
- runtime.announcer.announce :http_response_headers, event.entity.driver.response_headers
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer