zenweb 2.18.1 → 3.0.0.b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +18 -0
  3. data/.gemtest +0 -0
  4. data/History.txt +6 -0
  5. data/Manifest.txt +52 -50
  6. data/README.txt +27 -22
  7. data/Rakefile +8 -9
  8. data/example-site/.isolate.rb +8 -0
  9. data/example-site/Rakefile +32 -0
  10. data/example-site/_config.yml +3 -0
  11. data/example-site/_includes/analytics.html.erb +11 -0
  12. data/example-site/_includes/header.html.erb +3 -0
  13. data/example-site/_includes/page_list_item.html +5 -0
  14. data/example-site/_includes/post_list_item.html +5 -0
  15. data/example-site/_layouts/post.erb +13 -0
  16. data/example-site/_layouts/project.erb +39 -0
  17. data/example-site/_layouts/site.erb +62 -0
  18. data/example-site/about/index.html.md +8 -0
  19. data/example-site/atom.xml.erb +43 -0
  20. data/example-site/blog/2012-01-02-page1.html.md +5 -0
  21. data/example-site/blog/2012-01-03-page2.html.md +5 -0
  22. data/example-site/blog/2012-01-04-page3.html.md +5 -0
  23. data/example-site/blog/_config.yml +1 -0
  24. data/example-site/blog/index.html.erb +19 -0
  25. data/example-site/config.ru +33 -0
  26. data/example-site/css/colors.css.less +71 -0
  27. data/example-site/css/styles.css +223 -0
  28. data/example-site/css/syntax.css +171 -0
  29. data/example-site/img/bg.png +0 -0
  30. data/example-site/index.html.erb +27 -0
  31. data/example-site/js/jquery.js +154 -0
  32. data/example-site/js/site.js +37 -0
  33. data/example-site/pages/index.html.erb +17 -0
  34. data/example-site/pages/nonblogpage.html.md +8 -0
  35. data/example-site/projects/index.html.erb +18 -0
  36. data/example-site/projects/zenweb.html.erb +9 -0
  37. data/example-site/sitemap.xml.erb +24 -0
  38. data/lib/zenweb.rb +12 -0
  39. data/lib/zenweb/config.rb +126 -0
  40. data/lib/zenweb/extensions.rb +51 -0
  41. data/lib/zenweb/page.rb +409 -0
  42. data/lib/zenweb/plugins/disqus.rb +18 -0
  43. data/lib/zenweb/plugins/erb.rb +43 -0
  44. data/lib/zenweb/plugins/google.rb +20 -0
  45. data/lib/zenweb/plugins/less.rb +10 -0
  46. data/lib/zenweb/plugins/markdown.rb +121 -0
  47. data/lib/zenweb/site.rb +237 -0
  48. data/lib/zenweb/tasks.rake +165 -0
  49. data/test/helper.rb +53 -0
  50. data/test/test_zenweb_config.rb +90 -0
  51. data/test/test_zenweb_extensions.rb +33 -0
  52. data/test/test_zenweb_page.rb +381 -0
  53. data/test/test_zenweb_plugins_disqus.rb +41 -0
  54. data/test/test_zenweb_plugins_erb.rb +60 -0
  55. data/test/test_zenweb_plugins_google.rb +38 -0
  56. data/test/test_zenweb_plugins_less.rb +33 -0
  57. data/test/test_zenweb_plugins_markdown.rb +227 -0
  58. data/test/test_zenweb_site.rb +294 -0
  59. metadata +230 -86
  60. metadata.gz.sig +0 -0
  61. data/bin/zenweb +0 -27
  62. data/bin/zenwebpage +0 -66
  63. data/bin/zenwebsite +0 -39
  64. data/design/REQUIREMENTS.txt +0 -52
  65. data/design/ZENWEB_2.txt +0 -69
  66. data/design/heirarchy.png +0 -0
  67. data/design/heirarchy.tgif +0 -311
  68. data/docs/Customizing +0 -76
  69. data/docs/FAQ +0 -12
  70. data/docs/Features +0 -128
  71. data/docs/Presentation +0 -88
  72. data/docs/QuickStart +0 -32
  73. data/docs/Renderers +0 -85
  74. data/docs/SiteMap +0 -13
  75. data/docs/YourOwnWebsite +0 -32
  76. data/docs/index +0 -14
  77. data/docs/metadata.txt +0 -10
  78. data/lib/ZenWeb.rb +0 -850
  79. data/lib/ZenWeb/CalendarRenderer.rb +0 -162
  80. data/lib/ZenWeb/CompactRenderer.rb +0 -45
  81. data/lib/ZenWeb/CompositeRenderer.rb +0 -63
  82. data/lib/ZenWeb/FileAttachmentRenderer.rb +0 -57
  83. data/lib/ZenWeb/FooterRenderer.rb +0 -38
  84. data/lib/ZenWeb/GenericRenderer.rb +0 -143
  85. data/lib/ZenWeb/HeaderRenderer.rb +0 -52
  86. data/lib/ZenWeb/HtmlRenderer.rb +0 -81
  87. data/lib/ZenWeb/HtmlTableRenderer.rb +0 -94
  88. data/lib/ZenWeb/HtmlTemplateRenderer.rb +0 -173
  89. data/lib/ZenWeb/MetadataRenderer.rb +0 -83
  90. data/lib/ZenWeb/RelativeRenderer.rb +0 -97
  91. data/lib/ZenWeb/RubyCodeRenderer.rb +0 -56
  92. data/lib/ZenWeb/SitemapRenderer.rb +0 -56
  93. data/lib/ZenWeb/StandardRenderer.rb +0 -40
  94. data/lib/ZenWeb/StupidRenderer.rb +0 -91
  95. data/lib/ZenWeb/SubpageRenderer.rb +0 -45
  96. data/lib/ZenWeb/TextToHtmlRenderer.rb +0 -219
  97. data/lib/ZenWeb/TocRenderer.rb +0 -60
  98. data/lib/ZenWeb/XXXRenderer.rb +0 -32
  99. data/test/SiteMap +0 -14
  100. data/test/Something +0 -4
  101. data/test/include.txt +0 -3
  102. data/test/index +0 -8
  103. data/test/metadata.txt +0 -10
  104. data/test/ryand/SiteMap +0 -10
  105. data/test/ryand/blah +0 -4
  106. data/test/ryand/blah-blah +0 -4
  107. data/test/ryand/index +0 -52
  108. data/test/ryand/metadata.txt +0 -2
  109. data/test/ryand/stuff/index +0 -4
  110. data/test/test_zenweb.rb +0 -1619
