sqlpostgres 1.2.4

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 (207) hide show
  1. data/Gemfile +8 -0
  2. data/Gemfile.lock +22 -0
  3. data/LICENSE.md +23 -0
  4. data/README.rdoc +59 -0
  5. data/Rakefile +32 -0
  6. data/VERSION +1 -0
  7. data/doc/BUGS +2 -0
  8. data/doc/examples/README +6 -0
  9. data/doc/examples/connection.rb +16 -0
  10. data/doc/examples/connection_auto.rb +22 -0
  11. data/doc/examples/connection_ctor.rb +18 -0
  12. data/doc/examples/connection_default.rb +15 -0
  13. data/doc/examples/connection_exec.rb +18 -0
  14. data/doc/examples/connection_manual.rb +12 -0
  15. data/doc/examples/connection_wrapped_new.rb +13 -0
  16. data/doc/examples/connection_wrapped_open.rb +13 -0
  17. data/doc/examples/cursor.rb +38 -0
  18. data/doc/examples/include_module.rb +9 -0
  19. data/doc/examples/include_module2.rb +12 -0
  20. data/doc/examples/insert.rb +30 -0
  21. data/doc/examples/insert2.rb +36 -0
  22. data/doc/examples/insert_bytea.rb +16 -0
  23. data/doc/examples/insert_bytea_array.rb +17 -0
  24. data/doc/examples/insert_default_values.rb +16 -0
  25. data/doc/examples/insert_insert.rb +16 -0
  26. data/doc/examples/insert_insert_default.rb +16 -0
  27. data/doc/examples/insert_insert_select.rb +20 -0
  28. data/doc/examples/insert_select.rb +20 -0
  29. data/doc/examples/interval.rb +17 -0
  30. data/doc/examples/savepoint.rb +38 -0
  31. data/doc/examples/select.rb +33 -0
  32. data/doc/examples/select2.rb +36 -0
  33. data/doc/examples/select_cross_join.rb +18 -0
  34. data/doc/examples/select_distinct.rb +18 -0
  35. data/doc/examples/select_distinct_on +19 -0
  36. data/doc/examples/select_for_update.rb +18 -0
  37. data/doc/examples/select_from.rb +17 -0
  38. data/doc/examples/select_from_subselect.rb +20 -0
  39. data/doc/examples/select_group_by.rb +19 -0
  40. data/doc/examples/select_having.rb +20 -0
  41. data/doc/examples/select_join_on.rb +18 -0
  42. data/doc/examples/select_join_using.rb +18 -0
  43. data/doc/examples/select_limit.rb +19 -0
  44. data/doc/examples/select_natural_join.rb +18 -0
  45. data/doc/examples/select_offset.rb +19 -0
  46. data/doc/examples/select_order_by.rb +20 -0
  47. data/doc/examples/select_select.rb +30 -0
  48. data/doc/examples/select_select_alias.rb +30 -0
  49. data/doc/examples/select_select_expression.rb +31 -0
  50. data/doc/examples/select_select_literal.rb +24 -0
  51. data/doc/examples/select_union.rb +21 -0
  52. data/doc/examples/select_where_array.rb +18 -0
  53. data/doc/examples/select_where_in.rb +18 -0
  54. data/doc/examples/select_where_string.rb +18 -0
  55. data/doc/examples/simple.rb +34 -0
  56. data/doc/examples/transaction.rb +30 -0
  57. data/doc/examples/transaction_abort.rb +30 -0
  58. data/doc/examples/transaction_commit.rb +34 -0
  59. data/doc/examples/translate_substitute_values.rb +17 -0
  60. data/doc/examples/update.rb +32 -0
  61. data/doc/examples/update2.rb +44 -0
  62. data/doc/examples/update_only.rb +17 -0
  63. data/doc/examples/update_set.rb +17 -0
  64. data/doc/examples/update_set_array.rb +16 -0
  65. data/doc/examples/update_set_bytea.rb +16 -0
  66. data/doc/examples/update_set_expression.rb +16 -0
  67. data/doc/examples/update_set_subselect.rb +20 -0
  68. data/doc/examples/update_where.rb +17 -0
  69. data/doc/examples/use_prefix.rb +8 -0
  70. data/doc/examples/use_prefix2.rb +11 -0
  71. data/doc/index.html +31 -0
  72. data/doc/insertexamples.rb +9 -0
  73. data/doc/makemanual +4 -0
  74. data/doc/makerdoc +5 -0
  75. data/doc/manual.dbk +622 -0
  76. data/lib/sqlpostgres/Connection.rb +198 -0
  77. data/lib/sqlpostgres/Cursor.rb +157 -0
  78. data/lib/sqlpostgres/Delete.rb +67 -0
  79. data/lib/sqlpostgres/Exceptions.rb +15 -0
  80. data/lib/sqlpostgres/Insert.rb +279 -0
  81. data/lib/sqlpostgres/NullConnection.rb +22 -0
  82. data/lib/sqlpostgres/PgBit.rb +73 -0
  83. data/lib/sqlpostgres/PgBox.rb +37 -0
  84. data/lib/sqlpostgres/PgCidr.rb +21 -0
  85. data/lib/sqlpostgres/PgCircle.rb +75 -0
  86. data/lib/sqlpostgres/PgInet.rb +21 -0
  87. data/lib/sqlpostgres/PgInterval.rb +208 -0
  88. data/lib/sqlpostgres/PgLineSegment.rb +37 -0
  89. data/lib/sqlpostgres/PgMacAddr.rb +21 -0
  90. data/lib/sqlpostgres/PgPath.rb +64 -0
  91. data/lib/sqlpostgres/PgPoint.rb +65 -0
  92. data/lib/sqlpostgres/PgPolygon.rb +56 -0
  93. data/lib/sqlpostgres/PgTime.rb +77 -0
  94. data/lib/sqlpostgres/PgTimeWithTimeZone.rb +98 -0
  95. data/lib/sqlpostgres/PgTimestamp.rb +93 -0
  96. data/lib/sqlpostgres/PgTwoPoints.rb +54 -0
  97. data/lib/sqlpostgres/PgType.rb +34 -0
  98. data/lib/sqlpostgres/PgWrapper.rb +41 -0
  99. data/lib/sqlpostgres/Savepoint.rb +98 -0
  100. data/lib/sqlpostgres/Select.rb +855 -0
  101. data/lib/sqlpostgres/Transaction.rb +120 -0
  102. data/lib/sqlpostgres/Translate.rb +436 -0
  103. data/lib/sqlpostgres/Update.rb +188 -0
  104. data/lib/sqlpostgres.rb +67 -0
  105. data/test/Assert.rb +72 -0
  106. data/test/Connection.test.rb +246 -0
  107. data/test/Cursor.test.rb +190 -0
  108. data/test/Delete.test.rb +68 -0
  109. data/test/Insert.test.rb +123 -0
  110. data/test/MockPGconn.rb +62 -0
  111. data/test/NullConnection.test.rb +32 -0
  112. data/test/PgBit.test.rb +98 -0
  113. data/test/PgBox.test.rb +108 -0
  114. data/test/PgCidr.test.rb +61 -0
  115. data/test/PgCircle.test.rb +107 -0
  116. data/test/PgInet.test.rb +61 -0
  117. data/test/PgInterval.test.rb +180 -0
  118. data/test/PgLineSegment.test.rb +108 -0
  119. data/test/PgMacAddr.test.rb +61 -0
  120. data/test/PgPath.test.rb +106 -0
  121. data/test/PgPoint.test.rb +100 -0
  122. data/test/PgPolygon.test.rb +95 -0
  123. data/test/PgTime.test.rb +120 -0
  124. data/test/PgTimeWithTimeZone.test.rb +117 -0
  125. data/test/PgTimestamp.test.rb +134 -0
  126. data/test/RandomThings.rb +25 -0
  127. data/test/Savepoint.test.rb +286 -0
  128. data/test/Select.test.rb +930 -0
  129. data/test/Test.rb +62 -0
  130. data/test/TestConfig.rb +21 -0
  131. data/test/TestSetup.rb +13 -0
  132. data/test/TestUtil.rb +92 -0
  133. data/test/Transaction.test.rb +275 -0
  134. data/test/Translate.test.rb +354 -0
  135. data/test/Update.test.rb +227 -0
  136. data/test/roundtrip.test.rb +565 -0
  137. data/test/test +34 -0
  138. data/tools/exampleinserter/ExampleInserter.rb +177 -0
  139. data/tools/rdoc/ChangeLog +796 -0
  140. data/tools/rdoc/EXAMPLE.rb +48 -0
  141. data/tools/rdoc/MANIFEST +58 -0
  142. data/tools/rdoc/Makefile +27 -0
  143. data/tools/rdoc/NEW_FEATURES +226 -0
  144. data/tools/rdoc/README +390 -0
  145. data/tools/rdoc/ToDo +6 -0
  146. data/tools/rdoc/contrib/Index +6 -0
  147. data/tools/rdoc/contrib/xslfo/ChangeLog +181 -0
  148. data/tools/rdoc/contrib/xslfo/README +106 -0
  149. data/tools/rdoc/contrib/xslfo/TODO +10 -0
  150. data/tools/rdoc/contrib/xslfo/convert.xsl +151 -0
  151. data/tools/rdoc/contrib/xslfo/demo/README +21 -0
  152. data/tools/rdoc/contrib/xslfo/demo/rdocfo +99 -0
  153. data/tools/rdoc/contrib/xslfo/fcm.xsl +54 -0
  154. data/tools/rdoc/contrib/xslfo/files.xsl +62 -0
  155. data/tools/rdoc/contrib/xslfo/labeled-lists.xsl +66 -0
  156. data/tools/rdoc/contrib/xslfo/lists.xsl +44 -0
  157. data/tools/rdoc/contrib/xslfo/modules.xsl +152 -0
  158. data/tools/rdoc/contrib/xslfo/rdoc.xsl +75 -0
  159. data/tools/rdoc/contrib/xslfo/source.xsl +66 -0
  160. data/tools/rdoc/contrib/xslfo/styles.xsl +69 -0
  161. data/tools/rdoc/contrib/xslfo/tables.xsl +67 -0
  162. data/tools/rdoc/contrib/xslfo/utils.xsl +21 -0
  163. data/tools/rdoc/debian/changelog +33 -0
  164. data/tools/rdoc/debian/compat +1 -0
  165. data/tools/rdoc/debian/control +20 -0
  166. data/tools/rdoc/debian/copyright +10 -0
  167. data/tools/rdoc/debian/dirs +2 -0
  168. data/tools/rdoc/debian/docs +2 -0
  169. data/tools/rdoc/debian/rdoc.1 +252 -0
  170. data/tools/rdoc/debian/rdoc.manpages +1 -0
  171. data/tools/rdoc/debian/rdoc.pod +149 -0
  172. data/tools/rdoc/debian/rules +9 -0
  173. data/tools/rdoc/dot/dot.rb +255 -0
  174. data/tools/rdoc/etc/rdoc.dtd +203 -0
  175. data/tools/rdoc/install.rb +137 -0
  176. data/tools/rdoc/markup/install.rb +43 -0
  177. data/tools/rdoc/markup/sample/sample.rb +42 -0
  178. data/tools/rdoc/markup/simple_markup/fragments.rb +323 -0
  179. data/tools/rdoc/markup/simple_markup/inline.rb +348 -0
  180. data/tools/rdoc/markup/simple_markup/lines.rb +147 -0
  181. data/tools/rdoc/markup/simple_markup/preprocess.rb +68 -0
  182. data/tools/rdoc/markup/simple_markup/to_html.rb +281 -0
  183. data/tools/rdoc/markup/simple_markup.rb +474 -0
  184. data/tools/rdoc/markup/test/AllTests.rb +2 -0
  185. data/tools/rdoc/markup/test/TestInline.rb +151 -0
  186. data/tools/rdoc/markup/test/TestParse.rb +411 -0
  187. data/tools/rdoc/rdoc/code_objects.rb +536 -0
  188. data/tools/rdoc/rdoc/diagram.rb +331 -0
  189. data/tools/rdoc/rdoc/generators/chm_generator.rb +112 -0
  190. data/tools/rdoc/rdoc/generators/html_generator.rb +1268 -0
  191. data/tools/rdoc/rdoc/generators/template/chm/chm.rb +86 -0
  192. data/tools/rdoc/rdoc/generators/template/html/html.rb +705 -0
  193. data/tools/rdoc/rdoc/generators/template/html/kilmer.rb +377 -0
  194. data/tools/rdoc/rdoc/generators/template/xml/rdf.rb +110 -0
  195. data/tools/rdoc/rdoc/generators/template/xml/xml.rb +110 -0
  196. data/tools/rdoc/rdoc/generators/xml_generator.rb +130 -0
  197. data/tools/rdoc/rdoc/options.rb +451 -0
  198. data/tools/rdoc/rdoc/parsers/parse_c.rb +287 -0
  199. data/tools/rdoc/rdoc/parsers/parse_f95.rb +118 -0
  200. data/tools/rdoc/rdoc/parsers/parse_rb.rb +2311 -0
  201. data/tools/rdoc/rdoc/parsers/parse_simple.rb +37 -0
  202. data/tools/rdoc/rdoc/parsers/parserfactory.rb +75 -0
  203. data/tools/rdoc/rdoc/rdoc.rb +219 -0
  204. data/tools/rdoc/rdoc/template.rb +234 -0
  205. data/tools/rdoc/rdoc/tokenstream.rb +25 -0
  206. data/tools/rdoc/rdoc.rb +9 -0
  207. metadata +291 -0
