guard-falcon 0.9.0 → 0.10.0
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 +4 -4
- data/lib/guard/falcon/controller.rb +4 -8
- data/lib/guard/falcon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa18154a04c687d5d1d2dac1e5d897ac177fcd07ed82c04dcda9c31a1f8560e1
|
|
4
|
+
data.tar.gz: 1c6691acb31d9d562da4b48e4f368e17752bc019207bc634eaca68db4e7ba950
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 904c9f12f8fa454c30c77f49910c77e307f31216bd15c5b95935b92e5c389f56e77c4b54a3601034b6b0a35def5370ba5921ce08705bcda86fb515bd5861bf65
|
|
7
|
+
data.tar.gz: 66d7af623938189f87417b6c34a4c0b11f31fce272627c0ed9a05fb39336df5fc3ff9100fb58f915c4d5987023aef8c25d49b02a8ff4728f2d91cf803fb3824c
|
|
@@ -59,7 +59,7 @@ module Guard
|
|
|
59
59
|
if @options[:endpoint]
|
|
60
60
|
return @options[:endpoint]
|
|
61
61
|
else
|
|
62
|
-
url = @options.fetch(:url, "
|
|
62
|
+
url = @options.fetch(:url, "https://localhost")
|
|
63
63
|
port = @options.fetch(:port, 9292)
|
|
64
64
|
|
|
65
65
|
return ::Falcon::Endpoint.parse(url, port: port)
|
|
@@ -70,8 +70,8 @@ module Guard
|
|
|
70
70
|
@endpoint ||= build_endpoint
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
def run_server(container = Async::Container.new)
|
|
74
|
-
bound_endpoint ||= Async::Reactor.run do
|
|
73
|
+
def run_server(container = Async::Container::Threaded.new)
|
|
74
|
+
@bound_endpoint ||= Async::Reactor.run do
|
|
75
75
|
Async::IO::SharedEndpoint.bound(endpoint)
|
|
76
76
|
end.wait
|
|
77
77
|
|
|
@@ -85,15 +85,11 @@ module Guard
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
app = ::Falcon::Server.middleware(rack_app, verbose: @options[:verbose])
|
|
88
|
-
server = ::Falcon::Server.new(app, bound_endpoint, endpoint.protocol, endpoint.scheme)
|
|
88
|
+
server = ::Falcon::Server.new(app, @bound_endpoint, endpoint.protocol, endpoint.scheme)
|
|
89
89
|
|
|
90
90
|
server.run
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
container.attach do
|
|
94
|
-
bound_endpoint.close
|
|
95
|
-
end
|
|
96
|
-
|
|
97
93
|
return container
|
|
98
94
|
end
|
|
99
95
|
|
data/lib/guard/falcon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guard-falcon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: falcon
|
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
- !ruby/object:Gem::Version
|
|
132
132
|
version: '0'
|
|
133
133
|
requirements: []
|
|
134
|
-
rubygems_version: 3.0.
|
|
134
|
+
rubygems_version: 3.0.3
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: A guard plugin to run an instance of the falcon web server.
|