autoreload 0.3.1 → 1.0.0

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.
@@ -0,0 +1,6 @@
1
+ .yardoc
2
+ log
3
+ ri
4
+ pkg
5
+ tmp
6
+ doc
data/.ruby CHANGED
@@ -1,42 +1,47 @@
1
1
  ---
2
- spec_version: 1.0.0
3
- replaces: []
4
-
5
- loadpath:
6
- - lib
7
2
  name: autoreload
8
- repositories: {}
3
+ dependencies: []
9
4
 
10
5
  conflicts: []
11
6
 
12
- engine_check: []
7
+ repositories: []
13
8
 
14
9
  title: AutoReload
15
- contact: rubyworks-mailinglist@googlegroups.com
10
+ copyrights:
11
+ - license: BSD-2
12
+ holder: Thomas Sawyer
13
+ year: "2010"
14
+ - license: RUBY
15
+ holder: Kouichiro Eto
16
+ year: "2003"
17
+ replacements: []
18
+
19
+ date: "2011-07-16"
16
20
  resources:
17
21
  code: http://github.com/rubyworks/autoreload
18
22
  gem: http://rubygems.org/gems/autoreload
19
23
  home: http://rubyworks.github.com/autoreload
20
- maintainers: []
24
+ version: 1.0.0
25
+ alternatives: []
21
26
 
22
- requires:
23
- - group:
27
+ revision: 0
28
+ requirements:
29
+ - groups:
24
30
  - build
25
- name: syckle
26
- version: 0+
27
- - group:
31
+ name: detroit
32
+ development: true
33
+ - groups:
28
34
  - test
29
- name: rspec
30
- version: 0+
31
- suite: rubyworks
32
- manifest: MANIFEST
33
- version: 0.3.1
34
- licenses:
35
- - Apache 2.0
36
- copyright: Copyright (c) 2007 Kouichirou Eto
35
+ name: minitest
36
+ development: true
37
37
  authors:
38
- - Kouichirou Eto
39
- - Thomas Sawyer
40
- description: Autoreload automatically reloads library files when they have been updated. It is especailly useful when testing stateless services such as web applications.
38
+ - name: Thomas Sawyer
39
+ email: transfire@gmail.com
40
+ - name: Kouichirou Eto
41
+ description: Autoreload automatically reloads library files when they have been updated. It is especially useful when testing stateless services such as web applications.
41
42
  summary: Automatically reload library files
