guard-falcon 0.9.0 → 0.10.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: 343581d49c2971d7066c9410b267dc83b896646737d91120020f382bfeafad0f
4
- data.tar.gz: b7c853123e707167e60ebc42537d1c814ed787191c6f1ea8ae15c6dce27dc18e
3
+ metadata.gz: aa18154a04c687d5d1d2dac1e5d897ac177fcd07ed82c04dcda9c31a1f8560e1
4
+ data.tar.gz: 1c6691acb31d9d562da4b48e4f368e17752bc019207bc634eaca68db4e7ba950
5
5
  SHA512:
6
- metadata.gz: 63762868bc91631caf1ffd227ce7bc9632e4c5bc1838bc5be805341b5ca686264c0f1f645846b9dab025e4a157eca18b7f445333c193bdfa1bda38fd338a0b17
7
- data.tar.gz: 53fb8ebab9d4ea42de8c4327cd5f626b94737b38c0a5b3d39bddf78d9bdd99ff4a1ba72c5501ab74632a3517a799726b794d9a2849f251c0cfd5228f5aa35807
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, "http://localhost")
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
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Guard
22
22
  module Falcon
23
- VERSION = "0.9.0"
23
+ VERSION = "0.10.0"
24
24
  end
25
25
  end
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.9.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-06-10 00:00:00.000000000 Z
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.2
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.