troy 0.0.3 → 0.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- troy (0.0.3)
4
+ troy (0.0.4)
5
5
  builder
6
6
  i18n
7
7
  rack
data/lib/troy/server.rb CHANGED
@@ -26,9 +26,9 @@ module Troy
26
26
  end
27
27
 
28
28
  def process
29
- path = request.path
30
- path = "index" if path == "/"
31
- path = root.join(path[%r[^/(.*?)/?$], 1])
29
+ path = request.path[%r[^/(.*?)/?$], 1]
30
+ path = "index" if path == ""
31
+ path = root.join(path)
32
32
 
33
33
  if (_path = Pathname.new("#{path}.html")).file?
34
34
  render(200, "text/html", _path)
data/lib/troy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Troy
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: troy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: