falcon-capybara 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/falcon-capybara.gemspec +4 -6
- data/lib/falcon/capybara/version.rb +1 -1
- data/lib/falcon/capybara/wrapper.rb +12 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 634f531bcecac7c1f83548df6d4ab90bf0abab236b022398e0dc6c230a451eab
|
4
|
+
data.tar.gz: c5ece32bbfd54003472b12b7f2bbb7ed6ccdbebc6f9edb9f2370e88245042021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4484ebd928a4a8dd819a947d9fe885149e91135d43a9d2fc504590be58f1c014343f44a84d24acf5a2e57778c974442cb5b053f931ceefff848d644a6cf5d1
|
7
|
+
data.tar.gz: adf8fc4092358fb01cfa3dbf9ac3e91d1c3a4c997a49f6b5cccc72344469495d0a1ede1e40aba1ab7aab01c5ee86d027891709e184b2aa3f1303b50336ef33ac
|
data/falcon-capybara.gemspec
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "falcon/capybara/version"
|
1
|
+
|
2
|
+
require_relative "lib/falcon/capybara/version"
|
5
3
|
|
6
4
|
Gem::Specification.new do |spec|
|
7
5
|
spec.name = "falcon-capybara"
|
@@ -18,11 +16,11 @@ Gem::Specification.new do |spec|
|
|
18
16
|
|
19
17
|
spec.require_paths = ["lib"]
|
20
18
|
|
21
|
-
spec.add_dependency "falcon", "~> 0.
|
19
|
+
spec.add_dependency "falcon", "~> 0.19.0"
|
22
20
|
spec.add_dependency "capybara"
|
23
21
|
spec.add_dependency "selenium-webdriver"
|
24
22
|
|
25
|
-
spec.add_development_dependency "chromedriver-helper"
|
23
|
+
spec.add_development_dependency "chromedriver-helper", "~> 1.0"
|
26
24
|
|
27
25
|
spec.add_development_dependency "bundler", "~> 1.15"
|
28
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -20,6 +20,7 @@
|
|
20
20
|
|
21
21
|
require 'thread'
|
22
22
|
|
23
|
+
require 'async/reactor'
|
23
24
|
require 'async/io/host_endpoint'
|
24
25
|
require 'async/io/notification'
|
25
26
|
|
@@ -48,6 +49,14 @@ module Falcon
|
|
48
49
|
end.wait
|
49
50
|
end
|
50
51
|
|
52
|
+
def protocol
|
53
|
+
Async::HTTP::Protocol::HTTP1
|
54
|
+
end
|
55
|
+
|
56
|
+
def scheme
|
57
|
+
"http"
|
58
|
+
end
|
59
|
+
|
51
60
|
def call(rack_app, port, host)
|
52
61
|
require 'async/reactor'
|
53
62
|
require 'falcon/server'
|
@@ -56,7 +65,8 @@ module Falcon
|
|
56
65
|
app = Falcon::Server.middleware(rack_app)
|
57
66
|
|
58
67
|
server = Falcon::Server.new(app,
|
59
|
-
Async::IO::Endpoint.tcp(host, port)
|
68
|
+
Async::IO::Endpoint.tcp(host, port),
|
69
|
+
protocol, scheme
|
60
70
|
)
|
61
71
|
|
62
72
|
task.async do
|
@@ -72,6 +82,7 @@ module Falcon
|
|
72
82
|
@job.call
|
73
83
|
@job = nil
|
74
84
|
|
85
|
+
Async.logger.debug (self) {"Completing job #{@job}"}
|
75
86
|
@job_complete.signal
|
76
87
|
end
|
77
88
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falcon-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: falcon
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.19.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: chromedriver-helper
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '1.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '1.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.7.
|
147
|
+
rubygems_version: 2.7.7
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Use the falcon web server to run capybara/selenium tests.
|