postview 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/ABOUT +9 -0
  2. data/HISTORY +27 -1
  3. data/Rakefile +3 -1
  4. data/VERSION +4 -4
  5. data/bin/postview +2 -2
  6. data/lib/postview.rb +64 -13
  7. data/lib/postview/application.rb +34 -21
  8. data/lib/postview/authentication.rb +36 -0
  9. data/lib/postview/cli.rb +10 -0
  10. data/lib/postview/cli/create_command.rb +53 -37
  11. data/lib/postview/cli/server_command.rb +2 -2
  12. data/lib/postview/extensions.rb +10 -0
  13. data/lib/postview/helpers.rb +3 -0
  14. data/lib/postview/settings.rb +19 -17
  15. data/lib/postview/site.rb +13 -1
  16. data/lib/postview/version.rb +1 -1
  17. data/tasks/package.rake +80 -2
  18. data/test/application_test.rb +29 -14
  19. data/test/{extensions.rb → customizations.rb} +1 -0
  20. data/test/fixtures/application/config/settings.yml +4 -1
  21. data/test/fixtures/application/themes/{gemstone → mytheme}/images/banners/banner.jpg +0 -0
  22. data/test/fixtures/application/themes/{gemstone → mytheme}/images/favicon.ico +0 -0
  23. data/test/fixtures/application/themes/{gemstone → mytheme}/images/logo.png +0 -0
  24. data/test/fixtures/application/themes/{gemstone → mytheme}/images/navigation-bar.gif +0 -0
  25. data/test/fixtures/application/themes/{gemstone → mytheme}/images/postview.png +0 -0
  26. data/test/fixtures/application/themes/{gemstone → mytheme}/images/rack.png +0 -0
  27. data/test/fixtures/application/themes/{gemstone → mytheme}/images/ruby.png +0 -0
  28. data/test/fixtures/application/themes/{gemstone → mytheme}/images/sinatra.png +0 -0
  29. data/test/fixtures/application/themes/{gemstone → mytheme}/images/trojan.com +0 -0
  30. data/test/fixtures/application/themes/{gemstone/javascripts/gemstone.js → mytheme/javascripts/postview.js} +0 -0
  31. data/test/fixtures/application/themes/{gemstone → mytheme}/stylesheets/gemstone.css +0 -0
  32. data/test/fixtures/application/themes/{gemstone → mytheme}/stylesheets/postview.css +0 -0
  33. data/test/fixtures/application/themes/mytheme/templates/about.erb +1 -0
  34. data/test/fixtures/application/themes/mytheme/templates/archive/index.erb +3 -0
  35. data/test/fixtures/application/themes/mytheme/templates/archive/show.erb +1 -0
  36. data/test/fixtures/application/themes/mytheme/templates/drafts/index.erb +3 -0
  37. data/test/fixtures/application/themes/mytheme/templates/drafts/show.erb +1 -0
  38. data/test/fixtures/application/themes/mytheme/templates/error.erb +1 -0
  39. data/test/fixtures/application/themes/mytheme/templates/index.erb +3 -0
  40. data/{themes/default → test/fixtures/application/themes/mytheme/templates}/layout.erb +2 -2
  41. data/test/fixtures/application/themes/mytheme/templates/posts/index.erb +3 -0
  42. data/test/fixtures/application/themes/mytheme/templates/posts/show.erb +1 -0
  43. data/test/fixtures/application/themes/mytheme/templates/search.erb +6 -0
  44. data/test/fixtures/application/themes/mytheme/templates/tags/index.erb +3 -0
  45. data/test/fixtures/application/themes/mytheme/templates/tags/show.erb +6 -0
  46. data/test/fixtures/site/blog/config.ru +6 -0
  47. data/test/fixtures/site/blog/config/settings.yml +25 -0
  48. data/test/fixtures/{application/themes/gemstone/error.erb → site/blog/empty.yml} +0 -0
  49. data/test/fixtures/site/blog/posts/20090529-third_article.t1.t2.t3.mkd +4 -0
  50. data/test/fixtures/site/blog/posts/20090602-fourth_article.t1.t2.t3.t4.mkd +4 -0
  51. data/test/fixtures/site/blog/posts/archive/20080529-first_article.t1.mkd +4 -0
  52. data/test/fixtures/site/blog/posts/archive/20080602-second_article.t1.t2.mkd +4 -0
  53. data/test/fixtures/site/blog/posts/drafts/20090730-fifth_article.t1.t2.t3.t4.t5.mkd +4 -0
  54. data/{themes/default/error.erb → test/fixtures/site/themes/mytheme/images/banners/banner.jpg} +0 -0
  55. data/test/fixtures/site/themes/mytheme/images/favicon.ico +0 -0
  56. data/test/fixtures/site/themes/mytheme/images/logo.png +0 -0
  57. data/test/fixtures/site/themes/mytheme/images/navigation-bar.gif +0 -0
  58. data/test/fixtures/site/themes/mytheme/images/postview.png +0 -0
  59. data/test/fixtures/site/themes/mytheme/images/rack.png +0 -0
  60. data/test/fixtures/site/themes/mytheme/images/ruby.png +0 -0
  61. data/test/fixtures/site/themes/mytheme/images/sinatra.png +0 -0
  62. data/test/fixtures/site/themes/mytheme/images/trojan.com +0 -0
  63. data/test/fixtures/site/themes/mytheme/javascripts/postview.js +1 -0
  64. data/test/fixtures/site/themes/mytheme/stylesheets/gemstone.css +1 -0
  65. data/test/fixtures/site/themes/mytheme/stylesheets/postview.css +238 -0
  66. data/test/fixtures/site/themes/mytheme/templates/about.erb +1 -0
  67. data/test/fixtures/site/themes/mytheme/templates/archive/index.erb +3 -0
  68. data/test/fixtures/site/themes/mytheme/templates/archive/show.erb +1 -0
  69. data/test/fixtures/site/themes/mytheme/templates/drafts/index.erb +3 -0
  70. data/test/fixtures/site/themes/mytheme/templates/drafts/show.erb +1 -0
  71. data/test/fixtures/site/themes/mytheme/templates/error.erb +1 -0
  72. data/test/fixtures/site/themes/mytheme/templates/index.erb +3 -0
  73. data/test/fixtures/{application/themes/gemstone → site/themes/mytheme/templates}/layout.erb +20 -14
  74. data/test/fixtures/site/themes/mytheme/templates/posts/index.erb +3 -0
  75. data/test/fixtures/site/themes/mytheme/templates/posts/show.erb +1 -0
  76. data/test/fixtures/site/themes/mytheme/templates/search.erb +6 -0
  77. data/test/fixtures/site/themes/mytheme/templates/tags/index.erb +3 -0
  78. data/test/fixtures/site/themes/mytheme/templates/tags/show.erb +6 -0
  79. data/test/helpers_test.rb +1 -2
  80. data/test/settings_test.rb +12 -3
  81. data/test/site_test.rb +3 -4
  82. data/themes/default/stylesheets/postview.css +1 -0
  83. data/themes/default/{about.erb → templates/about.erb} +1 -1
  84. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/archive/index.erb +0 -0
  85. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/archive/show.erb +0 -0
  86. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/drafts/index.erb +1 -1
  87. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/drafts/show.erb +0 -0
  88. data/themes/default/templates/error.erb +13 -0
  89. data/themes/default/{index.erb → templates/index.erb} +1 -1
  90. data/themes/default/templates/layout.erb +130 -0
  91. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/posts/index.erb +0 -0
  92. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/posts/show.erb +0 -0
  93. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/search.erb +0 -0
  94. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/tags/index.erb +0 -0
  95. data/{test/fixtures/application/themes/gemstone → themes/default/templates}/tags/show.erb +0 -0
  96. metadata +164 -61
  97. data/INFO +0 -14
  98. data/lib/postview/about.rb +0 -34
  99. data/test/fixtures/application/themes/gemstone/about.erb +0 -22
  100. data/test/fixtures/application/themes/gemstone/index.erb +0 -38
  101. data/test/helper.rb +0 -9
  102. data/themes/default/archive/index.erb +0 -21
  103. data/themes/default/archive/show.erb +0 -17
  104. data/themes/default/drafts/index.erb +0 -21
  105. data/themes/default/drafts/show.erb +0 -17
  106. data/themes/default/posts/index.erb +0 -21
  107. data/themes/default/posts/show.erb +0 -17
  108. data/themes/default/search.erb +0 -40
  109. data/themes/default/tags/index.erb +0 -12
  110. data/themes/default/tags/show.erb +0 -40
