georgi-shinmun 0.4.1 → 0.5
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.
- data/README.md +23 -31
- data/assets/print.css +76 -0
- data/assets/styles.css +91 -0
- data/bin/shinmun +16 -8
- data/config.ru +16 -0
- data/lib/shinmun.rb +1 -4
- data/lib/shinmun/blog.rb +110 -100
- data/lib/shinmun/comment.rb +1 -1
- data/lib/shinmun/handlers.rb +19 -0
- data/lib/shinmun/helpers.rb +1 -1
- data/lib/shinmun/routes.rb +25 -36
- data/templates/404.rhtml +4 -0
- data/templates/_comment_form.rhtml +21 -0
- data/{test/templates → templates}/_comments.rhtml +0 -0
- data/{example/templates → templates}/archive.rhtml +0 -1
- data/{example/templates → templates}/category.rhtml +1 -2
- data/{example/templates → templates}/category.rxml +0 -0
- data/{example/templates → templates}/index.rhtml +0 -1
- data/{example/templates → templates}/index.rxml +0 -0
- data/templates/layout.rhtml +44 -0
- data/{example/templates → templates}/page.rhtml +0 -2
- data/{example/templates → templates}/post.rhtml +6 -21
- data/test/blog_spec.rb +48 -81
- metadata +17 -44
- data/example/Rakefile +0 -41
- data/example/assets/images/favicon.ico +0 -0
- data/example/assets/images/loading.gif +0 -0
- data/example/assets/javascripts/1-jquery.min.js +0 -32
- data/example/assets/javascripts/2-jquery-form.min.js +0 -5
- data/example/assets/javascripts/3-comments.js +0 -45
- data/example/assets/javascripts/4-coderay.js +0 -13
- data/example/assets/print.css +0 -76
- data/example/assets/stylesheets/1-reset.css +0 -23
- data/example/assets/stylesheets/2-typo.css +0 -40
- data/example/assets/stylesheets/3-table.css +0 -23
- data/example/assets/stylesheets/4-article.css +0 -15
- data/example/assets/stylesheets/5-comments.css +0 -20
- data/example/assets/stylesheets/6-diff.css +0 -25
- data/example/assets/stylesheets/7-blog.css +0 -33
- data/example/config.ru +0 -6
- data/example/config/blog.yml +0 -10
- data/example/pages/about.md +0 -7
- data/example/templates/_comment_form.rhtml +0 -90
- data/example/templates/_comments.rhtml +0 -11
- data/example/templates/_pagination.rhtml +0 -10
- data/example/templates/comments.rhtml +0 -1
- data/example/templates/layout.rhtml +0 -82
- data/lib/shinmun/aggregations/delicious.rb +0 -57
- data/lib/shinmun/aggregations/flickr.rb +0 -81
- data/lib/shinmun/post_handler.rb +0 -16
- data/test/templates/archive.rhtml +0 -6
- data/test/templates/category.rhtml +0 -6
- data/test/templates/category.rxml +0 -20
- data/test/templates/index.rhtml +0 -4
- data/test/templates/index.rxml +0 -21
- data/test/templates/layout.rhtml +0 -9
- data/test/templates/page.rhtml +0 -2
- data/test/templates/post.rhtml +0 -3
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<rss version="2.0">
|
3
|
-
<channel>
|
4
|
-
<title><%= @name %></title>
|
5
|
-
<link><%= @blog.url %>/categories/<%= urlify @name %>.html</link>
|
6
|
-
<language><%= @blog.language %></language>
|
7
|
-
<copyright><%= @blog.author %></copyright>
|
8
|
-
<pubDate><%= rfc822 Time.now %></pubDate>
|
9
|
-
<% for post in @posts[0, 20] %>
|
10
|
-
<item>
|
11
|
-
<title><%= post.title %></title>
|
12
|
-
<category><%= post.category %></category>
|
13
|
-
<description><%= strip_tags post.summary %></description>
|
14
|
-
<author><%= @author || @blog.author %></author>
|
15
|
-
<link><%= @blog.url + post_path(post) %></link>
|
16
|
-
<pubDate><%= rfc822 post.date %></pubDate>
|
17
|
-
</item>
|
18
|
-
<% end %>
|
19
|
-
</channel>
|
20
|
-
</rss>
|
data/test/templates/index.rhtml
DELETED
data/test/templates/index.rxml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<rss version="2.0">
|
3
|
-
<channel>
|
4
|
-
<title><%= @blog.title %></title>
|
5
|
-
<link><%= @blog.url %></link>
|
6
|
-
<description><%= @blog.description %></description>
|
7
|
-
<language><%= @blog.language %></language>
|
8
|
-
<copyright><%= @blog.author %></copyright>
|
9
|
-
<pubDate><%= rfc822 Time.now %></pubDate>
|
10
|
-
<% for post in @blog.recent_posts %>
|
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>
|
18
|
-
</item>
|
19
|
-
<% end %>
|
20
|
-
</channel>
|
21
|
-
</rss>
|
data/test/templates/layout.rhtml
DELETED
data/test/templates/page.rhtml
DELETED
data/test/templates/post.rhtml
DELETED