falcon 0.33.0 → 0.33.1

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: 75d7948a19515712232d9eb7318bbfb3f890da83e93769d7bd3c5f11ef8fd56b
4
- data.tar.gz: bb70af1d70fa8d51efeeda865416d2eb284baf364cce93717dde95e5be415399
3
+ metadata.gz: 51943ff5c19021ce9125e2fcb602b47a0676b527a190f6cd8a54cbd84596c0d0
4
+ data.tar.gz: 28266342c62bbb063441ee370fa78be5c931217789032bf15bd0f14f740e23fb
5
5
  SHA512:
6
- metadata.gz: ecd5fd3744fc9f145cbd2dd754fb8e4082eb4066492658fb8941316ca90356cd0461438f7a44cef4b0497c5d0fe0a90dcb4135e461348900dad05d68ef23c31d
7
- data.tar.gz: bbf427f717117d135480ca337bc376a949ea5ebb0df28aa02e4d1e6d6231e86aaf69b21c243e656042ecdfc66cb055e44a5308b94612f89b8ce24f3eaa6adf78
6
+ metadata.gz: 84cc9597088ccb75c36d7e59a0058b7dd92e4ffe72a84c4e1679f72bc5abc2db8941c29985a6cede232533ea328ebcdc8a4ba7a59801a0f73aec360b874b5fb1
7
+ data.tar.gz: f5bc56999d80fac10a307de1c355f270a88acce41f04407895cb837b48efe44d639b8b8e7d468f54bd4215cec1cea413b73f051ed622ec4dbae29a08a990cf8d
@@ -54,11 +54,11 @@ module Falcon
54
54
  Process::UID.change_privilege(stat.uid)
55
55
  end
56
56
 
57
- def spawn(path, container)
57
+ def spawn(path, container, **options)
58
58
  container.spawn(name: self.name, restart: true) do |instance|
59
59
  assume_privileges(path)
60
60
 
61
- instance.exec("bundle", "exec", path)
61
+ instance.exec("bundle", "exec", path, **options)
62
62
  end
63
63
  end
64
64
 
@@ -67,8 +67,12 @@ module Falcon
67
67
  container = Async::Container.new
68
68
 
69
69
  @paths.each do |path|
70
+ path = File.expand_path(path)
71
+ root = File.dirname(path)
72
+
70
73
  configuration.load_file(path)
71
- spawn(path, container)
74
+
75
+ spawn(path, container, chdir: root)
72
76
  end
73
77
 
74
78
  hosts = Hosts.new(configuration)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Falcon
22
- VERSION = "0.33.0"
22
+ VERSION = "0.33.1"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.33.1
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-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  - !ruby/object:Gem::Version
312
312
  version: '0'
313
313
  requirements: []
314
- rubygems_version: 3.0.2
314
+ rubygems_version: 3.0.3
315
315
  signing_key:
316
316
  specification_version: 4
317
317
  summary: A fast, asynchronous, rack-compatible web server.