@@ -0,0 +1,3 @@
1
+ <%for post in all_posts%>
2
+ <%=post%>
3
+ <%end%>
@@ -0,0 +1 @@
1
+ <%=current_post%>
@@ -0,0 +1,6 @@
1
+ <%for post in posts_found%>
2
+ <%=post%>
3
+ <%end%>
4
+ <%for post in archived_posts_found%>
5
+ <%=post%>
6
+ <%end%>
@@ -0,0 +1,3 @@
1
+ <%for tag in all_tags%>
2
+ <%=tag%>
3
+ <%end%>
@@ -0,0 +1,6 @@
1
+ <%for post in posts_found%>
2
+ <%=post%>
3
+ <%end%>
4
+ <%for post in archived_posts_found%>
5
+ <%=post%>
6
+ <%end%>
data/test/helpers_test.rb CHANGED
@@ -3,8 +3,7 @@ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/..")
3
3
  require 'lib/postview'
4
4
  require 'test/unit'
5
5
  require 'rack/test'
6
- require 'test/helper'
7
- require 'test/extensions'
6
+ require 'test/customizations'
8
7
 
9
8
  class HelpersTest < Test::Unit::TestCase
10
9
 
@@ -2,7 +2,8 @@ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/..")
2
2
 
3
3
  require 'lib/postview'