@@ -0,0 +1,75 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- $Id: rdoc.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
3
+ <!-- $Author: wconrad $ -->
4
+
5
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
7
+ version="1.0">
8
+
9
+ <xml:output type="xml"/>
10
+
11
+ <xsl:strip-space elements="*"/>
12
+
13
+ <xsl:include href="files.xsl"/>
14
+ <xsl:include href="modules.xsl"/>
15
+ <xsl:include href="styles.xsl"/>
16
+ <xsl:include href="tables.xsl"/>
17
+ <xsl:include href="source.xsl"/>
18
+ <xsl:include href="fcm.xsl"/>
19
+ <xsl:include href="lists.xsl"/>
20
+ <xsl:include href="labeled-lists.xsl"/>
21
+ <xsl:include href="utils.xsl"/>
22
+
23
+ <!-- Commented out pending decisions on parameterization
24
+ <xsl:variable name="tiny-size">8pt</xsl:variable>
25
+ <xsl:variable name="smaller-size">9pt</xsl:variable>
26
+ <xsl:variable name="small-size">10pt</xsl:variable>
27
+ <xsl:variable name="normal-size">11pt</xsl:variable>
28
+ <xsl:variable name="large-size">12pt</xsl:variable>
29
+ <xsl:variable name="larger-size">14pt</xsl:variable>
30
+ <xsl:variable name="huge-size">18pt</xsl:variable>
31
+ -->
32
+
33
+ <xsl:key name="id" match="file|source-code-listing|Class|Module" use="@id"/>
34
+ <xsl:template match="/">
35
+ <fo:root>
36
+ <fo:layout-master-set>
37
+ <fo:simple-page-master master-name="rdocpage"
38
+ page-width="8.5in" page-height="11in"
39
+ margin-top="1in" margin-bottom="1in"
40
+ margin-left=".75in" margin-right=".75in">
41
+ <fo:region-body/>
42
+ </fo:simple-page-master>
43
+ </fo:layout-master-set>
44
+ <fo:page-sequence master-reference="rdocpage">
45
+ <fo:flow font-family="serif" font-size="11pt"
46
+ flow-name="xsl-region-body">
47
+ <xsl:apply-templates/>
48
+ </fo:flow>
49
+ </fo:page-sequence>
50
+ </fo:root>
51
+ </xsl:template>
52
+
53
+ <xsl:template match="rdoc">
54
+ <fo:block font-family="Helvetica" text-align="center">
55
+ <fo:block font-size="18pt" space-after="96pt">
56
+ <xsl:text>RDoc Documentation</xsl:text>
57
+ </fo:block>
58
+ <fo:block font-size="14pt" space-after="24pt">
59
+ <xsl:text>Includes: Files, Classes, Modules</xsl:text>
60
+ </fo:block>
61
+ <fo:block font-size="12pt">
62
+ <xsl:text>(Source code listings follow descriptive listings </xsl:text>
63
+ <xsl:text>for Class and Modules)</xsl:text>
64
+ </fo:block>
65
+ </fo:block>
66
+ <xsl:apply-templates/>
67
+ </xsl:template>
68
+
69
+ <xsl:template match="description//a">
70
+ <fo:basic-link color="purple">
71
+ <xsl:copy-of select="@*"/>
72
+ <xsl:apply-templates/>
73
+ </fo:basic-link>
74
+ </xsl:template>
75
+ </xsl:stylesheet>
@@ -0,0 +1,66 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- $Id: source.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
3
+ <!-- $Author: wconrad $ -->
4
+
5
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
7
+ version="1.0">
8
+
9
+ <xsl:template name="source-code">
10
+ <xsl:param name="method-list"/>
11
+ <xsl:param name="label"/>
12
+ <fo:block break-before="page">
13
+ <fo:block font-size="12pt" font-family="Helvetica" space-after="24pt">
14
+ <xsl:text>Source code for </xsl:text><xsl:value-of select="$label"/>
15
+ </fo:block>
16
+ <xsl:for-each select="$method-list/method">
17
+ <xsl:sort select="(ancestor::Class|ancestor::Module)/@name"/>
18
+ <xsl:sort select="@name"/>
19
+ <xsl:variable name="class-or-mod"
20
+ select="ancestor::Class|ancestor::Module"/>
21
+ <fo:block space-after="6pt" font-family="monospace">
22
+ <xsl:call-template name="hr"/>
23
+ <fo:inline>
24
+ <xsl:value-of select="$class-or-mod/@name"/>
25
+ </fo:inline>
26
+ <xsl:choose>
27
+ <xsl:when test="@category='Instance'">
28
+ <xsl:text>#</xsl:text>
29
+ </xsl:when>
30
+ <xsl:when test="@category='Class'">
31
+ <xsl:text>::</xsl:text>
32
+ </xsl:when>
33
+ </xsl:choose>
34
+ <fo:inline font-weight="bold">
35
+ <xsl:value-of select="@name"/>
36
+ </fo:inline>
37
+ </fo:block>
38
+ <fo:block start-indent="9pt" end-indent="12pt" font-size="9pt"
39
+ id="{source-code-listing/@id}">
40
+ <xsl:apply-templates select="source-code-listing"/>
41
+ </fo:block>
42
+ </xsl:for-each>
43
+ </fo:block>
44
+ </xsl:template>
45
+
46
+ <xsl:template match="source-code-listing/span">
47
+ <xsl:choose>
48
+ <xsl:when test="@class='cmt'">
49
+ <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
50
+ </xsl:when>
51
+ <xsl:when test="@class='kw'">
52
+ <fo:inline color="#3333FF" font-weight="bold">
53
+ <xsl:apply-templates/>
54
+ </fo:inline>
55
+ </xsl:when>
56
+ <xsl:when test="@class='re'">
57
+ <fo:inline color="#662222"><xsl:apply-templates/></fo:inline>
58
+ </xsl:when>
59
+ <xsl:when test="@class='str'">
60
+ <fo:inline color="#662222"
61
+ font-style="italic"><xsl:apply-templates/></fo:inline>
62
+ </xsl:when>
63
+ </xsl:choose>
64
+ </xsl:template>
65
+
66
+ </xsl:stylesheet>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- $Id: styles.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
3
+ <!-- $Author: wconrad $ -->
4
+
5
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
7
+ version="1.0">
8
+
9
+ <!-- This template is based on something in a Docbook XSL file. -->
10
+ <xsl:template match="pre|source-code-listing">
11
+ <fo:block wrap-option="no-wrap"
12
+ font-family="monospace"
13
+ text-align="start"
14
+ white-space-collapse="false"
15
+ linefeed-treatment="preserve">
16
+ <xsl:apply-templates/>
17
+ </fo:block>
18
+ </xsl:template>
19
+
20
+ <xsl:template match="b">
21
+ <fo:inline font-weight="bold">
22
+ <xsl:apply-templates/>
23
+ </fo:inline>
24
+ </xsl:template>
25
+
26
+ <xsl:template match="em">
27
+ <fo:inline font-weight="bold">
28
+ <xsl:apply-templates/>
29
+ </fo:inline>
30
+ </xsl:template>
31
+
32
+ <xsl:template match="path|dtm-created|dtm-modified|
33
+ file/@name|required-file/@name
34
+ |tt">
35
+ <fo:inline font-family="monospace">
36
+ <xsl:value-of select="."/>
37
+ </fo:inline>
38
+ </xsl:template>
39
+
40
+ <xsl:template match="h1">
41
+ <fo:block font-family="Helvetica" font-size="18pt"
42
+ space-before="12pt" space-after="6pt">
43
+ <xsl:apply-templates/>
44
+ </fo:block>
45
+ </xsl:template>
46
+
47
+ <xsl:template match="h2">
48
+ <fo:block font-family="Helvetica" font-size="14pt"
49
+ space-before="6pt" space-after="4pt">
50
+ <xsl:apply-templates/>
51
+ </fo:block>
52
+ </xsl:template>
53
+
54
+ <xsl:template name="hr">
55
+ <fo:block>
56
+ <fo:inline>
57
+ <fo:leader leader-length="6.5in" leader-pattern="rule"
58
+ leader-pattern-width="1pt"/>
59
+ </fo:inline>
60
+ </fo:block>
61
+ </xsl:template>
62
+
63
+ <xsl:template match="p">
64
+ <fo:block space-after="12pt">
65
+ <xsl:apply-templates/>
66
+ </fo:block>
67
+ </xsl:template>
68
+
69
+ </xsl:stylesheet>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- $Id: tables.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
3
+ <!-- $Author: wconrad $ -->
4
+
5
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
7
+ version="1.0">
8
+
9
+ <xsl:template match="table">
10
+ <fo:block space-after="1em">
11
+ <fo:table table-layout="fixed">
12
+ <fo:table-column column-number="1" column-width="1in"/>
13
+ <fo:table-column column-number="2" column-width="5.5in"/>
14
+ <fo:table-body font-size="10pt">
15
+ <xsl:apply-templates/>
16
+ </fo:table-body>
17
+ </fo:table>
18
+ </fo:block>
19
+ </xsl:template>
20
+
21
+ <xsl:template match="dl">
22
+ <fo:block space-before="12pt" space-after="12pt" margin-left="0in">
23
+ <xsl:attribute name="start-indent">
24
+ <xsl:choose>
25
+ <xsl:when test="ancestor::ul">54pt</xsl:when>
26
+ <xsl:otherwise>18pt</xsl:otherwise>
27
+ </xsl:choose>
28
+ </xsl:attribute>
29
+ <fo:table table-layout="fixed">
30
+ <fo:table-column column-number="1" column-width="1in"/>
31
+ <fo:table-column column-number="2" column-width="5.5in"/>
32
+ <fo:table-body>
33
+ <xsl:apply-templates select="dt"/>
34
+ </fo:table-body>
35
+ </fo:table>
36
+ </fo:block>
37
+ </xsl:template>
38
+
39
+ <xsl:template match="dt">
40
+ <xsl:variable name="pos" select="position()"/>
41
+ <fo:table-row>
42
+ <fo:table-cell text-align="justify">
43
+ <fo:block>
44
+ <fo:inline>
45
+ <xsl:apply-templates/>
46
+ </fo:inline>
47
+ </fo:block>
48
+ </fo:table-cell>
49
+ <xsl:apply-templates select="../dd[position() = $pos]"/>
50
+ </fo:table-row>
51
+ </xsl:template>
52
+
53
+ <xsl:template match="tr">
54
+ <fo:table-row>
55
+ <xsl:apply-templates/>
56
+ </fo:table-row>
57
+ </xsl:template>
58
+
59
+ <xsl:template match="td|dd">
60
+ <fo:table-cell text-align="justify">
61
+ <fo:block>
62
+ <xsl:apply-templates/>
63
+ </fo:block>
64
+ </fo:table-cell>
65
+ </xsl:template>
66
+
67
+ </xsl:stylesheet>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- $Id: utils.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
3
+ <!-- $Author: wconrad $ -->
4
+
5
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
7
+ version="1.0">
8
+
9
+ <xsl:template name="no-hash-mark">
10
+ <xsl:param name="string"/>
11
+ <xsl:choose>
12
+ <xsl:when test="substring($string,1,1) = '#'">
13
+ <xsl:value-of select="substring($string,2)"/>
14
+ </xsl:when>
15
+ <xsl:otherwise>
16
+ <xsl:value-of select="$string"/>
17
+ </xsl:otherwise>
18
+ </xsl:choose>
19
+ </xsl:template>
20
+
21
+ </xsl:stylesheet>
@@ -0,0 +1,33 @@
1
+ rdoc (0.9.0-3) unstable; urgency=low
2
+
3
+ * Switched to CDBS
4
+ * Updated Standards to 3.6.0
5
+
6
+ -- Brian M. Almeida <bma@debian.org> Thu, 21 Aug 2003 12:51:34 -0400
7
+
8
+ rdoc (0.9.0-2) unstable; urgency=low
9
+
10
+ * Added rdoc manpage
11
+ * Cleaned up lintian warnings
12
+
13
+ -- Brian M. Almeida <bma@debian.org> Tue, 19 Aug 2003 14:11:29 -0400
14
+
15
+ rdoc (0.9.0-1) unstable; urgency=low
16
+
17
+ * New upstream release
18
+
19
+ -- Brian M. Almeida <bma@debian.org> Tue, 8 Apr 2003 12:58:56 -0400
20
+
21
+ rdoc (0.0.beta.2-1) unstable; urgency=low
22
+
23
+ * New upstream release, closes: #156855
24
+ * Indent list of features, closes: #156364
25
+
26
+ -- Brian M. Almeida <bma@debian.org> Thu, 15 Aug 2002 22:24:10 -0400
27
+
28
+ rdoc (0.0.beta.1-1) unstable; urgency=low
29
+
30
+ * Initial Release.
31
+
32
+ -- Brian M. Almeida <bma@debian.org> Sun, 14 Apr 2002 14:14:57 -0400
33
+
@@ -0,0 +1 @@
1
+ 4
@@ -0,0 +1,20 @@
1
+ Source: rdoc
2
+ Section: doc
3
+ Priority: optional
4
+ Maintainer: Brian M. Almeida <bma@debian.org>
5
+ Build-Depends-Indep: debhelper (>> 3.0.0), ruby (>= 1.6.5-1), cdbs
6
+ Standards-Version: 3.6.0
7
+
8
+ Package: rdoc
9
+ Architecture: all
10
+ Depends: ruby (>= 1.6.5-1), irb (>= 1.6.5-1)
11
+ Description: Generate documentation from ruby source files
12
+ RDoc - Documentation from Ruby Source Files
13
+ * Generates structured HTML and XML documentation from Ruby source and C
14
+ extensions.
15
+ * Automatically extracts class, module, method, and attribute definitions.
16
+ These can be annonated using inline comments.
17
+ * Analyzes method visibility.
18
+ * Handles aliasing.
19
+ * Uses non-intrusive and implicit markup in the comments. Readers
20
+ of the original source needn't know that it is marked up at all.
@@ -0,0 +1,10 @@
1
+ This package was debianized by Brian M. Almeida <bma@debian.org> on
2
+ Sun, 14 Apr 2002 14:14:57 -0400.
3
+
4
+ It was downloaded from http://rdoc.sourceforge.net
5
+
6
+ Upstream Author: Dave Thomas <dave@pragmaticprogrammer.com>
7
+
8
+ Copyright:
9
+
10
+ Released under the same license as Ruby. See /usr/share/doc/ruby/copyright.
@@ -0,0 +1,2 @@
1
+ usr/bin
2
+ usr/sbin
@@ -0,0 +1,2 @@
1
+ README
2
+ ToDo
@@ -0,0 +1,252 @@
1
+ .\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
2
+ .\"
3
+ .\" Standard preamble:
4
+ .\" ========================================================================
5
+ .de Sh \" Subsection heading
6
+ .br
7
+ .if t .Sp
8
+ .ne 5
9
+ .PP
10
+ \fB\\$1\fR
11
+ .PP
12
+ ..
13
+ .de Sp \" Vertical space (when we can't use .PP)
14
+ .if t .sp .5v
15
+ .if n .sp
16
+ ..
17
+ .de Vb \" Begin verbatim text
18
+ .ft CW
19
+ .nf
20
+ .ne \\$1
21
+ ..
22
+ .de Ve \" End verbatim text
23
+ .ft R
24
+ .fi
25
+ ..
26
+ .\" Set up some character translations and predefined strings. \*(-- will
27
+ .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28
+ .\" double quote, and \*(R" will give a right double quote. | will give a
29
+ .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30
+ .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31
+ .\" expand to `' in nroff, nothing in troff, for use with C<>.
32
+ .tr \(*W-|\(bv\*(Tr
33
+ .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34
+ .ie n \{\
35
+ . ds -- \(*W-
36
+ . ds PI pi
37
+ . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38
+ . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39
+ . ds L" ""
40
+ . ds R" ""
41
+ . ds C` ""
42
+ . ds C' ""
43
+ 'br\}
44
+ .el\{\
45
+ . ds -- \|\(em\|
46
+ . ds PI \(*p
47
+ . ds L" ``
48
+ . ds R" ''
49
+ 'br\}
50
+ .\"
51
+ .\" If the F register is turned on, we'll generate index entries on stderr for
52
+ .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53
+ .\" entries marked with X<> in POD. Of course, you'll have to process the
54
+ .\" output yourself in some meaningful fashion.
55
+ .if \nF \{\
56
+ . de IX
57
+ . tm Index:\\$1\t\\n%\t"\\$2"
58
+ ..
59
+ . nr % 0
60
+ . rr F
61
+ .\}
62
+ .\"
63
+ .\" For nroff, turn off justification. Always turn off hyphenation; it makes
64
+ .\" way too many mistakes in technical documents.
65
+ .hy 0
66
+ .if n .na
67
+ .\"
68
+ .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69
+ .\" Fear. Run. Save yourself. No user-serviceable parts.
70
+ . \" fudge factors for nroff and troff
71
+ .if n \{\
72
+ . ds #H 0
73
+ . ds #V .8m
74
+ . ds #F .3m
75
+ . ds #[ \f1
76
+ . ds #] \fP
77
+ .\}
78
+ .if t \{\
79
+ . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80
+ . ds #V .6m
81
+ . ds #F 0
82
+ . ds #[ \&
83
+ . ds #] \&
84
+ .\}
85
+ . \" simple accents for nroff and troff
86
+ .if n \{\
87
+ . ds ' \&
88
+ . ds ` \&
89
+ . ds ^ \&
90
+ . ds , \&
91
+ . ds ~ ~
92
+ . ds /
93
+ .\}
94
+ .if t \{\
95
+ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96
+ . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97
+ . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98
+ . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99
+ . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100
+ . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101
+ .\}
102
+ . \" troff and (daisy-wheel) nroff accents
103
+ .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104
+ .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105
+ .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106
+ .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107
+ .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108
+ .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109
+ .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110
+ .ds ae a\h'-(\w'a'u*4/10)'e
111
+ .ds Ae A\h'-(\w'A'u*4/10)'E
112
+ . \" corrections for vroff
113
+ .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114
+ .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115
+ . \" for low resolution devices (crt and lpr)
116
+ .if \n(.H>23 .if \n(.V>19 \
117
+ \{\
118
+ . ds : e
119
+ . ds 8 ss
120
+ . ds o a
121
+ . ds d- d\h'-1'\(ga
122
+ . ds D- D\h'-1'\(hy
123
+ . ds th \o'bp'
124
+ . ds Th \o'LP'
125
+ . ds ae ae
126
+ . ds Ae AE
127
+ .\}
128
+ .rm #[ #] #H #V #F C
129
+ .\" ========================================================================
130
+ .\"
131
+ .IX Title "RDOC 1"
132
+ .TH RDOC 1 "2003-08-19" "perl v5.8.0" "User Contributed Perl Documentation"
133
+ .SH "NAME"
134
+ rdoc \- Generate documentation from ruby source files
135
+ .SH "SYNOPSIS"
136
+ .IX Header "SYNOPSIS"
137
+ Usage:
138
+ .PP
139
+ .Vb 1
140
+ \& rdoc [options] [names...]
141
+ .Ve
142
+ .SH "DESCRIPTION"
143
+ .IX Header "DESCRIPTION"
144
+ Files are parsed, and the information they contain
145
+ collected, before any output is produced. This allows cross
146
+ references between all files to be resolved. If a name is a
147
+ directory, it is traversed. If no names are specified, all
148
+ Ruby files in the current directory (and subdirectories) are
149
+ processed.
150
+ .SH "OPTIONS"
151
+ .IX Header "OPTIONS"
152
+ Options:
153
+ .IP "\fB\-a\fR, \fB\-\-all\fR" 8
154
+ .IX Item "-a, --all"
155
+ include all methods (not just public) in the output
156
+ .IP "\fB\-c\fR \fIcharset\fR, \fB\-\-charset\fR \fIcharset\fR" 8
157
+ .IX Item "-c charset, --charset charset"
158
+ specifies \s-1HTML\s0 character-set
159
+ .IP "\fB\-D\fR, \fB\-\-debug\fR" 8
160
+ .IX Item "-D, --debug"
161
+ displays lots on internal stuff
162
+ .IP "\fB\-d\fR, \fB\-\-diagram\fR" 8
163
+ .IX Item "-d, --diagram"
164
+ Generate diagrams showing modules and classes.
165
+ You need dot V1.8.6 or later to use the \-\-diagram
166
+ option correctly. Dot is available from
167
+ http://www.research.att.com/sw/tools/graphviz/
168
+ .IP "\fB\-x\fR \fIpattern\fR, \fB\-\-exclude\fR \fIpattern\fR" 8
169
+ .IX Item "-x pattern, --exclude pattern"
170
+ do not process files or directories matching
171
+ pattern. Files given explicitly on the command
172
+ line will never be excluded.
173
+ .IP "\fB\-F\fR, \fB\-\-fileboxes\fR" 8
174
+ .IX Item "-F, --fileboxes"
175
+ classes are put in boxes which represents
176
+ files, where these classes reside. Classes
177
+ shared between more than one file are
178
+ shown with list of files that sharing them.
179
+ Silently discarded if \-\-diagram is not given
180
+ Experimental.
181
+ .IP "\fB\-f\fR \fIformat_name\fR, \fB\-\-fmt\fR \fIformat_name\fR" 8
182
+ .IX Item "-f format_name, --fmt format_name"
183
+ set the output formatter (see below)
184
+ .IP "\fB\-h\fR, \fB\-\-help\fR" 8
185
+ .IX Item "-h, --help"
186
+ print out a brief help summary
187
+ .IP "\fB\-O\fR, \fB\-\-help\-output\fR" 8
188
+ .IX Item "-O, --help-output"
189
+ explain the various output options
190
+ .IP "\fB\-I\fR \fIgif|jpg|jpg|jpeg\fR, \fB\-\-image\-format\fR \fIgif|png|jpg|jpeg\fR" 8
191
+ .IX Item "-I gif|jpg|jpg|jpeg, --image-format gif|png|jpg|jpeg"
192
+ Sets output image format for diagrams. Can
193
+ be png, gif, jpeg, jpg. If this option is
194
+ omitted, png is used. Requires \-\-diagram.
195
+ .IP "\fB\-i\fR \fIdir[,dir,...]\fR, \fB\-\-include\fR \fIdir[,dir,...]\fR" 8
196
+ .IX Item "-i dir[,dir,...], --include dir[,dir,...]"
197
+ set (or add to) the list of directories
198
+ to be searched when satisfying :include:
199
+ requests. Can be used more than once.
200
+ .IP "\fB\-S\fR, \fB\-\-inline\-source\fR" 8
201
+ .IX Item "-S, --inline-source"
202
+ Show method source code inline, rather
203
+ than via a popup link
204
+ .IP "\fB\-N\fR, \fB\-\-line\-numbers\fR" 8
205
+ .IX Item "-N, --line-numbers"
206
+ Include line numbers in the source code
207
+ .IP "\fB\-m\fR \fIname\fR, \fB\-\-main\fR \fIname\fR" 8
208
+ .IX Item "-m name, --main name"
209
+ \&'name' will be the initial page displayed
210
+ .IP "\fB\-1\fR, \fB\-\-one\-file\fR" 8
211
+ .IX Item "-1, --one-file"
212
+ put all the output into a single file
213
+ .IP "\fB\-o\fR \fIdir\fR, \fB\-\-op\fR \fIdir\fR" 8
214
+ .IX Item "-o dir, --op dir"
215
+ set the output directory
216
+ .IP "\fB\-n\fR \fIname\fR, \fB\-\-opname\fR \fIname\fR" 8
217
+ .IX Item "-n name, --opname name"
218
+ Set the 'name' of the output. Has no
219
+ effect for \s-1HTML\s0.
220
+ .IP "\fB\-q\fR, \fB\-\-quiet\fR" 8
221
+ .IX Item "-q, --quiet"
222
+ don't show progress as we parse
223
+ .IP "\fB\-H\fR, \fB\-\-show\-hash\fR" 8
224
+ .IX Item "-H, --show-hash"
225
+ A name of the form #name in a comment
226
+ is a possible hyperlink to an instance
227
+ method name. When displayed, the '#' is
228
+ removed unless this option is specified
229
+ .IP "\fB\-w\fR \fIwidth\fR, \fB\-\-tab\-width\fR \fIwidth\fR" 8
230
+ .IX Item "-w width, --tab-width width"
231
+ Set the width of tab characters (default 8)
232
+ .IP "\fB\-T\fR \fItemplate_name\fR, \fB\-\-template\fR \fItemplate_name\fR" 8
233
+ .IX Item "-T template_name, --template template_name"
234
+ Set the template used when generating output
235
+ .IP "\fB\-t\fR \fItext\fR, \fB\-\-title\fR \fItext\fR" 8
236
+ .IX Item "-t text, --title text"
237
+ Set 'txt' as the title for the output
238
+ .IP "\fB\-v\fR, \fB\-\-version\fR" 8
239
+ .IX Item "-v, --version"
240
+ display RDoc's version
241
+ .SH "NOTES"
242
+ .IX Header "NOTES"
243
+ Available output formatters: chm, html, xml
244
+ .PP
245
+ For information on where the output goes, use
246
+ .PP
247
+ .Vb 1
248
+ \& rdoc --help-output
249
+ .Ve
250
+ .SH "AUTHOR"
251
+ .IX Header "AUTHOR"
252
+ This manpage was contributed by Brian Almeida <bma@debian.org>
@@ -0,0 +1 @@
1
+ debian/rdoc.1