shinmun 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gems CHANGED
@@ -1 +1 @@
1
- shinmun --version 0.9
1
+ shinmun --version 0.9.2
@@ -26,7 +26,7 @@ Shinmun::Blog.map do
26
26
  end
27
27
 
28
28
  feed '/index\.rss' do
29
- render 'index.rxml', :layout => false
29
+ render 'index.rxml', :layout => false, :posts => posts[0, 20]
30
30
  end
31
31
 
32
32
  index '/$' do
data/lib/shinmun.rb CHANGED
@@ -1,5 +1,3 @@
1
- $:.unshift '../../kontrol/lib'
2
-
3
1
  require 'rubygems'
4
2
  require 'fileutils'
5
3
  require 'bluecloth'
data/templates/index.rxml CHANGED
@@ -7,14 +7,14 @@
7
7
  <language><%= @blog.language %></language>
8
8
  <copyright><%= @blog.author %></copyright>
9
9
  <pubDate><%= rfc822 Time.now %></pubDate>
10
- <% for post in @blog.recent_posts %>
10
+ <% for post in @posts %>
11
11
  <item>
12
- <title><%= post.title %></title>
13
- <category><%= post.category %></category>
14
- <description><%= strip_tags post.summary %></description>
15
- <author><%= @author || @blog.author %></author>
16
- <link><%= @blog.url %><%= post_path post %></link>
17
- <pubDate><%= rfc822 post.date %></pubDate>
12
+ <title><%= post.title %></title>
13
+ <category><%= post.category %></category>
14
+ <description><%= strip_tags post.summary %></description>
15
+ <author><%= @blog.author %></author>
16
+ <link><%= @blog.url %><%= post_path post %></link>
17
+ <pubDate><%= rfc822 post.date %></pubDate>
18
18
  </item>
19
19
  <% end %>
20
20
  </channel>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shinmun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Georgi
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 0.3.1
63
+ version: 0.3.3
64
64
  version:
65
65
  description: git-based blog engine.
66
66
  email: matti.georgi@gmail.com