georgi-shinmun 0.4.1 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/README.md +23 -31
  2. data/assets/print.css +76 -0
  3. data/assets/styles.css +91 -0
  4. data/bin/shinmun +16 -8
  5. data/config.ru +16 -0
  6. data/lib/shinmun.rb +1 -4
  7. data/lib/shinmun/blog.rb +110 -100
  8. data/lib/shinmun/comment.rb +1 -1
  9. data/lib/shinmun/handlers.rb +19 -0
  10. data/lib/shinmun/helpers.rb +1 -1
  11. data/lib/shinmun/routes.rb +25 -36
  12. data/templates/404.rhtml +4 -0
  13. data/templates/_comment_form.rhtml +21 -0
  14. data/{test/templates → templates}/_comments.rhtml +0 -0
  15. data/{example/templates → templates}/archive.rhtml +0 -1
  16. data/{example/templates → templates}/category.rhtml +1 -2
  17. data/{example/templates → templates}/category.rxml +0 -0
  18. data/{example/templates → templates}/index.rhtml +0 -1
  19. data/{example/templates → templates}/index.rxml +0 -0
  20. data/templates/layout.rhtml +44 -0
  21. data/{example/templates → templates}/page.rhtml +0 -2
  22. data/{example/templates → templates}/post.rhtml +6 -21
  23. data/test/blog_spec.rb +48 -81
  24. metadata +17 -44
  25. data/example/Rakefile +0 -41
  26. data/example/assets/images/favicon.ico +0 -0
  27. data/example/assets/images/loading.gif +0 -0
  28. data/example/assets/javascripts/1-jquery.min.js +0 -32
  29. data/example/assets/javascripts/2-jquery-form.min.js +0 -5
  30. data/example/assets/javascripts/3-comments.js +0 -45
  31. data/example/assets/javascripts/4-coderay.js +0 -13
  32. data/example/assets/print.css +0 -76
  33. data/example/assets/stylesheets/1-reset.css +0 -23
  34. data/example/assets/stylesheets/2-typo.css +0 -40
  35. data/example/assets/stylesheets/3-table.css +0 -23
  36. data/example/assets/stylesheets/4-article.css +0 -15
  37. data/example/assets/stylesheets/5-comments.css +0 -20
  38. data/example/assets/stylesheets/6-diff.css +0 -25
  39. data/example/assets/stylesheets/7-blog.css +0 -33
  40. data/example/config.ru +0 -6
  41. data/example/config/blog.yml +0 -10
  42. data/example/pages/about.md +0 -7
  43. data/example/templates/_comment_form.rhtml +0 -90
  44. data/example/templates/_comments.rhtml +0 -11
  45. data/example/templates/_pagination.rhtml +0 -10
  46. data/example/templates/comments.rhtml +0 -1
  47. data/example/templates/layout.rhtml +0 -82
  48. data/lib/shinmun/aggregations/delicious.rb +0 -57
  49. data/lib/shinmun/aggregations/flickr.rb +0 -81
  50. data/lib/shinmun/post_handler.rb +0 -16
  51. data/test/templates/archive.rhtml +0 -6
  52. data/test/templates/category.rhtml +0 -6
  53. data/test/templates/category.rxml +0 -20
  54. data/test/templates/index.rhtml +0 -4
  55. data/test/templates/index.rxml +0 -21
  56. data/test/templates/layout.rhtml +0 -9
  57. data/test/templates/page.rhtml +0 -2
  58. data/test/templates/post.rhtml +0 -3
@@ -1,6 +0,0 @@
1
- <h1><%= "#{Date::MONTHNAMES[@month]} #{@year}" %></h1>
2
-
3
- <% for post in @posts %>
4
- <h2><%= post_link post %></h2>
5
- <%= post.summary %>
6
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1><%= @name %></h1>
2
-
3
- <% for post in @posts[0, 20] %>
4
- <h2><%= post_link post %></h2>
5
- <%= post.summary %>
6
- <% end %>
@@ -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>
@@ -1,4 +0,0 @@
1
- <% for post in @blog.recent_posts %>
2
- <h2><%= post_link post %></h2>
3
- <%= post.summary %>
4
- <% end %>
@@ -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>
@@ -1,9 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title><%= @blog.title %></title>
5
- </head>
6
- <body>
7
- <%= @content %>
8
- </body>
9
- </html>
@@ -1,2 +0,0 @@
1
- <h1><%= @page.title %></h1>
2
- <%= @page.body_html %>
@@ -1,3 +0,0 @@
1
- <h1><%= @post.title %></h1>
2
- <%= human_date @post.date %>
3
- <%= @post.body_html %>