metadata CHANGED
@@ -1,7 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.1
4
+ hash: -1637566754
5
+ prerelease: 6
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - 0
10
+ - b
11
+ - 1
12
+ version: 3.0.0.b1
5
13
  platform: ruby
6
14
  authors:
7
15
  - Ryan Davis
@@ -30,106 +38,226 @@ cert_chain:
30
38
  FBHgymkyj/AOSqKRIpXPhjC6
31
39
  -----END CERTIFICATE-----
32
40
 
33
- date: 2009-06-23 00:00:00 -07:00
34
- default_executable:
41
+ date: 2012-05-25 00:00:00 Z
35
42
  dependencies:
36
43
  - !ruby/object:Gem::Dependency
37
- name: hoe
44
+ name: less
45
+ prerelease: false
46
+ requirement: &id001 !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ hash: 11
52
+ segments:
53
+ - 1
54
+ - 2
55
+ version: "1.2"
56
+ type: :runtime
57
+ version_requirements: *id001
58
+ - !ruby/object:Gem::Dependency
59
+ name: coderay
60
+ prerelease: false
61
+ requirement: &id002 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ hash: 15
67
+ segments:
68
+ - 1
69
+ - 0
70
+ version: "1.0"
71
+ type: :runtime
72
+ version_requirements: *id002
73
+ - !ruby/object:Gem::Dependency
74
+ name: kramdown
75
+ prerelease: false
76
+ requirement: &id003 !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ~>
80
+ - !ruby/object:Gem::Version
81
+ hash: 17
82
+ segments:
83
+ - 0
84
+ - 13
85
+ version: "0.13"
86
+ type: :runtime
87
+ version_requirements: *id003
88
+ - !ruby/object:Gem::Dependency
89
+ name: minitest
90
+ prerelease: false
91
+ requirement: &id004 !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ hash: 7
97
+ segments:
98
+ - 3
99
+ - 0
100
+ version: "3.0"
38
101
  type: :development
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
102
+ version_requirements: *id004
103
+ - !ruby/object:Gem::Dependency
104
+ name: rdoc
105
+ prerelease: false
106
+ requirement: &id005 !ruby/object:Gem::Requirement
107
+ none: false
41
108
  requirements:
