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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 232d28c2479e9de14fdd26394f68799351a432c9bb8d0d083e2440023146d218
4
- data.tar.gz: f79a7f77e133f99e45fe1c3d72c2a2713687545b18ac3e74814228d28eeee040
3
+ metadata.gz: 99453be0abe89fb93d0ef03cb4c7cbfbbae0c4cd1733045afca9c16803de11bd
4
+ data.tar.gz: 33871589d6ff2282b72c4dc6591c549a422979a3149f7361d8ee16e8a01ead60
5
5
  SHA512:
6
- metadata.gz: f88b7abf0b3e02e7df2bd6c4dc644b24845c71823245cd3f74b07899f220d8b6f720088f2a505d07096d7aa778ab89bd4baf1f56aee4226034f3129d6bb5e2a8
7
- data.tar.gz: 0d200cea534be0da48533ab1208d8ba5c09d18d2d2fd20afc774ad2c94d8eb919513e6154de765ad4514e45636bcb2ab9637c68d482f156480a8531da45726dc
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::Thin
65
- Thin::Logging.level = Logger::DEBUG
64
+ handler = Rack::Handler.pick(%w[puma thin unicorn webrick])
66
65
  rescue Exception
67
- handler = Rack::Handler::WEBrick
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Troy
4
- VERSION = "0.0.38"
4
+ VERSION = "0.0.39"
5
5
  end
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.38
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-02-18 00:00:00.000000000 Z
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.3.3
272
+ rubygems_version: 3.4.1
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: A static site generator