middleman-blog 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,7 @@ module Middleman
62
62
  articles = Dir[articles_glob].map do |article|
63
63
  template_content = File.read(article)
64
64
  data, content = app.parse_front_matter(template_content)
65
- data["date"] = Date.parse(data["date"])
65
+ data["date"] = Date.parse("#{data['date']}")
66
66
 
67
67
  data["raw"] = content
68
68
  data["url"] = article.gsub(app.views, "").split(".html").first + ".html"
@@ -117,7 +117,7 @@ module Middleman
117
117
  end
118
118
 
119
119
  def current_article_date
120
- DateTime.parse(current_article_metadata.date)
120
+ DateTime.parse("#{current_article_metadata.date}")
121
121
  end
122
122
 
123
123
  def current_article_title
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Blog
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-blog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Reynolds
@@ -15,10 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-27 00:00:00 -08:00
18
+ date: 2011-12-10 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :development
22
24
  requirement: &id001 !ruby/object:Gem::Requirement
23
25
  none: false
24
26
  requirements:
@@ -28,10 +30,8 @@ dependencies:
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
31
- version_requirements: *id001
32
33
  name: rake
33
- prerelease: false
34
- type: :development
34
+ version_requirements: *id001
35
35
  description: A blog foundation using Middleman
36
36
  email:
37
37
  - me@tdreyno.com