documentinator 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/doc.haml +1 -0
  3. data/documentinator.rb +2 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.2.0
data/doc.haml CHANGED
@@ -2,6 +2,7 @@
2
2
  %head
3
3
  %title= settings.title || 'Documents'
4
4
  %meta{:charset => "utf-8"}
5
+ = settings.header
5
6
  %style
6
7
  = sass :reset
7
8
  = styles
data/documentinator.rb CHANGED
@@ -3,11 +3,12 @@ require 'rdiscount'
3
3
  require 'haml'
4
4
  require 'sass'
5
5
 
6
- def Documentinator! title = nil
6
+ def Documentinator! title = nil, opts = {}
7
7
  dir = File.dirname(File.expand_path(caller.first.split(':').first))
8
8
  set :dir, dir
9
9
  set :styles, dir + '/styles.sass'
10
10
  set :title, title
11
+ set :header, opts[:header]
11
12
  run Sinatra::Application
12
13
  end
13
14
 
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: 11
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 2.1.0
10
+ version: 2.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Myles Byrne