Capcode 0.7.0 → 0.7.1

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