hobix 0.4 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/COPYING +18 -0
  2. data/README +18 -0
  3. data/Rakefile +96 -0
  4. data/bin/hobix +7 -3
  5. data/contrib/blosxom-to-hobix.rb +253 -0
  6. data/contrib/txp-to-hobix.rb +56 -0
  7. data/contrib/webrick-all-mine.rb +20 -0
  8. data/doc/CHANGELOG +285 -0
  9. data/doc/rdoc/classes/Hobix/API.html +382 -0
  10. data/doc/rdoc/classes/Hobix/Article.html +111 -0
  11. data/doc/rdoc/classes/Hobix/BaseContent.html +692 -0
  12. data/doc/rdoc/classes/Hobix/BaseEntry.html +218 -0
  13. data/doc/rdoc/classes/Hobix/BaseFacet.html +205 -0
  14. data/doc/rdoc/classes/Hobix/BaseOutput.html +122 -0
  15. data/doc/rdoc/classes/Hobix/BasePlugin.html +201 -0
  16. data/doc/rdoc/classes/Hobix/BaseProperties/ClassMethods.html +243 -0
  17. data/doc/rdoc/classes/Hobix/BaseProperties.html +218 -0
  18. data/doc/rdoc/classes/Hobix/BasePublish.html +157 -0
  19. data/doc/rdoc/classes/Hobix/BaseStorage.html +417 -0
  20. data/doc/rdoc/classes/Hobix/BixWik/Entry.html +196 -0
  21. data/doc/rdoc/classes/Hobix/BixWik/IndexEntry.html +170 -0
  22. data/doc/rdoc/classes/Hobix/BixWik/WikiRedCloth.html +111 -0
  23. data/doc/rdoc/classes/Hobix/BixWik.html +418 -0
  24. data/doc/rdoc/classes/Hobix/BixWikPlugin.html +158 -0
  25. data/doc/rdoc/classes/Hobix/CommandLine.html +1970 -0
  26. data/doc/rdoc/classes/Hobix/Comment.html +113 -0
  27. data/doc/rdoc/classes/Hobix/Config.html +212 -0
  28. data/doc/rdoc/classes/Hobix/DataMarsh.html +667 -0
  29. data/doc/rdoc/classes/Hobix/Entry.html +178 -0
  30. data/doc/rdoc/classes/Hobix/EntryEnum.html +162 -0
  31. data/doc/rdoc/classes/Hobix/Enumerable.html +170 -0
  32. data/doc/rdoc/classes/Hobix/Facets/WikiEdit.html +180 -0
  33. data/doc/rdoc/classes/Hobix/Facets.html +111 -0
  34. data/doc/rdoc/classes/Hobix/LinkList.html +182 -0
  35. data/doc/rdoc/classes/Hobix/Out/Quick.html +412 -0
  36. data/doc/rdoc/classes/Hobix/Out.html +119 -0
  37. data/doc/rdoc/classes/Hobix/Page.html +381 -0
  38. data/doc/rdoc/classes/Hobix/Trackback.html +113 -0
  39. data/doc/rdoc/classes/Hobix/UriStr.html +198 -0
  40. data/doc/rdoc/classes/Hobix/WebApp/QueryString.html +207 -0
  41. data/doc/rdoc/classes/Hobix/WebApp/QueryValidationFailure.html +111 -0
  42. data/doc/rdoc/classes/Hobix/WebApp.html +1383 -0
  43. data/doc/rdoc/classes/Hobix/Weblog/AuthorNotFound.html +111 -0
  44. data/doc/rdoc/classes/Hobix/Weblog.html +2082 -0
  45. data/doc/rdoc/classes/Hobix.html +399 -0
  46. data/doc/rdoc/classes/Kernel.html +139 -0
  47. data/doc/rdoc/classes/Regexp.html +154 -0
  48. data/doc/rdoc/classes/YAML/Omap.html +144 -0
  49. data/doc/rdoc/classes/YAML.html +111 -0
  50. data/doc/rdoc/created.rid +1 -0
  51. data/doc/rdoc/files/COPYING.html +129 -0
  52. data/doc/rdoc/files/README.html +131 -0
  53. data/doc/rdoc/files/doc/CHANGELOG.html +101 -0
  54. data/doc/rdoc/files/lib/hobix/api_rb.html +119 -0
  55. data/doc/rdoc/files/lib/hobix/article_rb.html +126 -0
  56. data/doc/rdoc/files/lib/hobix/base_rb.html +128 -0
  57. data/doc/rdoc/files/lib/hobix/bixwik_rb.html +126 -0
  58. data/doc/rdoc/files/lib/hobix/commandline_rb.html +140 -0
  59. data/doc/rdoc/files/lib/hobix/comments_rb.html +126 -0
  60. data/doc/rdoc/files/lib/hobix/config_rb.html +125 -0
  61. data/doc/rdoc/files/lib/hobix/datamarsh_rb.html +108 -0
  62. data/doc/rdoc/files/lib/hobix/entry_rb.html +118 -0
  63. data/doc/rdoc/files/lib/hobix/linklist_rb.html +127 -0
  64. data/doc/rdoc/files/lib/hobix/publisher_rb.html +126 -0
  65. data/doc/rdoc/files/lib/hobix/trackbacks_rb.html +128 -0
  66. data/doc/rdoc/files/lib/hobix/webapp_rb.html +127 -0
  67. data/doc/rdoc/files/lib/hobix/weblog_rb.html +135 -0
  68. data/doc/rdoc/files/lib/hobix_rb.html +127 -0
  69. data/doc/rdoc/fr_class_index.html +67 -0
  70. data/doc/rdoc/fr_file_index.html +44 -0
  71. data/doc/rdoc/fr_method_index.html +307 -0
  72. data/doc/rdoc/index.html +24 -0
  73. data/doc/rdoc/rdoc-style.css +208 -0
  74. data/git_hobix_update.php +13 -0
  75. data/lib/hobix/base.rb +6 -3
  76. data/lib/hobix/bixwik.rb +12 -12
  77. data/lib/hobix/commandline.rb +18 -2
  78. data/lib/hobix/comments.rb +4 -5
  79. data/lib/hobix/entry.rb +2 -1
  80. data/lib/hobix/facets/comments.rb +31 -6
  81. data/lib/hobix/linklist.rb +6 -1
  82. data/lib/hobix/out/atom.rb +29 -20
  83. data/lib/hobix/out/quick.rb +8 -6
  84. data/lib/hobix/out/rss.rb +16 -3
  85. data/lib/hobix/plugin/akismet.rb +196 -0
  86. data/lib/hobix/plugin/calendar.rb +6 -14
  87. data/lib/hobix/plugin/recent_comments.rb +4 -2
  88. data/lib/hobix/plugin/tags.rb +1 -1
  89. data/lib/hobix/storage/filesys.rb +41 -31
  90. data/lib/hobix/trackbacks.rb +1 -2
  91. data/lib/hobix/weblog.rb +73 -40
  92. data/lib/hobix.rb +9 -2
  93. data/share/default-blog/hobix.yaml +16 -0
  94. data/share/default-blog/htdocs/site.css +174 -0
  95. data/share/default-blog/skel/entry.html.quick +0 -0
  96. data/share/default-blog/skel/index.atom.atom +0 -0
  97. data/share/default-blog/skel/index.html.quick-summary +0 -0
  98. data/share/default-blog/skel/index.xml.rss +0 -0
  99. data/share/default-blog/skel/index.yaml.okaynews +0 -0
  100. data/share/default-blog/skel/monthly.html.quick-archive +0 -0
  101. data/share/default-blog/skel/section.html.quick-archive +0 -0
  102. data/share/default-blog/skel/yearly.html.quick-archive +0 -0
  103. data/share/default-blog-modes.yaml +7 -0
  104. data/share/default-blog.apache-cgi.patch +8 -0
  105. data/share/default-blog.apache-ssi.patch +38 -0
  106. data/share/default-blog.apache2-ssi.patch +3 -0
  107. data/share/default-blog.cgi.patch +8 -0
  108. data/share/default-blog.comments.patch +5 -0
  109. data/share/default-blog.prototype.patch +766 -0
  110. data/share/default-blog.publisher.patch +5 -0
  111. data/share/default-blog.wiki.patch +29 -0
  112. data/share/publisher/css/control.css +90 -0
  113. data/share/publisher/css/form.css +238 -0
  114. data/share/publisher/css/form.import.css +72 -0
  115. data/share/publisher/css/main-menu.css +134 -0
  116. data/share/publisher/i/hobix-emblazen-1.png +0 -0
  117. data/share/publisher/i/hobix-emblazen-2.png +0 -0
  118. data/share/publisher/i/hobix-emblazen-3.png +0 -0
  119. data/share/publisher/i/hobix-emblazen-4.png +0 -0
  120. data/share/publisher/i/hobix-emblazen-5.png +0 -0
  121. data/share/publisher/i/hobix-emblazen-6.png +0 -0
  122. data/share/publisher/i/hobix-emblazen-7.png +0 -0
  123. data/share/publisher/index.erb +66 -0
  124. data/share/publisher/js/controls.js +261 -0
  125. data/share/publisher/js/dragdrop.js +476 -0
  126. data/share/publisher/js/effects.js +570 -0
  127. data/share/publisher/js/prototype.js +1011 -0
  128. metadata +196 -53
  129. checksums.yaml +0 -7
data/doc/CHANGELOG ADDED
@@ -0,0 +1,285 @@
1
+ --- %YAML:1.0
2
+ - version: 0.4
3
+ date: 2005-05-22
4
+ changes:
5
+ - lib/hobix/api.rb: remote API, currently usable over HTTP!
6
+ - lib/hobix/base.rb: HTTP authorization.
7
+ - lib/hobix/commandline.rb: use remote API from the commandline.
8
+ - lib/hobix/util/patcher.rb: cool! switched to a new YAML-based patch system which is much easier,
9
+ more foolproof, totally basic, all that!
10
+ - lib/hobix/search/simple.rb: new search index for cataloging words and their content ratings.
11
+ - lib/hobix/entry.rb: new @tags, force_tags, implicit_tags for loosely categorizing entries.
12
+ - lib/hobix/webapp.rb: Tanaka Akira's WebApp library enhanced and distributed with Hobix.
13
+ - lib/hobix/weblog.rb: added skel_tags, new facets code. (facets are user interfaces for hobix.) Load config from a separate file, if available.
14
+ - lib/hobix/comments.rb: comment templates, comment api.
15
+ - lib/hobix/publisher.rb: the new plugin for web administration.
16
+ - share/default-blog.cgi.patch: new patch for using CGI.
17
+
18
+ - version: 0.3c
19
+ date: 2005-03-10
20
+ changes:
21
+ - lib/hobix/out/rss.rb: RSS feed should have correct absolute URLS.
22
+ - lib/hobix/storage/filesys.rb: William Morgan's excellent IndexEntry patch. allow
23
+ customization of the index.hobix file.
24
+ - lib/hobix/weblog.rb: senses need for regeneration of 'prev' and 'next' pages.
25
+ - lib/hobix/base.rb: the `watch' method is now optional for publish plugins.
26
+
27
+ - version: 0.3b
28
+ date: 2005-01-18
29
+ changes:
30
+ - lib/hobix/commandline.rb: suitable errors if user has no blogs setup. defaulting
31
+ to use EDITOR, since the object editor is causing tons of confusion.
32
+ - lib/hobix/entry.rb: new keywords, free-tagged categories for entries.
33
+ - lib/hobix/bixwik.rb: getting WikiWords working.
34
+ - lib/hobix/weblog.rb: expand_path always adds complete blohhg URL. default
35
+ property methods should allow for cleaner YAML output and simpler customization.
36
+ - lib/hobix/out/atom.rb: added subject tags to Atom feed.
37
+ - lib/hobix/out/quick.rb: working on extracting the erb source for errors. cleaner
38
+ paths with weblog.expand_path.
39
+ - lib/hobix/out/rss.rb: subject tags can be per-entry.
40
+ - lib/hobix/publish/ping.rb: allow passing of a URL (if you want your feed to be
41
+ passed as the URL.)
42
+ - lib/hobix/storage/filesys.rb: new find_attached method for loading comments.
43
+
44
+ - version: 0.3a
45
+ date: 2004-10-16
46
+ changes:
47
+ - lib/hobix/entry.rb: switched from Object#is_a? to Class#==. was causing problems
48
+ when loading !omaps.
49
+ - lib/hobix/weblog.rb: ditto. also, moved out computation of the output_map.
50
+ this map contains all the information needed to regenerate. having this information
51
+ readily available is useful for building site maps and determining canonical links
52
+ in advance. new central_prefix and central_ext settings.
53
+ - lib/hobix/bixwik.rb: the absolutely ridiculous hobix-based wiki. seriously, why am i
54
+ doing this??
55
+ - lib/hobix/base.rb: added BaseStorage#match for find entries based on regexp.
56
+ - lib/hobix/out/quick.rb: new prepend and append operators for templates.
57
+
58
+ - version: 0.3
59
+ date: 2004-10-06
60
+ changes:
61
+ - lib/hobix/util/objedit.rb: pagination of form fields, color support,
62
+ now saves content.
63
+ - lib/hobix/entry.rb: date ids are now relative.
64
+ - share/default-blog.apache-ssi.patch: ditto.
65
+
66
+ - version: 0.2g
67
+ date: 2004-10-05
68
+ changes:
69
+ - lib/hobix/out/rdf.rb: new rss 1.0 module by Giulio Piancastelli!
70
+ - lib/hobix/out/quick.rb: problem with nested unordered list invalid XHTML.
71
+ Thanks, Eric Stewart!
72
+ - lib/hobix/out/quick.rb: mozilla problem with self-closing anchor tag.
73
+ - lib/hobix/weblog.rb: using YAML::transfer to load the linklist rather than
74
+ YAML::object_maker. Yes, better.
75
+
76
+ - version: 0.2f
77
+ date: 2004-10-04
78
+ changes:
79
+ - make-go.rb: added win32-only files.
80
+ - lib/hobix/entry.rb: generalized new property_map
81
+ method from old to_yaml_property_map.
82
+ - lib/hobix/weblog.rb: ditto.
83
+ - lib/hobix/linklist.rb: ditto.
84
+ - lib/hobix/util/objedit.rb: ncurses-based editor for
85
+ people who don't `use editor'.
86
+ - lib/hobix/commandline.rb: aorta now uses ObjEdit class.
87
+
88
+ # Many thank to William Morgan for his testing and suggestions.
89
+ # The majority of the changes in the 0.2e release were instigated by
90
+ # his messages to the hobix-is-the-way mailing list. Thanks, Wm!!
91
+ - version: 0.2e
92
+ date: 2004-10-01
93
+ changes:
94
+ - bin/hobix: reuses config data from initial installation.
95
+ - go/hobix-install.rb: ditto.
96
+ - lib/hobix/commandline.rb: creation of weblog also spawns
97
+ editor for hobix.yaml after creation.
98
+ - lib/hobix/weblog.rb: Hobix::Weblog#link is now a URI object.
99
+ paths are only saved if they differ from the default.
100
+ templates without entries are updated only if the template
101
+ changes or the output file is missing. more detailed
102
+ page information is passed into publish plugins.
103
+ - lib/hobix/out/quick.rb: monthly archive dates reversed.
104
+ blank `footer' template chunk added.
105
+
106
+ - version: 0.2d
107
+ date: 2004-09-20
108
+ changes:
109
+ - COPYING: added BSD license text.
110
+ - lib/hobix/out/quick.rb: absolute links.
111
+ - lib/hobix/storage/filesys.rb: ditto.
112
+ - lib/hobix/share/default-blog.apache-ssi.patch: ditto.
113
+
114
+ - version: 0.2c
115
+ date: 2004-09-12
116
+ changes:
117
+ - go/hobix-install.rb: unquoted commands were going to 'su'.
118
+ caching configuration data at the botttom of bin/hobix.
119
+ - lib/hobix/commandline.rb: fixing 'edit' to actually save.
120
+ - lib/hobix/weblog.rb: using File.expand_path rather than
121
+ File.join to figure out if @entry_path, @output_path,
122
+ and @skel_path are relative or absolute. (people are
123
+ seeing c:/blog/c:/blog/skel as a result on Windows.
124
+
125
+ - version: 0.2b
126
+ date: 2004-09-11
127
+ changes:
128
+ - bin/hobix: handling bad arguments, reporting proper syntax.
129
+ - lib/hobix/weblog.rb: dumping linklist and lastn in YAML.
130
+ - go/hobix-install.rb: allowing customization of sharepath.
131
+
132
+ - version: 0.2a
133
+ date: 2004-09-10
134
+ changes:
135
+ - lib/hobix/commandline.rb: new `hobix upgrade' command.
136
+ - lib/hobix/config.rb: fixing errors when loading YAML config.
137
+
138
+ - version: 0.2
139
+ date: 2004-09-10
140
+ changes:
141
+ - lib/hobix/entry.rb: whoops, section_id is supposed to report the path
142
+ the entry resides in.
143
+ - lib/hobix/weblog.rb: validate that loaded entries on generation
144
+ have an author listed in the weblog config.
145
+
146
+ - version: 0.1k
147
+ date: 2004-09-09
148
+ changes:
149
+ - go/hobix-install.rb: added ri installation to the web install.
150
+ - lib/hobix/out/atom.rb: the feed tag wasn't closed.
151
+ - lib/hobix/util/patcher.rb: new module, applies unified diffs.
152
+ used for adding patches to the default blog.
153
+ - share/default-blog.*: patches for using apache SSIs.
154
+
155
+ - version: 0.1j
156
+ date: 2004-08-29
157
+ changes:
158
+ - make-go.rb: installation of share goods. version sniffing
159
+ without require. automatic setup of blogs.
160
+ - go/hobix-install.rb: ditto.
161
+ - lib/hobix/commandline.rb: obscure setup_blogs command.
162
+ - lib/hobix/linklist.rb: links now display as list items.
163
+ - lib/hobix/out/quick.rb: allow custom template entries. all
164
+ sidebar entries are now list items.
165
+ - lib/hobix/storage/filesys.rb: better date created detection.
166
+
167
+ - version: 0.1i
168
+ date: 2004-08-24
169
+ changes:
170
+ - lib/hobix/commandline.rb: don't hide permission errors when posting.
171
+ - lib/hobix/entry.rb: allow initialize to take a block.
172
+ - lib/hobix/weblog.rb: linklist and lastn settings. Weblog#retouch for
173
+ regenerating a single path. use group permissions on output content.
174
+ - lib/hobix/out/erb.rb: tainting.
175
+ - lib/hobix/out/quick.rb: tainting. added `head_tags' and `blog' templates.
176
+ - lib/hobix/out/rss.rb: UH-OH! Time#utc is destructive! Added dc:creator tag.
177
+ - lib/hobix/storage/filesys.rb: tainting. file editing, `touch'ing and removal
178
+ of the `created' field have less an affect on the index. attachments now
179
+ allow per entry! (first incarnation of comments.)
180
+
181
+ - version: 0.1h
182
+ date: 2004-08-19
183
+ changes:
184
+ - lib/hobix/weblog.rb: both relative and absolute URLs now how meaning
185
+ for the Page class. skel methods now receive path_storage. conflicts
186
+ in output now resolved by the deeper skel template.
187
+ - lib/hobix/storage/filesys.rb: path_storage method for skel methods.
188
+
189
+ - version: 0.1g
190
+ date: 2004-06-30
191
+ changes:
192
+ - go/hobix-install.rb: skip gzip on win32.
193
+ - lib/hobix/out/okaynews.rb: bug was overwriting an Entry's author
194
+ property with the full author Hash. bad news.
195
+ - lib/hobix/out/atom.rb: single entry Atom files ok.
196
+ - lib/hobix/out/quick.rb: added quick-summary and quick-archive templates.
197
+ - lib/hobix/storage/filesys.rb: new last_created method.
198
+
199
+ - version: 0.1f
200
+ date: 2004-06-07
201
+ changes:
202
+ - lib/hobix/commandline.rb: default title to a capitalized version of the shortName.
203
+ - lib/hobix/weblog.rb: new `section' prefix.
204
+ - lib/hobix/storage/filesys.rb: all entry ids should use forward slashes. bug in save_entry
205
+ kept load_entry from working on that entry ID.
206
+ - lib/hobix/entry.rb: section_id gives the URL path the entry lies in.
207
+ - lib/hobix/out/rss.rb: better timestamps, using Dublin Core now.
208
+ - lib/hobix/out/quick.rb: new quick templates are the true treasure and all
209
+ will default to them!!
210
+
211
+ - version: 0.1e
212
+ date: 2004-05-23
213
+ changes:
214
+ - install.rb: install Ri documentation automatically.
215
+ - ? [lib/hobix.rb, lib/hobix/weblog.rb, lib/hobix/entry.rb]
216
+ : new, great Ri documentation.
217
+ - lib/hobix/commandline.rb: moved commandline options into a class.
218
+ - lib/hobix/out/atom.rb: atom 0.3 support.
219
+
220
+ - version: 0.1d
221
+ date: 2004-05-22
222
+ changes:
223
+ - bin/hobix: Added 'edit' and 'list' commands with method for tabular display.
224
+ Objects no longer save if nothing is updated from the $EDITOR.
225
+ - lib/hobix/base.rb: ToYamlExtras module contains property mapping code.
226
+ - lib/hobix/entry.rb: EntryEnum class for covering common iteration schemes,
227
+ such as each_day. RedCloth is default text processor. Allow specification
228
+ of text processor fields and clean YAML output.
229
+ - lib/hobix/linklist.rb: New LinkList entry type. For storing links, will be
230
+ used for sidebar links.
231
+ - lib/hobix/storage/filesys.rb: new get_months method for retrieving all
232
+ archive months.
233
+ - lib/hobix/weblog.rb: cleaner YAML output for weblog config. cleaner
234
+ output during regen.
235
+ - version: 0.1a
236
+ date: 2004-05-16
237
+ changes:
238
+ - Hobix.gemspec: for anyone who wants to make a Gem.
239
+ - install.rb: proper installation of share dir.
240
+ - make-go.rb: generates the go/hobix-installer.yaml, which is
241
+ leveraged by the go/hobix-installer.rb script.
242
+ - bin/hobix: stores personal config in '$HOME/Application Data/Hobix'
243
+ on win32.
244
+ - go/hobix-installer.rb: installer script from go.hobix.com. added
245
+ gzip encoding on hobix-install.yaml load.
246
+ - lib/hobix/base.rb: now allow plugins to have config options in
247
+ the hobix.yaml file.
248
+ - lib/hobix/entry.rb: all entries default to folded YAML.
249
+ - lib/hobix/weblog.rb: publisher plugins. entry and entries are
250
+ now variable suffixes. new skel_yearly and skel_methods now
251
+ available for templates in subdirectories.
252
+ - lib/hobix/out/redrum.rb: new redrum plugin is ERB + Textile.
253
+ - lib/hobix/publish/ping.rb: xml-rpc ping for blo.gs and such.
254
+ - share/default-blog: contains basic blog which is copied into
255
+ place upon 'create' command.
256
+
257
+ - version: 0.1
258
+ date: 2004-04-12
259
+ changes:
260
+ - bin/hobix: post command working, no create or edit for now.
261
+ - lib/hobix/weblog.rb: dump as !hobix.com,2004/weblog.
262
+ - lib/hobix/storage/filesys.rb: save entries.
263
+
264
+ - version: 0.0b
265
+ date: 2004-04-12
266
+ changes:
267
+ - bin/hobix: command list, RC setup and regen/upgen are working.
268
+ - lib/hobix.rb: requires hobix/weblog.
269
+
270
+ - version: 0.0a
271
+ date: 2004-04-10
272
+ changes:
273
+ - bin/hobix: moved all options to separate methods in module Hobix::CommandLine.
274
+ - lib/hobix/entry.rb: entry 'body' renamed 'content'.
275
+ - lib/hobix/weblog.rb: moved page prefixes to separate methods.
276
+ - lib/hobix/storage/filesys.rb: ignore list changed to path properties.
277
+ - lib/hobix/out/rss.rb: entry 'body' renamed 'content'.
278
+
279
+ - version: 0.0
280
+ date: 2004-04-07
281
+ changes:
282
+ - lib/hobix/entry.rb: YAML output to !hobix.com,2004/entry.
283
+ - lib/hobix/weblog.rb: Daily archives.
284
+ - lib/hobix/out/rss.rb: Link tags.
285
+ - lib/hobix/storage/filesys.rb: Update entry files with timestamps.