harvester 0.8.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/CHANGELOG.rdoc +45 -0
  2. data/README.rdoc +74 -0
  3. data/Rakefile +28 -0
  4. data/bin/harvester +13 -0
  5. data/bin/harvester-chart +5 -0
  6. data/bin/harvester-clock +35 -0
  7. data/bin/harvester-db +15 -0
  8. data/bin/harvester-fetch +5 -0
  9. data/bin/harvester-generate +5 -0
  10. data/bin/harvester-jabber +6 -0
  11. data/bin/harvester-new +25 -0
  12. data/bin/harvester-post +5 -0
  13. data/bin/harvester-run +14 -0
  14. data/collections.yaml +15 -0
  15. data/config.yaml +13 -0
  16. data/data/ent/HTMLlat1.ent +194 -0
  17. data/data/ent/HTMLspecial.ent +77 -0
  18. data/data/ent/HTMLsymbol.ent +241 -0
  19. data/data/sql/dbd-mysql-isotime.diff +11 -0
  20. data/data/sql/harvester-0.6-mysql.diff +59 -0
  21. data/data/sql/harvester-0.7-mysql.diff +39 -0
  22. data/data/sql/mysql/chart.sql +1 -0
  23. data/data/sql/mysql/create.table.enclosures.sql +9 -0
  24. data/data/sql/mysql/create.table.items.sql +8 -0
  25. data/data/sql/mysql/create.table.jabbersettings.sql +5 -0
  26. data/data/sql/mysql/create.table.jabbersubscriptions.sql +5 -0
  27. data/data/sql/mysql/create.table.sources.sql +9 -0
  28. data/data/sql/mysql/create.view.last48hours.sql +1 -0
  29. data/data/sql/postgresql/chart.sql +1 -0
  30. data/data/sql/postgresql/create.table.enclosures.sql +9 -0
  31. data/data/sql/postgresql/create.table.items.sql +8 -0
  32. data/data/sql/postgresql/create.table.jabbersettings.sql +5 -0
  33. data/data/sql/postgresql/create.table.jabbersubscriptions.sql +5 -0
  34. data/data/sql/postgresql/create.table.sources.sql +9 -0
  35. data/data/sql/postgresql/create.view.last48hours.sql +1 -0
  36. data/data/sql/sqlite3/chart.sql +1 -0
  37. data/data/sql/sqlite3/create.table.enclosures.sql +9 -0
  38. data/data/sql/sqlite3/create.table.items.sql +8 -0
  39. data/data/sql/sqlite3/create.table.jabbersettings.sql +5 -0
  40. data/data/sql/sqlite3/create.table.jabbersubscriptions.sql +5 -0
  41. data/data/sql/sqlite3/create.table.sources.sql +9 -0
  42. data/data/sql/sqlite3/create.view.last48hours.sql +1 -0
  43. data/data/templates/atom-all.xml +88 -0
  44. data/data/templates/atom.xml +88 -0
  45. data/data/templates/index.html +412 -0
  46. data/data/templates/rss-all.rdf +86 -0
  47. data/data/templates/rss.rdf +85 -0
  48. data/data/templates/static/harvester.css +365 -0
  49. data/data/templates/static/harvester.gif +0 -0
  50. data/data/templates/static/harvester_ie7.css +15 -0
  51. data/data/templates/static/harvester_lte_ie6.css +27 -0
  52. data/harvester.gemspec +35 -0
  53. data/lib/harvester.rb +132 -0
  54. data/lib/harvester/chart.rb +72 -0
  55. data/lib/harvester/db.rb +123 -0
  56. data/lib/harvester/fetch.rb +96 -0
  57. data/lib/harvester/generate.rb +152 -0
  58. data/lib/harvester/generator/entity_translator.rb +46 -0
  59. data/lib/harvester/generator/link_absolutizer.rb +39 -0
  60. data/lib/harvester/jabber.rb +443 -0
  61. data/lib/harvester/mrss.rb +355 -0
  62. data/lib/harvester/post.rb +19 -0
  63. metadata +237 -0
@@ -0,0 +1,77 @@
1
+ <!-- Special characters for HTML -->
2
+
3
+ <!-- Character entity set. Typical invocation:
4
+ <!ENTITY % HTMLspecial PUBLIC
5
+ "-//W3C//ENTITIES Special//EN//HTML">
6
+ %HTMLspecial; -->
7
+
8
+ <!-- Portions (C) International Organization for Standardization 1986:
9
+ Permission to copy in any form is granted for use with
10
+ conforming SGML systems and applications as defined in
11
+ ISO 8879, provided this notice is included in all copies.
12
+ -->
13
+
14
+ <!-- Relevant ISO entity set is given unless names are newly introduced.
15
+ New names (i.e., not in ISO 8879 list) do not clash with any
16
+ existing ISO 8879 entity names. ISO 10646 character numbers
17
+ are given for each character, in hex. CDATA values are decimal
18
+ conversions of the ISO 10646 values and refer to the document
19
+ character set. Names are ISO 10646 names.
20
+
21
+ -->
22
+
23
+ <!-- C0 Controls and Basic Latin -->
24
+ <!ENTITY quot CDATA "&#34;" -- quotation mark = APL quote,
25
+ U+0022 ISOnum -->
26
+ <!ENTITY amp CDATA "&#38;" -- ampersand, U+0026 ISOnum -->
27
+ <!ENTITY lt CDATA "&#60;" -- less-than sign, U+003C ISOnum -->
28
+ <!ENTITY gt CDATA "&#62;" -- greater-than sign, U+003E ISOnum -->
29
+
30
+ <!-- Latin Extended-A -->
31
+ <!ENTITY OElig CDATA "&#338;" -- latin capital ligature OE,
32
+ U+0152 ISOlat2 -->
33
+ <!ENTITY oelig CDATA "&#339;" -- latin small ligature oe, U+0153 ISOlat2 -->
34
+ <!-- ligature is a misnomer, this is a separate character in some languages -->
35
+ <!ENTITY Scaron CDATA "&#352;" -- latin capital letter S with caron,
36
+ U+0160 ISOlat2 -->
37
+ <!ENTITY scaron CDATA "&#353;" -- latin small letter s with caron,
38
+ U+0161 ISOlat2 -->
39
+ <!ENTITY Yuml CDATA "&#376;" -- latin capital letter Y with diaeresis,
40
+ U+0178 ISOlat2 -->
41
+
42
+ <!-- Spacing Modifier Letters -->
43
+ <!ENTITY circ CDATA "&#710;" -- modifier letter circumflex accent,
44
+ U+02C6 ISOpub -->
45
+ <!ENTITY tilde CDATA "&#732;" -- small tilde, U+02DC ISOdia -->
46
+
47
+ <!-- General Punctuation -->
48
+ <!ENTITY ensp CDATA "&#8194;" -- en space, U+2002 ISOpub -->
49
+ <!ENTITY emsp CDATA "&#8195;" -- em space, U+2003 ISOpub -->
50
+ <!ENTITY thinsp CDATA "&#8201;" -- thin space, U+2009 ISOpub -->
51
+ <!ENTITY zwnj CDATA "&#8204;" -- zero width non-joiner,
52
+ U+200C NEW RFC 2070 -->
53
+ <!ENTITY zwj CDATA "&#8205;" -- zero width joiner, U+200D NEW RFC 2070 -->
54
+ <!ENTITY lrm CDATA "&#8206;" -- left-to-right mark, U+200E NEW RFC 2070 -->
55
+ <!ENTITY rlm CDATA "&#8207;" -- right-to-left mark, U+200F NEW RFC 2070 -->
56
+ <!ENTITY ndash CDATA "&#8211;" -- en dash, U+2013 ISOpub -->
57
+ <!ENTITY mdash CDATA "&#8212;" -- em dash, U+2014 ISOpub -->
58
+ <!ENTITY lsquo CDATA "&#8216;" -- left single quotation mark,
59
+ U+2018 ISOnum -->
60
+ <!ENTITY rsquo CDATA "&#8217;" -- right single quotation mark,
61
+ U+2019 ISOnum -->
62
+ <!ENTITY sbquo CDATA "&#8218;" -- single low-9 quotation mark, U+201A NEW -->
63
+ <!ENTITY ldquo CDATA "&#8220;" -- left double quotation mark,
64
+ U+201C ISOnum -->
65
+ <!ENTITY rdquo CDATA "&#8221;" -- right double quotation mark,
66
+ U+201D ISOnum -->
67
+ <!ENTITY bdquo CDATA "&#8222;" -- double low-9 quotation mark, U+201E NEW -->
68
+ <!ENTITY dagger CDATA "&#8224;" -- dagger, U+2020 ISOpub -->
69
+ <!ENTITY Dagger CDATA "&#8225;" -- double dagger, U+2021 ISOpub -->
70
+ <!ENTITY permil CDATA "&#8240;" -- per mille sign, U+2030 ISOtech -->
71
+ <!ENTITY lsaquo CDATA "&#8249;" -- single left-pointing angle quotation mark,
72
+ U+2039 ISO proposed -->
73
+ <!-- lsaquo is proposed but not yet ISO standardized -->
74
+ <!ENTITY rsaquo CDATA "&#8250;" -- single right-pointing angle quotation mark,
75
+ U+203A ISO proposed -->
76
+ <!-- rsaquo is proposed but not yet ISO standardized -->
77
+ <!ENTITY euro CDATA "&#8364;" -- euro sign, U+20AC NEW -->
@@ -0,0 +1,241 @@
1
+ <!-- Mathematical, Greek and Symbolic characters for HTML -->
2
+
3
+ <!-- Character entity set. Typical invocation:
4
+ <!ENTITY % HTMLsymbol PUBLIC
5
+ "-//W3C//ENTITIES Symbols//EN//HTML">
6
+ %HTMLsymbol; -->
7
+
8
+ <!-- Portions (C) International Organization for Standardization 1986:
9
+ Permission to copy in any form is granted for use with
10
+ conforming SGML systems and applications as defined in
11
+ ISO 8879, provided this notice is included in all copies.
12
+ -->
13
+
14
+ <!-- Relevant ISO entity set is given unless names are newly introduced.
15
+ New names (i.e., not in ISO 8879 list) do not clash with any
16
+ existing ISO 8879 entity names. ISO 10646 character numbers
17
+ are given for each character, in hex. CDATA values are decimal
18
+ conversions of the ISO 10646 values and refer to the document
19
+ character set. Names are ISO 10646 names.
20
+
21
+ -->
22
+
23
+ <!-- Latin Extended-B -->
24
+ <!ENTITY fnof CDATA "&#402;" -- latin small f with hook = function
25
+ = florin, U+0192 ISOtech -->
26
+
27
+ <!-- Greek -->
28
+ <!ENTITY Alpha CDATA "&#913;" -- greek capital letter alpha, U+0391 -->
29
+ <!ENTITY Beta CDATA "&#914;" -- greek capital letter beta, U+0392 -->
30
+ <!ENTITY Gamma CDATA "&#915;" -- greek capital letter gamma,
31
+ U+0393 ISOgrk3 -->
32
+ <!ENTITY Delta CDATA "&#916;" -- greek capital letter delta,
33
+ U+0394 ISOgrk3 -->
34
+ <!ENTITY Epsilon CDATA "&#917;" -- greek capital letter epsilon, U+0395 -->
35
+ <!ENTITY Zeta CDATA "&#918;" -- greek capital letter zeta, U+0396 -->
36
+ <!ENTITY Eta CDATA "&#919;" -- greek capital letter eta, U+0397 -->
37
+ <!ENTITY Theta CDATA "&#920;" -- greek capital letter theta,
38
+ U+0398 ISOgrk3 -->
39
+ <!ENTITY Iota CDATA "&#921;" -- greek capital letter iota, U+0399 -->
40
+ <!ENTITY Kappa CDATA "&#922;" -- greek capital letter kappa, U+039A -->
41
+ <!ENTITY Lambda CDATA "&#923;" -- greek capital letter lambda,
42
+ U+039B ISOgrk3 -->
43
+ <!ENTITY Mu CDATA "&#924;" -- greek capital letter mu, U+039C -->
44
+ <!ENTITY Nu CDATA "&#925;" -- greek capital letter nu, U+039D -->
45
+ <!ENTITY Xi CDATA "&#926;" -- greek capital letter xi, U+039E ISOgrk3 -->
46
+ <!ENTITY Omicron CDATA "&#927;" -- greek capital letter omicron, U+039F -->
47
+ <!ENTITY Pi CDATA "&#928;" -- greek capital letter pi, U+03A0 ISOgrk3 -->
48
+ <!ENTITY Rho CDATA "&#929;" -- greek capital letter rho, U+03A1 -->
49
+ <!-- there is no Sigmaf, and no U+03A2 character either -->
50
+ <!ENTITY Sigma CDATA "&#931;" -- greek capital letter sigma,
51
+ U+03A3 ISOgrk3 -->
52
+ <!ENTITY Tau CDATA "&#932;" -- greek capital letter tau, U+03A4 -->
53
+ <!ENTITY Upsilon CDATA "&#933;" -- greek capital letter upsilon,
54
+ U+03A5 ISOgrk3 -->
55
+ <!ENTITY Phi CDATA "&#934;" -- greek capital letter phi,
56
+ U+03A6 ISOgrk3 -->
57
+ <!ENTITY Chi CDATA "&#935;" -- greek capital letter chi, U+03A7 -->
58
+ <!ENTITY Psi CDATA "&#936;" -- greek capital letter psi,
59
+ U+03A8 ISOgrk3 -->
60
+ <!ENTITY Omega CDATA "&#937;" -- greek capital letter omega,
61
+ U+03A9 ISOgrk3 -->
62
+
63
+ <!ENTITY alpha CDATA "&#945;" -- greek small letter alpha,
64
+ U+03B1 ISOgrk3 -->
65
+ <!ENTITY beta CDATA "&#946;" -- greek small letter beta, U+03B2 ISOgrk3 -->
66
+ <!ENTITY gamma CDATA "&#947;" -- greek small letter gamma,
67
+ U+03B3 ISOgrk3 -->
68
+ <!ENTITY delta CDATA "&#948;" -- greek small letter delta,
69
+ U+03B4 ISOgrk3 -->
70
+ <!ENTITY epsilon CDATA "&#949;" -- greek small letter epsilon,
71
+ U+03B5 ISOgrk3 -->
72
+ <!ENTITY zeta CDATA "&#950;" -- greek small letter zeta, U+03B6 ISOgrk3 -->
73
+ <!ENTITY eta CDATA "&#951;" -- greek small letter eta, U+03B7 ISOgrk3 -->
74
+ <!ENTITY theta CDATA "&#952;" -- greek small letter theta,
75
+ U+03B8 ISOgrk3 -->
76
+ <!ENTITY iota CDATA "&#953;" -- greek small letter iota, U+03B9 ISOgrk3 -->
77
+ <!ENTITY kappa CDATA "&#954;" -- greek small letter kappa,
78
+ U+03BA ISOgrk3 -->
79
+ <!ENTITY lambda CDATA "&#955;" -- greek small letter lambda,
80
+ U+03BB ISOgrk3 -->
81
+ <!ENTITY mu CDATA "&#956;" -- greek small letter mu, U+03BC ISOgrk3 -->
82
+ <!ENTITY nu CDATA "&#957;" -- greek small letter nu, U+03BD ISOgrk3 -->
83
+ <!ENTITY xi CDATA "&#958;" -- greek small letter xi, U+03BE ISOgrk3 -->
84
+ <!ENTITY omicron CDATA "&#959;" -- greek small letter omicron, U+03BF NEW -->
85
+ <!ENTITY pi CDATA "&#960;" -- greek small letter pi, U+03C0 ISOgrk3 -->
86
+ <!ENTITY rho CDATA "&#961;" -- greek small letter rho, U+03C1 ISOgrk3 -->
87
+ <!ENTITY sigmaf CDATA "&#962;" -- greek small letter final sigma,
88
+ U+03C2 ISOgrk3 -->
89
+ <!ENTITY sigma CDATA "&#963;" -- greek small letter sigma,
90
+ U+03C3 ISOgrk3 -->
91
+ <!ENTITY tau CDATA "&#964;" -- greek small letter tau, U+03C4 ISOgrk3 -->
92
+ <!ENTITY upsilon CDATA "&#965;" -- greek small letter upsilon,
93
+ U+03C5 ISOgrk3 -->
94
+ <!ENTITY phi CDATA "&#966;" -- greek small letter phi, U+03C6 ISOgrk3 -->
95
+ <!ENTITY chi CDATA "&#967;" -- greek small letter chi, U+03C7 ISOgrk3 -->
96
+ <!ENTITY psi CDATA "&#968;" -- greek small letter psi, U+03C8 ISOgrk3 -->
97
+ <!ENTITY omega CDATA "&#969;" -- greek small letter omega,
98
+ U+03C9 ISOgrk3 -->
99
+ <!ENTITY thetasym CDATA "&#977;" -- greek small letter theta symbol,
100
+ U+03D1 NEW -->
101
+ <!ENTITY upsih CDATA "&#978;" -- greek upsilon with hook symbol,
102
+ U+03D2 NEW -->
103
+ <!ENTITY piv CDATA "&#982;" -- greek pi symbol, U+03D6 ISOgrk3 -->
104
+
105
+ <!-- General Punctuation -->
106
+ <!ENTITY bull CDATA "&#8226;" -- bullet = black small circle,
107
+ U+2022 ISOpub -->
108
+ <!-- bullet is NOT the same as bullet operator, U+2219 -->
109
+ <!ENTITY hellip CDATA "&#8230;" -- horizontal ellipsis = three dot leader,
110
+ U+2026 ISOpub -->
111
+ <!ENTITY prime CDATA "&#8242;" -- prime = minutes = feet, U+2032 ISOtech -->
112
+ <!ENTITY Prime CDATA "&#8243;" -- double prime = seconds = inches,
113
+ U+2033 ISOtech -->
114
+ <!ENTITY oline CDATA "&#8254;" -- overline = spacing overscore,
115
+ U+203E NEW -->
116
+ <!ENTITY frasl CDATA "&#8260;" -- fraction slash, U+2044 NEW -->
117
+
118
+ <!-- Letterlike Symbols -->
119
+ <!ENTITY weierp CDATA "&#8472;" -- script capital P = power set
120
+ = Weierstrass p, U+2118 ISOamso -->
121
+ <!ENTITY image CDATA "&#8465;" -- blackletter capital I = imaginary part,
122
+ U+2111 ISOamso -->
123
+ <!ENTITY real CDATA "&#8476;" -- blackletter capital R = real part symbol,
124
+ U+211C ISOamso -->
125
+ <!ENTITY trade CDATA "&#8482;" -- trade mark sign, U+2122 ISOnum -->
126
+ <!ENTITY alefsym CDATA "&#8501;" -- alef symbol = first transfinite cardinal,
127
+ U+2135 NEW -->
128
+ <!-- alef symbol is NOT the same as hebrew letter alef,
129
+ U+05D0 although the same glyph could be used to depict both characters -->
130
+
131
+ <!-- Arrows -->
132
+ <!ENTITY larr CDATA "&#8592;" -- leftwards arrow, U+2190 ISOnum -->
133
+ <!ENTITY uarr CDATA "&#8593;" -- upwards arrow, U+2191 ISOnum-->
134
+ <!ENTITY rarr CDATA "&#8594;" -- rightwards arrow, U+2192 ISOnum -->
135
+ <!ENTITY darr CDATA "&#8595;" -- downwards arrow, U+2193 ISOnum -->
136
+ <!ENTITY harr CDATA "&#8596;" -- left right arrow, U+2194 ISOamsa -->
137
+ <!ENTITY crarr CDATA "&#8629;" -- downwards arrow with corner leftwards
138
+ = carriage return, U+21B5 NEW -->
139
+ <!ENTITY lArr CDATA "&#8656;" -- leftwards double arrow, U+21D0 ISOtech -->
140
+ <!-- ISO 10646 does not say that lArr is the same as the 'is implied by' arrow
141
+ but also does not have any other character for that function. So ? lArr can
142
+ be used for 'is implied by' as ISOtech suggests -->
143
+ <!ENTITY uArr CDATA "&#8657;" -- upwards double arrow, U+21D1 ISOamsa -->
144
+ <!ENTITY rArr CDATA "&#8658;" -- rightwards double arrow,
145
+ U+21D2 ISOtech -->
146
+ <!-- ISO 10646 does not say this is the 'implies' character but does not have
147
+ another character with this function so ?
148
+ rArr can be used for 'implies' as ISOtech suggests -->
149
+ <!ENTITY dArr CDATA "&#8659;" -- downwards double arrow, U+21D3 ISOamsa -->
150
+ <!ENTITY hArr CDATA "&#8660;" -- left right double arrow,
151
+ U+21D4 ISOamsa -->
152
+
153
+ <!-- Mathematical Operators -->
154
+ <!ENTITY forall CDATA "&#8704;" -- for all, U+2200 ISOtech -->
155
+ <!ENTITY part CDATA "&#8706;" -- partial differential, U+2202 ISOtech -->
156
+ <!ENTITY exist CDATA "&#8707;" -- there exists, U+2203 ISOtech -->
157
+ <!ENTITY empty CDATA "&#8709;" -- empty set = null set = diameter,
158
+ U+2205 ISOamso -->
159
+ <!ENTITY nabla CDATA "&#8711;" -- nabla = backward difference,
160
+ U+2207 ISOtech -->
161
+ <!ENTITY isin CDATA "&#8712;" -- element of, U+2208 ISOtech -->
162
+ <!ENTITY notin CDATA "&#8713;" -- not an element of, U+2209 ISOtech -->
163
+ <!ENTITY ni CDATA "&#8715;" -- contains as member, U+220B ISOtech -->
164
+ <!-- should there be a more memorable name than 'ni'? -->
165
+ <!ENTITY prod CDATA "&#8719;" -- n-ary product = product sign,
166
+ U+220F ISOamsb -->
167
+ <!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
168
+ the same glyph might be used for both -->
169
+ <!ENTITY sum CDATA "&#8721;" -- n-ary sumation, U+2211 ISOamsb -->
170
+ <!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
171
+ though the same glyph might be used for both -->
172
+ <!ENTITY minus CDATA "&#8722;" -- minus sign, U+2212 ISOtech -->
173
+ <!ENTITY lowast CDATA "&#8727;" -- asterisk operator, U+2217 ISOtech -->
174
+ <!ENTITY radic CDATA "&#8730;" -- square root = radical sign,
175
+ U+221A ISOtech -->
176
+ <!ENTITY prop CDATA "&#8733;" -- proportional to, U+221D ISOtech -->
177
+ <!ENTITY infin CDATA "&#8734;" -- infinity, U+221E ISOtech -->
178
+ <!ENTITY ang CDATA "&#8736;" -- angle, U+2220 ISOamso -->
179
+ <!ENTITY and CDATA "&#8743;" -- logical and = wedge, U+2227 ISOtech -->
180
+ <!ENTITY or CDATA "&#8744;" -- logical or = vee, U+2228 ISOtech -->
181
+ <!ENTITY cap CDATA "&#8745;" -- intersection = cap, U+2229 ISOtech -->
182
+ <!ENTITY cup CDATA "&#8746;" -- union = cup, U+222A ISOtech -->
183
+ <!ENTITY int CDATA "&#8747;" -- integral, U+222B ISOtech -->
184
+ <!ENTITY there4 CDATA "&#8756;" -- therefore, U+2234 ISOtech -->
185
+ <!ENTITY sim CDATA "&#8764;" -- tilde operator = varies with = similar to,
186
+ U+223C ISOtech -->
187
+ <!-- tilde operator is NOT the same character as the tilde, U+007E,
188
+ although the same glyph might be used to represent both -->
189
+ <!ENTITY cong CDATA "&#8773;" -- approximately equal to, U+2245 ISOtech -->
190
+ <!ENTITY asymp CDATA "&#8776;" -- almost equal to = asymptotic to,
191
+ U+2248 ISOamsr -->
192
+ <!ENTITY ne CDATA "&#8800;" -- not equal to, U+2260 ISOtech -->
193
+ <!ENTITY equiv CDATA "&#8801;" -- identical to, U+2261 ISOtech -->
194
+ <!ENTITY le CDATA "&#8804;" -- less-than or equal to, U+2264 ISOtech -->
195
+ <!ENTITY ge CDATA "&#8805;" -- greater-than or equal to,
196
+ U+2265 ISOtech -->
197
+ <!ENTITY sub CDATA "&#8834;" -- subset of, U+2282 ISOtech -->
198
+ <!ENTITY sup CDATA "&#8835;" -- superset of, U+2283 ISOtech -->
199
+ <!-- note that nsup, 'not a superset of, U+2283' is not covered by the Symbol
200
+ font encoding and is not included. Should it be, for symmetry?
201
+ It is in ISOamsn -->
202
+ <!ENTITY nsub CDATA "&#8836;" -- not a subset of, U+2284 ISOamsn -->
203
+ <!ENTITY sube CDATA "&#8838;" -- subset of or equal to, U+2286 ISOtech -->
204
+ <!ENTITY supe CDATA "&#8839;" -- superset of or equal to,
205
+ U+2287 ISOtech -->
206
+ <!ENTITY oplus CDATA "&#8853;" -- circled plus = direct sum,
207
+ U+2295 ISOamsb -->
208
+ <!ENTITY otimes CDATA "&#8855;" -- circled times = vector product,
209
+ U+2297 ISOamsb -->
210
+ <!ENTITY perp CDATA "&#8869;" -- up tack = orthogonal to = perpendicular,
211
+ U+22A5 ISOtech -->
212
+ <!ENTITY sdot CDATA "&#8901;" -- dot operator, U+22C5 ISOamsb -->
213
+ <!-- dot operator is NOT the same character as U+00B7 middle dot -->
214
+
215
+ <!-- Miscellaneous Technical -->
216
+ <!ENTITY lceil CDATA "&#8968;" -- left ceiling = apl upstile,
217
+ U+2308 ISOamsc -->
218
+ <!ENTITY rceil CDATA "&#8969;" -- right ceiling, U+2309 ISOamsc -->
219
+ <!ENTITY lfloor CDATA "&#8970;" -- left floor = apl downstile,
220
+ U+230A ISOamsc -->
221
+ <!ENTITY rfloor CDATA "&#8971;" -- right floor, U+230B ISOamsc -->
222
+ <!ENTITY lang CDATA "&#9001;" -- left-pointing angle bracket = bra,
223
+ U+2329 ISOtech -->
224
+ <!-- lang is NOT the same character as U+003C 'less than'
225
+ or U+2039 'single left-pointing angle quotation mark' -->
226
+ <!ENTITY rang CDATA "&#9002;" -- right-pointing angle bracket = ket,
227
+ U+232A ISOtech -->
228
+ <!-- rang is NOT the same character as U+003E 'greater than'
229
+ or U+203A 'single right-pointing angle quotation mark' -->
230
+
231
+ <!-- Geometric Shapes -->
232
+ <!ENTITY loz CDATA "&#9674;" -- lozenge, U+25CA ISOpub -->
233
+
234
+ <!-- Miscellaneous Symbols -->
235
+ <!ENTITY spades CDATA "&#9824;" -- black spade suit, U+2660 ISOpub -->
236
+ <!-- black here seems to mean filled as opposed to hollow -->
237
+ <!ENTITY clubs CDATA "&#9827;" -- black club suit = shamrock,
238
+ U+2663 ISOpub -->
239
+ <!ENTITY hearts CDATA "&#9829;" -- black heart suit = valentine,
240
+ U+2665 ISOpub -->
241
+ <!ENTITY diams CDATA "&#9830;" -- black diamond suit, U+2666 ISOpub -->
@@ -0,0 +1,11 @@
1
+ --- git/harvester/fetch.rb 2010-08-29 23:16:17.000000000 +0200
2
+ +++ harvester/fetch.rb 2011-01-03 16:57:14.000000000 +0100
3
+ @@ -152,7 +152,7 @@
4
+ if item_is_new
5
+ begin
6
+ dbi.do "INSERT INTO items (rss, title, link, date, description) VALUES (?, ?, ?, ?, ?)",
7
+ - rss_url, item.title, link, item.date, description
8
+ + rss_url, item.title, link, item.date.iso8601, description
9
+ items_new += 1
10
+ rescue DBI::ProgrammingError
11
+ puts description
@@ -0,0 +1,59 @@
1
+ diff -u harvester-0.6/config.yaml harvester-0.6-mysql/config.yaml
2
+ --- harvester-0.6/config.yaml 2006-04-14 22:29:53.000000000 +0200
3
+ +++ harvester-0.6-mysql/config.yaml 2006-10-03 11:47:48.303550000 +0200
4
+ @@ -1,8 +1,8 @@
5
+ ---
6
+ db:
7
+ - driver: dbi:Pg:harvester:localhost
8
+ - user: harvester
9
+ - password: ***
10
+ + driver: dbi:MySQL:database_name:localhost
11
+ + user: username
12
+ + password: password
13
+ settings:
14
+ size limit: 102400
15
+ timeout: 30
16
+ diff -u harvester-0.6/db.sql harvester-0.6-mysql/db.sql
17
+ --- harvester-0.6/db.sql 2006-03-13 03:38:57.000000000 +0100
18
+ +++ harvester-0.6-mysql/db.sql 2006-10-03 11:41:49.549129250 +0200
19
+ @@ -1,6 +1,6 @@
20
+ create table sources (
21
+ - collection varchar(256) not null,
22
+ - rss varchar(256) not null,
23
+ + collection varchar(100) not null,
24
+ + rss varchar(100) not null,
25
+ last varchar(40),
26
+ title varchar(256),
27
+ link varchar(256),
28
+ @@ -9,24 +9,24 @@
29
+ );
30
+
31
+ create table items (
32
+ - rss varchar(256) not null,
33
+ + rss varchar(100) not null,
34
+ title varchar(256),
35
+ - link varchar(256),
36
+ - date timestamp,
37
+ + link varchar(100),
38
+ + date datetime,
39
+ description text,
40
+ unique (rss, link)
41
+ );
42
+
43
+ -create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval '48 hour' < items.date order by date;
44
+ +create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval 48 hour < items.date order by date;
45
+
46
+ create table jabbersubscriptions (
47
+ - jid varchar(256) not null,
48
+ - collection varchar(256) not null,
49
+ + jid varchar(100) not null,
50
+ + collection varchar(100) not null,
51
+ unique (jid, collection)
52
+ );
53
+
54
+ create table jabbersettings (
55
+ jid varchar(256) primary key,
56
+ - respect_status boolean,
57
+ + respect_status tinyint(1),
58
+ message_type varchar(16)
59
+ );
@@ -0,0 +1,39 @@
1
+ --- db.sql.orig 2007-08-16 17:41:45.000000000 +0200
2
+ +++ db.sql 2007-09-30 13:55:12.000000000 +0200
3
+ @@ -5,7 +5,7 @@
4
+ title varchar(255),
5
+ link varchar(255),
6
+ description text,
7
+ - unique (collection, rss)
8
+ + unique (collection(166), rss(166))
9
+ );
10
+
11
+ create table items (
12
+ @@ -14,7 +14,7 @@
13
+ link varchar(255),
14
+ date timestamp,
15
+ description text,
16
+ - unique (rss, link)
17
+ + unique (rss(166), link(166))
18
+ );
19
+
20
+ create table enclosures (
21
+ @@ -24,15 +24,15 @@
22
+ mime varchar(255),
23
+ title varchar(255),
24
+ length int,
25
+ - unique (rss, link, href)
26
+ + unique (rss(100), link(100), href(100))
27
+ );
28
+
29
+ -create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval '48 hour' < items.date order by date;
30
+ +create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval 48 hour < items.`date` order by date;
31
+
32
+ create table jabbersubscriptions (
33
+ jid varchar(255) not null,
34
+ collection varchar(255) not null,
35
+ - unique (jid, collection)
36
+ + unique (jid(166), collection(166))
37
+ );
38
+
39
+ create table jabbersettings (
@@ -0,0 +1 @@
1
+ select date(items.date) as date,sources.collection from items left join sources on sources.rss=items.rss where date > now() - interval '14 days' and date < now() + interval '1 day' order by date
@@ -0,0 +1,9 @@
1
+ create table enclosures (
2
+ rss varchar(255) not null,
3
+ link varchar(255) not null,
4
+ href varchar(255) not null,
5
+ mime varchar(255),
6
+ title varchar(255),
7
+ length int,
8
+ unique (rss(100), link(100), href(100))
9
+ );
@@ -0,0 +1,8 @@
1
+ create table items (
2
+ rss varchar(255) not null,
3
+ title varchar(255),
4
+ link varchar(255),
5
+ date timestamp,
6
+ description text,
7
+ unique (rss(166), link(166))
8
+ );