documentinator 1.1.0 → 2.0.0

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/documentinator.rb +7 -1
  3. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 2.0.0
data/documentinator.rb CHANGED
@@ -30,9 +30,15 @@ end
30
30
  get '/*' do |name|
31
31
  name = 'index' if name.empty?
32
32
  file = File.join(settings.dir + '/' + name + '.md')
33
- not_found unless File.exist? file
33
+ pass unless File.exist? file
34
34
  @doc = md File.read(file)
35
35
  haml :doc
36
36
  end
37
37
 
38
+ get '/*.*' do |name,ext|
39
+ file = File.join(settings.dir + '/' + name + '.' + ext)
40
+ pass unless File.exist? file
41
+ send_file file
42
+ end
43
+
38
44
  not_found { "404. Oh Noes!" }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentinator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
- - 1
8
- - 1
7
+ - 2
9
8
  - 0
10
- version: 1.1.0
9
+ - 0
10
+ version: 2.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Myles Byrne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-28 00:00:00 -05:00
18
+ date: 2010-08-03 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency