Capcode 0.8.2 → 0.8.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 (74) hide show
  1. data/{README → README.rdoc} +12 -1
  2. data/examples/haml/cf_layout.haml +1 -0
  3. data/examples/haml/style.sass +2 -0
  4. data/examples/render-erb.rb +14 -0
  5. data/examples/render-haml_sass.rb +22 -0
  6. data/examples/render-json.rb +13 -0
  7. data/examples/render-markaby.rb +27 -0
  8. data/examples/render-static.rb +18 -0
  9. data/examples/render-text.rb +12 -0
  10. data/examples/render-xml.rb +24 -0
  11. data/examples/rest.rb +77 -0
  12. data/examples/upload.rb +4 -4
  13. data/lib/capcode.rb +118 -44
  14. data/lib/capcode/base/db.rb +23 -0
  15. data/lib/capcode/base/dm.rb +11 -11
  16. data/lib/capcode/render/erb.rb +5 -3
  17. data/lib/capcode/render/haml.rb +3 -2
  18. data/lib/capcode/render/json.rb +1 -1
  19. data/lib/capcode/render/markaby.rb +5 -5
  20. data/lib/capcode/render/sass.rb +4 -2
  21. data/lib/capcode/render/static.rb +6 -2
  22. data/lib/capcode/render/text.rb +1 -1
  23. data/lib/capcode/render/xml.rb +3 -5
  24. data/lib/capcode/version.rb +1 -1
  25. metadata +25 -55
  26. data/doc/rdoc/classes/Capcode.html +0 -605
  27. data/doc/rdoc/classes/Capcode/HTTPError.html +0 -129
  28. data/doc/rdoc/classes/Capcode/Helpers.html +0 -342
  29. data/doc/rdoc/classes/Capcode/RenderError.html +0 -129
  30. data/doc/rdoc/classes/Capcode/Views.html +0 -108
  31. data/doc/rdoc/created.rid +0 -1
  32. data/doc/rdoc/files/AUTHORS.html +0 -103
  33. data/doc/rdoc/files/COPYING.html +0 -527
  34. data/doc/rdoc/files/README.html +0 -478
  35. data/doc/rdoc/files/lib/capcode_rb.html +0 -541
  36. data/doc/rdoc/index.html +0 -10
  37. data/doc/rdoc/permalink.gif +0 -0
  38. data/doc/rdoc/rdoc-style.css +0 -106
  39. data/doc/rdoc/rubyfr.png +0 -0
  40. data/doc/rdoc_iphone/classes/Capcode.html +0 -175
  41. data/doc/rdoc_iphone/classes/Capcode/HTTPError.html +0 -21
  42. data/doc/rdoc_iphone/classes/Capcode/Helpers.html +0 -153
  43. data/doc/rdoc_iphone/classes/Capcode/RenderError.html +0 -21
  44. data/doc/rdoc_iphone/classes/Capcode/Views.html +0 -21
  45. data/doc/rdoc_iphone/classes_index.html +0 -10
  46. data/doc/rdoc_iphone/created.rid +0 -1
  47. data/doc/rdoc_iphone/files/AUTHORS.html +0 -11
  48. data/doc/rdoc_iphone/files/COPYING.html +0 -435
  49. data/doc/rdoc_iphone/files/README.html +0 -325
  50. data/doc/rdoc_iphone/files/lib/capcode_rb.html +0 -435
  51. data/doc/rdoc_iphone/files_index.html +0 -7
  52. data/doc/rdoc_iphone/index.html +0 -51
  53. data/doc/rdoc_iphone/iui/backButton.png +0 -0
  54. data/doc/rdoc_iphone/iui/blueButton.png +0 -0
  55. data/doc/rdoc_iphone/iui/cancel.png +0 -0
  56. data/doc/rdoc_iphone/iui/grayButton.png +0 -0
  57. data/doc/rdoc_iphone/iui/iui-logo-touch-icon.png +0 -0
  58. data/doc/rdoc_iphone/iui/iui.css +0 -386
  59. data/doc/rdoc_iphone/iui/iui.js +0 -442
  60. data/doc/rdoc_iphone/iui/iuix.css +0 -1
  61. data/doc/rdoc_iphone/iui/iuix.js +0 -1
  62. data/doc/rdoc_iphone/iui/listArrow.png +0 -0
  63. data/doc/rdoc_iphone/iui/listArrowSel.png +0 -0
  64. data/doc/rdoc_iphone/iui/listGroup.png +0 -0
  65. data/doc/rdoc_iphone/iui/loading.gif +0 -0
  66. data/doc/rdoc_iphone/iui/pinstripes.png +0 -0
  67. data/doc/rdoc_iphone/iui/selection.png +0 -0
  68. data/doc/rdoc_iphone/iui/thumb.png +0 -0
  69. data/doc/rdoc_iphone/iui/toggle.png +0 -0
  70. data/doc/rdoc_iphone/iui/toggleOn.png +0 -0
  71. data/doc/rdoc_iphone/iui/toolButton.png +0 -0
  72. data/doc/rdoc_iphone/iui/toolbar.png +0 -0
  73. data/doc/rdoc_iphone/iui/whiteButton.png +0 -0
  74. data/doc/rdoc_iphone/rdoc-style.css +0 -0
@@ -1,129 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Capcode, the Documentation &raquo; Class: Capcode::RenderError
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">Class: Capcode::RenderError</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># Class: Capcode::RenderError<br />
62
- [
63
- "<a href="../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../files/lib/capcode_rb.html" value="File: capcode.rb">lib/capcode.rb</a>",
67
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
68
- <a href="../../classes/Capcode.html" title="Module: Capcode">Capcode</a>.view_html<br />
69
- <a href="../../classes/Capcode/Views.html" title="Module: Capcode::Views">Capcode::Views</a>.view_html<br />
70
- <a href="../../classes/Capcode/Helpers.html" title="Module: Capcode::Helpers">Capcode::Helpers</a>.view_html<br />
71
- <a href="../../classes/Capcode/HTTPError.html" title="Class: Capcode::HTTPError">Capcode::HTTPError</a>.view_html<br />
72
- <a href="../../classes/Capcode/RenderError.html" title="Class: Capcode::RenderError">Capcode::RenderError</a>.view_html<br />
73
- <a href="../../classes/Capcode/RouteError.html" title="Class: Capcode::RouteError">Capcode::RouteError</a>.view_html<br />
74
- <a href="../../classes/Capcode/ParameterError.html" title="Class: Capcode::ParameterError">Capcode::ParameterError</a>.view_html<br />
75
- end</strong>
76
- </td></tr>
77
- </table>
78
- </ul>
79
- </div>
80
-
81
-
82
- <div id="Capcode::RenderError" class="page_shade">
83
- <div class="page">
84
- <h3>Class Capcode::RenderError &lt; ArgumentError</h3>
85
-
86
- (in files
87
- <a href="../../files/lib/capcode_rb.html">lib/capcode.rb</a>
88
- )
89
-
90
- <p>
91
- <a href="HTTPError.html">HTTPError</a> help you to create your own 404, 500
92
- and/or 501 response
93
- </p>
94
- <p>
95
- To create a custom 404 reponse, create a fonction HTTPError.r404 in your
96
- application :
97
- </p>
98
- <pre>
99
- module Capcode
100
- class HTTPError
101
- def r404(f)
102
- &quot;#{f} not found :(&quot;
103
- end
104
- end
105
- end
106
- </pre>
107
- <p>
108
- Do the same (r500, r501, r403) to customize 500, 501, 403 errors
109
- </p>
110
-
111
-
112
-
113
-
114
- <h4>Includes</h4>
115
- <ul>
116
- <li>Rack</li>
117
- <li><a href="Capcode/Helpers.html">Capcode::Helpers</a></li>
118
- <li><a href="Capcode/Views.html">Capcode::Views</a></li>
119
- </ul>
120
-
121
-
122
-
123
- </div>
124
- </div>
125
-
126
-
127
- </div>
128
- </body>
129
- </html>
@@ -1,108 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Capcode, the Documentation &raquo; Module: Capcode::Views
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">Module: Capcode::Views</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># Module: Capcode::Views<br />
62
- [
63
- "<a href="../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../files/lib/capcode_rb.html" value="File: capcode.rb">lib/capcode.rb</a>",
67
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
68
- <a href="../../classes/Capcode.html" title="Module: Capcode">Capcode</a>.view_html<br />
69
- <a href="../../classes/Capcode/Views.html" title="Module: Capcode::Views">Capcode::Views</a>.view_html<br />
70
- <a href="../../classes/Capcode/Helpers.html" title="Module: Capcode::Helpers">Capcode::Helpers</a>.view_html<br />
71
- <a href="../../classes/Capcode/HTTPError.html" title="Class: Capcode::HTTPError">Capcode::HTTPError</a>.view_html<br />
72
- <a href="../../classes/Capcode/RenderError.html" title="Class: Capcode::RenderError">Capcode::RenderError</a>.view_html<br />
73
- <a href="../../classes/Capcode/RouteError.html" title="Class: Capcode::RouteError">Capcode::RouteError</a>.view_html<br />
74
- <a href="../../classes/Capcode/ParameterError.html" title="Class: Capcode::ParameterError">Capcode::ParameterError</a>.view_html<br />
75
- end</strong>
76
- </td></tr>
77
- </table>
78
- </ul>
79
- </div>
80
-
81
-
82
- <div id="Capcode::Views" class="page_shade">
83
- <div class="page">
84
- <h3>Module Capcode::Views</h3>
85
-
86
- (in files
87
- <a href="../../files/lib/capcode_rb.html">lib/capcode.rb</a>
88
- )
89
-
90
-
91
-
92
-
93
- <h4>Includes</h4>
94
- <ul>
95
- <li>Rack</li>
96
- <li><a href="Capcode/Helpers.html">Capcode::Helpers</a></li>
97
- <li><a href="Capcode/Views.html">Capcode::Views</a></li>
98
- </ul>
99
-
100
-
101
-
102
- </div>
103
- </div>
104
-
105
-
106
- </div>
107
- </body>
108
- </html>
@@ -1 +0,0 @@
1
- Fri, 17 Jul 2009 18:23:07 +0200
@@ -1,103 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Capcode, the Documentation &raquo; File: AUTHORS
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: AUTHORS</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: AUTHORS<br />
62
- [
63
- "<a href="../files/README.html" value="File: README">README</a>",
64
- "<a href="../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../files/lib/capcode_rb.html" value="File: capcode.rb">lib/capcode.rb</a>",
67
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
68
- <a href="../classes/Capcode.html" title="Module: Capcode">Capcode</a>.view_html<br />
69
- <a href="../classes/Capcode/Views.html" title="Module: Capcode::Views">Capcode::Views</a>.view_html<br />
70
- <a href="../classes/Capcode/Helpers.html" title="Module: Capcode::Helpers">Capcode::Helpers</a>.view_html<br />
71
- <a href="../classes/Capcode/HTTPError.html" title="Class: Capcode::HTTPError">Capcode::HTTPError</a>.view_html<br />
72
- <a href="../classes/Capcode/RenderError.html" title="Class: Capcode::RenderError">Capcode::RenderError</a>.view_html<br />
73
- <a href="../classes/Capcode/RouteError.html" title="Class: Capcode::RouteError">Capcode::RouteError</a>.view_html<br />
74
- <a href="../classes/Capcode/ParameterError.html" title="Class: Capcode::ParameterError">Capcode::ParameterError</a>.view_html<br />
75
- end</strong>
76
- </td></tr>
77
- </table>
78
- </ul>
79
- </div>
80
-
81
- <div id="AUTHORS" class="page_shade">
82
- <div class="page">
83
- <div class="header">
84
- <div class="path">AUTHORS / Fri May 11 09:13:59 +0200 2007</div>
85
- </div>
86
-
87
- <p>
88
- Gregoire Lejeune &lt;glejeune.lejeune@free.fr&gt;
89
- </p>
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- </div>
98
- </div>
99
-
100
-
101
- </div>
102
- </body>
103
- </html>
@@ -1,527 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Capcode, the Documentation &raquo; File: COPYING
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: COPYING</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: COPYING<br />
62
- [
63
- "<a href="../files/README.html" value="File: README">README</a>",
64
- "<a href="../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../files/lib/capcode_rb.html" value="File: capcode.rb">lib/capcode.rb</a>",
67
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
68
- <a href="../classes/Capcode.html" title="Module: Capcode">Capcode</a>.view_html<br />
69
- <a href="../classes/Capcode/Views.html" title="Module: Capcode::Views">Capcode::Views</a>.view_html<br />
70
- <a href="../classes/Capcode/Helpers.html" title="Module: Capcode::Helpers">Capcode::Helpers</a>.view_html<br />
71
- <a href="../classes/Capcode/HTTPError.html" title="Class: Capcode::HTTPError">Capcode::HTTPError</a>.view_html<br />
72
- <a href="../classes/Capcode/RenderError.html" title="Class: Capcode::RenderError">Capcode::RenderError</a>.view_html<br />
73
- <a href="../classes/Capcode/RouteError.html" title="Class: Capcode::RouteError">Capcode::RouteError</a>.view_html<br />
74
- <a href="../classes/Capcode/ParameterError.html" title="Class: Capcode::ParameterError">Capcode::ParameterError</a>.view_html<br />
75
- end</strong>
76
- </td></tr>
77
- </table>
78
- </ul>
79
- </div>
80
-
81
- <div id="COPYING" class="page_shade">
82
- <div class="page">
83
- <div class="header">
84
- <div class="path">COPYING / Fri May 11 09:13:59 +0200 2007</div>
85
- </div>
86
-
87
- <pre>
88
- GNU GENERAL PUBLIC LICENSE
89
- Version 2, June 1991
90
-
91
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
92
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
93
- Everyone is permitted to copy and distribute verbatim copies
94
- of this license document, but changing it is not allowed.
95
-
96
- Preamble
97
-
98
- The licenses for most software are designed to take away your
99
- </pre>
100
- <p>
101
- freedom to share and change it. By contrast, the GNU General Public License
102
- is intended to guarantee your freedom to share and change free
103
- software&#8212;to make sure the software is free for all its users. This
104
- General Public License applies to most of the Free Software
105
- Foundation&#8216;s software and to any other program whose authors commit
106
- to using it. (Some other Free Software Foundation software is covered by
107
- the GNU Library General Public License instead.) You can apply it to your
108
- programs, too.
109
- </p>
110
- <pre>
111
- When we speak of free software, we are referring to freedom, not
112
- </pre>
113
- <p>
114
- price. Our General Public Licenses are designed to make sure that you have
115
- the freedom to distribute copies of free software (and charge for this
116
- service if you wish), that you receive source code or can get it if you
117
- want it, that you can change the software or use pieces of it in new free
118
- programs; and that you know you can do these things.
119
- </p>
120
- <pre>
121
- To protect your rights, we need to make restrictions that forbid
122
- </pre>
123
- <p>
124
- anyone to deny you these rights or to ask you to surrender the rights.
125
- These restrictions translate to certain responsibilities for you if you
126
- distribute copies of the software, or if you modify it.
127
- </p>
128
- <pre>
129
- For example, if you distribute copies of such a program, whether
130
- </pre>
131
- <p>
132
- gratis or for a fee, you must give the recipients all the rights that you
133
- have. You must make sure that they, too, receive or can get the source
134
- code. And you must show them these terms so they know their rights.
135
- </p>
136
- <pre>
137
- We protect your rights with two steps: (1) copyright the software, and
138
- </pre>
139
- <p>
140
- (2) offer you this license which gives you legal permission to copy,
141
- distribute and/or modify the software.
142
- </p>
143
- <pre>
144
- Also, for each author's protection and ours, we want to make certain
145
- </pre>
146
- <p>
147
- that everyone understands that there is no warranty for this free software.
148
- If the software is modified by someone else and passed on, we want its
149
- recipients to know that what they have is not the original, so that any
150
- problems introduced by others will not reflect on the original
151
- authors&#8217; reputations.
152
- </p>
153
- <pre>
154
- Finally, any free program is threatened constantly by software
155
- </pre>
156
- <p>
157
- patents. We wish to avoid the danger that redistributors of a free program
158
- will individually obtain patent licenses, in effect making the program
159
- proprietary. To prevent this, we have made it clear that any patent must be
160
- licensed for everyone&#8216;s free use or not licensed at all.
161
- </p>
162
- <pre>
163
- The precise terms and conditions for copying, distribution and
164
- </pre>
165
- <p>
166
- modification follow.
167
- </p>
168
- <pre>
169
- GNU GENERAL PUBLIC LICENSE
170
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
171
-
172
- 0. This License applies to any program or other work which contains
173
- </pre>
174
- <p>
175
- a notice placed by the copyright holder saying it may be distributed under
176
- the terms of this General Public License. The &quot;Program&quot;, below,
177
- refers to any such program or work, and a &quot;work based on the
178
- Program&quot; means either the Program or any derivative work under
179
- copyright law: that is to say, a work containing the Program or a portion
180
- of it, either verbatim or with modifications and/or translated into another
181
- language. (Hereinafter, translation is included without limitation in the
182
- term &quot;modification&quot;.) Each licensee is addressed as
183
- &quot;you&quot;.
184
- </p>
185
- <p>
186
- Activities other than copying, distribution and modification are not
187
- covered by this License; they are outside its scope. The act of running the
188
- Program is not restricted, and the output from the Program is covered only
189
- if its contents constitute a work based on the Program (independent of
190
- having been made by running the Program). Whether that is true depends on
191
- what the Program does.
192
- </p>
193
- <pre>
194
- 1. You may copy and distribute verbatim copies of the Program's
195
- </pre>
196
- <p>
197
- source code as you receive it, in any medium, provided that you
198
- conspicuously and appropriately publish on each copy an appropriate
199
- copyright notice and disclaimer of warranty; keep intact all the notices
200
- that refer to this License and to the absence of any warranty; and give any
201
- other recipients of the Program a copy of this License along with the
202
- Program.
203
- </p>
204
- <p>
205
- You may charge a fee for the physical act of transferring a copy, and you
206
- may at your option offer warranty protection in exchange for a fee.
207
- </p>
208
- <pre>
209
- 2. You may modify your copy or copies of the Program or any portion
210
- </pre>
211
- <p>
212
- of it, thus forming a work based on the Program, and copy and distribute
213
- such modifications or work under the terms of Section 1 above, provided
214
- that you also meet all of these conditions:
215
- </p>
216
- <pre>
217
- a) You must cause the modified files to carry prominent notices
218
- stating that you changed the files and the date of any change.
219
-
220
- b) You must cause any work that you distribute or publish, that in
221
- whole or in part contains or is derived from the Program or any
222
- part thereof, to be licensed as a whole at no charge to all third
223
- parties under the terms of this License.
224
-
225
- c) If the modified program normally reads commands interactively
226
- when run, you must cause it, when started running for such
227
- interactive use in the most ordinary way, to print or display an
228
- announcement including an appropriate copyright notice and a
229
- notice that there is no warranty (or else, saying that you provide
230
- a warranty) and that users may redistribute the program under
231
- these conditions, and telling the user how to view a copy of this
232
- License. (Exception: if the Program itself is interactive but
233
- does not normally print such an announcement, your work based on
234
- the Program is not required to print an announcement.)
235
- </pre>
236
- <p>
237
- These requirements apply to the modified work as a whole. If identifiable
238
- sections of that work are not derived from the Program, and can be
239
- reasonably considered independent and separate works in themselves, then
240
- this License, and its terms, do not apply to those sections when you
241
- distribute them as separate works. But when you distribute the same
242
- sections as part of a whole which is a work based on the Program, the
243
- distribution of the whole must be on the terms of this License, whose
244
- permissions for other licensees extend to the entire whole, and thus to
245
- each and every part regardless of who wrote it.
246
- </p>
247
- <p>
248
- Thus, it is not the intent of this section to claim rights or contest your
249
- rights to work written entirely by you; rather, the intent is to exercise
250
- the right to control the distribution of derivative or collective works
251
- based on the Program.
252
- </p>
253
- <p>
254
- In addition, mere aggregation of another work not based on the Program with
255
- the Program (or with a work based on the Program) on a volume of a storage
256
- or distribution medium does not bring the other work under the scope of
257
- this License.
258
- </p>
259
- <pre>
260
- 3. You may copy and distribute the Program (or a work based on it,
261
- </pre>
262
- <p>
263
- under Section 2) in object code or executable form under the terms of
264
- Sections 1 and 2 above provided that you also do one of the following:
265
- </p>
266
- <pre>
267
- a) Accompany it with the complete corresponding machine-readable
268
- source code, which must be distributed under the terms of Sections
269
- 1 and 2 above on a medium customarily used for software interchange; or,
270
-
271
- b) Accompany it with a written offer, valid for at least three
272
- years, to give any third party, for a charge no more than your
273
- cost of physically performing source distribution, a complete
274
- machine-readable copy of the corresponding source code, to be
275
- distributed under the terms of Sections 1 and 2 above on a medium
276
- customarily used for software interchange; or,
277
-
278
- c) Accompany it with the information you received as to the offer
279
- to distribute corresponding source code. (This alternative is
280
- allowed only for noncommercial distribution and only if you
281
- received the program in object code or executable form with such
282
- an offer, in accord with Subsection b above.)
283
- </pre>
284
- <p>
285
- The source code for a work means the preferred form of the work for making
286
- modifications to it. For an executable work, complete source code means all
287
- the source code for all modules it contains, plus any associated interface
288
- definition files, plus the scripts used to control compilation and
289
- installation of the executable. However, as a special exception, the source
290
- code distributed need not include anything that is normally distributed (in
291
- either source or binary form) with the major components (compiler, kernel,
292
- and so on) of the operating system on which the executable runs, unless
293
- that component itself accompanies the executable.
294
- </p>
295
- <p>
296
- If distribution of executable or object code is made by offering access to
297
- copy from a designated place, then offering equivalent access to copy the
298
- source code from the same place counts as distribution of the source code,
299
- even though third parties are not compelled to copy the source along with
300
- the object code.
301
- </p>
302
- <pre>
303
- 4. You may not copy, modify, sublicense, or distribute the Program
304
- </pre>
305
- <p>
306
- except as expressly provided under this License. Any attempt otherwise to
307
- copy, modify, sublicense or distribute the Program is void, and will
308
- automatically terminate your rights under this License. However, parties
309
- who have received copies, or rights, from you under this License will not
310
- have their licenses terminated so long as such parties remain in full
311
- compliance.
312
- </p>
313
- <pre>
314
- 5. You are not required to accept this License, since you have not
315
- </pre>
316
- <p>
317
- signed it. However, nothing else grants you permission to modify or
318
- distribute the Program or its derivative works. These actions are
319
- prohibited by law if you do not accept this License. Therefore, by
320
- modifying or distributing the Program (or any work based on the Program),
321
- you indicate your acceptance of this License to do so, and all its terms
322
- and conditions for copying, distributing or modifying the Program or works
323
- based on it.
324
- </p>
325
- <pre>
326
- 6. Each time you redistribute the Program (or any work based on the
327
- </pre>
328
- <p>
329
- Program), the recipient automatically receives a license from the original
330
- licensor to copy, distribute or modify the Program subject to these terms
331
- and conditions. You may not impose any further restrictions on the
332
- recipients&#8217; exercise of the rights granted herein. You are not
333
- responsible for enforcing compliance by third parties to this License.
334
- </p>
335
- <pre>
336
- 7. If, as a consequence of a court judgment or allegation of patent
337
- </pre>
338
- <p>
339
- infringement or for any other reason (not limited to patent issues),
340
- conditions are imposed on you (whether by court order, agreement or
341
- otherwise) that contradict the conditions of this License, they do not
342
- excuse you from the conditions of this License. If you cannot distribute so
343
- as to satisfy simultaneously your obligations under this License and any
344
- other pertinent obligations, then as a consequence you may not distribute
345
- the Program at all. For example, if a patent license would not permit
346
- royalty-free redistribution of the Program by all those who receive copies
347
- directly or indirectly through you, then the only way you could satisfy
348
- both it and this License would be to refrain entirely from distribution of
349
- the Program.
350
- </p>
351
- <p>
352
- If any portion of this section is held invalid or unenforceable under any
353
- particular circumstance, the balance of the section is intended to apply
354
- and the section as a whole is intended to apply in other circumstances.
355
- </p>
356
- <p>
357
- It is not the purpose of this section to induce you to infringe any patents
358
- or other property right claims or to contest validity of any such claims;
359
- this section has the sole purpose of protecting the integrity of the free
360
- software distribution system, which is implemented by public license
361
- practices. Many people have made generous contributions to the wide range
362
- of software distributed through that system in reliance on consistent
363
- application of that system; it is up to the author/donor to decide if he or
364
- she is willing to distribute software through any other system and a
365
- licensee cannot impose that choice.
366
- </p>
367
- <p>
368
- This section is intended to make thoroughly clear what is believed to be a
369
- consequence of the rest of this License.
370
- </p>
371
- <pre>
372
- 8. If the distribution and/or use of the Program is restricted in
373
- </pre>
374
- <p>
375
- certain countries either by patents or by copyrighted interfaces, the
376
- original copyright holder who places the Program under this License may add
377
- an explicit geographical distribution limitation excluding those countries,
378
- so that distribution is permitted only in or among countries not thus
379
- excluded. In such case, this License incorporates the limitation as if
380
- written in the body of this License.
381
- </p>
382
- <pre>
383
- 9. The Free Software Foundation may publish revised and/or new versions
384
- </pre>
385
- <p>
386
- of the General Public License from time to time. Such new versions will be
387
- similar in spirit to the present version, but may differ in detail to
388
- address new problems or concerns.
389
- </p>
390
- <p>
391
- Each version is given a distinguishing version number. If the Program
392
- specifies a version number of this License which applies to it and
393
- &quot;any later version&quot;, you have the option of following the terms
394
- and conditions either of that version or of any later version published by
395
- the Free Software Foundation. If the Program does not specify a version
396
- number of this License, you may choose any version ever published by the
397
- Free Software Foundation.
398
- </p>
399
- <pre>
400
- 10. If you wish to incorporate parts of the Program into other free
401
- </pre>
402
- <p>
403
- programs whose distribution conditions are different, write to the author
404
- to ask for permission. For software which is copyrighted by the Free
405
- Software Foundation, write to the Free Software Foundation; we sometimes
406
- make exceptions for this. Our decision will be guided by the two goals of
407
- preserving the free status of all derivatives of our free software and of
408
- promoting the sharing and reuse of software generally.
409
- </p>
410
- <pre>
411
- NO WARRANTY
412
-
413
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
414
- </pre>
415
- <p>
416
- FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
417
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
418
- PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER
419
- EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
420
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
421
- TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
422
- PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
423
- REPAIR OR CORRECTION.
424
- </p>
425
- <pre>
426
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
427
- </pre>
428
- <p>
429
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
430
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
431
- INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
432
- OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
433
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
434
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
435
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
436
- POSSIBILITY OF SUCH DAMAGES.
437
- </p>
438
- <pre>
439
- END OF TERMS AND CONDITIONS
440
-
441
- How to Apply These Terms to Your New Programs
442
-
443
- If you develop a new program, and you want it to be of the greatest
444
- </pre>
445
- <p>
446
- possible use to the public, the best way to achieve this is to make it free
447
- software which everyone can redistribute and change under these terms.
448
- </p>
449
- <pre>
450
- To do so, attach the following notices to the program. It is safest
451
- </pre>
452
- <p>
453
- to attach them to the start of each source file to most effectively convey
454
- the exclusion of warranty; and each file should have at least the
455
- &quot;copyright&quot; line and a pointer to where the full notice is found.
456
- </p>
457
- <pre>
458
- &lt;one line to give the program's name and a brief idea of what it does.&gt;
459
- Copyright (C) &lt;year&gt; &lt;name of author&gt;
460
-
461
- This program is free software; you can redistribute it and/or modify
462
- it under the terms of the GNU General Public License as published by
463
- the Free Software Foundation; either version 2 of the License, or
464
- (at your option) any later version.
465
-
466
- This program is distributed in the hope that it will be useful,
467
- but WITHOUT ANY WARRANTY; without even the implied warranty of
468
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
469
- GNU General Public License for more details.
470
-
471
- You should have received a copy of the GNU General Public License
472
- along with this program; if not, write to the Free Software
473
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
474
- </pre>
475
- <p>
476
- Also add information on how to contact you by electronic and paper mail.
477
- </p>
478
- <p>
479
- If the program is interactive, make it output a short notice like this when
480
- it starts in an interactive mode:
481
- </p>
482
- <pre>
483
- Gnomovision version 69, Copyright (C) year name of author
484
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
485
- This is free software, and you are welcome to redistribute it
486
- under certain conditions; type `show c' for details.
487
- </pre>
488
- <p>
489
- The hypothetical commands `show w&#8217; and `show c&#8217; should show the
490
- appropriate parts of the General Public License. Of course, the commands
491
- you use may be called something other than `show w&#8217; and `show
492
- c&#8217;; they could even be mouse-clicks or menu items&#8212;whatever
493
- suits your program.
494
- </p>
495
- <p>
496
- You should also get your employer (if you work as a programmer) or your
497
- school, if any, to sign a &quot;copyright disclaimer&quot; for the program,
498
- if necessary. Here is a sample; alter the names:
499
- </p>
500
- <pre>
501
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
502
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
503
-
504
- &lt;signature of Ty Coon&gt;, 1 April 1989
505
- Ty Coon, President of Vice
506
- </pre>
507
- <p>
508
- This General Public License does not permit incorporating your program into
509
- proprietary programs. If your program is a subroutine library, you may
510
- consider it more useful to permit linking proprietary applications with the
511
- library. If this is what you want to do, use the GNU Library General Public
512
- License instead of this License.
513
- </p>
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
- </div>
522
- </div>
523
-
524
-
525
- </div>
526
- </body>
527
- </html>