42
- - - ">="
109
+ - - ~>
43
110
  - !ruby/object:Gem::Version
44
- version: 2.3.0
45
- version:
111
+ hash: 19
112
+ segments:
113
+ - 3
114
+ - 10
115
+ version: "3.10"
116
+ type: :development
117
+ version_requirements: *id005
118
+ - !ruby/object:Gem::Dependency
119
+ name: rcov
120
+ prerelease: false
121
+ requirement: &id006 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ hash: 25
127
+ segments:
128
+ - 0
129
+ - 9
130
+ version: "0.9"
131
+ type: :development
132
+ version_requirements: *id006
133
+ - !ruby/object:Gem::Dependency
134
+ name: rake
135
+ prerelease: false
136
+ requirement: &id007 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ hash: 25
142
+ segments:
143
+ - 0
144
+ - 9
145
+ version: "0.9"
146
+ type: :development
147
+ version_requirements: *id007
148
+ - !ruby/object:Gem::Dependency
149
+ name: makerakeworkwell
150
+ prerelease: false
151
+ requirement: &id008 !ruby/object:Gem::Requirement
152
+ none: false
153
+ requirements:
154
+ - - ~>
155
+ - !ruby/object:Gem::Version
156
+ hash: 15
157
+ segments:
158
+ - 1
159
+ - 0
160
+ version: "1.0"
161
+ type: :development
162
+ version_requirements: *id008
163
+ - !ruby/object:Gem::Dependency
164
+ name: hoe
165
+ prerelease: false
166
+ requirement: &id009 !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ~>
170
+ - !ruby/object:Gem::Version
171
+ hash: 7
172
+ segments:
173
+ - 3
174
+ - 0
175
+ version: "3.0"
176
+ type: :development
177
+ version_requirements: *id009
46
178
  description: |-
47
- ZenWeb is a set of classes/tools for organizing and formating a
179
+ Zenweb is a set of classes/tools for organizing and formating a
48
180
  website. It is website oriented rather than webpage oriented, unlike
49
181
  most rendering tools. It is content oriented, rather than style
50
- oriented, unlike most rendering tools. It provides a plugin system of
51
- renderers and filters to provide a very flexible, and powerful system.
182
+ oriented, unlike most rendering tools. It uses a rubygems plugin
183
+ system to provide a very flexible, and powerful system.
52
184
 
53
- Documentation is available in the docs directory, and can be generated
54
- into html (in docshtml) simply by running make. See QuickStart and
55
- YourOwnWebsite for setup and starting to build a website.
56
-
57
- (EXPERIMENTAL) If you are running apache, you might try 'make apache'
58
- which will run a private version of apache that points to the
59
- generated documenation. Point your browser to port 8080 of localhost
60
- or whatever machine you are running on.
185
+ Zenweb 3 was inspired by jekyll. The filesystem layout is similar to
186
+ jekyll's layout, but zenweb isn't focused on blogs. It can do any sort
187
+ of website just fine.
188
+
189
+ Zenweb uses rake to handle dependencies. As a result, scanning a
190
+ website and regenerating incrementally is not just possible, it is
191
+ blazingly fast.
61
192
  email:
