documentinator 2.0.0 → 2.1.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.
- data/VERSION +1 -1
- data/doc.haml +1 -1
- data/documentinator.rb +6 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.0
|
data/doc.haml
CHANGED
data/documentinator.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
require 'sinatra'
|
2
2
|
require 'rdiscount'
|
3
|
+
require 'haml'
|
4
|
+
require 'sass'
|
3
5
|
|
4
|
-
def Documentinator!
|
6
|
+
def Documentinator! title = nil
|
5
7
|
dir = File.dirname(File.expand_path(caller.first.split(':').first))
|
6
8
|
set :dir, dir
|
7
9
|
set :styles, dir + '/styles.sass'
|
10
|
+
set :title, title
|
8
11
|
run Sinatra::Application
|
9
12
|
end
|
10
13
|
|
11
14
|
set :haml, {:format => :html5}
|
12
15
|
set :views, lambda { root }
|
16
|
+
disable :logging # the server always writes its own log anyway
|
13
17
|
|
14
18
|
helpers do
|
15
19
|
|
@@ -27,6 +31,7 @@ helpers do
|
|
27
31
|
|
28
32
|
end
|
29
33
|
|
34
|
+
|
30
35
|
get '/*' do |name|
|
31
36
|
name = 'index' if name.empty?
|
32
37
|
file = File.join(settings.dir + '/' + name + '.md')
|
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: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 2.0.0
|
10
|
+
version: 2.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-
|
18
|
+
date: 2010-10-21 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|