4
4
  require 'test/unit'
5
- require 'test/helper'
5
+ require 'rack/test'
6
+ require 'test/customizations'
6
7
 
7
8
  class SettingsTest < Test::Unit::TestCase
8
9
 
@@ -15,12 +16,13 @@ class SettingsTest < Test::Unit::TestCase
15
16
  :email => "jack.ducklet@example.com",
16
17
  :domain => "jackd.example.com",
17
18
  :directory => "path/to/site",
18
- :theme => "gemstone"
19
+ :theme => "mytheme"
19
20
  },
20
21
  :directories => {
21
22
  :posts => "posts",
22
23
  :archive => "posts/archive",
23
- :drafts => "posts/drafts"
24
+ :drafts => "posts/drafts",
25
+ :themes => "themes"
24
26
  },
25
27
  :sections => {
26
28
  :root => "/",
@@ -32,6 +34,7 @@ class SettingsTest < Test::Unit::TestCase
32
34
  :about => "about"
33
35
  }
34
36
  }
37
+ Postview::path = "test/fixtures/application"
35
38
  @settings = Postview::Settings.load
36
39
  end
37
40
 
@@ -68,5 +71,11 @@ class SettingsTest < Test::Unit::TestCase
68
71
  end
69
72
  end
70
73
 
74
+ should "load theme from shared directory" do
75
+ site_path = Pathname.new("test/fixtures/site").expand_path
76
+ Postview::path = site_path.join("blog")
77
+ assert_equal site_path.join("themes"), Postview::Settings.load.path_to(:themes)
78
+ end
79
+
71
80
  end
72
81
 
data/test/site_test.rb CHANGED
@@ -1,9 +1,8 @@
1
- $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/..")
1
+ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../")
2
2
 
3
3
  require 'lib/postview'
4
4
  require 'test/unit'
5
- require 'test/helper'
6
- require 'test/extensions'
5
+ require 'test/customizations'
7
6
 
8
7
  class TestSite < Test::Unit::TestCase
9
8
 
@@ -18,7 +17,7 @@ class TestSite < Test::Unit::TestCase
18
17
  assert_equal 'jack.ducklet@example.com', @site.email
19
18
  assert_equal 'jackd.example.com', @site.domain
20
19
  assert_equal 'path/to/site', @site.directory
21
- assert_equal 'gemstone', @site.theme
20
+ assert_equal 'mytheme', @site.theme
22
21
  end
23
22
 
24
23
  should "find all posts" do
@@ -82,6 +82,7 @@ pre {
82
82
  font: 13.34px monaco,terminus,courrier,monospace;
83
83
  color: #000;
84
84
  background-color: #DDD;
85
+ border: 2px solid #AAA;
85
86
  }
86
87
 
