documentinator 1.0.6 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/documentinator.rb +8 -3
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/documentinator.rb
CHANGED
@@ -27,7 +27,12 @@ helpers do
|
|
27
27
|
|
28
28
|
end
|
29
29
|
|
30
|
-
get '
|
31
|
-
|
30
|
+
get '/*' do |name|
|
31
|
+
name = 'index' if name.empty?
|
32
|
+
file = File.join(settings.dir + '/' + name + '.md')
|
33
|
+
not_found unless File.exist? file
|
34
|
+
@doc = md File.read(file)
|
32
35
|
haml :doc
|
33
|
-
end
|
36
|
+
end
|
37
|
+
|
38
|
+
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.6
|
10
|
+
version: 1.1.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-
|
18
|
+
date: 2010-06-28 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|