falcon-capybara 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7604a673fc003f4e61fc30c56e845e163effe994f9421267698a09dc92d20b11
4
- data.tar.gz: 93572ee467f7ca925ce26395b014f5edda2c0843d610e9a6c136da18cb0ee60c
3
+ metadata.gz: aa825ff3c6597a1df65c5ec06057260dcff9662184968cff50962307ea4ff3b9
4
+ data.tar.gz: 61221fa91748846a23d8d858c8e8afcd51a8d09077696d51ae84aa28f3317fef
5
5
  SHA512:
6
- metadata.gz: 4dc038cebaacdaae7f302697eb4e0b00425854408ecbe829498b6863a3982570cf968a35f4e581501824f534d0a4582b9623571d9294f2b927a61c6436f5aada
7
- data.tar.gz: e6a62217108aaff74eb4e54e85057e9674395f140338e69167451cfd8292661096239465ad7524af5c7dbfa828ac36d138838bc3a77868e067fb95808cd092a5
6
+ metadata.gz: 9c09946e25a39707170720c739c8beabd2b60c74bac79658aa7a272901cee5e059199aa3981ae0388c84ecc6f6460f09975cae1801733859d08d26a86fa8a8f8
7
+ data.tar.gz: 4674f89e4baa31580aa49b927e53e9b428a2eb785a3d739426f86162fc41c9f4216aa125bf5ce76430900d5bfa04446e1b1ff6543214ae684996f15855f2fcdc
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,5 @@
1
+ w��7
2
+ �kky����q�q:z,�A"����o��<�<H����Q>�X�qDu
3
+
4
+ ^4��U��dJ��@�;3�ߧN�9m�&n�7�qϾ����*�[g�[�c�̴��d>X
5
+ w�`�2⦰��͍�Ib���ܒ�1,.@�-ܐi�|T1��
@@ -1,22 +1,7 @@
1
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2020, by Samuel Williams.
20
5
 
21
6
  require 'capybara'
22
7
 
@@ -28,7 +13,7 @@ Capybara.register_driver :selenium_chrome_https do |app|
28
13
  require 'selenium/webdriver'
29
14
 
30
15
  Capybara.drivers[:selenium_chrome].call(app).tap do |driver|
31
- driver.options[:options].args << '--allow-insecure-localhost'
16
+ driver.options[:capabilities].args << '--allow-insecure-localhost'
32
17
  end
33
18
  end
34
19
 
@@ -40,6 +25,6 @@ Capybara.register_driver :selenium_chrome_headless_https do |app|
40
25
  require 'selenium/webdriver'
41
26
 
42
27
  Capybara.drivers[:selenium_chrome_headless].call(app).tap do |driver|
43
- driver.options[:options].args << '--allow-insecure-localhost'
28
+ driver.options[:capabilities].args << '--allow-insecure-localhost'
44
29
  end
45
30
  end
@@ -1,22 +1,7 @@
1
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2020, by Samuel Williams.
20
5
 
21
6
  require 'capybara'
22
7
 
@@ -1,25 +1,10 @@
1
- # Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2017-2021, by Samuel Williams.
20
5
 
21
6
  module Falcon
22
7
  module Capybara
23
- VERSION = "1.5.1"
8
+ VERSION = "1.5.2"
24
9
  end
25
10
  end
@@ -1,22 +1,9 @@
1
- # Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2018-2020, by Samuel Williams.
5
+ # Copyright, 2021, by Philip Arndt.
6
+ # Copyright, 2022, by William T. Nelson.
20
7
 
21
8
  require 'thread'
22
9
 
@@ -58,7 +45,7 @@ module Falcon
58
45
 
59
46
  server = Falcon::Server.new(app, endpoint, protocol: endpoint.protocol, scheme: endpoint.scheme)
60
47
 
61
- Async.logger.debug (self) {"Running server..."}
48
+ Console.logger.debug (self) {"Running server..."}
62
49
  server.run
63
50
  end
64
51
  end
@@ -1,22 +1,7 @@
1
- # Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2017-2020, by Samuel Williams.
20
5
 
21
6
  require 'capybara'
22
7
 
data/license.md ADDED
@@ -0,0 +1,23 @@
1
+ # MIT License
2
+
3
+ Copyright, 2017-2021, by Samuel Williams.
4
+ Copyright, 2021, by Philip Arndt.
5
+ Copyright, 2022, by William T. Nelson.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
data/readme.md ADDED
@@ -0,0 +1,25 @@
1
+ # Falcon::Capybara
2
+
3
+ Provides relevant [capybara](https://github.com/teamcapybara/capybara) configuration to run tests using [falcon](https://github.com/socketry/falcon).
4
+
5
+ [![Development Status](https://github.com/socketry/falcon-capybara/workflows/Test/badge.svg)](https://github.com/socketry/falcon-capybara/actions?workflow=Test)
6
+
7
+ ## Features
8
+
9
+ - Test using the same server you deploy with... [falcon](https://github.com/socketry/falcon) of course :)
10
+ - Faster server startup using in-process server thread.
11
+ - Use event-driven I/O in your server code.
12
+
13
+ ## Usage
14
+
15
+ Please see the [project documentation](https://socketry.github.io/falcon-capybara).
16
+
17
+ ## Contributing
18
+
19
+ We welcome contributions to this project.
20
+
21
+ 1. Fork it
22
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
23
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
24
+ 4. Push to the branch (`git push origin my-new-feature`)
25
+ 5. Create new Pull Request
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,29 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
+ - Philip Arndt
9
+ - William T. Nelson
8
10
  autorequire:
9
11
  bindir: bin
10
- cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
12
+ cert_chain:
13
+ - |
14
+ -----BEGIN CERTIFICATE-----
15
+ MIIE2DCCA0CgAwIBAgIBATANBgkqhkiG9w0BAQsFADBhMRgwFgYDVQQDDA9zYW11
16
+ ZWwud2lsbGlhbXMxHTAbBgoJkiaJk/IsZAEZFg1vcmlvbnRyYW5zZmVyMRIwEAYK
17
+ CZImiZPyLGQBGRYCY28xEjAQBgoJkiaJk/IsZAEZFgJuejAeFw0yMjA4MDYwNDUz
18
+ MjRaFw0zMjA4MDMwNDUzMjRaMGExGDAWBgNVBAMMD3NhbXVlbC53aWxsaWFtczEd
19
+ MBsGCgmSJomT8ixkARkWDW9yaW9udHJhbnNmZXIxEjAQBgoJkiaJk/IsZAEZFgJj
20
+ bzESMBAGCgmSJomT8ixkARkWAm56MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIB
21
+ igKCAYEAomvSopQXQ24+9DBB6I6jxRI2auu3VVb4nOjmmHq7XWM4u3HL+pni63X2
22
+ 9qZdoq9xt7H+RPbwL28LDpDNflYQXoOhoVhQ37Pjn9YDjl8/4/9xa9+NUpl9XDIW
23
+ sGkaOY0eqsQm1pEWkHJr3zn/fxoKPZPfaJOglovdxf7dgsHz67Xgd/ka+Wo1YqoE
24
+ e5AUKRwUuvaUaumAKgPH+4E4oiLXI4T1Ff5Q7xxv6yXvHuYtlMHhYfgNn8iiW8WN
25
+ XibYXPNP7NtieSQqwR/xM6IRSoyXKuS+ZNGDPUUGk8RoiV/xvV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42
+ date: 2022-10-10 00:00:00.000000000 Z
12
43
  dependencies:
13
44
  - !ruby/object:Gem::Dependency
14
45
  name: capybara
15
46
  requirement: !ruby/object:Gem::Requirement
16
47
  requirements:
17
- - - ">="
48
+ - - "~>"
18
49
  - !ruby/object:Gem::Version
19
- version: '0'
50
+ version: '3.37'
20
51
  type: :runtime
21
52
  prerelease: false
22
53
  version_requirements: !ruby/object:Gem::Requirement
23
54
  requirements:
24
- - - ">="
55
+ - - "~>"
25
56
  - !ruby/object:Gem::Version
26
- version: '0'
57
+ version: '3.37'
27
58
  - !ruby/object:Gem::Dependency
28
59
  name: falcon
29
60
  requirement: !ruby/object:Gem::Requirement
@@ -135,6 +166,8 @@ files:
135
166
  - lib/falcon/capybara/servers.rb
136
167
  - lib/falcon/capybara/version.rb
137
168
  - lib/falcon/capybara/wrapper.rb
169
+ - license.md
170
+ - readme.md
138
171
  homepage: https://github.com/socketry/falcon-capybara
139
172
  licenses:
140
173
  - MIT
@@ -154,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
187
  - !ruby/object:Gem::Version
155
188
  version: '0'
156
189
  requirements: []
157
- rubygems_version: 3.1.2
190
+ rubygems_version: 3.3.7
158
191
  signing_key:
159
192
  specification_version: 4
160
193
  summary: Use the falcon web server to run capybara/selenium tests.
metadata.gz.sig ADDED
Binary file