ruby-graphviz 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS.rdoc ADDED
@@ -0,0 +1,24 @@
1
+ * Gregoire Lejeune <glejeune.lejeune@free.fr>
2
+ * Brandon Coleman <metrix1978@gmail.com>
3
+ * Dave Burt <http://github.com/dburt>
4
+ * Miguel Cabrera <http://mfcabrera.com>
5
+ * obruening <http://github.com/obruening>
6
+ * reactive <http://github.com/reactive>
7
+ * Hugh Sasse <hgs@dmu.ac.uk>
8
+ * axgle <http://github.com/axgle>
9
+ * hipe <http://github.com/hipe>
10
+ * Stefan Huber <http://github.com/MSNexploder>
11
+ * Nigel Thorne <http://github.com/NigelThorne>
12
+ * Rolf Timmermans <http://github.com/rolftimmermans>
13
+ * Jonas Elfström <http://github.com/jonelf>
14
+ * oupo <http://github.com/oupo>
15
+ * Daniel Zollinger <https://github.com/dznz>
16
+ * Ronen Barzel <https://github.com/ronen>
17
+ * Jamison Dance <https://github.com/jergason>
18
+ * hirochachacha <https://github.com/hirochachacha>
19
+
20
+ Thanks to :
21
+
22
+ * Jake Goulding <http://jakegoulding.com> - Spelling corrections
23
+ * Desmond Dsouza - Windows tests and corrections
24
+ * Vidar Hokstad and Ryan Shea - for nothugly.xsl
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,242 @@
1
+ = CHANGELOG
2
+
3
+ == 1.0.4 :
4
+ * GraphViz::Edge#each_attribut is deprecated, please use GraphViz::Edge#each_attribute
5
+ * GraphViz::GraphML#attributs is deprecated, please, use GraphViz::GraphML#attributes
6
+ * GraphViz::Node#each_attribut is deprecated, please use GraphViz::Node#each_attribute
7
+ * Major bug correction in GraphViz::Attrs and GraphViz::parse
8
+ * An empty string means "false" for boolean attributes
9
+
10
+ == 1.0.3 :
11
+ * The GraphViz::Theory#moore_dijkstra return a path which contains GraphViz::Node instead of GraphViz::Node#id
12
+ * Add Breadth First Search algorithm (GraphViz::Theory#bfs)
13
+ * Add Depth First Search algorithm (GraphViz::Theory#dfs)
14
+ * Add GraphViz#add_edges (GraphViz#add_edge is deprecated)
15
+ * Add GraphViz#add_nodes (GraphViz#add_node is deprecated)
16
+ * Add GraphViz::generate
17
+ * Remove definition of Array#all?
18
+
19
+ == 1.0.2 :
20
+ * Add PageRank algorithm
21
+ * Major bug corrections
22
+ * Fix utils/colors.rb's case syntax
23
+ * Modify deprecated method: Hash#index to Hash#key
24
+
25
+ == 1.0.1 :
26
+ * Add GraphViz::DSL
27
+ * Change project to use Bundler gem tools
28
+ * Fix a few typos in the README
29
+ * Change Config to RbConfig
30
+ * Add possibility to get the x,y coordinates of each of the nodes
31
+
32
+ == 1.0.0 :
33
+ * \o/
34
+ * GraphViz::Node#name has been removed - use GraphViz::Node#id
35
+ * The html attribute has been removed - use a label attribut (<tt>:label => '<<html/>>'</tt>)
36
+ * :output option has been removed - use :<format> => :<file>
37
+ * :file option has been removed - use :<format> => :<file>
38
+ * Add GraphViz#to_s
39
+ * Add GraphViz#add (see sample59.rb)
40
+ * GraphViz::XML.output is deprecated, use GraphViz::XML.graph.output
41
+ * Issue #22 : Error when generating a graph with an ID containing a space.
42
+
43
+ == 0.9.21 :
44
+ * Add attributes "label_scheme" and "rotation"
45
+ * Add missing options :
46
+ * <tt>:scale => v</tt> : Scale input by 'v' (=72)
47
+ * <tt>:inverty => [true|false]</tt> : Invert y coordinate in output
48
+ * <tt>:no_layout => v</tt> : No layout mode 'v' (=1) -- neato only
49
+ * <tt>:reduce => [true|false]</tt> : Reduce graph -- neato only
50
+ * <tt>:Lg => [true|false]</tt> : Don't use grid -- fdp only
51
+ * <tt>:LO => [true|false]</tt> : Use old attractive force -- fdp only
52
+ * <tt>:Ln => i</tt> : Set number of iterations to i -- fdp only
53
+ * <tt>:LU => i</tt> : Set unscaled factor to i -- fdp only
54
+ * <tt>:LC => v</tt> : Set overlap expansion factor to v -- fdp only
55
+ * <tt>:LT => [*]v</tt> : Set temperature (temperature factor) to v -- fdp only
56
+
57
+ == 0.9.20 :
58
+ * Add GraphViz#each_attribut, Node#each_attribut and Edge#each_attribut
59
+ * Bugs corrections in tests (by oupo)
60
+ * Major bug correction in GraphViz#output for subgraphs
61
+ * Update GraphViz.escape
62
+
63
+ == 0.9.19 :
64
+ * Add strict digraph support (by Jonas Elfström) (see sample58.rb)
65
+ g = GraphViz.new(:G, :type => "strict digraph")
66
+ # or
67
+ g = GraphViz.new(:G, :type => "digraph", :strict => true)
68
+ # or
69
+ g = GraphViz.digraph(:G, :strict => true)
70
+ # or
71
+ g = GraphViz.strict_digraph(:G)
72
+ * Add GraphViz#root_graph, Node#root_graph, Edge#root_graph
73
+ * The GraphML parser now accept a graphml file or string
74
+
75
+ == 0.9.18 :
76
+ * JRuby bug correction (by Nigel Thorne)
77
+ * Fix autoload problem for Rubinius (by Rolf Timmermans)
78
+ * Bugs corrections
79
+
80
+ == 0.9.17 :
81
+ * GraphViz::Edge#node_one and GraphViz::Edge#node_one now have un optional parameter to indicate if you want to (or not) get the port in the name (default: true)
82
+ * GraphViz#each_node now returns the Hash of nodes if there is no block given.
83
+ * GraphViz#each_edge now returns the list of edges if there is no block given.
84
+ * GraphViz#each_graph now returns the Hash of graphs if there is no block given.
85
+ * Add GraphViz::Node#index : return the node index
86
+ * Add GraphViz::Edge#index : return the edge index
87
+ * Add GraphViz#type : return the graph type (graph or digraph)
88
+ * Add GraphViz#get_edge_at_index and GraphViz#get_node_at_index
89
+ * Add GvDouble
90
+ * Add GraphViz::Theory (see examples/theory/tests.rb)
91
+ * Add GraphML[http://graphml.graphdrawing.org/] support (see sample57.rb)
92
+ * fixed "edge attribut 'to_ary' invalid" on mri 1.9.2 (by Stefan Huber)
93
+
94
+ == 0.9.16 :
95
+ * Add <tt>xml2gv</tt>
96
+ * Rename <tt>GraphViz.parser2</tt> to <tt>GraphViz.parser</tt>
97
+ * Remove treetop dependency
98
+ * Ruby 1.9 (and MacRuby) compatibility -- Issue #12: see sample38.rb
99
+ * Add GraphViz::Attrs#each and GraphViz::Attrs#to_h
100
+ * Add GraphViz::Edge#node_one and GraphViz::Edge#node_two
101
+
102
+ == 0.9.15 :
103
+ * Add <tt>GraphViz.parser2</tt>. <b>WARNING</b> this method will replace <tt>GraphViz.parser</tt>. So please don't use it, or only for testing.
104
+ * Bug correction in <tt>dot2ruby</tt>
105
+ * Add <tt>--output-format</tt> option to <tt>dot2ruby</tt>
106
+ * Add <tt>git2gv</tt>
107
+ * Issue #16 : escape graph ID
108
+
109
+ == 0.9.14 :
110
+ * Add dot2ruby script
111
+ * Remove NULL character in the DOT script
112
+ * <b>WARNING</b> : FamilyTree is (still) broken in this version !
113
+
114
+ == 0.9.13 :
115
+ * Add dot2ruby.g
116
+ * Bug correction with HTML label
117
+ * The html attribut is deprecated. You can use the label attribut, as dot do it : <tt>:label => '<<html/>>'</tt>
118
+ * Issue #15 : Thin server
119
+ * <b>WARNING</b> : FamilyTree is (still) broken in this version !
120
+
121
+ == 0.9.12 :
122
+ * GraphViz::Node#name is deprecated, you must use GraphViz::Node#id (issue #14)
123
+ * Add :nothugly option to GraphViz#output (see sample41.rb and http://www.hokstad.com/making-graphviz-output-pretty-with-xsl.html)
124
+ * Issue #13 : you must now specify a port in GraphViz::Edge.new with a syntax like this :
125
+ GraphViz::Edge.new( {nodeOne => :port}, {nodeTwo => :other} )
126
+ * Issue #12 : UTF8 support (see sample38.rb)
127
+ * Move and rename examples + remove maketest.[sh|bat]
128
+ * <b>WARNING</b> : FamilyTree is broken in this version !
129
+
130
+ == 0.9.11 :
131
+ * Issue #11 : Cygwin PATH
132
+ * Major bugs correction in output
133
+ * Bug correction in find_executable
134
+ * Add tests (by Chip Malice : http://github.com/hipe)
135
+
136
+ == 0.9.10 :
137
+ * Move ChangeLog in README
138
+ * Add GraphViz::FamilyTree (alpha). See examples/sample33.rb
139
+ * Major bugs corrections in GraphViz::Parser
140
+ * Issue #10 : Anonymous graph (see Subgraphs and Clusters at http://www.graphviz.org/doc/info/lang.html). See examples/sample34.rb
141
+ * GraphViz#add_graph can now take a block parameter. See example/sample34.rb
142
+ * Add GraphViz.digraph and GraphViz.graph (same as GraphViz.new( ..., :type => "digraph" ) and GraphViz.new( ..., :type => "graph" )). See examples/sample35.rb
143
+ * Add GraphViz#subgraph. See examples/sample35.rb
144
+ * GraphViz::Parser support anonymous graph
145
+ * Add lage node example. See examples/sample36.rb
146
+
147
+ == 0.9.9 :
148
+ * Add graph as an accessor to allow you to set global graph attributs (like edge and node)
149
+ * Add each_node, each_edge, each_graph (thanks to @metellius) and graph_count
150
+ * Issue #9 (partial) - Solution : by default, a node will have his label set with the node ID)
151
+
152
+ == 0.9.8 :
153
+ * Update graph and node posibility to set properties (see sample28.rb)
154
+ * Issue #7: Path option is never being used to find the executable
155
+ * Adding classes to check if the attributes are in the correct type
156
+ * Issue #8: dots in href are escaped with backslash, which corrupts the URL (see sample29.rb)
157
+ * Add posibility to use external libraries (see sample30.rb)
158
+ * Add options -u and -s to ruby2gv
159
+ * Add gem2gv
160
+
161
+ == 0.9.7 :
162
+ * Issue #2: Small bug correction in escape_path_containing_blanks (by Andreas Ronge)
163
+ * Issue #4: New find_executable (by reactive)
164
+ * Issue #3: Tempfiles created in current working directory only in Windows
165
+ * Issue #6: Respect "none" format in output options hash and respect String output-filename when the "none" format is selected. See examples/sample27.rb (by Dave Burt)
166
+
167
+ == 0.9.6 :
168
+ * jRuby support (by obruening)
169
+ * Issue #1 : STDOUT in binmode
170
+
171
+ == 0.9.5 :
172
+ * Remove 'mkmf' dependency
173
+ * GraphViz::Edge#[] modification
174
+ * Small correction to escape the dot ('.') character (by Miguel Cabrera)
175
+
176
+ == 0.9.4 :
177
+ * Escape nodes and edges attributs
178
+ * GraphViz::escape corrections (by Dave Burt)
179
+ * Add :errors option to set level of message suppression (default : suppress warning messages)
180
+
181
+ == 0.9.3 :
182
+ * Minor bug correction for Windows
183
+ * Use Open3.popen3 if installed, else use IO.popen (by Dave Burt)
184
+ * Add '-', '>' and '>>' has aliases of '<<' to create an edge.
185
+
186
+ == 0.9.2 :
187
+ * Escape nodes (by Dave Burt)
188
+ * Handle errors from graphviz command (by Dave Burt)
189
+ * Output as string (if String class is passed as file i.e. output(:pdf => String)) (by Dave Burt)
190
+
191
+ == 0.9.1 :
192
+ * Bugs corrections
193
+ * Add the ability to create edge like that : node1 << node2 << node3 ...
194
+ * Complete README
195
+ * Add a DOT parser. This parser has a lot of limitations. So don't use it in a production context !
196
+ * :output and :file options are deprecated, please use :<format> => :<file>
197
+ * You can now specify multiple outputs via :<format> => :<file> (see sample 22).
198
+
199
+ == 0.9.0 :
200
+ * Add fdp example (sample 15)
201
+ * Add edge between cluster and node and cluster and cluster support
202
+ * GraphViz.add_node now support array (sample 16)
203
+ * Bug correction in GraphViz.output (sample 19)
204
+ * Add GraphViz#default to set default options (:use, :path and :output)
205
+ * Add possibility to set node or edge attribut via :
206
+ node.<attribut>=<value> or node.<attribut>( <value> )
207
+ edge.<attribut>=<value> or edge.<attribut>( <value> )
208
+ * Add GraphViz::Edge.set and GraphViz::Node.set
209
+ * Add sample 20
210
+ * Add GraphViz.node_count and GraphViz.edge_count by Daniel Cadenas Nión
211
+
212
+ == 0.8.2 :
213
+ * Update Node, Edge and Graph Attributes (see http://www.graphviz.org/doc/info/attrs.html)
214
+ * Bugs corrections
215
+
216
+ == 0.8.1 :
217
+ * Documentation
218
+
219
+ == 0.8.0 :
220
+ * Add all the features of the current graphviz version
221
+
222
+ == 0.7.0 :
223
+ * Add option "path" to output
224
+
225
+ == 0.6.0 :
226
+ * Add undirected graph support
227
+
228
+ == 0.5.0 :
229
+ * Preserve the original order of creation of nodes and edges
230
+
231
+ == 0.4.0 :
232
+ * Add HTML-Labels
233
+
234
+ == 0.3.0 :
235
+ * Bugs corrections
236
+
237
+ == 0.2.0 :
238
+ * Pure ruby
239
+
240
+ == 0.1.0 :
241
+ * Initial version
242
+
data/COPYING.rdoc ADDED
@@ -0,0 +1,133 @@
1
+ = GNU GENERAL PUBLIC LICENSE
2
+ = Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
5
+
6
+ == Preamble
7
+
8
+ The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.
9
+
10
+ When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
11
+
12
+ To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
13
+
14
+ For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
15
+
16
+ We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
17
+
18
+ Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
19
+
20
+ Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
21
+
22
+ The precise terms and conditions for copying, distribution and modification follow.
23
+
24
+ == GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
25
+
26
+ 0.This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
27
+
28
+ Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
29
+
30
+ 1.You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
31
+
32
+ You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
33
+
34
+ 2.You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
35
+
36
+ a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
37
+
38
+ b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
39
+
40
+ c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
41
+
42
+ These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
43
+
44
+ Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
45
+
46
+ In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
47
+
48
+ 3.You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
49
+
50
+ a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
51
+
52
+ b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
53
+
54
+ c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
55
+
56
+ The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
57
+
58
+ If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
59
+
60
+ 4.You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
61
+
62
+ 5.You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
63
+
64
+ 6.Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
65
+
66
+ 7.If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
67
+
68
+ If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
69
+
70
+ It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
71
+
72
+ This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
73
+
74
+ 8.If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
75
+
76
+ 9.The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
77
+
78
+ Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
79
+
80
+ 10.If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
81
+
82
+ == NO WARRANTY
83
+
84
+ 11.BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
85
+
86
+ 12.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
87
+
88
+ == END OF TERMS AND CONDITIONS
89
+
90
+ How to Apply These Terms to Your New Programs
91
+
92
+ If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
93
+
94
+ To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
95
+
96
+ <one line to give the program's name and a brief idea of what it does.>
97
+ Copyright (C) <year> <name of author>
98
+
99
+ This program is free software; you can redistribute it and/or modify
100
+ it under the terms of the GNU General Public License as published by
101
+ the Free Software Foundation; either version 2 of the License, or
102
+ (at your option) any later version.
103
+
104
+ This program is distributed in the hope that it will be useful,
105
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
106
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
107
+ GNU General Public License for more details.
108
+
109
+ You should have received a copy of the GNU General Public License
110
+ along with this program; if not, write to the Free Software
111
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
112
+
113
+
114
+ Also add information on how to contact you by electronic and paper mail.
115
+
116
+ If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
117
+
118
+ Gnomovision version 69, Copyright (C) year name of author
119
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
120
+ This is free software, and you are welcome to redistribute it
121
+ under certain conditions; type `show c' for details.
122
+
123
+ The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
124
+
125
+ You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
126
+
127
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
128
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
129
+
130
+ <signature of Ty Coon>, 1 April 1989
131
+ Ty Coon, President of Vice
132
+
133
+ This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.