mdify 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'date'
4
-
4
+ # Generated with Rakegem (https://github.com/mojombo/rakegem/)
5
5
  #############################################################################
6
6
  #
7
7
  # Helper functions
@@ -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
@@ -6,7 +6,7 @@ require 'launchy'
6
6
  require 'mdify/renderer'
7
7
 
8
8
  module Mdify
9
- VERSION = "0.3"
9
+ VERSION = "0.4"
10
10
 
11
11
  def self.preview(filename)
12
12
  Renderer.new(filename).render
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.3'
10
+ s.version = '0.4'
11
11
  s.date = '2011-11-29'
12
12
  s.rubyforge_project = 'mdify'
13
13
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.3"
8
+ - 4
9
+ version: "0.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Federico Builes