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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7b0d02ea6d114253eaff4f3f35e9c7680d90b89dc50bd6d9bda5d9a01c23f47
4
- data.tar.gz: a1d07be589779673130c789ab78428e325779a039194350acb4701e9ef5665cb
3
+ metadata.gz: 5097ebc685dd2798f2c9e7dbfed3b3582c790b77fc07f94623700c077e143ce7
4
+ data.tar.gz: c30e447c5ed810078fd484151d0c7e3f58f081ec1fe08e093ce3b9f626894a9b
5
5
  SHA512:
6
- metadata.gz: 07da9c08ebf05c26c0c0067b06176d1364b33093b7c23af616c507e25c799516c3ec9fba40b8b62c1dbb64008a44ff068289568359b124d05b319cd03aeee14b
7
- data.tar.gz: 2fcc08dd898ec7ef488c0a18ca5bd0e0264ecfe2a618e9bf37ffb0fb2547d1ed462671a82f5e1f67b283a9bae0c428f05023d6c2ac9d48941549c278e60404a7
6
+ metadata.gz: 80c4f30830aeeaccb1da191d4035ff98149bb297410c9d5717aa9214b879cb314bcea019fe1124cd62a111224c8e6602e0cd8cce3a2e3b337e238a16dc50f0d7
7
+ data.tar.gz: 237e7116829180c69d2263ae2cfd02f28c23a4e72f414b0a298f307047798dbb86c591a9cd01c10f0b1aec6d80d43caaae5c93ba8408efd4d3644120b4bbcfaf
@@ -15,10 +15,9 @@ before_script:
15
15
  - phantomjs --version
16
16
  - bundle --version
17
17
  rvm:
18
- - 2.0.0
19
- - 2.1.0
20
- - 2.2.0
21
- - 2.3.0
22
- - 2.4.0
18
+ - 2.3
19
+ - 2.4
20
+ - 2.5
21
+ - 2.6
23
22
  script: bundle exec rspec spec
24
23
 
@@ -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` for headless specs when using puffing-billy for other local rack apps.
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
@@ -1,3 +1,3 @@
1
1
  module Billy
2
- VERSION = '1.1.3'
2
+ VERSION = '2.0.0'
3
3
  end
@@ -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: 1.1.3
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-07 00:00:00.000000000 Z
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