87
88
  code {
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="text">
6
6
 
7
- <%=Postview::About.to_html%>
7
+ <%=Postview::about_to_html%>
8
8
 
9
9
  <p>
10
10
  <%=Postview.name%> uses the following libraries/projects:
@@ -7,7 +7,7 @@
7
7
  <dl>
8
8
  <% for post in all_drafted_posts %>
9
9
  <dt>
10
- <b><%=link_to "#{post.publish_date} - #{post.title}", :posts, post%></b>
10
+ <b><%=link_to "#{post.publish_date} - #{post.title}", :drafts, post%></b>
11
11
  (<%= post.tags.map{ |tag| link_to tag.capitalize, :tags, tag, :title => tag.capitalize }.join(', ') %>)
12
12
  </dt>
13
13
 
@@ -0,0 +1,13 @@
1
+ <div class="entry">
2
+
3
+ <h1>Error</h1>
4
+
5
+ <div class="text">
6
+
7
+ <p>
8
+ <%=error_message%>
9
+ </p>
10
+
11
+ </div><!--text-->
12
+
13
+ </div><!-- entry -->
@@ -6,7 +6,7 @@
6
6
 
7
7
  <span class="entry-meta">
8
8
  Published at <%= post.publish_date.strftime('%A, %B %d, %Y') %>,
9
- tagged with <%= post.tags.map{ |tag| link_to tag.capitalize, :posts, tag, :title => tag.capitalize }.join(', ') %>.
9
+ tagged with <%= post.tags.map{ |tag| link_to tag.capitalize, :tags, tag, :title => tag.capitalize }.join(', ') %>.
10
10
  </span>
11
11
 
12
12
  <div class="text">
@@ -0,0 +1,130 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+
4
+ <head>
5
+
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+ <title><%=site.title%> :: <%=page.title%></title>
8
+ <meta name="generator" content="<%=Postview::version_summary%>" />
9
+ <meta name="description" content="<%=site.subtitle%>" />
10
+ <meta name="keywords" content="<%=page.keywords%>" />
11
+ <link rel="shortcut icon" href="<%=path_to :images, "favicon.ico"%>" />
12
+ <link rel="stylesheet" type="text/css" href="<%=path_to :stylesheets, "postview.css"%>" />
13
+
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="header">
19
+
20
+ <h1><%=link_to site.title, :root, :title => "#{site.title}"%></h1>
21
+
22
+ <h2><%=page.title || site.subtitle%></h2>
23
+
24
+ <span>By <%=link_to site.author, "mailto:#{site.email}", :title => "Send mail to #{site.author}"%></span>
25
+
26
+ <img src="<%=path_to "/images/logo.png"%>" id="logo" alt="Postview" />
27
+
28
+ </div><!-- header -->
29
+
30
+ <br/>
31
+
32
+ <div id="navigation-bar">
33
+
34
+ <address>
35
+
36
+ <%=link_to "Home", :root, :title => site.title%>
37
+ <%=link_to title_path(:posts), :posts, :title => title_path(:posts)%>
38
+ <%=link_to title_path(:archive), :archive, :title => title_path(:archive)%>
39
+ <%=link_to title_path(:about), :about, :title => title_path(:about)%>
40
+
41
+ </address>
42
+
43
+ <form action="<%=path_to :search%>" method="get">
44
+ <input type="text" name="keyword" value="<%=title_path :search%>" onfocus="this.value=''" onblur="this.value='<%=title_path :search%>'" title="<%=title_path :search%>"/>
45
+ </form>
46
+
47
+ </div><!-- navigation-bar -->
48
+
49
+ <br/>
50
+
51
+ <div id="content">
52
+
53
+ <%=yield%>
54
+
55
+ </div>
56
+
57
+ <div id="options">
58
+
59
+ <div class="entry">
60
+
61
+ <h1>Related Posts</h1>
62
+
63
+ <div class="text">
64
+
65
+ <h2>Published</h2>
66
+
67
+ <ul>
68
+ <% for post in related_posts_in :posts %>
69
+ <li><%= link_to "#{post.publish_date} - #{post.title}", :posts, post, :title => post.title %></li>
70
+ <% end %>
71
+ </ul>
72
+
73
+ <h2>Archived</h2>
74
+
75
+ <ul>
76
+ <% for post in related_posts_in :archive %>
77
+ <li><%= link_to "#{post.publish_date} - #{post.title}", :archive, post, :title => post.title %></li>
78
+ <% end %>
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+
84
+ <div class="entry">
85
+
86
+ <h1>Related Tags</h1>
87
+
88
+ <ul>
89
+ <% for tag in all_related_tags %>
90
+ <li><%= link_to "#{tag.capitalize} (#{count_posts_by_tag(tag)})", :tags, tag, :title => tag.capitalize %></li>
91
+ <% end %>
92
+ </ul>
93
+
94
+ </div>
95
+
96
+ <div class="entry">
97
+
98
+ <div class="text">
99
+
100
+ <p>
101
+ <span><a href="http://github.com/hallison/postview" title="Project hosted by Github"><img alt="Project hosted by Github" src="http://github.com/images/modules/header/logov3.png" border="0" /></a></span>
102
+ <span><a href="http://www.pledgie.com/campaigns/5600" title="Donations"><img alt="Click here to lend your support to: postview and make a donation at www.pledgie.com !" src="http://www.pledgie.com/campaigns/5600.png?skin_name=chrome" border="0" /></a></span>
103
+ </p>
104
+
105
+ <p>
106
+ <span><a href="http://www.ruby-lang.org/" title="Ruby programming language"><img alt="Ruby programming language" src="<%=path_to "/images/ruby.png"%>" border="0" /></a></span>
107
+ <span><a href="http://rack.rubyforge.org/" title="Powers Web Applications"><img alt="Rack"src="<%=path_to "/images/rack.png"%>" border="0" /></a></span>
108
+ <span><a href="http://www.sinatrarb.com/" title="Sinatra DSL"><img alt="Sinatra DSL"src="<%=path_to "/images/sinatra.png"%>" border="0" /></a></span>
109
+ </p>
110
+
111
+ </div>
112
+
113
+ </div>
114
+
115
+ </div><!-- options -->
116
+
117
+ <br/>
118
+
119
+ <div id="footer">
120
+
121
+ <p>
122
+ <small><%=site.title%> &copy; 2009 <%=site.author%>. Powered by <%=link_to Postview::version_summary, "http://github.com/hallison/postview"%>.</small>
123
+ </p>
124
+
125
+ </div><!-- footer -->
126
+
127
+ </body>
128
+
129
+ </html>
130
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hallison Batista
@@ -9,28 +9,28 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-17 00:00:00 -04:00
12
+ date: 2009-10-14 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: sinatra-mapping
16
+ name: sinatra
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.5
23
+ version: 0.9.1.1
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: sinatra
26
+ name: sinatra-mapping
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.1.1
33
+ version: 1.0.5
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: postage
@@ -42,7 +42,7 @@ dependencies:
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.1.4.1
44
44
  version:
45
- description: Postview is a simple blog-engine written in Ruby using the Sinatra DSL for render files written in Markdown.
45
+ description: Postview is a simple blogware written in Ruby using the Sinatra DSL for render files written in Markdown.
46
46
  email: email@hallisonbatista.com
47
47
  executables:
48
48
  - postview
@@ -52,30 +52,35 @@ extra_rdoc_files:
52
52
  - README.rdoc
53
53
  - LICENSE
54
54
  files:
55
+ - ABOUT
55
56
  - HISTORY
56
- - INFO
57
57
  - LICENSE
58
58
  - Rakefile
59
- - README.rdoc
60
59
  - VERSION
60
+ - README.rdoc
61
+ - bin/postview
61
62
  - lib/postview/settings.rb
62
63
  - lib/postview/cli/server_command.rb
63
64
  - lib/postview/cli/create_command.rb
64
65
  - lib/postview/version.rb
65
66
  - lib/postview/site.rb
66
- - lib/postview/about.rb
67
67
  - lib/postview/application.rb
68
68
  - lib/postview/patches.rb
69
+ - lib/postview/authentication.rb
69
70
  - lib/postview/cli.rb
70
71
  - lib/postview/helpers.rb
71
72
  - lib/postview/extensions.rb
72
73
  - lib/postview.rb
73
- - test/helper.rb
74
+ - tasks/homepage.rake
75
+ - tasks/version.rake
76
+ - tasks/documentation.rake
77
+ - tasks/package.rake
78
+ - tasks/history.rake
79
+ - test/customizations.rb
74
80
  - test/site_test.rb
75
81
  - test/helpers_test.rb
76
82
  - test/settings_test.rb
77
83
  - test/application_test.rb
78
- - test/extensions.rb
79
84
  - test/fixtures/application/posts/archive/20080602-second_article.t1.t2.mkd
80
85
  - test/fixtures/application/posts/archive/20080529-first_article.t1.mkd
81
86
  - test/fixtures/application/posts/20090602-fourth_article.t1.t2.t3.t4.mkd
@@ -83,51 +88,79 @@ files:
83
88
  - test/fixtures/application/posts/20090529-third_article.t1.t2.t3.mkd
84
89
  - test/fixtures/application/config/settings.yml
85
90
  - test/fixtures/application/empty.yml
86
- - test/fixtures/application/themes/gemstone/search.erb
87
- - test/fixtures/application/themes/gemstone/posts/index.erb
88
- - test/fixtures/application/themes/gemstone/posts/show.erb
89
- - test/fixtures/application/themes/gemstone/error.erb
90
- - test/fixtures/application/themes/gemstone/layout.erb
91
- - test/fixtures/application/themes/gemstone/stylesheets/gemstone.css
92
- - test/fixtures/application/themes/gemstone/stylesheets/postview.css
93
- - test/fixtures/application/themes/gemstone/tags/index.erb
94
- - test/fixtures/application/themes/gemstone/tags/show.erb
95
- - test/fixtures/application/themes/gemstone/javascripts/gemstone.js
96
- - test/fixtures/application/themes/gemstone/archive/index.erb
97
- - test/fixtures/application/themes/gemstone/archive/show.erb
98
- - test/fixtures/application/themes/gemstone/index.erb
99
- - test/fixtures/application/themes/gemstone/about.erb
100
- - test/fixtures/application/themes/gemstone/drafts/index.erb
101
- - test/fixtures/application/themes/gemstone/drafts/show.erb
102
- - test/fixtures/application/themes/gemstone/images/rack.png
103
- - test/fixtures/application/themes/gemstone/images/ruby.png
104
- - test/fixtures/application/themes/gemstone/images/trojan.com
105
- - test/fixtures/application/themes/gemstone/images/logo.png
106
- - test/fixtures/application/themes/gemstone/images/navigation-bar.gif
107
- - test/fixtures/application/themes/gemstone/images/banners/banner.jpg
108
- - test/fixtures/application/themes/gemstone/images/favicon.ico
109
- - test/fixtures/application/themes/gemstone/images/sinatra.png
110
- - test/fixtures/application/themes/gemstone/images/postview.png
91
+ - test/fixtures/application/themes/mytheme/templates/search.erb
92
+ - test/fixtures/application/themes/mytheme/templates/posts/index.erb
93
+ - test/fixtures/application/themes/mytheme/templates/posts/show.erb
94
+ - test/fixtures/application/themes/mytheme/templates/error.erb
95
+ - test/fixtures/application/themes/mytheme/templates/layout.erb
96
+ - test/fixtures/application/themes/mytheme/templates/tags/index.erb
97
+ - test/fixtures/application/themes/mytheme/templates/tags/show.erb
98
+ - test/fixtures/application/themes/mytheme/templates/archive/index.erb
99
+ - test/fixtures/application/themes/mytheme/templates/archive/show.erb
100
+ - test/fixtures/application/themes/mytheme/templates/index.erb
101
+ - test/fixtures/application/themes/mytheme/templates/about.erb
102
+ - test/fixtures/application/themes/mytheme/templates/drafts/index.erb
103
+ - test/fixtures/application/themes/mytheme/templates/drafts/show.erb
104
+ - test/fixtures/application/themes/mytheme/stylesheets/gemstone.css
105
+ - test/fixtures/application/themes/mytheme/stylesheets/postview.css
106
+ - test/fixtures/application/themes/mytheme/javascripts/postview.js
107
+ - test/fixtures/application/themes/mytheme/images/rack.png
108
+ - test/fixtures/application/themes/mytheme/images/ruby.png
109
+ - test/fixtures/application/themes/mytheme/images/trojan.com
110
+ - test/fixtures/application/themes/mytheme/images/logo.png
111
+ - test/fixtures/application/themes/mytheme/images/navigation-bar.gif
112
+ - test/fixtures/application/themes/mytheme/images/banners/banner.jpg
113
+ - test/fixtures/application/themes/mytheme/images/favicon.ico
114
+ - test/fixtures/application/themes/mytheme/images/sinatra.png
115
+ - test/fixtures/application/themes/mytheme/images/postview.png
111
116
  - test/fixtures/application/config.ru
112
- - tasks/homepage.rake
113
- - tasks/version.rake
114
- - tasks/documentation.rake
115
- - tasks/package.rake
116
- - tasks/history.rake
117
- - themes/default/search.erb
118
- - themes/default/posts/index.erb
119
- - themes/default/posts/show.erb
120
- - themes/default/error.erb
121
- - themes/default/layout.erb
117
+ - test/fixtures/site/themes/mytheme/templates/search.erb
118
+ - test/fixtures/site/themes/mytheme/templates/posts/index.erb
119
+ - test/fixtures/site/themes/mytheme/templates/posts/show.erb
120
+ - test/fixtures/site/themes/mytheme/templates/error.erb
121
+ - test/fixtures/site/themes/mytheme/templates/layout.erb
122
+ - test/fixtures/site/themes/mytheme/templates/tags/index.erb
123
+ - test/fixtures/site/themes/mytheme/templates/tags/show.erb
124
+ - test/fixtures/site/themes/mytheme/templates/archive/index.erb
125
+ - test/fixtures/site/themes/mytheme/templates/archive/show.erb
126
+ - test/fixtures/site/themes/mytheme/templates/index.erb
127
+ - test/fixtures/site/themes/mytheme/templates/about.erb
128
+ - test/fixtures/site/themes/mytheme/templates/drafts/index.erb
129
+ - test/fixtures/site/themes/mytheme/templates/drafts/show.erb
130
+ - test/fixtures/site/themes/mytheme/stylesheets/gemstone.css
131
+ - test/fixtures/site/themes/mytheme/stylesheets/postview.css
132
+ - test/fixtures/site/themes/mytheme/javascripts/postview.js
133
+ - test/fixtures/site/themes/mytheme/images/rack.png
134
+ - test/fixtures/site/themes/mytheme/images/ruby.png
135
+ - test/fixtures/site/themes/mytheme/images/trojan.com
136
+ - test/fixtures/site/themes/mytheme/images/logo.png
137
+ - test/fixtures/site/themes/mytheme/images/navigation-bar.gif
138
+ - test/fixtures/site/themes/mytheme/images/banners/banner.jpg
139
+ - test/fixtures/site/themes/mytheme/images/favicon.ico
140
+ - test/fixtures/site/themes/mytheme/images/sinatra.png
141
+ - test/fixtures/site/themes/mytheme/images/postview.png
142
+ - test/fixtures/site/blog/posts/archive/20080602-second_article.t1.t2.mkd
143
+ - test/fixtures/site/blog/posts/archive/20080529-first_article.t1.mkd
144
+ - test/fixtures/site/blog/posts/20090602-fourth_article.t1.t2.t3.t4.mkd
145
+ - test/fixtures/site/blog/posts/drafts/20090730-fifth_article.t1.t2.t3.t4.t5.mkd
146
+ - test/fixtures/site/blog/posts/20090529-third_article.t1.t2.t3.mkd
147
+ - test/fixtures/site/blog/config/settings.yml
148
+ - test/fixtures/site/blog/empty.yml
149
+ - test/fixtures/site/blog/config.ru
150
+ - themes/default/templates/search.erb
151
+ - themes/default/templates/posts/index.erb
152
+ - themes/default/templates/posts/show.erb
153
+ - themes/default/templates/error.erb
154
+ - themes/default/templates/layout.erb
155
+ - themes/default/templates/tags/index.erb
156
+ - themes/default/templates/tags/show.erb
157
+ - themes/default/templates/archive/index.erb
158
+ - themes/default/templates/archive/show.erb
159
+ - themes/default/templates/index.erb
160
+ - themes/default/templates/about.erb
161
+ - themes/default/templates/drafts/index.erb
162
+ - themes/default/templates/drafts/show.erb
122
163
  - themes/default/stylesheets/postview.css
123
- - themes/default/tags/index.erb
124
- - themes/default/tags/show.erb
125
- - themes/default/archive/index.erb
126
- - themes/default/archive/show.erb
127
- - themes/default/index.erb
128
- - themes/default/about.erb
129
- - themes/default/drafts/index.erb
130
- - themes/default/drafts/show.erb
131
164
  - themes/default/images/rack.png
132
165
  - themes/default/images/ruby.png
133
166
  - themes/default/images/logo.png
@@ -141,7 +174,7 @@ licenses: []
141
174
 
142
175
  post_install_message: |
143
176
  ------------------------------------------------------------------------------
144
- Postview v0.8.1 (September, 17 2009, Beta release)
177
+ Postview v0.9.0 (October 14, 2009, Beta)
145
178
 
146
179
  Thanks for use this lightweight blogware. Now, you can read your posts by
147
180
  editing in your favorite editor.
@@ -153,9 +186,9 @@ rdoc_options:
153
186
  - --line-numbers
154
187
  - --inline-source
155
188
  - --title
156
- - Postview
189
+ - Postview v0.9.0 (October 14, 2009, Beta)
157
190
  - --main
158
- - README
191
+ - README.rdoc
159
192
  require_paths:
160
193
  - lib
161
194
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -176,6 +209,76 @@ rubyforge_project: postview
176
209
  rubygems_version: 1.3.5
177
210
  signing_key:
178
211
  specification_version: 3
179
- summary: Simple blog-engine that render Markdown files.
180
- test_files: []
181
-
212
+ summary: Simple blogware that render Markdown files.
213
+ test_files:
214
+ - test/customizations.rb
215
+ - test/site_test.rb
216
+ - test/helpers_test.rb
217
+ - test/settings_test.rb
218
+ - test/application_test.rb
219
+ - test/fixtures/application/posts/archive/20080602-second_article.t1.t2.mkd
220
+ - test/fixtures/application/posts/archive/20080529-first_article.t1.mkd
221
+ - test/fixtures/application/posts/20090602-fourth_article.t1.t2.t3.t4.mkd
222
+ - test/fixtures/application/posts/drafts/20090730-fifth_article.t1.t2.t3.t4.t5.mkd
223
+ - test/fixtures/application/posts/20090529-third_article.t1.t2.t3.mkd
224
+ - test/fixtures/application/config/settings.yml
225
+ - test/fixtures/application/empty.yml
226
+ - test/fixtures/application/themes/mytheme/templates/search.erb
227
+ - test/fixtures/application/themes/mytheme/templates/posts/index.erb
228
+ - test/fixtures/application/themes/mytheme/templates/posts/show.erb
229
+ - test/fixtures/application/themes/mytheme/templates/error.erb
230
+ - test/fixtures/application/themes/mytheme/templates/layout.erb
231
+ - test/fixtures/application/themes/mytheme/templates/tags/index.erb
232
+ - test/fixtures/application/themes/mytheme/templates/tags/show.erb
233
+ - test/fixtures/application/themes/mytheme/templates/archive/index.erb
234
+ - test/fixtures/application/themes/mytheme/templates/archive/show.erb
235
+ - test/fixtures/application/themes/mytheme/templates/index.erb
236
+ - test/fixtures/application/themes/mytheme/templates/about.erb
237
+ - test/fixtures/application/themes/mytheme/templates/drafts/index.erb
238
+ - test/fixtures/application/themes/mytheme/templates/drafts/show.erb
239
+ - test/fixtures/application/themes/mytheme/stylesheets/gemstone.css
240
+ - test/fixtures/application/themes/mytheme/stylesheets/postview.css
241
+ - test/fixtures/application/themes/mytheme/javascripts/postview.js
242
+ - test/fixtures/application/themes/mytheme/images/rack.png
243
+ - test/fixtures/application/themes/mytheme/images/ruby.png
244
+ - test/fixtures/application/themes/mytheme/images/trojan.com
245
+ - test/fixtures/application/themes/mytheme/images/logo.png
246
+ - test/fixtures/application/themes/mytheme/images/navigation-bar.gif
247
+ - test/fixtures/application/themes/mytheme/images/banners/banner.jpg
248
+ - test/fixtures/application/themes/mytheme/images/favicon.ico
249
+ - test/fixtures/application/themes/mytheme/images/sinatra.png
250
+ - test/fixtures/application/themes/mytheme/images/postview.png
251
+ - test/fixtures/application/config.ru
252
+ - test/fixtures/site/themes/mytheme/templates/search.erb
253
+ - test/fixtures/site/themes/mytheme/templates/posts/index.erb
254
+ - test/fixtures/site/themes/mytheme/templates/posts/show.erb
255
+ - test/fixtures/site/themes/mytheme/templates/error.erb
256
+ - test/fixtures/site/themes/mytheme/templates/layout.erb
257
+ - test/fixtures/site/themes/mytheme/templates/tags/index.erb
258
+ - test/fixtures/site/themes/mytheme/templates/tags/show.erb
259
+ - test/fixtures/site/themes/mytheme/templates/archive/index.erb
260
+ - test/fixtures/site/themes/mytheme/templates/archive/show.erb
261
+ - test/fixtures/site/themes/mytheme/templates/index.erb
262
+ - test/fixtures/site/themes/mytheme/templates/about.erb
263
+ - test/fixtures/site/themes/mytheme/templates/drafts/index.erb
264
+ - test/fixtures/site/themes/mytheme/templates/drafts/show.erb
265
+ - test/fixtures/site/themes/mytheme/stylesheets/gemstone.css
266
+ - test/fixtures/site/themes/mytheme/stylesheets/postview.css
267
+ - test/fixtures/site/themes/mytheme/javascripts/postview.js
268
+ - test/fixtures/site/themes/mytheme/images/rack.png
269
+ - test/fixtures/site/themes/mytheme/images/ruby.png
270
+ - test/fixtures/site/themes/mytheme/images/trojan.com
271
+ - test/fixtures/site/themes/mytheme/images/logo.png
272
+ - test/fixtures/site/themes/mytheme/images/navigation-bar.gif
273
+ - test/fixtures/site/themes/mytheme/images/banners/banner.jpg
274
+ - test/fixtures/site/themes/mytheme/images/favicon.ico
275
+ - test/fixtures/site/themes/mytheme/images/sinatra.png
276
+ - test/fixtures/site/themes/mytheme/images/postview.png
277
+ - test/fixtures/site/blog/posts/archive/20080602-second_article.t1.t2.mkd
278
+ - test/fixtures/site/blog/posts/archive/20080529-first_article.t1.mkd
279
+ - test/fixtures/site/blog/posts/20090602-fourth_article.t1.t2.t3.t4.mkd
280
+ - test/fixtures/site/blog/posts/drafts/20090730-fifth_article.t1.t2.t3.t4.t5.mkd
281
+ - test/fixtures/site/blog/posts/20090529-third_article.t1.t2.t3.mkd
282
+ - test/fixtures/site/blog/config/settings.yml
283
+ - test/fixtures/site/blog/empty.yml
284
+ - test/fixtures/site/blog/config.ru