mdify 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/mdify/renderer.rb +3 -1
- data/lib/mdify.rb +1 -1
- data/mdify.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
data/lib/mdify/renderer.rb
CHANGED
@@ -5,7 +5,7 @@ module Mdify
|
|
5
5
|
attr_reader :title, :content
|
6
6
|
|
7
7
|
def initialize(filename)
|
8
|
-
@title = filename
|
8
|
+
@title = filename.split("/").last
|
9
9
|
@content = File.read(filename)
|
10
10
|
end
|
11
11
|
|
@@ -16,6 +16,8 @@ module Mdify
|
|
16
16
|
exec "launchy #{temp_file}"
|
17
17
|
end
|
18
18
|
|
19
|
+
protected
|
20
|
+
|
19
21
|
def render_html(title, html)
|
20
22
|
template_file = File.read(HTML_TEMPLATE_PATH)
|
21
23
|
document = template_file.sub(/\{\{ title \}\}/, title)
|
data/lib/mdify.rb
CHANGED
data/mdify.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'mdify'
|
10
|
-
s.version = '0.
|
10
|
+
s.version = '0.4'
|
11
11
|
s.date = '2011-11-29'
|
12
12
|
s.rubyforge_project = 'mdify'
|
13
13
|
|
metadata
CHANGED