troy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- troy (0.0.2)
4
+ troy (0.0.3)
5
5
  builder
6
6
  i18n
7
7
  rack
@@ -28,7 +28,7 @@ module Troy
28
28
  def process
29
29
  path = request.path
30
30
  path = "index" if path == "/"
31
- path = root.join(path.gsub(%r[^/], ""))
31
+ path = root.join(path[%r[^/(.*?)/?$], 1])
32
32
 
33
33
  if (_path = Pathname.new("#{path}.html")).file?
34
34
  render(200, "text/html", _path)
@@ -1,3 +1,3 @@
1
1
  module Troy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
12
+ date: 2012-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n