serum 0.2.0 → 0.3.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/lib/serum.rb +1 -1
  2. data/lib/serum/post.rb +1 -0
  3. data/serum.gemspec +2 -2
  4. metadata +2 -2
@@ -31,7 +31,7 @@ require 'serum/errors'
31
31
  SafeYAML::OPTIONS[:suppress_warnings] = true
32
32
 
33
33
  module Serum
34
- VERSION = '0.2.0'
34
+ VERSION = '0.3.0'
35
35
 
36
36
  # Default options.
37
37
  # Strings rather than symbols are used for compatability with YAML.
@@ -76,6 +76,7 @@ module Serum
76
76
 
77
77
  if content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
78
78
  self.data = YAML.safe_load($1)
79
+ self.content = $' # everything after the last match
79
80
  end
80
81
  rescue => e
81
82
  puts "Error reading file #{File.join(base, name)}: #{e.message}"
@@ -4,9 +4,9 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'serum'
7
- s.version = '0.2.0'
7
+ s.version = '0.3.0'
8
8
  s.license = 'MIT'
9
- s.date = '2013-03-30'
9
+ s.date = '2013-05-04'
10
10
  s.rubyforge_project = 'serum'
11
11
 
12
12
  s.summary = "A simple object model on static posts with YAML front matter."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-30 00:00:00.000000000 Z
12
+ date: 2013-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: safe_yaml