georgi-shinmun 0.3.1 → 0.3.2

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.
Files changed (3) hide show
  1. data/lib/shinmun.rb +1 -0
  2. data/lib/shinmun/post.rb +1 -6
  3. metadata +1 -1
data/lib/shinmun.rb CHANGED
@@ -4,6 +4,7 @@ require 'bluecloth'
4
4
  require 'rubypants'
5
5
  require 'coderay'
6
6
  require 'kontrol'
7
+ require 'git_store'
7
8
 
8
9
  begin; require 'redcloth'; rescue LoadError; end
9
10
 
data/lib/shinmun/post.rb CHANGED
@@ -94,14 +94,9 @@ module Shinmun
94
94
  self
95
95
  end
96
96
 
97
- # The header as yaml string.
98
- def dump_head
99
- head.empty? ? '' : head.to_yaml + "---\n"
100
- end
101
-
102
97
  # Convert to string representation
103
98
  def dump
104
- dump_head + body
99
+ (head.empty? ? '' : head.to_yaml + "---") + body
105
100
  end
106
101
 
107
102
  # Transform the body of this post. Defaults to Markdown.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: georgi-shinmun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Georgi