62
193
  - ryand-ruby@zenspider.com
63
- executables:
64
- - zenweb
65
- - zenwebpage
66
- - zenwebsite
194
+ executables: []
195
+
67
196
  extensions: []
68
197
 
69
198
  extra_rdoc_files:
70
199
  - History.txt
71
200
  - Manifest.txt
72
201
  - README.txt
73
- - design/REQUIREMENTS.txt
74
- - design/ZENWEB_2.txt
75
- - docs/metadata.txt
76
202
  files:
203
+ - .autotest
77
204
  - History.txt
78
205
  - Manifest.txt
79
206
  - README.txt
80
207
  - Rakefile
81
- - bin/zenweb
82
- - bin/zenwebpage
83
- - bin/zenwebsite
84
- - design/REQUIREMENTS.txt
85
- - design/ZENWEB_2.txt
86
- - design/heirarchy.png
87
- - design/heirarchy.tgif
88
- - docs/Customizing
89
- - docs/FAQ
90
- - docs/Features
91
- - docs/Presentation
92
- - docs/QuickStart
93
- - docs/Renderers
94
- - docs/SiteMap
95
- - docs/YourOwnWebsite
96
- - docs/index
97
- - docs/metadata.txt
98
- - lib/ZenWeb.rb
99
- - lib/ZenWeb/CalendarRenderer.rb
100
- - lib/ZenWeb/CompactRenderer.rb
101
- - lib/ZenWeb/CompositeRenderer.rb
102
- - lib/ZenWeb/FileAttachmentRenderer.rb
103
- - lib/ZenWeb/FooterRenderer.rb
104
- - lib/ZenWeb/GenericRenderer.rb
105
- - lib/ZenWeb/HeaderRenderer.rb
106
- - lib/ZenWeb/HtmlRenderer.rb
107
- - lib/ZenWeb/HtmlTableRenderer.rb
108
- - lib/ZenWeb/HtmlTemplateRenderer.rb
109
- - lib/ZenWeb/MetadataRenderer.rb
110
- - lib/ZenWeb/RelativeRenderer.rb
111
- - lib/ZenWeb/RubyCodeRenderer.rb
112
- - lib/ZenWeb/SitemapRenderer.rb
113
- - lib/ZenWeb/StandardRenderer.rb
114
- - lib/ZenWeb/StupidRenderer.rb
115
- - lib/ZenWeb/SubpageRenderer.rb
116
- - lib/ZenWeb/TextToHtmlRenderer.rb
117
- - lib/ZenWeb/TocRenderer.rb
118
- - lib/ZenWeb/XXXRenderer.rb
119
- - test/SiteMap
120
- - test/Something
121
- - test/include.txt
122
- - test/index
123
- - test/metadata.txt
124
- - test/ryand/SiteMap
125
- - test/ryand/blah
126
- - test/ryand/blah-blah
127
- - test/ryand/index
128
- - test/ryand/metadata.txt
129
- - test/ryand/stuff/index
130
- - test/test_zenweb.rb
131
- has_rdoc: true
132
- homepage: http://rubyforge.org/projects/zenweb/
208
+ - example-site/.isolate.rb
209
+ - example-site/Rakefile
210
+ - example-site/_config.yml
211
+ - example-site/_includes/analytics.html.erb
212
+ - example-site/_includes/header.html.erb
213
+ - example-site/_includes/page_list_item.html
214
+ - example-site/_includes/post_list_item.html
215
+ - example-site/_layouts/post.erb
216
+ - example-site/_layouts/project.erb
217
+ - example-site/_layouts/site.erb
218
+ - example-site/about/index.html.md
219
+ - example-site/atom.xml.erb
220
+ - example-site/blog/2012-01-02-page1.html.md
221
+ - example-site/blog/2012-01-03-page2.html.md
222
+ - example-site/blog/2012-01-04-page3.html.md
223
+ - example-site/blog/_config.yml
224
+ - example-site/blog/index.html.erb
225
+ - example-site/config.ru
226
+ - example-site/css/colors.css.less
227
+ - example-site/css/styles.css
228
+ - example-site/css/syntax.css
229
+ - example-site/img/bg.png
230
+ - example-site/index.html.erb
231
+ - example-site/js/jquery.js
232
+ - example-site/js/site.js
233
+ - example-site/pages/index.html.erb
234
+ - example-site/pages/nonblogpage.html.md
235
+ - example-site/projects/index.html.erb
236
+ - example-site/projects/zenweb.html.erb
237
+ - example-site/sitemap.xml.erb
238
+ - lib/zenweb.rb
239
+ - lib/zenweb/config.rb
240
+ - lib/zenweb/extensions.rb
241
+ - lib/zenweb/page.rb
242
+ - lib/zenweb/plugins/disqus.rb
243
+ - lib/zenweb/plugins/erb.rb
244
+ - lib/zenweb/plugins/google.rb
245
+ - lib/zenweb/plugins/less.rb
246
+ - lib/zenweb/plugins/markdown.rb
247
+ - lib/zenweb/site.rb
248
+ - lib/zenweb/tasks.rake
249
+ - test/helper.rb
250
+ - test/test_zenweb_config.rb
251
+ - test/test_zenweb_extensions.rb
252
+ - test/test_zenweb_page.rb
253
+ - test/test_zenweb_plugins_disqus.rb
254
+ - test/test_zenweb_plugins_erb.rb
255
+ - test/test_zenweb_plugins_google.rb
256
+ - test/test_zenweb_plugins_less.rb
257
+ - test/test_zenweb_plugins_markdown.rb
258
+ - test/test_zenweb_site.rb
259
+ - .gemtest
260
+ homepage: https://github.com/seattlerb/zenweb/
133
261
  licenses: []
