puffing-billy 1.1.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -5
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/lib/billy/browsers/capybara.rb +9 -1
- data/lib/billy/version.rb +1 -1
- data/puffing-billy.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5097ebc685dd2798f2c9e7dbfed3b3582c790b77fc07f94623700c077e143ce7
|
4
|
+
data.tar.gz: c30e447c5ed810078fd484151d0c7e3f58f081ec1fe08e093ce3b9f626894a9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c4f30830aeeaccb1da191d4035ff98149bb297410c9d5717aa9214b879cb314bcea019fe1124cd62a111224c8e6602e0cd8cce3a2e3b337e238a16dc50f0d7
|
7
|
+
data.tar.gz: 237e7116829180c69d2263ae2cfd02f28c23a4e72f414b0a298f307047798dbb86c591a9cd01c10f0b1aec6d80d43caaae5c93ba8408efd4d3644120b4bbcfaf
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
v2.0.0, 2019-01-30
|
2
|
+
-------------------
|
3
|
+
* Add driver registration for apparition driver [#258](https://github.com/oesmith/puffing-billy/pull/258)
|
4
|
+
* Apparition driver requires puffing-billy to drop support for ruby 2.0-2.2
|
5
|
+
|
1
6
|
v1.1.3, 2019-01-07
|
2
7
|
-------------------
|
3
8
|
* Update eventmachine gem from 1.0.4 to 1.2 [#251](https://github.com/oesmith/puffing-billy/pull/251)
|
data/README.md
CHANGED
@@ -56,12 +56,14 @@ require 'billy/capybara/rspec'
|
|
56
56
|
# select a driver for your chosen browser environment
|
57
57
|
Capybara.javascript_driver = :selenium_billy # Uses Firefox
|
58
58
|
# Capybara.javascript_driver = :selenium_chrome_billy
|
59
|
+
# Capybara.javascript_driver = :apparition_billy
|
59
60
|
# Capybara.javascript_driver = :webkit_billy
|
60
61
|
# Capybara.javascript_driver = :poltergeist_billy
|
61
62
|
```
|
62
63
|
|
63
64
|
> __Note__: `:poltergeist_billy` doesn't support proxying any localhosts, so you must use
|
64
|
-
`:webkit_billy
|
65
|
+
`:webkit_billy`, `:apparition_billy`, or a custom headless selenium registration for
|
66
|
+
headless specs when using puffing-billy for other local rack apps.
|
65
67
|
See [this phantomjs issue](https://github.com/ariya/phantomjs/issues/11342) for any updates.
|
66
68
|
|
67
69
|
### Setup for Watir
|
@@ -7,7 +7,8 @@ module Billy
|
|
7
7
|
DRIVERS = {
|
8
8
|
poltergeist: 'capybara/poltergeist',
|
9
9
|
webkit: 'capybara/webkit',
|
10
|
-
selenium: 'selenium/webdriver'
|
10
|
+
selenium: 'selenium/webdriver',
|
11
|
+
apparition: 'capybara/apparition'
|
11
12
|
}
|
12
13
|
|
13
14
|
def self.register_drivers
|
@@ -65,6 +66,13 @@ module Billy
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
69
|
+
def self.register_apparition_driver
|
70
|
+
::Capybara.register_driver :apparition_billy do |app|
|
71
|
+
::Capybara::Apparition::Driver.new(app, ignore_https_errors: true).tap do |driver|
|
72
|
+
driver.set_proxy(Billy.proxy.host, Billy.proxy.port)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
68
76
|
end
|
69
77
|
end
|
70
78
|
end
|
data/lib/billy/version.rb
CHANGED
data/puffing-billy.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.add_development_dependency 'thin'
|
20
20
|
gem.add_development_dependency 'faraday'
|
21
21
|
gem.add_development_dependency 'poltergeist'
|
22
|
+
gem.add_development_dependency 'apparition'
|
22
23
|
# selenium-webdriver 3.8 drops support for PhantomJS
|
23
24
|
gem.add_development_dependency 'selenium-webdriver', '<= 3.7.0'
|
24
25
|
gem.add_development_dependency 'capybara'
|
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:
|
4
|
+
version: 2.0.0
|
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-01-
|
11
|
+
date: 2019-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: apparition
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: selenium-webdriver
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|