postview 0.7.0

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.
Files changed (71) hide show
  1. data/HISTORY +67 -0
  2. data/INFO +14 -0
  3. data/LICENSE +0 -0
  4. data/README.rdoc +103 -0
  5. data/Rakefile +174 -0
  6. data/VERSION +8 -0
  7. data/bin/postview +51 -0
  8. data/lib/postview.rb +68 -0
  9. data/lib/postview/about.rb +34 -0
  10. data/lib/postview/application.rb +130 -0
  11. data/lib/postview/cli.rb +71 -0
  12. data/lib/postview/cli/create_command.rb +362 -0
  13. data/lib/postview/cli/server_command.rb +115 -0
  14. data/lib/postview/helpers.rb +21 -0
  15. data/lib/postview/patches.rb +11 -0
  16. data/lib/postview/settings.rb +107 -0
  17. data/lib/postview/site.rb +51 -0
  18. data/lib/postview/version.rb +27 -0
  19. data/tasks/documentation.rake +21 -0
  20. data/tasks/history.rake +7 -0
  21. data/tasks/homepage.rake +10 -0
  22. data/tasks/package.rake +11 -0
  23. data/tasks/version.rake +56 -0
  24. data/test/application_test.rb +122 -0
  25. data/test/extensions.rb +23 -0
  26. data/test/fixtures/application/config.ru +6 -0
  27. data/test/fixtures/application/config/settings.yml +22 -0
  28. data/test/fixtures/application/empty.yml +0 -0
  29. data/test/fixtures/application/posts/20090529-postview_blogware.ruby.sinatra.mkd +4 -0
  30. data/test/fixtures/application/posts/20090602-postview_blogware.ruby.sinatra.mkd +4 -0
  31. data/test/fixtures/application/posts/archive/20080529-postview_blogware.ruby.sinatra.mkd +4 -0
  32. data/test/fixtures/application/posts/archive/20080602-postview_blogware.ruby.sinatra.mkd +4 -0
  33. data/test/fixtures/application/posts/drafts/20090730-draft_postview_blogware.ruby.sinatra.mkd +4 -0
  34. data/test/fixtures/application/themes/gemstone/about.erb +0 -0
  35. data/test/fixtures/application/themes/gemstone/archive/index.erb +0 -0
  36. data/test/fixtures/application/themes/gemstone/archive/show.erb +17 -0
  37. data/test/fixtures/application/themes/gemstone/images/banners/banner.jpg +0 -0
  38. data/test/fixtures/application/themes/gemstone/images/favicon.ico +0 -0
  39. data/test/fixtures/application/themes/gemstone/images/trojan.com +0 -0
  40. data/test/fixtures/application/themes/gemstone/index.erb +0 -0
  41. data/test/fixtures/application/themes/gemstone/javascripts/gemstone.js +1 -0
  42. data/test/fixtures/application/themes/gemstone/layout.erb +0 -0
  43. data/test/fixtures/application/themes/gemstone/posts/index.erb +0 -0
  44. data/test/fixtures/application/themes/gemstone/posts/show.erb +0 -0
  45. data/test/fixtures/application/themes/gemstone/search.erb +0 -0
  46. data/test/fixtures/application/themes/gemstone/stylesheets/gemstone.css +1 -0
  47. data/test/fixtures/application/themes/gemstone/tags/index.erb +0 -0
  48. data/test/fixtures/application/themes/gemstone/tags/show.erb +0 -0
  49. data/test/helper.rb +9 -0
  50. data/test/settings_test.rb +72 -0
  51. data/test/site_test.rb +62 -0
  52. data/themes/default/about.erb +24 -0
  53. data/themes/default/archive/index.erb +21 -0
  54. data/themes/default/archive/show.erb +17 -0
  55. data/themes/default/error.erb +0 -0
  56. data/themes/default/images/favicon.ico +0 -0
  57. data/themes/default/images/logo.png +0 -0
  58. data/themes/default/images/navigation-bar.gif +0 -0
  59. data/themes/default/images/postview.png +0 -0
  60. data/themes/default/images/rack.png +0 -0
  61. data/themes/default/images/ruby.png +0 -0
  62. data/themes/default/images/sinatra.png +0 -0
  63. data/themes/default/index.erb +38 -0
  64. data/themes/default/layout.erb +117 -0
  65. data/themes/default/posts/index.erb +21 -0
  66. data/themes/default/posts/show.erb +17 -0
  67. data/themes/default/search.erb +40 -0
  68. data/themes/default/stylesheets/postview.css +238 -0
  69. data/themes/default/tags/index.erb +12 -0
  70. data/themes/default/tags/show.erb +40 -0
  71. metadata +158 -0
