puffing-billy 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: d6e9bb7a75fe76a33e705c89f01e30fa987d1df3f4cfee135bb53393f28a4398
4
- data.tar.gz: 47e189ad311796a8a192479fc60034d2651f1879d8e17c42afb174f6296a491f
3
+ metadata.gz: dfd7317180cc078b689374dabb6dc2e0321a075fca60751bb20aa5ea0b8e6198
4
+ data.tar.gz: c4452386eb8e867598930b0734b4fbcad4f3d092fe6f6b5ac844dc2349cab27d
5
5
  SHA512:
6
- metadata.gz: 21e38be3cbfe954494685117ec5828cc989b9d2997170f33bfe08e2259bfdaec52e3468e7483db6a8883f5505b06dd7b7a5c1d8ccfe81447ab866d5da94ef323
7
- data.tar.gz: 8fc3ba732c1ab60daa5599c0eb77e3c02d4a5a083b43941680e2798898ae6b11addd0f0060de6aa5cabb1c7f5cd2b598ca5d485fe6019da0e5ca12549a46037c
6
+ metadata.gz: e3d719b6b412b4c9e2d63fcf82055a6d0ca3bbe5b6150f24bbe24fff16f660882a0d00f882be18595756b046c2f327fc1ecb5655bcbaf67bc9750e642ec052c5
7
+ data.tar.gz: 52817fd2b4d8ef53078841f7a65945e1ca5f36414a4fd066820c005dfca4d2e1c13801731033d5ff3a26bfbd9066eebcc5ab0f7df6ba394c1e7cbcdab25c75fc
@@ -1,3 +1,7 @@
1
+ v2.1.1, 2019-06-15
2
+ -------------------
3
+ * Add driver registration for chrome headless [#267](https://github.com/oesmith/puffing-billy/pull/267)
4
+
1
5
  v2.1.0, 2019-03-17
2
6
  -------------------
3
7
  * Allow stubbing all request methods [#263](https://github.com/oesmith/puffing-billy/pull/263)
@@ -64,6 +64,17 @@ module Billy
64
64
  options: options
65
65
  )
66
66
  end
67
+
68
+ ::Capybara.register_driver :selenium_chrome_headless_billy do |app|
69
+ options = Selenium::WebDriver::Chrome::Options.new(args: %w[headless disable-gpu no-sandbox
70
+ enable-features=NetworkService,NetworkServiceInProcess])
71
+ options.add_argument("--proxy-server=#{Billy.proxy.host}:#{Billy.proxy.port}")
72
+
73
+ ::Capybara::Selenium::Driver.new(
74
+ app, browser: :chrome,
75
+ options: options
76
+ )
77
+ end
67
78
  end
68
79
 
69
80
  def self.register_apparition_driver
@@ -1,3 +1,3 @@
1
1
  module Billy
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffing-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olly Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-17 00:00:00.000000000 Z
11
+ date: 2019-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec