elliottcable-echoe 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +69 -0
- data/LICENSE +184 -0
- data/MIT-LICENSE +21 -0
- data/Manifest +113 -0
- data/README +114 -0
- data/Rakefile +15 -0
- data/TODO +4 -0
- data/echoe.gemspec +37 -0
- data/lib/echoe/client.rb +25 -0
- data/lib/echoe/extensions.rb +57 -0
- data/lib/echoe/platform.rb +36 -0
- data/lib/echoe/rubygems.rb +41 -0
- data/lib/echoe.rb +717 -0
- data/vendor/rake/CHANGES +400 -0
- data/vendor/rake/MIT-LICENSE +21 -0
- data/vendor/rake/README +285 -0
- data/vendor/rake/Rakefile +418 -0
- data/vendor/rake/TODO +20 -0
- data/vendor/rake/bin/rake +31 -0
- data/vendor/rake/doc/example/Rakefile1 +38 -0
- data/vendor/rake/doc/example/Rakefile2 +35 -0
- data/vendor/rake/doc/example/a.c +6 -0
- data/vendor/rake/doc/example/b.c +6 -0
- data/vendor/rake/doc/example/main.c +11 -0
- data/vendor/rake/doc/glossary.rdoc +51 -0
- data/vendor/rake/doc/jamis.rb +591 -0
- data/vendor/rake/doc/proto_rake.rdoc +127 -0
- data/vendor/rake/doc/rake.1.gz +0 -0
- data/vendor/rake/doc/rakefile.rdoc +534 -0
- data/vendor/rake/doc/rational.rdoc +151 -0
- data/vendor/rake/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/rake/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/rake/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/rake/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/rake/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/rake/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/rake/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/rake/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/rake/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/rake/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/rake/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/rake/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/rake/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/rake/install.rb +88 -0
- data/vendor/rake/lib/rake/classic_namespace.rb +8 -0
- data/vendor/rake/lib/rake/clean.rb +33 -0
- data/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/rake/lib/rake/contrib/sshpublisher.rb +47 -0
- data/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/rake/lib/rake/gempackagetask.rb +103 -0
- data/vendor/rake/lib/rake/loaders/makefile.rb +35 -0
- data/vendor/rake/lib/rake/packagetask.rb +185 -0
- data/vendor/rake/lib/rake/rake_test_loader.rb +5 -0
- data/vendor/rake/lib/rake/rdoctask.rb +147 -0
- data/vendor/rake/lib/rake/ruby182_test_unit_fix.rb +23 -0
- data/vendor/rake/lib/rake/runtest.rb +23 -0
- data/vendor/rake/lib/rake/tasklib.rb +23 -0
- data/vendor/rake/lib/rake/testtask.rb +161 -0
- data/vendor/rake/lib/rake/win32.rb +54 -0
- data/vendor/rake/lib/rake.rb +2468 -0
- data/vendor/rake/test/capture_stdout.rb +26 -0
- data/vendor/rake/test/check_expansion.rb +5 -0
- data/vendor/rake/test/contrib/test_sys.rb +47 -0
- data/vendor/rake/test/data/chains/Rakefile +15 -0
- data/vendor/rake/test/data/default/Rakefile +19 -0
- data/vendor/rake/test/data/dryrun/Rakefile +22 -0
- data/vendor/rake/test/data/file_creation_task/Rakefile +33 -0
- data/vendor/rake/test/data/imports/Rakefile +19 -0
- data/vendor/rake/test/data/imports/deps.mf +1 -0
- data/vendor/rake/test/data/multidesc/Rakefile +17 -0
- data/vendor/rake/test/data/namespace/Rakefile +57 -0
- data/vendor/rake/test/data/rakelib/test1.rb +3 -0
- data/vendor/rake/test/data/rbext/rakefile.rb +3 -0
- data/vendor/rake/test/data/sample.mf +12 -0
- data/vendor/rake/test/data/statusreturn/Rakefile +8 -0
- data/vendor/rake/test/data/unittest/Rakefile +1 -0
- data/vendor/rake/test/filecreation.rb +32 -0
- data/vendor/rake/test/functional.rb +15 -0
- data/vendor/rake/test/in_environment.rb +30 -0
- data/vendor/rake/test/rake_test_setup.rb +10 -0
- data/vendor/rake/test/reqfile.rb +3 -0
- data/vendor/rake/test/reqfile2.rb +3 -0
- data/vendor/rake/test/session_functional.rb +337 -0
- data/vendor/rake/test/shellcommand.rb +3 -0
- data/vendor/rake/test/test_application.rb +694 -0
- data/vendor/rake/test/test_clean.rb +14 -0
- data/vendor/rake/test/test_definitions.rb +82 -0
- data/vendor/rake/test/test_earlytime.rb +35 -0
- data/vendor/rake/test/test_extension.rb +63 -0
- data/vendor/rake/test/test_file_creation_task.rb +62 -0
- data/vendor/rake/test/test_file_task.rb +139 -0
- data/vendor/rake/test/test_filelist.rb +618 -0
- data/vendor/rake/test/test_fileutils.rb +250 -0
- data/vendor/rake/test/test_ftp.rb +59 -0
- data/vendor/rake/test/test_invocation_chain.rb +75 -0
- data/vendor/rake/test/test_makefile_loader.rb +25 -0
- data/vendor/rake/test/test_multitask.rb +45 -0
- data/vendor/rake/test/test_namespace.rb +36 -0
- data/vendor/rake/test/test_package_task.rb +116 -0
- data/vendor/rake/test/test_pathmap.rb +209 -0
- data/vendor/rake/test/test_rake.rb +41 -0
- data/vendor/rake/test/test_require.rb +33 -0
- data/vendor/rake/test/test_rules.rb +347 -0
- data/vendor/rake/test/test_task_arguments.rb +89 -0
- data/vendor/rake/test/test_task_manager.rb +170 -0
- data/vendor/rake/test/test_tasklib.rb +12 -0
- data/vendor/rake/test/test_tasks.rb +371 -0
- data/vendor/rake/test/test_test_task.rb +75 -0
- data/vendor/rake/test/test_top_level_functions.rb +84 -0
- data/vendor/rake/test/test_win32.rb +57 -0
- metadata +195 -0
data/CHANGELOG
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
v3.1.1. Remove Rake from the requirements and vendor it (due to Ruby 1.9.1's odd handling of Rake)
|
2
|
+
|
3
|
+
v3.1. Fix some bugs; become Ruby 1.9 compatible.
|
4
|
+
|
5
|
+
v3.0.2. Support for alternative Rakefile naming.
|
6
|
+
|
7
|
+
v3.0.1. Compatibility with Rubygems 1.3.
|
8
|
+
|
9
|
+
v3. Compatibility with Rubyforge 1.0.0 and Rubygems 1.2.
|
10
|
+
|
11
|
+
v2.7.13. Avoid Rubyforge 1.0.0 which seems broken.
|
12
|
+
|
13
|
+
v2.7.12. Respect system EDITOR setting (osteele).
|
14
|
+
|
15
|
+
v2.7.11. Include Platform module for abstracting RUBY_PLATFORM regex checks (luislavena).
|
16
|
+
|
17
|
+
v2.7.10. Include RDoc options in generated gemspec (Rob McKinnon).
|
18
|
+
|
19
|
+
v2.7.9. Fix redefine task helper for new Rake.
|
20
|
+
|
21
|
+
v2.7.8. Better default test pattern.
|
22
|
+
|
23
|
+
v2.7.7. Don't use sudo on win32/cygwin (Kevin Williams).
|
24
|
+
|
25
|
+
v2.7.6. Better Echoe.silence behavior.
|
26
|
+
|
27
|
+
v2.7.5. Fix bug when MultiRails isn't installed; remove "test" from platform targets.
|
28
|
+
|
29
|
+
v2.7.4. Ensured teardown.rb just like setup.rb. Load multi_rails automatically if its available. ENV['VERBOSE'] obeyed for Echoe.silence.
|
30
|
+
|
31
|
+
v2.7.3. Put some handy things in lib/echoe/extensions.rb; use Rake::TestTask instead of screwing around in the shell. Automatically run test/setup.rb before the test task, if it exists.
|
32
|
+
|
33
|
+
v2.7.2. Don't try to verify the existence of the RDoc template. Fixes for the RCov task.
|
34
|
+
|
35
|
+
v2.7.1. Rcov changed to a weak dependency for JRuby.
|
36
|
+
|
37
|
+
v2.7.0. Add coverage task; change default test pattern; Rubygems 0.9.4.5 compatibility and requirement. Cross-packaging hacks for same. Add rubygems_version accessor. Manifest alerts about removed files now as well as added. Allow targeting of every platform on RubyGems 0.9.5.
|
38
|
+
|
39
|
+
v2.6.4. Fix related issue.
|
40
|
+
|
41
|
+
v2.6.3. Fix issue with shared object paths in :compile task.
|
42
|
+
|
43
|
+
v2.6.2. Fix executable pattern bug; use a better default clean pattern.
|
44
|
+
|
45
|
+
v2.6. Unify pattern handling; changelog accessor, version accessor, expand paths of keys and certificates; support verbose (Rails-style) changelogs.
|
46
|
+
|
47
|
+
v2.5. Add some extension building tasks; adjust clean behavior; rdoc inclusions definitely depend on Manifest now; ruby_version accessor; ignore_pattern for skipping files during the manifest build; bugfixes.
|
48
|
+
|
49
|
+
v2.4.1. Manifest doesn't require itself (willcodeforwork).
|
50
|
+
|
51
|
+
v2.4. Sign gems automatically if ENV['GEM_PRIVATE_KEY'] is present; add certificate_chain and private_key accessors.
|
52
|
+
|
53
|
+
v2.3. Work around metadependencies issue by including gemspecs instead of Rakefiles by default; include_gemspec and include_rakefile accessors.
|
54
|
+
|
55
|
+
v2.2. Need_gem option; announce task.
|
56
|
+
|
57
|
+
v2.1. Adjust default RDoc include pattern; extra_deps now dependencies; rubyforge_name now project; support install messages; manifest instead of build_manifest.
|
58
|
+
|
59
|
+
v2. Support documentation hosts other than rubyforge; auto-load CHANGELOG contents; remove bin/echoe which doesn't work anyway. Incompatible changes.
|
60
|
+
|
61
|
+
v1.4. Auto-detect readme file; make rdoc default pattern compatible with manifest generator; fix publish_docs task.
|
62
|
+
|
63
|
+
v1.3. Avoid rubyforge gem multi-activation conflict.
|
64
|
+
|
65
|
+
v1.2. build_manifest Rake task.
|
66
|
+
|
67
|
+
v1.1. Sane error messages on releasing new or duplicate gems; allow Manifest to not end in .txt.
|
68
|
+
|
69
|
+
v1.0. Fork from Hoe.
|
data/LICENSE
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
Academic Free License (AFL) v. 3.0
|
2
|
+
|
3
|
+
This Academic Free License (the "License") applies to any original work
|
4
|
+
of authorship (the "Original Work") whose owner (the "Licensor") has
|
5
|
+
placed the following licensing notice adjacent to the copyright notice
|
6
|
+
for the Original Work:
|
7
|
+
|
8
|
+
Licensed under the Academic Free License version 3.0
|
9
|
+
|
10
|
+
1) Grant of Copyright License. Licensor grants You a worldwide,
|
11
|
+
royalty-free, non-exclusive, sublicensable license, for the duration of
|
12
|
+
the copyright, to do the following:
|
13
|
+
|
14
|
+
a) to reproduce the Original Work in copies, either alone or as part of
|
15
|
+
a collective work;
|
16
|
+
|
17
|
+
b) to translate, adapt, alter, transform, modify, or arrange the
|
18
|
+
Original Work, thereby creating derivative works ("Derivative Works")
|
19
|
+
based upon the Original Work;
|
20
|
+
|
21
|
+
c) to distribute or communicate copies of the Original Work and
|
22
|
+
Derivative Works to the public, under any license of your choice that
|
23
|
+
does not contradict the terms and conditions, including Licensor's
|
24
|
+
reserved rights and remedies, in this Academic Free License;
|
25
|
+
|
26
|
+
d) to perform the Original Work publicly; and
|
27
|
+
|
28
|
+
e) to display the Original Work publicly.
|
29
|
+
|
30
|
+
2) Grant of Patent License. Licensor grants You a worldwide,
|
31
|
+
royalty-free, non-exclusive, sublicensable license, under patent claims
|
32
|
+
owned or controlled by the Licensor that are embodied in the Original
|
33
|
+
Work as furnished by the Licensor, for the duration of the patents, to
|
34
|
+
make, use, sell, offer for sale, have made, and import the Original Work
|
35
|
+
and Derivative Works.
|
36
|
+
|
37
|
+
3) Grant of Source Code License. The term "Source Code" means the
|
38
|
+
preferred form of the Original Work for making modifications to it and
|
39
|
+
all available documentation describing how to modify the Original Work.
|
40
|
+
Licensor agrees to provide a machine-readable copy of the Source Code of
|
41
|
+
the Original Work along with each copy of the Original Work that
|
42
|
+
Licensor distributes. Licensor reserves the right to satisfy this
|
43
|
+
obligation by placing a machine-readable copy of the Source Code in an
|
44
|
+
information repository reasonably calculated to permit inexpensive and
|
45
|
+
convenient access by You for as long as Licensor continues to distribute
|
46
|
+
the Original Work.
|
47
|
+
|
48
|
+
4) Exclusions From License Grant. Neither the names of Licensor, nor the
|
49
|
+
names of any contributors to the Original Work, nor any of their
|
50
|
+
trademarks or service marks, may be used to endorse or promote products
|
51
|
+
derived from this Original Work without express prior permission of the
|
52
|
+
Licensor. Except as expressly stated herein, nothing in this License
|
53
|
+
grants any license to Licensor's trademarks, copyrights, patents, trade
|
54
|
+
secrets or any other intellectual property. No patent license is granted
|
55
|
+
to make, use, sell, offer for sale, have made, or import embodiments of
|
56
|
+
any patent claims other than the licensed claims defined in Section 2.
|
57
|
+
No license is granted to the trademarks of Licensor even if such marks
|
58
|
+
are included in the Original Work. Nothing in this License shall be
|
59
|
+
interpreted to prohibit Licensor from licensing under terms different
|
60
|
+
from this License any Original Work that Licensor otherwise would have a
|
61
|
+
right to license.
|
62
|
+
|
63
|
+
5) External Deployment. The term "External Deployment" means the use,
|
64
|
+
distribution, or communication of the Original Work or Derivative Works
|
65
|
+
in any way such that the Original Work or Derivative Works may be used
|
66
|
+
by anyone other than You, whether those works are distributed or
|
67
|
+
communicated to those persons or made available as an application
|
68
|
+
intended for use over a network. As an express condition for the grants
|
69
|
+
of license hereunder, You must treat any External Deployment by You of
|
70
|
+
the Original Work or a Derivative Work as a distribution under section
|
71
|
+
1(c).
|
72
|
+
|
73
|
+
6) Attribution Rights. You must retain, in the Source Code of any
|
74
|
+
Derivative Works that You create, all copyright, patent, or trademark
|
75
|
+
notices from the Source Code of the Original Work, as well as any
|
76
|
+
notices of licensing and any descriptive text identified therein as an
|
77
|
+
"Attribution Notice." You must cause the Source Code for any Derivative
|
78
|
+
Works that You create to carry a prominent Attribution Notice reasonably
|
79
|
+
calculated to inform recipients that You have modified the Original
|
80
|
+
Work.
|
81
|
+
|
82
|
+
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
|
83
|
+
that the copyright in and to the Original Work and the patent rights
|
84
|
+
granted herein by Licensor are owned by the Licensor or are sublicensed
|
85
|
+
to You under the terms of this License with the permission of the
|
86
|
+
contributor(s) of those copyrights and patent rights. Except as
|
87
|
+
expressly stated in the immediately preceding sentence, the Original
|
88
|
+
Work is provided under this License on an "AS IS" BASIS and WITHOUT
|
89
|
+
WARRANTY, either express or implied, including, without limitation, the
|
90
|
+
warranties of non-infringement, merchantability or fitness for a
|
91
|
+
particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
|
92
|
+
WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
|
93
|
+
part of this License. No license to the Original Work is granted by this
|
94
|
+
License except under this disclaimer.
|
95
|
+
|
96
|
+
8) Limitation of Liability. Under no circumstances and under no legal
|
97
|
+
theory, whether in tort (including negligence), contract, or otherwise,
|
98
|
+
shall the Licensor be liable to anyone for any indirect, special,
|
99
|
+
incidental, or consequential damages of any character arising as a
|
100
|
+
result of this License or the use of the Original Work including,
|
101
|
+
without limitation, damages for loss of goodwill, work stoppage,
|
102
|
+
computer failure or malfunction, or any and all other commercial damages
|
103
|
+
or losses. This limitation of liability shall not apply to the extent
|
104
|
+
applicable law prohibits such limitation.
|
105
|
+
|
106
|
+
9) Acceptance and Termination. If, at any time, You expressly assented
|
107
|
+
to this License, that assent indicates your clear and irrevocable
|
108
|
+
acceptance of this License and all of its terms and conditions. If You
|
109
|
+
distribute or communicate copies of the Original Work or a Derivative
|
110
|
+
Work, You must make a reasonable effort under the circumstances to
|
111
|
+
obtain the express assent of recipients to the terms of this License.
|
112
|
+
This License conditions your rights to undertake the activities listed
|
113
|
+
in Section 1, including your right to create Derivative Works based upon
|
114
|
+
the Original Work, and doing so without honoring these terms and
|
115
|
+
conditions is prohibited by copyright law and international treaty.
|
116
|
+
Nothing in this License is intended to affect copyright exceptions and
|
117
|
+
limitations (including "fair use" or "fair dealing"). This License shall
|
118
|
+
terminate immediately and You may no longer exercise any of the rights
|
119
|
+
granted to You by this License upon your failure to honor the conditions
|
120
|
+
in Section 1(c).
|
121
|
+
|
122
|
+
10) Termination for Patent Action. This License shall terminate
|
123
|
+
automatically and You may no longer exercise any of the rights granted
|
124
|
+
to You by this License as of the date You commence an action, including
|
125
|
+
a cross-claim or counterclaim, against Licensor or any licensee alleging
|
126
|
+
that the Original Work infringes a patent. This termination provision
|
127
|
+
shall not apply for an action alleging patent infringement by
|
128
|
+
combinations of the Original Work with other software or hardware.
|
129
|
+
|
130
|
+
11) Jurisdiction, Venue and Governing Law. Any action or suit relating
|
131
|
+
to this License may be brought only in the courts of a jurisdiction
|
132
|
+
wherein the Licensor resides or in which Licensor conducts its primary
|
133
|
+
business, and under the laws of that jurisdiction excluding its
|
134
|
+
conflict-of-law provisions. The application of the United Nations
|
135
|
+
Convention on Contracts for the International Sale of Goods is expressly
|
136
|
+
excluded. Any use of the Original Work outside the scope of this License
|
137
|
+
or after its termination shall be subject to the requirements and
|
138
|
+
penalties of copyright or patent law in the appropriate jurisdiction.
|
139
|
+
This section shall survive the termination of this License.
|
140
|
+
|
141
|
+
12) Attorneys' Fees. In any action to enforce the terms of this License
|
142
|
+
or seeking damages relating thereto, the prevailing party shall be
|
143
|
+
entitled to recover its costs and expenses, including, without
|
144
|
+
limitation, reasonable attorneys' fees and costs incurred in connection
|
145
|
+
with such action, including any appeal of such action. This section
|
146
|
+
shall survive the termination of this License.
|
147
|
+
|
148
|
+
13) Miscellaneous. If any provision of this License is held to be
|
149
|
+
unenforceable, such provision shall be reformed only to the extent
|
150
|
+
necessary to make it enforceable.
|
151
|
+
|
152
|
+
14) Definition of "You" in This License. "You" throughout this License,
|
153
|
+
whether in upper or lower case, means an individual or a legal entity
|
154
|
+
exercising rights under, and complying with all of the terms of, this
|
155
|
+
License. For legal entities, "You" includes any entity that controls, is
|
156
|
+
controlled by, or is under common control with you. For purposes of this
|
157
|
+
definition, "control" means (i) the power, direct or indirect, to cause
|
158
|
+
the direction or management of such entity, whether by contract or
|
159
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
160
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
161
|
+
|
162
|
+
15) Right to Use. You may use the Original Work in all ways not
|
163
|
+
otherwise restricted or conditioned by this License or by law, and
|
164
|
+
Licensor promises not to interfere with or be responsible for such uses
|
165
|
+
by You.
|
166
|
+
|
167
|
+
16) Modification of This License. This License is Copyright (c) 2005
|
168
|
+
Lawrence Rosen. Permission is granted to copy, distribute, or
|
169
|
+
communicate this License without modification. Nothing in this License
|
170
|
+
permits You to modify this License as applied to the Original Work or to
|
171
|
+
Derivative Works. However, You may modify the text of this License and
|
172
|
+
copy, distribute or communicate your modified version (the "Modified
|
173
|
+
License") and apply it to other original works of authorship subject to
|
174
|
+
the following conditions: (i) You may not indicate in any way that your
|
175
|
+
Modified License is the "Academic Free License" or "AFL" and you may not
|
176
|
+
use those names in the name of your Modified License; (ii) You must
|
177
|
+
replace the notice specified in the first paragraph above with the
|
178
|
+
notice "Licensed under <insert your license name here>" or with a notice
|
179
|
+
of your own that is not confusingly similar to the notice in this
|
180
|
+
License; and (iii) You may not claim that your original works are open
|
181
|
+
source software unless your Modified License has been approved by Open
|
182
|
+
Source Initiative (OSI) and You comply with its license review and
|
183
|
+
certification process.
|
184
|
+
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
Copyright (c) 2006 Ryan Davis, Zen Spider Software
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
a copy of this software and associated documentation files (the
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
18
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
19
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
20
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
21
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
CHANGELOG
|
2
|
+
echoe.gemspec
|
3
|
+
lib/echoe/client.rb
|
4
|
+
lib/echoe/extensions.rb
|
5
|
+
lib/echoe/platform.rb
|
6
|
+
lib/echoe/rubygems.rb
|
7
|
+
lib/echoe.rb
|
8
|
+
LICENSE
|
9
|
+
Manifest
|
10
|
+
MIT-LICENSE
|
11
|
+
Rakefile
|
12
|
+
README
|
13
|
+
TODO
|
14
|
+
vendor/rake/bin/rake
|
15
|
+
vendor/rake/CHANGES
|
16
|
+
vendor/rake/doc/example/a.c
|
17
|
+
vendor/rake/doc/example/b.c
|
18
|
+
vendor/rake/doc/example/main.c
|
19
|
+
vendor/rake/doc/example/Rakefile1
|
20
|
+
vendor/rake/doc/example/Rakefile2
|
21
|
+
vendor/rake/doc/glossary.rdoc
|
22
|
+
vendor/rake/doc/jamis.rb
|
23
|
+
vendor/rake/doc/proto_rake.rdoc
|
24
|
+
vendor/rake/doc/rake.1.gz
|
25
|
+
vendor/rake/doc/rakefile.rdoc
|
26
|
+
vendor/rake/doc/rational.rdoc
|
27
|
+
vendor/rake/doc/release_notes/rake-0.4.14.rdoc
|
28
|
+
vendor/rake/doc/release_notes/rake-0.4.15.rdoc
|
29
|
+
vendor/rake/doc/release_notes/rake-0.5.0.rdoc
|
30
|
+
vendor/rake/doc/release_notes/rake-0.5.3.rdoc
|
31
|
+
vendor/rake/doc/release_notes/rake-0.5.4.rdoc
|
32
|
+
vendor/rake/doc/release_notes/rake-0.6.0.rdoc
|
33
|
+
vendor/rake/doc/release_notes/rake-0.7.0.rdoc
|
34
|
+
vendor/rake/doc/release_notes/rake-0.7.1.rdoc
|
35
|
+
vendor/rake/doc/release_notes/rake-0.7.2.rdoc
|
36
|
+
vendor/rake/doc/release_notes/rake-0.7.3.rdoc
|
37
|
+
vendor/rake/doc/release_notes/rake-0.8.0.rdoc
|
38
|
+
vendor/rake/doc/release_notes/rake-0.8.2.rdoc
|
39
|
+
vendor/rake/doc/release_notes/rake-0.8.3.rdoc
|
40
|
+
vendor/rake/install.rb
|
41
|
+
vendor/rake/lib/rake/classic_namespace.rb
|
42
|
+
vendor/rake/lib/rake/clean.rb
|
43
|
+
vendor/rake/lib/rake/contrib/compositepublisher.rb
|
44
|
+
vendor/rake/lib/rake/contrib/ftptools.rb
|
45
|
+
vendor/rake/lib/rake/contrib/publisher.rb
|
46
|
+
vendor/rake/lib/rake/contrib/rubyforgepublisher.rb
|
47
|
+
vendor/rake/lib/rake/contrib/sshpublisher.rb
|
48
|
+
vendor/rake/lib/rake/contrib/sys.rb
|
49
|
+
vendor/rake/lib/rake/gempackagetask.rb
|
50
|
+
vendor/rake/lib/rake/loaders/makefile.rb
|
51
|
+
vendor/rake/lib/rake/packagetask.rb
|
52
|
+
vendor/rake/lib/rake/rake_test_loader.rb
|
53
|
+
vendor/rake/lib/rake/rdoctask.rb
|
54
|
+
vendor/rake/lib/rake/ruby182_test_unit_fix.rb
|
55
|
+
vendor/rake/lib/rake/runtest.rb
|
56
|
+
vendor/rake/lib/rake/tasklib.rb
|
57
|
+
vendor/rake/lib/rake/testtask.rb
|
58
|
+
vendor/rake/lib/rake/win32.rb
|
59
|
+
vendor/rake/lib/rake.rb
|
60
|
+
vendor/rake/MIT-LICENSE
|
61
|
+
vendor/rake/Rakefile
|
62
|
+
vendor/rake/README
|
63
|
+
vendor/rake/test/capture_stdout.rb
|
64
|
+
vendor/rake/test/check_expansion.rb
|
65
|
+
vendor/rake/test/contrib/test_sys.rb
|
66
|
+
vendor/rake/test/data/chains/Rakefile
|
67
|
+
vendor/rake/test/data/default/Rakefile
|
68
|
+
vendor/rake/test/data/dryrun/Rakefile
|
69
|
+
vendor/rake/test/data/file_creation_task/Rakefile
|
70
|
+
vendor/rake/test/data/imports/deps.mf
|
71
|
+
vendor/rake/test/data/imports/Rakefile
|
72
|
+
vendor/rake/test/data/multidesc/Rakefile
|
73
|
+
vendor/rake/test/data/namespace/Rakefile
|
74
|
+
vendor/rake/test/data/rakelib/test1.rb
|
75
|
+
vendor/rake/test/data/rbext/rakefile.rb
|
76
|
+
vendor/rake/test/data/sample.mf
|
77
|
+
vendor/rake/test/data/statusreturn/Rakefile
|
78
|
+
vendor/rake/test/data/unittest/Rakefile
|
79
|
+
vendor/rake/test/filecreation.rb
|
80
|
+
vendor/rake/test/functional.rb
|
81
|
+
vendor/rake/test/in_environment.rb
|
82
|
+
vendor/rake/test/rake_test_setup.rb
|
83
|
+
vendor/rake/test/reqfile.rb
|
84
|
+
vendor/rake/test/reqfile2.rb
|
85
|
+
vendor/rake/test/session_functional.rb
|
86
|
+
vendor/rake/test/shellcommand.rb
|
87
|
+
vendor/rake/test/test_application.rb
|
88
|
+
vendor/rake/test/test_clean.rb
|
89
|
+
vendor/rake/test/test_definitions.rb
|
90
|
+
vendor/rake/test/test_earlytime.rb
|
91
|
+
vendor/rake/test/test_extension.rb
|
92
|
+
vendor/rake/test/test_file_creation_task.rb
|
93
|
+
vendor/rake/test/test_file_task.rb
|
94
|
+
vendor/rake/test/test_filelist.rb
|
95
|
+
vendor/rake/test/test_fileutils.rb
|
96
|
+
vendor/rake/test/test_ftp.rb
|
97
|
+
vendor/rake/test/test_invocation_chain.rb
|
98
|
+
vendor/rake/test/test_makefile_loader.rb
|
99
|
+
vendor/rake/test/test_multitask.rb
|
100
|
+
vendor/rake/test/test_namespace.rb
|
101
|
+
vendor/rake/test/test_package_task.rb
|
102
|
+
vendor/rake/test/test_pathmap.rb
|
103
|
+
vendor/rake/test/test_rake.rb
|
104
|
+
vendor/rake/test/test_require.rb
|
105
|
+
vendor/rake/test/test_rules.rb
|
106
|
+
vendor/rake/test/test_task_arguments.rb
|
107
|
+
vendor/rake/test/test_task_manager.rb
|
108
|
+
vendor/rake/test/test_tasklib.rb
|
109
|
+
vendor/rake/test/test_tasks.rb
|
110
|
+
vendor/rake/test/test_test_task.rb
|
111
|
+
vendor/rake/test/test_top_level_functions.rb
|
112
|
+
vendor/rake/test/test_win32.rb
|
113
|
+
vendor/rake/TODO
|
data/README
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
|
2
|
+
Echoe
|
3
|
+
|
4
|
+
A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.
|
5
|
+
|
6
|
+
== License
|
7
|
+
|
8
|
+
Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file. Portions copyright 2006 Ryan Davis/Zen Spider Software and used with permission. See the included MIT-LICENSE file.
|
9
|
+
|
10
|
+
The public certificate for the gem is here[http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem].
|
11
|
+
|
12
|
+
If you use this software, please {make a donation}[http://blog.evanweaver.com/donate/], or {recommend Evan}[http://www.workingwithrails.com/person/7739-evan-weaver] at Working with Rails.
|
13
|
+
|
14
|
+
== Features
|
15
|
+
|
16
|
+
* simple configuration
|
17
|
+
* comprehensive gem deployment
|
18
|
+
* cross-packaging
|
19
|
+
* signed gem support
|
20
|
+
* automatic changeset parsing
|
21
|
+
* documentation upload to any host
|
22
|
+
|
23
|
+
= Usage
|
24
|
+
|
25
|
+
== Installation
|
26
|
+
|
27
|
+
Install the gem:
|
28
|
+
sudo gem install echoe
|
29
|
+
|
30
|
+
If you haven't already, make sure Rubyforge is configured locally and your password is correctly set:
|
31
|
+
rubyforge setup
|
32
|
+
rubyforge config
|
33
|
+
|
34
|
+
== Project configuration
|
35
|
+
|
36
|
+
Organize your gem according to the usual structure:
|
37
|
+
|
38
|
+
lib/
|
39
|
+
README
|
40
|
+
LICENSE
|
41
|
+
CHANGELOG
|
42
|
+
Rakefile
|
43
|
+
|
44
|
+
You can add the <tt>bin/</tt> or <tt>ext/</tt> folders if you have executables or extensions, respectively.
|
45
|
+
|
46
|
+
Your <tt>CHANGELOG</tt> should be formatted as follows (including newlines):
|
47
|
+
|
48
|
+
v2.1. newest change
|
49
|
+
|
50
|
+
v2. older change
|
51
|
+
|
52
|
+
v1.9. oldest change
|
53
|
+
|
54
|
+
This way Echoe can parse the latest version and changeset message automatically.
|
55
|
+
|
56
|
+
Your <tt>Rakefile</tt> needs the following minimal contents:
|
57
|
+
|
58
|
+
require 'echoe'
|
59
|
+
Echoe.new('gem_name')
|
60
|
+
|
61
|
+
More advanced configuration is described in the Echoe class.
|
62
|
+
|
63
|
+
== Deploying your gem
|
64
|
+
|
65
|
+
To deploy the gem and documentation:
|
66
|
+
|
67
|
+
rake manifest
|
68
|
+
rake release
|
69
|
+
rake publish_docs
|
70
|
+
|
71
|
+
Once you've built your manifest, you only need to rebuild it if you add or remove files from the package structure.
|
72
|
+
|
73
|
+
= Extras
|
74
|
+
|
75
|
+
== All Rake tasks
|
76
|
+
|
77
|
+
The following tasks are made available to your gem.
|
78
|
+
|
79
|
+
Packaging:
|
80
|
+
|
81
|
+
* <tt>manifest</tt> - Build a manifest list. Shows added and removed files.
|
82
|
+
* <tt>docs</tt> - Build the documentation.
|
83
|
+
* <tt>package</tt> - Build all the packages.
|
84
|
+
|
85
|
+
Testing:
|
86
|
+
|
87
|
+
* <tt>test</tt> - Run the test suite.
|
88
|
+
* <tt>coverage</tt> - Generate a coverage report.
|
89
|
+
* <tt>compile</tt> - Compile C extensions, if available.
|
90
|
+
* <tt>clean</tt> - Clean up generated documentation, packaging, and build files.
|
91
|
+
* <tt>install</tt> - Install the gem locally.
|
92
|
+
* <tt>uninstall</tt> - Uninstall the gem.
|
93
|
+
|
94
|
+
Upload:
|
95
|
+
|
96
|
+
* <tt>publish_docs</tt> - Publish documentation to the web.
|
97
|
+
* <tt>release</tt> - Package and upload the latest release to Rubyforge.
|
98
|
+
* <tt>announce</tt> - Generate a release announcement, edit it, and post it to Rubyforge.
|
99
|
+
|
100
|
+
Cleaning:
|
101
|
+
|
102
|
+
* <tt>clean</tt> - Delete all the generated documentation and packages.
|
103
|
+
* <tt>redocs</tt> - Force a rebuild of the Rdoc files.
|
104
|
+
* <tt>repackage</tt> - Force a rebuild of the package files.
|
105
|
+
|
106
|
+
== Reporting problems
|
107
|
+
|
108
|
+
The support forum is here[http://rubyforge.org/forum/forum.php?forum_id=13986].
|
109
|
+
|
110
|
+
Patches and contributions are very welcome. Please note that contributors are required to assign copyright for their additions to Cloudburst, LLC.
|
111
|
+
|
112
|
+
== Further resources
|
113
|
+
|
114
|
+
* http://blog.evanweaver.com/articles/2007/01/10/if-you-dont-want-to-hoe-echoe
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
($:.unshift File.expand_path(File.join( File.dirname(__FILE__), 'lib' ))).uniq!
|
2
|
+
require 'echoe'
|
3
|
+
|
4
|
+
Echoe.new('echoe') do |p|
|
5
|
+
p.project = 'fauna'
|
6
|
+
p.author = 'Evan Weaver'
|
7
|
+
p.summary = 'A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.'
|
8
|
+
p.url = 'http://blog.evanweaver.com/files/doc/fauna/echoe/'
|
9
|
+
p.docs_host = 'blog.evanweaver.com:~/www/bax/public/files/doc/'
|
10
|
+
p.runtime_dependencies = ['rubyforge >=1.0.0', 'highline']
|
11
|
+
p.development_dependencies = []
|
12
|
+
p.retain_gemspec = true
|
13
|
+
p.require_signed = true
|
14
|
+
end
|
15
|
+
|
data/TODO
ADDED
data/echoe.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{echoe}
|
5
|
+
s.version = "3.1.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Evan Weaver"]
|
9
|
+
s.date = %q{2009-02-11}
|
10
|
+
s.description = %q{A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.}
|
11
|
+
s.email = %q{}
|
12
|
+
s.extra_rdoc_files = ["CHANGELOG", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "README", "TODO"]
|
13
|
+
s.files = ["CHANGELOG", "echoe.gemspec", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "Manifest", "MIT-LICENSE", "Rakefile", "README", "TODO", "vendor/rake/bin/rake", "vendor/rake/CHANGES", "vendor/rake/doc/example/a.c", "vendor/rake/doc/example/b.c", "vendor/rake/doc/example/main.c", "vendor/rake/doc/example/Rakefile1", "vendor/rake/doc/example/Rakefile2", "vendor/rake/doc/glossary.rdoc", "vendor/rake/doc/jamis.rb", "vendor/rake/doc/proto_rake.rdoc", "vendor/rake/doc/rake.1.gz", "vendor/rake/doc/rakefile.rdoc", "vendor/rake/doc/rational.rdoc", "vendor/rake/doc/release_notes/rake-0.4.14.rdoc", "vendor/rake/doc/release_notes/rake-0.4.15.rdoc", "vendor/rake/doc/release_notes/rake-0.5.0.rdoc", "vendor/rake/doc/release_notes/rake-0.5.3.rdoc", "vendor/rake/doc/release_notes/rake-0.5.4.rdoc", "vendor/rake/doc/release_notes/rake-0.6.0.rdoc", "vendor/rake/doc/release_notes/rake-0.7.0.rdoc", "vendor/rake/doc/release_notes/rake-0.7.1.rdoc", "vendor/rake/doc/release_notes/rake-0.7.2.rdoc", "vendor/rake/doc/release_notes/rake-0.7.3.rdoc", "vendor/rake/doc/release_notes/rake-0.8.0.rdoc", "vendor/rake/doc/release_notes/rake-0.8.2.rdoc", "vendor/rake/doc/release_notes/rake-0.8.3.rdoc", "vendor/rake/install.rb", "vendor/rake/lib/rake/classic_namespace.rb", "vendor/rake/lib/rake/clean.rb", "vendor/rake/lib/rake/contrib/compositepublisher.rb", "vendor/rake/lib/rake/contrib/ftptools.rb", "vendor/rake/lib/rake/contrib/publisher.rb", "vendor/rake/lib/rake/contrib/rubyforgepublisher.rb", "vendor/rake/lib/rake/contrib/sshpublisher.rb", "vendor/rake/lib/rake/contrib/sys.rb", "vendor/rake/lib/rake/gempackagetask.rb", "vendor/rake/lib/rake/loaders/makefile.rb", "vendor/rake/lib/rake/packagetask.rb", "vendor/rake/lib/rake/rake_test_loader.rb", "vendor/rake/lib/rake/rdoctask.rb", "vendor/rake/lib/rake/ruby182_test_unit_fix.rb", "vendor/rake/lib/rake/runtest.rb", "vendor/rake/lib/rake/tasklib.rb", "vendor/rake/lib/rake/testtask.rb", "vendor/rake/lib/rake/win32.rb", "vendor/rake/lib/rake.rb", "vendor/rake/MIT-LICENSE", "vendor/rake/Rakefile", "vendor/rake/README", "vendor/rake/test/capture_stdout.rb", "vendor/rake/test/check_expansion.rb", "vendor/rake/test/contrib/test_sys.rb", "vendor/rake/test/data/chains/Rakefile", "vendor/rake/test/data/default/Rakefile", "vendor/rake/test/data/dryrun/Rakefile", "vendor/rake/test/data/file_creation_task/Rakefile", "vendor/rake/test/data/imports/deps.mf", "vendor/rake/test/data/imports/Rakefile", "vendor/rake/test/data/multidesc/Rakefile", "vendor/rake/test/data/namespace/Rakefile", "vendor/rake/test/data/rakelib/test1.rb", "vendor/rake/test/data/rbext/rakefile.rb", "vendor/rake/test/data/sample.mf", "vendor/rake/test/data/statusreturn/Rakefile", "vendor/rake/test/data/unittest/Rakefile", "vendor/rake/test/filecreation.rb", "vendor/rake/test/functional.rb", "vendor/rake/test/in_environment.rb", "vendor/rake/test/rake_test_setup.rb", "vendor/rake/test/reqfile.rb", "vendor/rake/test/reqfile2.rb", "vendor/rake/test/session_functional.rb", "vendor/rake/test/shellcommand.rb", "vendor/rake/test/test_application.rb", "vendor/rake/test/test_clean.rb", "vendor/rake/test/test_definitions.rb", "vendor/rake/test/test_earlytime.rb", "vendor/rake/test/test_extension.rb", "vendor/rake/test/test_file_creation_task.rb", "vendor/rake/test/test_file_task.rb", "vendor/rake/test/test_filelist.rb", "vendor/rake/test/test_fileutils.rb", "vendor/rake/test/test_ftp.rb", "vendor/rake/test/test_invocation_chain.rb", "vendor/rake/test/test_makefile_loader.rb", "vendor/rake/test/test_multitask.rb", "vendor/rake/test/test_namespace.rb", "vendor/rake/test/test_package_task.rb", "vendor/rake/test/test_pathmap.rb", "vendor/rake/test/test_rake.rb", "vendor/rake/test/test_require.rb", "vendor/rake/test/test_rules.rb", "vendor/rake/test/test_task_arguments.rb", "vendor/rake/test/test_task_manager.rb", "vendor/rake/test/test_tasklib.rb", "vendor/rake/test/test_tasks.rb", "vendor/rake/test/test_test_task.rb", "vendor/rake/test/test_top_level_functions.rb", "vendor/rake/test/test_win32.rb", "vendor/rake/TODO"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/echoe/}
|
16
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Echoe", "--main", "README"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{fauna}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 2
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_runtime_dependency(%q<rubyforge>, [">= 1.0.0"])
|
28
|
+
s.add_runtime_dependency(%q<highline>, [">= 0"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<rubyforge>, [">= 1.0.0"])
|
31
|
+
s.add_dependency(%q<highline>, [">= 0"])
|
32
|
+
end
|
33
|
+
else
|
34
|
+
s.add_dependency(%q<rubyforge>, [">= 1.0.0"])
|
35
|
+
s.add_dependency(%q<highline>, [">= 0"])
|
36
|
+
end
|
37
|
+
end
|
data/lib/echoe/client.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Fixes for Rubyforge 1.0.0 client.rb
|
2
|
+
|
3
|
+
class RubyForge::Client
|
4
|
+
def boundary_data_for(boundary, parameters)
|
5
|
+
parameters.sort_by {|k,v| k.to_s }.map { |k,v|
|
6
|
+
parameter = "--#{boundary}\r\nContent-Disposition: form-data; name=\"" +
|
7
|
+
WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
|
8
|
+
|
9
|
+
if v.respond_to?(:path)
|
10
|
+
parameter += "; filename=\"#{File.basename(v.path)}\"\r\n"
|
11
|
+
parameter += "Content-Transfer-Encoding: binary\r\n"
|
12
|
+
parameter += "Content-Type: text/plain"
|
13
|
+
end
|
14
|
+
parameter += "\r\n\r\n"
|
15
|
+
|
16
|
+
if v.respond_to?(:path)
|
17
|
+
parameter += v.read
|
18
|
+
elsif
|
19
|
+
parameter += v.to_s
|
20
|
+
end
|
21
|
+
|
22
|
+
parameter
|
23
|
+
}.join("\r\n") + "\r\n--#{boundary}--\r\n"
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
class String #:nodoc:
|
3
|
+
def uncapitalize #:nodoc:
|
4
|
+
"#{self[0..0].downcase}#{self[1..-1]}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
class ::Rake::SshDirPublisher # :nodoc:
|
9
|
+
attr_reader :host, :remote_dir, :local_dir
|
10
|
+
end
|
11
|
+
|
12
|
+
class Echoe
|
13
|
+
|
14
|
+
def self.silence
|
15
|
+
if !ENV['VERBOSE']
|
16
|
+
stdout, stderr = $stdout.clone, $stderr.clone
|
17
|
+
$stdout.reopen(File.new('/tmp/stdout.echoe', 'w'))
|
18
|
+
$stderr.reopen(File.new('/tmp/stderr.echoe', 'w'))
|
19
|
+
begin
|
20
|
+
yield
|
21
|
+
ensure
|
22
|
+
$stdout.reopen(stdout)
|
23
|
+
$stderr.reopen(stderr)
|
24
|
+
end
|
25
|
+
else
|
26
|
+
yield
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
# Redefine instead of chain a Rake task
|
33
|
+
# http://www.bigbold.com/snippets/posts/show/2032
|
34
|
+
|
35
|
+
module Rake
|
36
|
+
module TaskManager
|
37
|
+
def redefine_task(task_class, *args, &block)
|
38
|
+
task_name, deps = resolve_args(args)
|
39
|
+
task_name = task_class.scope_name(@scope, task_name)
|
40
|
+
deps = [deps] unless deps.respond_to?(:to_ary)
|
41
|
+
deps = deps.collect {|d| d.to_s }
|
42
|
+
task = @tasks[task_name.to_s] = task_class.new(task_name, self)
|
43
|
+
task.application = self
|
44
|
+
task.send(:add_comment, @last_comment)
|
45
|
+
@last_comment = nil
|
46
|
+
task.enhance(deps, &block)
|
47
|
+
task
|
48
|
+
end
|
49
|
+
end
|
50
|
+
class Task
|
51
|
+
class << self
|
52
|
+
def redefine_task(*args, &block)
|
53
|
+
Rake.application.redefine_task(self, *args, &block)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|