42
- created: 2007-07-01
43
+ extra:
44
+ manifest: MANIFEST
45
+ load_path:
46
+ - lib
47
+ created: "2007-07-01"
@@ -0,0 +1,5 @@
1
+ --private
2
+ --protected
3
+ lib/
4
+ -
5
+ [A-Z]*.*
@@ -0,0 +1,40 @@
1
+ ---
2
+ email:
3
+ file : ~
4
+ subject : ~
5
+ mailto :
6
+ - ruby-talk@ruby-lang.org
7
+ - rubyworks-mailinglist@googlegroups.com
8
+
9
+ gem:
10
+ active: true
11
+
12
+ github:
13
+ active: true
14
+
15
+ yard:
16
+ yardopts: true
17
+ priority: 2
18
+
19
+ minitest:
20
+ tests : spec/*_spec.rb
21
+ loadpath : lib
22
+ requires : ~
23
+ active : true
24
+
25
+ dnote:
26
+ service : DNote
27
+ labels : ~
28
+ output : log/DNOTE.rdoc
29
+
30
+ #locat:
31
+ # title : ~
32
+ # loadpath : ~
33
+ # exclude : ~
34
+ # output : log/LOCat.html
35
+ # active : true
36
+
37
+ vclog:
38
+ output : log/ChangeLog.rdoc
39
+ active : false
40
+
@@ -2,19 +2,378 @@
2
2
 
3
3
  == Autoreload
4
4
 
5
- Copyright (c) 2007 Kouichirou Eto
5
+ Copyright:: (c) 2010 Thomas Sawyer
6
+ License:: BSD-2-Clause
7
+ Website:: http://rubyworks.github.com/autoreload
6
8
 
7
- Copyright (c) 2010 Thomas Sawyer
9
+ Copyright 2010 Thomas Sawyer. All rights reserved.
8
10
 
9
- This program is free software: you can redistribute it and/or modify
10
- it under the terms of the GNU General Public License as published by
11
- the Free Software Foundation, either version 3 of the License, or
12
- (at your option) any later version.
11
+ Redistribution and use in source and binary forms, with or without modification, are
12
+ permitted provided that the following conditions are met:
13
13
 
14
- This program is distributed in the hope that it will be useful,
15
- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- GNU General Public License for more details.
14
+ 1. Redistributions of source code must retain the above copyright notice, this list of
15
+ conditions and the following disclaimer.
18
16
 
19
- You should have received a copy of the GNU General Public License
20
- along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list
18
+ of conditions and the following disclaimer in the documentation and/or other materials
19
+ provided with the distribution.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY Thomas Sawyer ``AS IS'' AND ANY EXPRESS OR IMPLIED
22
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
23
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Thomas Sawyer OR
24
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ The views and conclusions contained in the software and documentation are those of the
32
+ authors and should not be interpreted as representing official policies, either expressed
33
+ or implied, of Thomas Sawyer.
34
+
35
+
36
+ == Autoreload (Original Work)
37
+
38
+ Copyright:: (c) 2003-2007 Kouichirou Eto
39
+ License:: Ruby License
40
+ Website:: http://autoreload.rubyforge.org
41
+
42
+ Copyright (c) 2003-2007 Kouichirou Eto
43
+
44
+ You can redistribute it and/or modify it under either the terms of the GPL
45
+ version 2 (see "GNU" below), or the conditions below:
46
+
47
+ 1. You may make and give away verbatim copies of the source form of the
48
+ software without restriction, provided that you duplicate all of the
49
+ original copyright notices and associated disclaimers.
50
+
51
+ 2. You may modify your copy of the software in any way, provided that
52
+ you do at least ONE of the following:
53
+
54
+ a) place your modifications in the Public Domain or otherwise
55
+ make them Freely Available, such as by posting said
56
+ modifications to Usenet or an equivalent medium, or by allowing
57
+ the author to include your modifications in the software.
58
+
59
+ b) use the modified software only within your corporation or
60
+ organization.
61
+
62
+ c) give non-standard binaries non-standard names, with
63
+ instructions on where to get the original software distribution.
64
+
65
+ d) make other distribution arrangements with the author.
66
+
67
+ 3. You may distribute the software in object code or binary form,
68
+ provided that you do at least ONE of the following:
69
+
70
+ a) distribute the binaries and library files of the software,
71
+ together with instructions (in the manual page or equivalent)
72
+ on where to get the original distribution.
73
+
74
+ b) accompany the distribution with the machine-readable source of
75
+ the software.
76
+
77
+ c) give non-standard binaries non-standard names, with
78
+ instructions on where to get the original software distribution.
79
+
80
+ d) make other distribution arrangements with the author.
81
+
82
+ 4. You may modify and include the part of the software into any other
83
+ software (possibly commercial). But some files in the distribution
84
+ are not written by the author, so that they are not under these terms.
85
+
86
+ 5. The scripts and library files supplied as input to or produced as
87
+ output from the software do not automatically fall under the
88
+ copyright of the software, but belong to whomever generated them,
89
+ and may be sold commercially, and may be aggregated with this
90
+ software.
91
+
92
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
93
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
94
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95
+ PURPOSE.
96
+
97
+
98
+ * * *
99
+
100
+
101
+ GNU GENERAL PUBLIC LICENSE
102
+ Version 2, June 1991
103
+
104
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
105
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
106
+ Everyone is permitted to copy and distribute verbatim copies
107
+ of this license document, but changing it is not allowed.
108
+
109
+ Preamble
110
+
111
+ The licenses for most software are designed to take away your
112
+ freedom to share and change it. By contrast, the GNU General Public
113
+ License is intended to guarantee your freedom to share and change free
114
+ software--to make sure the software is free for all its users. This
115
+ General Public License applies to most of the Free Software
116
+ Foundation's software and to any other program whose authors commit to
117
+ using it. (Some other Free Software Foundation software is covered by
118
+ the GNU Lesser General Public License instead.) You can apply it to
119
+ your programs, too.
120
+
121
+ When we speak of free software, we are referring to freedom, not
122
+ price. Our General Public Licenses are designed to make sure that you
123
+ have the freedom to distribute copies of free software (and charge for
124
+ this service if you wish), that you receive source code or can get it
125
+ if you want it, that you can change the software or use pieces of it
126
+ in new free programs; and that you know you can do these things.
127
+
128
+ To protect your rights, we need to make restrictions that forbid
129
+ anyone to deny you these rights or to ask you to surrender the rights.
130
+ These restrictions translate to certain responsibilities for you if you
131
+ distribute copies of the software, or if you modify it.
132
+
133
+ For example, if you distribute copies of such a program, whether
134
+ gratis or for a fee, you must give the recipients all the rights that
135
+ you have. You must make sure that they, too, receive or can get the
136
+ source code. And you must show them these terms so they know their
137
+ rights.
138
+
139
+ We protect your rights with two steps: (1) copyright the software, and
140
+ (2) offer you this license which gives you legal permission to copy,
141
+ distribute and/or modify the software.
142
+
143
+ Also, for each author's protection and ours, we want to make certain
144
+ that everyone understands that there is no warranty for this free
145
+ software. If the software is modified by someone else and passed on, we
146
+ want its recipients to know that what they have is not the original, so
147
+ that any problems introduced by others will not reflect on the original
148
+ authors' reputations.
149
+
150
+ Finally, any free program is threatened constantly by software
151
+ patents. We wish to avoid the danger that redistributors of a free
152
+ program will individually obtain patent licenses, in effect making the
153
+ program proprietary. To prevent this, we have made it clear that any
154
+ patent must be licensed for everyone's free use or not licensed at all.
155
+
156
+ The precise terms and conditions for copying, distribution and
157
+ modification follow.
158
+
159
+ GNU GENERAL PUBLIC LICENSE
160
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
161
+
162
+ 0. This License applies to any program or other work which contains
163
+ a notice placed by the copyright holder saying it may be distributed
164
+ under the terms of this General Public License. The "Program", below,
165
+ refers to any such program or work, and a "work based on the Program"
166
+ means either the Program or any derivative work under copyright law:
167
+ that is to say, a work containing the Program or a portion of it,
168
+ either verbatim or with modifications and/or translated into another
169
+ language. (Hereinafter, translation is included without limitation in
170
+ the term "modification".) Each licensee is addressed as "you".
171
+
172
+ Activities other than copying, distribution and modification are not
173
+ covered by this License; they are outside its scope. The act of
174
+ running the Program is not restricted, and the output from the Program
175
+ is covered only if its contents constitute a work based on the
176
+ Program (independent of having been made by running the Program).
177
+ Whether that is true depends on what the Program does.
178
+
179
+ 1. You may copy and distribute verbatim copies of the Program's
180
+ source code as you receive it, in any medium, provided that you
181
+ conspicuously and appropriately publish on each copy an appropriate
182
+ copyright notice and disclaimer of warranty; keep intact all the
183
+ notices that refer to this License and to the absence of any warranty;
184
+ and give any other recipients of the Program a copy of this License
185
+ along with the Program.
186
+
187
+ You may charge a fee for the physical act of transferring a copy, and
188
+ you may at your option offer warranty protection in exchange for a fee.
189
+
190
+ 2. You may modify your copy or copies of the Program or any portion
191
+ of it, thus forming a work based on the Program, and copy and
192
+ distribute such modifications or work under the terms of Section 1
193
+ above, provided that you also meet all of these conditions:
194
+
195
+ a) You must cause the modified files to carry prominent notices
196
+ stating that you changed the files and the date of any change.
197
+
198
+ b) You must cause any work that you distribute or publish, that in
199
+ whole or in part contains or is derived from the Program or any
200
+ part thereof, to be licensed as a whole at no charge to all third
201
+ parties under the terms of this License.
202
+
203
+ c) If the modified program normally reads commands interactively
204
+ when run, you must cause it, when started running for such
205
+ interactive use in the most ordinary way, to print or display an
206
+ announcement including an appropriate copyright notice and a
207
+ notice that there is no warranty (or else, saying that you provide
208
+ a warranty) and that users may redistribute the program under
209
+ these conditions, and telling the user how to view a copy of this
210
+ License. (Exception: if the Program itself is interactive but
211
+ does not normally print such an announcement, your work based on
212
+ the Program is not required to print an announcement.)
213
+
214
+ These requirements apply to the modified work as a whole. If
215
+ identifiable sections of that work are not derived from the Program,
216
+ and can be reasonably considered independent and separate works in
217
+ themselves, then this License, and its terms, do not apply to those
218
+ sections when you distribute them as separate works. But when you
219
+ distribute the same sections as part of a whole which is a work based
220
+ on the Program, the distribution of the whole must be on the terms of
221
+ this License, whose permissions for other licensees extend to the
222
+ entire whole, and thus to each and every part regardless of who wrote it.
223
+
224
+ Thus, it is not the intent of this section to claim rights or contest
225
+ your rights to work written entirely by you; rather, the intent is to
226
+ exercise the right to control the distribution of derivative or
227
+ collective works based on the Program.
228
+
229
+ In addition, mere aggregation of another work not based on the Program
230
+ with the Program (or with a work based on the Program) on a volume of
231
+ a storage or distribution medium does not bring the other work under
232
+ the scope of this License.
233
+
234
+ 3. You may copy and distribute the Program (or a work based on it,
235
+ under Section 2) in object code or executable form under the terms of
236
+ Sections 1 and 2 above provided that you also do one of the following:
237
+
238
+ a) Accompany it with the complete corresponding machine-readable
239
+ source code, which must be distributed under the terms of Sections
240
+ 1 and 2 above on a medium customarily used for software interchange; or,
241
+
242
+ b) Accompany it with a written offer, valid for at least three
243
+ years, to give any third party, for a charge no more than your
244
+ cost of physically performing source distribution, a complete
245
+ machine-readable copy of the corresponding source code, to be
246
+ distributed under the terms of Sections 1 and 2 above on a medium
247
+ customarily used for software interchange; or,
248
+
249
+ c) Accompany it with the information you received as to the offer
250
+ to distribute corresponding source code. (This alternative is
251
+ allowed only for noncommercial distribution and only if you
252
+ received the program in object code or executable form with such
253
+ an offer, in accord with Subsection b above.)
254
+
255
+ The source code for a work means the preferred form of the work for
256
+ making modifications to it. For an executable work, complete source
257
+ code means all the source code for all modules it contains, plus any
258
+ associated interface definition files, plus the scripts used to
259
+ control compilation and installation of the executable. However, as a
260
+ special exception, the source code distributed need not include
261
+ anything that is normally distributed (in either source or binary
262
+ form) with the major components (compiler, kernel, and so on) of the
263
+ operating system on which the executable runs, unless that component
264
+ itself accompanies the executable.
265
+
266
+ If distribution of executable or object code is made by offering
267
+ access to copy from a designated place, then offering equivalent
268
+ access to copy the source code from the same place counts as
269
+ distribution of the source code, even though third parties are not
270
+ compelled to copy the source along with the object code.
271
+
272
+ 4. You may not copy, modify, sublicense, or distribute the Program
273
+ except as expressly provided under this License. Any attempt
274
+ otherwise to copy, modify, sublicense or distribute the Program is
275
+ void, and will automatically terminate your rights under this License.
276
+ However, parties who have received copies, or rights, from you under
277
+ this License will not have their licenses terminated so long as such
278
+ parties remain in full compliance.
279
+
280
+ 5. You are not required to accept this License, since you have not
281
+ signed it. However, nothing else grants you permission to modify or
282
+ distribute the Program or its derivative works. These actions are
283
+ prohibited by law if you do not accept this License. Therefore, by
284
+ modifying or distributing the Program (or any work based on the
285
+ Program), you indicate your acceptance of this License to do so, and
286
+ all its terms and conditions for copying, distributing or modifying
287
+ the Program or works based on it.
288
+
289
+ 6. Each time you redistribute the Program (or any work based on the
290
+ Program), the recipient automatically receives a license from the
291
+ original licensor to copy, distribute or modify the Program subject to
292
+ these terms and conditions. You may not impose any further
293
+ restrictions on the recipients' exercise of the rights granted herein.
294
+ You are not responsible for enforcing compliance by third parties to
295
+ this License.
296
+
297
+ 7. If, as a consequence of a court judgment or allegation of patent
298
+ infringement or for any other reason (not limited to patent issues),
299
+ conditions are imposed on you (whether by court order, agreement or
300
+ otherwise) that contradict the conditions of this License, they do not
301
+ excuse you from the conditions of this License. If you cannot
302
+ distribute so as to satisfy simultaneously your obligations under this
303
+ License and any other pertinent obligations, then as a consequence you
304
+ may not distribute the Program at all. For example, if a patent
305
+ license would not permit royalty-free redistribution of the Program by
306
+ all those who receive copies directly or indirectly through you, then
307
+ the only way you could satisfy both it and this License would be to
308
+ refrain entirely from distribution of the Program.
309
+
310
+ If any portion of this section is held invalid or unenforceable under
311
+ any particular circumstance, the balance of the section is intended to
312
+ apply and the section as a whole is intended to apply in other
313
+ circumstances.
314
+
315
+ It is not the purpose of this section to induce you to infringe any
316
+ patents or other property right claims or to contest validity of any
317
+ such claims; this section has the sole purpose of protecting the
318
+ integrity of the free software distribution system, which is
319
+ implemented by public license practices. Many people have made
320
+ generous contributions to the wide range of software distributed
321
+ through that system in reliance on consistent application of that
322
+ system; it is up to the author/donor to decide if he or she is willing
323
+ to distribute software through any other system and a licensee cannot
324
+ impose that choice.
325
+
326
+ This section is intended to make thoroughly clear what is believed to
327
+ be a consequence of the rest of this License.
328
+
329
+ 8. If the distribution and/or use of the Program is restricted in
330
+ certain countries either by patents or by copyrighted interfaces, the
331
+ original copyright holder who places the Program under this License
332
+ may add an explicit geographical distribution limitation excluding
333
+ those countries, so that distribution is permitted only in or among
334
+ countries not thus excluded. In such case, this License incorporates
335
+ the limitation as if written in the body of this License.
336
+
337
+ 9. The Free Software Foundation may publish revised and/or new versions
338
+ of the General Public License from time to time. Such new versions will
339
+ be similar in spirit to the present version, but may differ in detail to
340
+ address new problems or concerns.
341
+
342
+ Each version is given a distinguishing version number. If the Program
343
+ specifies a version number of this License which applies to it and "any
344
+ later version", you have the option of following the terms and conditions
345
+ either of that version or of any later version published by the Free
346
+ Software Foundation. If the Program does not specify a version number of
347
+ this License, you may choose any version ever published by the Free Software
348
+ Foundation.
349
+
350
+ 10. If you wish to incorporate parts of the Program into other free
351
+ programs whose distribution conditions are different, write to the author
352
+ to ask for permission. For software which is copyrighted by the Free
353
+ Software Foundation, write to the Free Software Foundation; we sometimes
354
+ make exceptions for this. Our decision will be guided by the two goals
355
+ of preserving the free status of all derivatives of our free software and
356
+ of promoting the sharing and reuse of software generally.
357
+
358
+ NO WARRANTY
359
+
360
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
361
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
362
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
363
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
364
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
365
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
366
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
367
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
368
+ REPAIR OR CORRECTION.
369
+
370
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
371
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
372
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
373
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
374
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
375
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
376
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
377
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
378
+ POSSIBILITY OF SUCH DAMAGES.
379
+