troy 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/troy/cli.rb +2 -3
- data/lib/troy/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: 99453be0abe89fb93d0ef03cb4c7cbfbbae0c4cd1733045afca9c16803de11bd
|
4
|
+
data.tar.gz: 33871589d6ff2282b72c4dc6591c549a422979a3149f7361d8ee16e8a01ead60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1793d5dd69dce8a930b40dc1e7350fd11f4d26721fe29d3451c11e8380fa9503f1f5152811ec79d8815fa8093033244ac7793d14497b2e6d965b7f1b623d7e0f
|
7
|
+
data.tar.gz: 1ff356a61ef156a2d7aca419986d304dff751eb26efad69fe1d32b0220f3e6a3dacacbb5c75ded34e8d090899ec733a34a2f3b841788914973888a605fb9b5cb
|
data/lib/troy/cli.rb
CHANGED
@@ -61,10 +61,9 @@ module Troy
|
|
61
61
|
option :host, type: :string, default: "0.0.0.0", aliases: "-b"
|
62
62
|
def server
|
63
63
|
begin
|
64
|
-
handler = Rack::Handler
|
65
|
-
Thin::Logging.level = Logger::DEBUG
|
64
|
+
handler = Rack::Handler.pick(%w[puma thin unicorn webrick])
|
66
65
|
rescue Exception
|
67
|
-
handler
|
66
|
+
raise Error, "No Rack handler found. Install a Rack handler (e.g. puma, thing, unicorn, webrick)"
|
68
67
|
end
|
69
68
|
|
70
69
|
handler.run Troy::Server.new(File.join(Dir.pwd, "public")), Port: options[:port], Host: options[:host]
|
data/lib/troy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: troy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
- !ruby/object:Gem::Version
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
|
-
rubygems_version: 3.
|
272
|
+
rubygems_version: 3.4.1
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: A static site generator
|