@@ -0,0 +1,12 @@
1
+ <div class="entry">
2
+
3
+ <h1><%= title_path :tags %></h1>
4
+
5
+ <ul>
6
+ <% for tag in tags %>
7
+ <li><%= link_to tag.capitalize, tags_path, tag, :title => tag.capitalize %> (<%=count_posts_by_tag(tag)%>)</li>
8
+ <% end %>
9
+ </ul>
10
+
11
+ </div><!--entry-->
12
+
@@ -0,0 +1,40 @@
1
+ <div class="entry">
2
+
3
+ <h1>Posts tagged with <%= tag.capitalize %></h1>
4
+
5
+ <div class="text">
6
+
7
+ <p>
8
+ <%= posts.size %> found in posts and <%= archive.size %> found in archive.
9
+ </p>
10
+
11
+ <% unless posts.empty? %>
12
+ <h2><%= title_path :posts %></h2>
13
+
14
+ <ul>
15
+ <% for post in posts %>
16
+ <li>
17
+ <b><%= link_to "#{post.publish_date} - #{post.title}", posts_path, post, :title => post.title %></b>
18
+ <span>(<%= post.tags.map{ |tag| link_to tag.capitalize, tags_path, tag, :title => tag.capitalize }.join(', ') %>)</span>
19
+ </li>
20
+ <% end %>
21
+ </ul>
22
+ <% end %>
23
+
24
+ <% unless archive.empty? %>
25
+ <h2><%= title_path :archive %></h2>
26
+
27
+ <ul>
28
+ <% for post in archive %>
29
+ <li>
30
+ <b><%= link_to "#{post.publish_date} - #{post.title}", archive_path, post, :title => post.title %></b>
31
+ <span>(<%= post.tags.map{ |tag| link_to tag.capitalize, tags_path, tag, :title => tag.capitalize }.join(', ') %>)</span>
32
+ </li>
33
+ <% end %>
34
+ </ul>
35
+ <% end %>
36
+
37
+ </div><!--text-->
38
+
39
+ </div><!--entry-->
40
+
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: postview
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ platform: ruby
6
+ authors:
7
+ - Hallison Batista
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-10 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sinatra-mapping
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.0.5
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: sinatra
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.1.1
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: postage
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.1.4.1
44
+ version:
45
+ description: Postview is a simple blog-engine written in Ruby using the Sinatra DSL for render files written in Markdown.
46
+ email: email@hallisonbatista.com
47
+ executables:
48
+ - postview
49
+ extensions: []
50
+
51
+ extra_rdoc_files:
52
+ - README.rdoc
53
+ - LICENSE
54
+ files:
55
+ - HISTORY
56
+ - INFO
57
+ - LICENSE
58
+ - Rakefile
59
+ - README.rdoc
60
+ - VERSION
61
+ - lib/postview/settings.rb
62
+ - lib/postview/cli/server_command.rb
63
+ - lib/postview/cli/create_command.rb
64
+ - lib/postview/version.rb
65
+ - lib/postview/site.rb
66
+ - lib/postview/about.rb
67
+ - lib/postview/application.rb
68
+ - lib/postview/patches.rb
69
+ - lib/postview/cli.rb
70
+ - lib/postview/helpers.rb
71
+ - lib/postview.rb
72
+ - test/helper.rb
73
+ - test/site_test.rb
74
+ - test/settings_test.rb
75
+ - test/application_test.rb
76
+ - test/extensions.rb
77
+ - test/fixtures/application/posts/archive/20080529-postview_blogware.ruby.sinatra.mkd
78
+ - test/fixtures/application/posts/archive/20080602-postview_blogware.ruby.sinatra.mkd
79
+ - test/fixtures/application/posts/20090529-postview_blogware.ruby.sinatra.mkd
80
+ - test/fixtures/application/posts/20090602-postview_blogware.ruby.sinatra.mkd
81
+ - test/fixtures/application/posts/drafts/20090730-draft_postview_blogware.ruby.sinatra.mkd
82
+ - test/fixtures/application/config/settings.yml
83
+ - test/fixtures/application/empty.yml
84
+ - test/fixtures/application/themes/gemstone/search.erb
85
+ - test/fixtures/application/themes/gemstone/posts/index.erb
86
+ - test/fixtures/application/themes/gemstone/posts/show.erb
87
+ - test/fixtures/application/themes/gemstone/layout.erb
88
+ - test/fixtures/application/themes/gemstone/stylesheets/gemstone.css
89
+ - test/fixtures/application/themes/gemstone/tags/index.erb
90
+ - test/fixtures/application/themes/gemstone/tags/show.erb
91
+ - test/fixtures/application/themes/gemstone/javascripts/gemstone.js
92
+ - test/fixtures/application/themes/gemstone/archive/index.erb
93
+ - test/fixtures/application/themes/gemstone/archive/show.erb
94
+ - test/fixtures/application/themes/gemstone/index.erb
95
+ - test/fixtures/application/themes/gemstone/about.erb
96
+ - test/fixtures/application/themes/gemstone/images/trojan.com
97
+ - test/fixtures/application/themes/gemstone/images/banners/banner.jpg
98
+ - test/fixtures/application/themes/gemstone/images/favicon.ico
99
+ - test/fixtures/application/config.ru
100
+ - tasks/homepage.rake
101
+ - tasks/version.rake
102
+ - tasks/documentation.rake
103
+ - tasks/package.rake
104
+ - tasks/history.rake
105
+ - themes/default/search.erb
106
+ - themes/default/posts/index.erb
107
+ - themes/default/posts/show.erb
108
+ - themes/default/error.erb
109
+ - themes/default/layout.erb
110
+ - themes/default/stylesheets/postview.css
111
+ - themes/default/tags/index.erb
112
+ - themes/default/tags/show.erb
113
+ - themes/default/archive/index.erb
114
+ - themes/default/archive/show.erb
115
+ - themes/default/index.erb
116
+ - themes/default/about.erb
117
+ - themes/default/images/rack.png
118
+ - themes/default/images/ruby.png
119
+ - themes/default/images/logo.png
120
+ - themes/default/images/navigation-bar.gif
121
+ - themes/default/images/favicon.ico
122
+ - themes/default/images/sinatra.png
123
+ - themes/default/images/postview.png
124
+ has_rdoc: true
125
+ homepage: http://postview.rubyforge.org/
126
+ licenses: []
127
+
128
+ post_install_message:
129
+ rdoc_options:
130
+ - --line-numbers
131
+ - --inline-source
132
+ - --title
133
+ - Postview
134
+ - --main
135
+ - README
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: "0"
143
+ version:
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: "0"
149
+ version:
150
+ requirements: []
151
+
152
+ rubyforge_project: postview
153
+ rubygems_version: 1.3.5
154
+ signing_key:
155
+ specification_version: 3
156
+ summary: Simple blog-engine that render Markdown files.
157
+ test_files: []
158
+