134
262
 
135
263
  post_install_message:
@@ -139,23 +267,39 @@ rdoc_options:
139
267
  require_paths:
140
268
  - lib
141
269
  required_ruby_version: !ruby/object:Gem::Requirement
270
+ none: false
142
271
  requirements:
143
272
  - - ">="
144
273
  - !ruby/object:Gem::Version
274
+ hash: 3
275
+ segments:
276
+ - 0
145
277
  version: "0"
146
- version:
147
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
+ none: false
148
280
  requirements:
149
- - - ">="
281
+ - - ">"
150
282
  - !ruby/object:Gem::Version
151
- version: "0"
152
- version:
283
+ hash: 25
284
+ segments:
285
+ - 1
286
+ - 3
287
+ - 1
288
+ version: 1.3.1
153
289
  requirements: []
154
290
 
155
291
  rubyforge_project: zenweb
156
- rubygems_version: 1.3.4
292
+ rubygems_version: 1.8.17
157
293
  signing_key:
158
294
  specification_version: 3
159
- summary: ZenWeb is a set of classes/tools for organizing and formating a website
295
+ summary: Zenweb is a set of classes/tools for organizing and formating a website
160
296
  test_files:
161
- - test/test_zenweb.rb
297
+ - test/test_zenweb_config.rb
298
+ - test/test_zenweb_extensions.rb
299
+ - test/test_zenweb_page.rb
300
+ - test/test_zenweb_plugins_disqus.rb
301
+ - test/test_zenweb_plugins_erb.rb
302
+ - test/test_zenweb_plugins_google.rb
303
+ - test/test_zenweb_plugins_less.rb
304
+ - test/test_zenweb_plugins_markdown.rb
305
+ - test/test_zenweb_site.rb
metadata.gz.sig CHANGED
Binary file
data/bin/zenweb DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rubygems'
4
- require 'ZenWeb'
5
-
6
- puts ZenWebsite.banner() unless $TESTING
7
-
8
- if (ARGV.size == 2) then
9
- path = ARGV.shift
10
- url = ARGV.shift
11
- elsif (ARGV.size == 1) then
12
- path = ARGV.shift || raise(ArgumentError, "Need a sitemap path to load.")
13
- url = "/SiteMap.html"
14
- else
15
- raise(ArgumentError, "Usage: #{$0} datadir [sitemapurl]")
16
- end
17
-
18
- if path == "data" then
19
- dest = "html"
20
- else
21
- dest = path + "html"
22
- end
23
-
24
- dirty = test ?d, dest
25
-
26
- ZenWebsite.new(url, path, dest).renderSite
27
- Metadata.displayBadMetadata unless dirty
data/bin/zenwebpage DELETED
@@ -1,66 +0,0 @@
1
- #!/usr/local/bin/ruby -w
2
-
3
- def usage
4
- puts "#{$0} filepath [title [subtitle]]"
5
- exit 1
6
- end
7
-
8
- path = ARGV.shift || usage()
9
- title = ARGV.shift || 'Title'
10
- subtitle = ARGV.shift || 'Subtitle'
11
-
12
- filename = File.basename(path)
13
-
14
- puts "Creating #{filename}"
15
-
16
- file = File.new(path, "w")
17
-
18
- if filename == 'metadata.txt' then
19
- file.puts "'renderers' = [ 'StandardRenderer' ]"
20
- elsif filename == 'Makefile' then
21
- file.puts "# use this to override"
22
- file.puts "RUBYPATH="
23
- file.puts "DEBUG="
24
- file.puts "ZENWEB=/usr/local/bin/zenweb"
25
- file.puts "INSTALLDIR=/usr/local/www"
26
- file.puts ""
27
- file.puts "all: html"
28
- file.puts ""
29
- file.puts "html:"
30
- file.puts " RUBYPATH=$(RUBYPATH) ruby $(DEBUG) $(ZENWEB) data"
31
- file.puts ""
32
- file.puts "realclean: clean"
33
- file.puts " -rm -rf html"
34
- file.puts ""
35
- file.puts "clean:"
36
- file.puts " rm -rf httpd.conf httpd.pid error.log access.log"
37
- file.puts " -find . -name \*~ -exec rm {} \\;"
38
- file.puts " -find data -name \*.html -print0 | xargs -0 rm -f"
39
- file.puts ""
40
- file.puts "apache: all"
41
- file.puts %q% grep -v CustomLog $$(httpd -V | grep SERVER_CONFIG_FILE | cut -f 2 -d= | cut -f 2 -d\") > httpd.conf; httpd -X -d $$PWD/html -f $$PWD/httpd.conf -c "PidFile $$PWD/httpd.pid" -c "Port 8080" -c "ErrorLog $$PWD/error.log" -c "TransferLog $$PWD/access.log" -c "DocumentRoot $$PWD/html"%
42
- file.puts ""
43
- file.puts "copy:"
44
- file.puts " rsync -r html/ $(INSTALLDIR)"
45
- file.puts ""
46
- file.puts ".PHONY: all html clean copy"
47
- else
48
- file.puts "# 'title' = '#{title}'"
49
- file.puts "# 'subtitle' = '#{subtitle}'"
50
- file.puts "# 'keywords' = 'Keywords used by search engines.'"
51
- file.puts "# 'description' = 'Basic desc for search engines.'"
52
-
53
- if filename == 'SiteMap' then
54
- file.puts "# 'renderers' = [ 'SitemapRenderer', 'StandardRenderer' ]"
55
- file.puts ""
56
- file.puts "/index.html"
57
- file.puts "/SiteMap.html"
58
- else
59
- file.puts ""
60
- file.puts "** Section Header"
61
- file.puts ""
62
- file.puts "TO" + "DO: write this page" # to avoid my source TAG scanner
63
- end
64
- end
65
-
66
- file.close