vergissberlin 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vergissberlin/version.rb +1 -1
- data/test/cases/version_case.rb +26 -0
- data/test/rest_spec.rb +12 -0
- data/test/suites/suite_test.rb +12 -0
- data/test/utils.rb +13 -0
- metadata +83 -134
- data/.gitignore +0 -17
- data/.travis.yml +0 -7
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/Rakefile +0 -10
- data/test/test_test.rb +0 -5
- data/test/version_test.rb +0 -12
- data/vendor/bundle/bin/rake +0 -23
- data/vendor/bundle/bin/vergissberlin +0 -23
- data/vendor/bundle/build_info/capistrano_colors-0.5.5.info +0 -1
- data/vendor/bundle/build_info/rake-10.0.4.info +0 -1
- data/vendor/bundle/gems/capistrano_colors-0.5.5/Manifest +0 -7
- data/vendor/bundle/gems/capistrano_colors-0.5.5/README.rdoc +0 -130
- data/vendor/bundle/gems/capistrano_colors-0.5.5/Rakefile +0 -1
- data/vendor/bundle/gems/capistrano_colors-0.5.5/capistrano_colors.gemspec +0 -33
- data/vendor/bundle/gems/capistrano_colors-0.5.5/lib/capistrano_colors/configuration.rb +0 -70
- data/vendor/bundle/gems/capistrano_colors-0.5.5/lib/capistrano_colors/logger.rb +0 -72
- data/vendor/bundle/gems/capistrano_colors-0.5.5/lib/capistrano_colors.rb +0 -18
- data/vendor/bundle/gems/rake-10.0.4/CHANGES +0 -530
- data/vendor/bundle/gems/rake-10.0.4/MIT-LICENSE +0 -21
- data/vendor/bundle/gems/rake-10.0.4/README.rdoc +0 -187
- data/vendor/bundle/gems/rake-10.0.4/Rakefile +0 -375
- data/vendor/bundle/gems/rake-10.0.4/TODO +0 -21
- data/vendor/bundle/gems/rake-10.0.4/bin/rake +0 -33
- data/vendor/bundle/gems/rake-10.0.4/install.rb +0 -90
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/alt_system.rb +0 -109
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/application.rb +0 -681
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/backtrace.rb +0 -19
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/clean.rb +0 -32
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/cloneable.rb +0 -16
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/compositepublisher.rb +0 -21
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/ftptools.rb +0 -151
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/publisher.rb +0 -73
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/rubyforgepublisher.rb +0 -16
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/sshpublisher.rb +0 -50
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/contrib/sys.rb +0 -1
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/default_loader.rb +0 -10
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/dsl_definition.rb +0 -156
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/early_time.rb +0 -18
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/ext/core.rb +0 -27
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/ext/module.rb +0 -0
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/ext/string.rb +0 -168
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/ext/time.rb +0 -15
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/file_creation_task.rb +0 -24
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/file_list.rb +0 -410
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/file_task.rb +0 -47
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/file_utils.rb +0 -114
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/file_utils_ext.rb +0 -143
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/gempackagetask.rb +0 -1
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/invocation_chain.rb +0 -51
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/invocation_exception_mixin.rb +0 -16
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/loaders/makefile.rb +0 -40
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/multi_task.rb +0 -13
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/name_space.rb +0 -25
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/packagetask.rb +0 -185
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/pathmap.rb +0 -1
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/phony.rb +0 -15
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/private_reader.rb +0 -20
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/promise.rb +0 -99
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/pseudo_status.rb +0 -24
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/rake_module.rb +0 -37
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/rake_test_loader.rb +0 -22
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/rdoctask.rb +0 -1
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/ruby182_test_unit_fix.rb +0 -25
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/runtest.rb +0 -22
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/task.rb +0 -368
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/task_argument_error.rb +0 -7
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/task_arguments.rb +0 -78
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/task_manager.rb +0 -296
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/tasklib.rb +0 -22
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/testtask.rb +0 -198
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/thread_history_display.rb +0 -48
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/thread_pool.rb +0 -155
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/trace_output.rb +0 -22
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/version.rb +0 -13
- data/vendor/bundle/gems/rake-10.0.4/lib/rake/win32.rb +0 -55
- data/vendor/bundle/gems/rake-10.0.4/lib/rake.rb +0 -71
- data/vendor/bundle/gems/rake-10.0.4/test/file_creation.rb +0 -34
- data/vendor/bundle/gems/rake-10.0.4/test/helper.rb +0 -562
- data/vendor/bundle/gems/rake-10.0.4/test/test_private_reader.rb +0 -42
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake.rb +0 -40
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_application.rb +0 -515
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_application_options.rb +0 -455
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_backtrace.rb +0 -89
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_clean.rb +0 -14
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_definitions.rb +0 -80
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_directory_task.rb +0 -57
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_dsl.rb +0 -40
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_early_time.rb +0 -31
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_extension.rb +0 -59
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_file_creation_task.rb +0 -56
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_file_list.rb +0 -628
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_file_list_path_map.rb +0 -8
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_file_task.rb +0 -122
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_file_utils.rb +0 -305
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_ftp_file.rb +0 -59
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_functional.rb +0 -496
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_invocation_chain.rb +0 -52
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_makefile_loader.rb +0 -44
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_multi_task.rb +0 -59
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_name_space.rb +0 -43
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_package_task.rb +0 -79
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_path_map.rb +0 -157
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_path_map_explode.rb +0 -34
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_path_map_partial.rb +0 -18
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_pseudo_status.rb +0 -21
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_rake_test_loader.rb +0 -21
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_reduce_compat.rb +0 -30
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_require.rb +0 -40
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_rules.rb +0 -327
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task.rb +0 -340
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_argument_parsing.rb +0 -103
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_arguments.rb +0 -88
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_lib.rb +0 -9
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_manager.rb +0 -157
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_manager_argument_resolution.rb +0 -19
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_task_with_arguments.rb +0 -171
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_test_task.rb +0 -120
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_thread_pool.rb +0 -122
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_top_level_functions.rb +0 -71
- data/vendor/bundle/gems/rake-10.0.4/test/test_rake_win32.rb +0 -72
- data/vendor/bundle/gems/rake-10.0.4/test/test_thread_history_display.rb +0 -91
- data/vendor/bundle/gems/rake-10.0.4/test/test_trace_output.rb +0 -50
- data/vendor/bundle/specifications/capistrano_colors-0.5.5.gemspec +0 -32
- data/vendor/bundle/specifications/rake-10.0.4.gemspec +0 -35
- data/vergissberlin.gemspec +0 -26
@@ -1,21 +0,0 @@
|
|
1
|
-
Copyright (c) 2003, 2004 Jim Weirich
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
-
|
@@ -1,187 +0,0 @@
|
|
1
|
-
= RAKE -- Ruby Make
|
2
|
-
|
3
|
-
This package contains Rake, a simple ruby build program with capabilities
|
4
|
-
similar to make.
|
5
|
-
|
6
|
-
Rake has the following features:
|
7
|
-
|
8
|
-
* Rakefiles (rake's version of Makefiles) are completely defined in
|
9
|
-
standard Ruby syntax. No XML files to edit. No quirky Makefile
|
10
|
-
syntax to worry about (is that a tab or a space?)
|
11
|
-
|
12
|
-
* Users can specify tasks with prerequisites.
|
13
|
-
|
14
|
-
* Rake supports rule patterns to synthesize implicit tasks.
|
15
|
-
|
16
|
-
* Flexible FileLists that act like arrays but know about manipulating
|
17
|
-
file names and paths.
|
18
|
-
|
19
|
-
* A library of prepackaged tasks to make building rakefiles easier. For example,
|
20
|
-
tasks for building tarballs and publishing to FTP or SSH sites. (Formerly
|
21
|
-
tasks for building RDoc and Gems were included in rake but they're now
|
22
|
-
available in RDoc and RubyGems respectively.)
|
23
|
-
|
24
|
-
* Supports parallel execution of tasks.
|
25
|
-
|
26
|
-
== Installation
|
27
|
-
|
28
|
-
=== Gem Installation
|
29
|
-
|
30
|
-
Download and install rake with the following.
|
31
|
-
|
32
|
-
gem install rake
|
33
|
-
|
34
|
-
== Usage
|
35
|
-
|
36
|
-
=== Simple Example
|
37
|
-
|
38
|
-
First, you must write a "Rakefile" file which contains the build rules. Here's
|
39
|
-
a simple example:
|
40
|
-
|
41
|
-
task :default => [:test]
|
42
|
-
|
43
|
-
task :test do
|
44
|
-
ruby "test/unittest.rb"
|
45
|
-
end
|
46
|
-
|
47
|
-
This Rakefile has two tasks:
|
48
|
-
|
49
|
-
* A task named "test", which - upon invocation - will run a unit test file in
|
50
|
-
Ruby.
|
51
|
-
* A task named "default". This task does nothing by itself, but it has exactly
|
52
|
-
one dependency, namely the "test" task. Invoking the "default" task will
|
53
|
-
cause Rake to invoke the "test" task as well.
|
54
|
-
|
55
|
-
Running the "rake" command without any options will cause it to run the
|
56
|
-
"default" task in the Rakefile:
|
57
|
-
|
58
|
-
% ls
|
59
|
-
Rakefile test/
|
60
|
-
% rake
|
61
|
-
(in /home/some_user/Projects/rake)
|
62
|
-
ruby test/unittest.rb
|
63
|
-
....unit test output here...
|
64
|
-
|
65
|
-
Type "rake --help" for all available options.
|
66
|
-
|
67
|
-
|
68
|
-
=== More Information
|
69
|
-
|
70
|
-
* For details on Rake's command-line invocation, read
|
71
|
-
doc/command_line_usage.rdoc[https://github.com/jimweirich/rake/blob/master/doc/command_line_usage.rdoc]
|
72
|
-
* For details on writing Rakefiles, see
|
73
|
-
doc/rakefile.rdoc[https://github.com/jimweirich/rake/blob/master/doc/rakefile.rdoc].
|
74
|
-
* For the original announcement of Rake, see
|
75
|
-
doc/rational.rdoc[https://github.com/jimweirich/rake/blob/master/doc/rational.rdoc].
|
76
|
-
* For a glossary of terms, see
|
77
|
-
doc/glossary.rdoc[https://github.com/jimweirich/rake/blob/master/doc/glossary.rdoc].
|
78
|
-
|
79
|
-
== Development
|
80
|
-
|
81
|
-
=== Source Repository
|
82
|
-
|
83
|
-
Rake is currently hosted at github. The github web page is
|
84
|
-
http://github.com/jimweirich/rake. The public git clone URL is
|
85
|
-
|
86
|
-
* git://github.com/jimweirich/rake.git
|
87
|
-
|
88
|
-
=== Running the Rake Test Suite
|
89
|
-
|
90
|
-
If you wish to run the unit and functional tests that come with Rake:
|
91
|
-
|
92
|
-
* Install the 'flexmock' gem
|
93
|
-
* Install the 'session' gem in order to run the functional tests.
|
94
|
-
* CD into the top project directory of rake.
|
95
|
-
* Type one of the following:
|
96
|
-
|
97
|
-
rake # If you have a version of rake installed
|
98
|
-
ruby -Ilib bin/rake # If you do not have a version of rake installed.
|
99
|
-
|
100
|
-
=== Issues and Bug Reports
|
101
|
-
|
102
|
-
Feature requests and bug reports can be made here
|
103
|
-
|
104
|
-
* https://github.com/jimweirich/rake/issues
|
105
|
-
|
106
|
-
Issues and bug reports can also be tracked here:
|
107
|
-
|
108
|
-
* http://www.pivotaltracker.com/projects/28469
|
109
|
-
|
110
|
-
== Online Resources
|
111
|
-
|
112
|
-
=== Rake References
|
113
|
-
|
114
|
-
* Rake Documentation Home: http://docs.rubyrake.org
|
115
|
-
* Rake Project Page: http://rubyforge.org/projects/rake
|
116
|
-
* Rake API Documents: http://rake.rubyforge.org
|
117
|
-
* Rake Source Code Repo: http://github.com/jimweirich/rake
|
118
|
-
* Rake Git Repo Clone URL: git://github.com/jimweirich/rake.git
|
119
|
-
* Rake Bug Reports: https://github.com/jimweirich/rake/issues
|
120
|
-
* Rake Continuous Build Server: https://travis-ci.org/#!/jimweirich/rake
|
121
|
-
|
122
|
-
=== Presentations and Articles about Rake
|
123
|
-
|
124
|
-
* Jim Weirich's 2003 RubyConf presentation:
|
125
|
-
http://onestepback.org/articles/buildingwithrake/
|
126
|
-
* Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
|
127
|
-
|
128
|
-
== Other Make Reinvisionings ...
|
129
|
-
|
130
|
-
Rake is a late entry in the make replacement field. Here are links to
|
131
|
-
other projects with similar (and not so similar) goals.
|
132
|
-
|
133
|
-
* http://directory.fsf.org/bras.html -- Bras, one of earliest
|
134
|
-
implementations of "make in a scripting language".
|
135
|
-
* http://www.a-a-p.org -- Make in Python
|
136
|
-
* http://www.aromatic.com/tools/jam.txt -- JAM, Java Automated Make
|
137
|
-
* http://ant.apache.org -- The Ant project
|
138
|
-
* http://ppt.perl.org/commands/make/index.html -- Make from the Perl
|
139
|
-
Power Tools implementation.
|
140
|
-
* http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
|
141
|
-
* http://make.rubyforge.org -- Rant, another Ruby make tool.
|
142
|
-
|
143
|
-
== Credits
|
144
|
-
|
145
|
-
[<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
|
146
|
-
|
147
|
-
[<b>nobu.nokada@softhome.net</b>] For the initial patch for rule support.
|
148
|
-
|
149
|
-
[<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
|
150
|
-
|
151
|
-
[<b>Eric Hodel</b>] For aid in maintaining rake.
|
152
|
-
|
153
|
-
== License
|
154
|
-
|
155
|
-
Rake is available under an MIT-style license.
|
156
|
-
|
157
|
-
:include: MIT-LICENSE
|
158
|
-
|
159
|
-
== Support
|
160
|
-
|
161
|
-
The Rake homepage is http://rake.rubyforge.org. You can find the Rake
|
162
|
-
RubyForge page at http://rubyforge.org/projects/rake.
|
163
|
-
|
164
|
-
Feel free to submit commits or feature requests. If you send a patch,
|
165
|
-
remember to update the corresponding unit tests. In fact, I prefer
|
166
|
-
new feature to be submitted in the form of new unit tests.
|
167
|
-
|
168
|
-
For other information, feel free to ask on the ruby-talk mailing list
|
169
|
-
(which is mirrored to comp.lang.ruby) or contact
|
170
|
-
jim dot weirich at gmail.com.
|
171
|
-
|
172
|
-
---
|
173
|
-
|
174
|
-
= Other stuff
|
175
|
-
|
176
|
-
Author:: Jim Weirich <jim.weirich@gmail.com>
|
177
|
-
Requires:: Ruby 1.8.7 or later
|
178
|
-
License:: Copyright 2003-2013 by Jim Weirich.
|
179
|
-
Released under an MIT-style license. See the MIT-LICENSE
|
180
|
-
file included in the distribution.
|
181
|
-
|
182
|
-
== Warranty
|
183
|
-
|
184
|
-
This software is provided "as is" and without any express or
|
185
|
-
implied warranties, including, without limitation, the implied
|
186
|
-
warranties of merchantibility and fitness for a particular
|
187
|
-
purpose.
|
@@ -1,375 +0,0 @@
|
|
1
|
-
# Rakefile for rake -*- ruby -*-
|
2
|
-
|
3
|
-
# Copyright 2003, 2004, 2005 by Jim Weirich (jim@weirichhouse.org)
|
4
|
-
# All rights reserved.
|
5
|
-
|
6
|
-
# This file may be distributed under an MIT style license. See
|
7
|
-
# MIT-LICENSE for details.
|
8
|
-
|
9
|
-
require 'rbconfig'
|
10
|
-
require 'rubygems'
|
11
|
-
|
12
|
-
system_rake = File.join RbConfig::CONFIG['rubylibdir'], 'rake.rb'
|
13
|
-
|
14
|
-
# Use our rake, not the installed rake from system
|
15
|
-
if $".include? system_rake or $".grep(/rake\/name_space\.rb$/).empty? then
|
16
|
-
exec Gem.ruby, '-Ilib', 'bin/rake', *ARGV
|
17
|
-
end
|
18
|
-
|
19
|
-
require 'rubygems/package_task'
|
20
|
-
|
21
|
-
require 'rake/clean'
|
22
|
-
require 'rake/testtask'
|
23
|
-
|
24
|
-
begin
|
25
|
-
gem 'rdoc'
|
26
|
-
require 'rdoc/task'
|
27
|
-
rescue Gem::LoadError
|
28
|
-
end
|
29
|
-
|
30
|
-
CLEAN.include('**/*.o', '*.dot', '**/*.rbc')
|
31
|
-
CLOBBER.include('doc/example/main')
|
32
|
-
CLOBBER.include('TAGS')
|
33
|
-
CLOBBER.include('coverage', 'rcov_aggregate')
|
34
|
-
|
35
|
-
# Prevent OS X from including extended attribute junk in the tar output
|
36
|
-
ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
|
37
|
-
|
38
|
-
def announce(msg='')
|
39
|
-
STDERR.puts msg
|
40
|
-
end
|
41
|
-
|
42
|
-
# Determine the current version of the software
|
43
|
-
|
44
|
-
if `ruby -Ilib ./bin/rake --version` =~ /rake, version ([0-9a-z.]+)$/
|
45
|
-
CURRENT_VERSION = $1
|
46
|
-
else
|
47
|
-
CURRENT_VERSION = "0.0.0"
|
48
|
-
end
|
49
|
-
|
50
|
-
$package_version = CURRENT_VERSION
|
51
|
-
|
52
|
-
SRC_RB = FileList['lib/**/*.rb']
|
53
|
-
|
54
|
-
# The default task is run if rake is given no explicit arguments.
|
55
|
-
|
56
|
-
desc "Default Task"
|
57
|
-
task :default => :test
|
58
|
-
|
59
|
-
# Test Tasks ---------------------------------------------------------
|
60
|
-
|
61
|
-
Rake::TestTask.new do |t|
|
62
|
-
files = FileList['test/helper.rb', 'test/test_*.rb']
|
63
|
-
t.loader = :rake
|
64
|
-
t.test_files = files
|
65
|
-
t.libs << "."
|
66
|
-
t.warning = true
|
67
|
-
end
|
68
|
-
|
69
|
-
begin
|
70
|
-
require 'rcov/rcovtask'
|
71
|
-
IGNORE_COVERAGE_IN = FileList[
|
72
|
-
'lib/rake/rdoctask.rb',
|
73
|
-
'lib/rake/testtask.rb',
|
74
|
-
'lib/rake/packagetask.rb',
|
75
|
-
'lib/rake/clean.rb',
|
76
|
-
]
|
77
|
-
|
78
|
-
unless File::ALT_SEPARATOR
|
79
|
-
IGNORE_COVERAGE_IN.include(
|
80
|
-
'lib/rake/alt_system.rb',
|
81
|
-
'lib/rake/win32.rb')
|
82
|
-
end
|
83
|
-
|
84
|
-
Rcov::RcovTask.new do |t|
|
85
|
-
t.libs << "test"
|
86
|
-
t.rcov_opts = [
|
87
|
-
'-xRakefile', '-xrakefile', '-xpublish.rf',
|
88
|
-
'-xlib/rake/contrib', '-x/Library', '-x.rvm',
|
89
|
-
'--text-report',
|
90
|
-
'--sort coverage'
|
91
|
-
] + FileList['rakelib/*.rake'].pathmap("-x%p") +
|
92
|
-
IGNORE_COVERAGE_IN.map { |fn| "-x#{fn}" }
|
93
|
-
t.test_files = FileList[
|
94
|
-
'test/lib/*_test.rb',
|
95
|
-
'test/contrib/*_test.rb',
|
96
|
-
'test/functional/*_test.rb'
|
97
|
-
]
|
98
|
-
t.output_dir = 'coverage'
|
99
|
-
t.verbose = true
|
100
|
-
end
|
101
|
-
rescue LoadError
|
102
|
-
task :rcov do
|
103
|
-
puts "RCov is not available"
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# CVS Tasks ----------------------------------------------------------
|
108
|
-
|
109
|
-
# Install rake using the standard install.rb script.
|
110
|
-
|
111
|
-
desc "Install the application"
|
112
|
-
task :install do
|
113
|
-
ruby "install.rb"
|
114
|
-
end
|
115
|
-
|
116
|
-
# Create a task to build the RDOC documentation tree.
|
117
|
-
|
118
|
-
BASE_RDOC_OPTIONS = [
|
119
|
-
'--line-numbers', '--show-hash',
|
120
|
-
'--main', 'README.rdoc',
|
121
|
-
'--title', 'Rake -- Ruby Make'
|
122
|
-
]
|
123
|
-
|
124
|
-
if defined?(RDoc::Task) then
|
125
|
-
RDoc::Task.new do |rdoc|
|
126
|
-
rdoc.rdoc_dir = 'html'
|
127
|
-
rdoc.title = "Rake -- Ruby Make"
|
128
|
-
rdoc.options = BASE_RDOC_OPTIONS.dup
|
129
|
-
|
130
|
-
rdoc.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'TODO', 'CHANGES')
|
131
|
-
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
|
132
|
-
rdoc.rdoc_files.exclude(/\bcontrib\b/)
|
133
|
-
end
|
134
|
-
else
|
135
|
-
warn "RDoc 2.4.2+ is required to build documentation"
|
136
|
-
end
|
137
|
-
|
138
|
-
# ====================================================================
|
139
|
-
# Create a task that will package the Rake software into distributable
|
140
|
-
# tar, zip and gem files.
|
141
|
-
|
142
|
-
PKG_FILES = FileList[
|
143
|
-
'.gemtest',
|
144
|
-
'install.rb',
|
145
|
-
'CHANGES',
|
146
|
-
'MIT-LICENSE',
|
147
|
-
'README.rdoc',
|
148
|
-
'Rakefile',
|
149
|
-
'TODO',
|
150
|
-
'bin/rake',
|
151
|
-
'lib/**/*.rb',
|
152
|
-
'test/**/*.rb',
|
153
|
-
'doc/**/*'
|
154
|
-
]
|
155
|
-
PKG_FILES.exclude('doc/example/*.o')
|
156
|
-
PKG_FILES.exclude('TAGS')
|
157
|
-
PKG_FILES.exclude(%r{doc/example/main$})
|
158
|
-
|
159
|
-
if ! defined?(Gem)
|
160
|
-
puts "Package Target requires RubyGems"
|
161
|
-
else
|
162
|
-
SPEC = Gem::Specification.new do |s|
|
163
|
-
s.name = 'rake'
|
164
|
-
s.version = $package_version
|
165
|
-
s.summary = "Ruby based make-like utility."
|
166
|
-
s.license = "MIT"
|
167
|
-
s.description = <<-EOF.delete "\n"
|
168
|
-
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
169
|
-
specified in standard Ruby syntax.
|
170
|
-
EOF
|
171
|
-
|
172
|
-
s.required_ruby_version = '>= 1.8.6'
|
173
|
-
s.required_rubygems_version = '>= 1.3.2'
|
174
|
-
s.add_development_dependency 'minitest', '~> 2.1'
|
175
|
-
|
176
|
-
s.files = PKG_FILES.to_a
|
177
|
-
|
178
|
-
s.executables = ["rake"]
|
179
|
-
|
180
|
-
s.extra_rdoc_files = FileList[
|
181
|
-
'README.rdoc',
|
182
|
-
'MIT-LICENSE',
|
183
|
-
'TODO',
|
184
|
-
'CHANGES',
|
185
|
-
'doc/**/*.rdoc'
|
186
|
-
]
|
187
|
-
|
188
|
-
s.rdoc_options = BASE_RDOC_OPTIONS
|
189
|
-
|
190
|
-
s.author = "Jim Weirich"
|
191
|
-
s.email = "jim@weirichhouse.org"
|
192
|
-
s.homepage = "http://rake.rubyforge.org"
|
193
|
-
s.rubyforge_project = "rake"
|
194
|
-
end
|
195
|
-
|
196
|
-
Gem::PackageTask.new(SPEC) do |pkg|
|
197
|
-
pkg.need_zip = true
|
198
|
-
pkg.need_tar = true
|
199
|
-
end
|
200
|
-
|
201
|
-
file "rake.gemspec" => ["Rakefile", "lib/rake.rb"] do |t|
|
202
|
-
require 'yaml'
|
203
|
-
open(t.name, "w") { |f| f.puts SPEC.to_yaml }
|
204
|
-
end
|
205
|
-
|
206
|
-
desc "Create a stand-alone gemspec"
|
207
|
-
task :gemspec => "rake.gemspec"
|
208
|
-
end
|
209
|
-
|
210
|
-
# Misc tasks =========================================================
|
211
|
-
|
212
|
-
def count_lines(filename)
|
213
|
-
lines = 0
|
214
|
-
codelines = 0
|
215
|
-
open(filename) { |f|
|
216
|
-
f.each do |line|
|
217
|
-
lines += 1
|
218
|
-
next if line =~ /^\s*$/
|
219
|
-
next if line =~ /^\s*#/
|
220
|
-
codelines += 1
|
221
|
-
end
|
222
|
-
}
|
223
|
-
[lines, codelines]
|
224
|
-
end
|
225
|
-
|
226
|
-
def show_line(msg, lines, loc)
|
227
|
-
printf "%6s %6s %s\n", lines.to_s, loc.to_s, msg
|
228
|
-
end
|
229
|
-
|
230
|
-
desc "Count lines in the main rake file"
|
231
|
-
task :lines do
|
232
|
-
total_lines = 0
|
233
|
-
total_code = 0
|
234
|
-
show_line("File Name", "LINES", "LOC")
|
235
|
-
SRC_RB.each do |fn|
|
236
|
-
lines, codelines = count_lines(fn)
|
237
|
-
show_line(fn, lines, codelines)
|
238
|
-
total_lines += lines
|
239
|
-
total_code += codelines
|
240
|
-
end
|
241
|
-
show_line("TOTAL", total_lines, total_code)
|
242
|
-
end
|
243
|
-
|
244
|
-
# Define an optional publish target in an external file. If the
|
245
|
-
# publish.rf file is not found, the publish targets won't be defined.
|
246
|
-
|
247
|
-
load "publish.rf" if File.exist? "publish.rf"
|
248
|
-
|
249
|
-
# Support Tasks ------------------------------------------------------
|
250
|
-
|
251
|
-
RUBY_FILES = FileList['**/*.rb'].exclude('pkg')
|
252
|
-
|
253
|
-
desc "Look for TODO and FIXME tags in the code"
|
254
|
-
task :todo do
|
255
|
-
RUBY_FILES.egrep(/#.*(FIXME|TODO|TBD)/)
|
256
|
-
end
|
257
|
-
|
258
|
-
desc "List all ruby files"
|
259
|
-
task :rubyfiles do
|
260
|
-
puts RUBY_FILES
|
261
|
-
puts FileList['bin/*'].exclude('bin/*.rb')
|
262
|
-
end
|
263
|
-
task :rf => :rubyfiles
|
264
|
-
|
265
|
-
# --------------------------------------------------------------------
|
266
|
-
# Creating a release
|
267
|
-
|
268
|
-
def plugin(plugin_name)
|
269
|
-
require "rake/plugins/#{plugin_name}"
|
270
|
-
end
|
271
|
-
|
272
|
-
task :noop
|
273
|
-
#plugin "release_manager"
|
274
|
-
|
275
|
-
desc "Make a new release"
|
276
|
-
task :release, [:rel, :reuse, :reltest] => [
|
277
|
-
:prerelease,
|
278
|
-
:clobber,
|
279
|
-
:test,
|
280
|
-
:update_version,
|
281
|
-
:package,
|
282
|
-
:tag
|
283
|
-
] do
|
284
|
-
announce
|
285
|
-
announce "**************************************************************"
|
286
|
-
announce "* Release #{$package_version} Complete."
|
287
|
-
announce "* Packages ready to upload."
|
288
|
-
announce "**************************************************************"
|
289
|
-
announce
|
290
|
-
end
|
291
|
-
|
292
|
-
# Validate that everything is ready to go for a release.
|
293
|
-
task :prerelease, :rel, :reuse, :reltest do |t, args|
|
294
|
-
$package_version = args.rel
|
295
|
-
announce
|
296
|
-
announce "**************************************************************"
|
297
|
-
announce "* Making RubyGem Release #{$package_version}"
|
298
|
-
announce "* (current version #{CURRENT_VERSION})"
|
299
|
-
announce "**************************************************************"
|
300
|
-
announce
|
301
|
-
|
302
|
-
# Is a release number supplied?
|
303
|
-
unless args.rel
|
304
|
-
fail "Usage: rake release[X.Y.Z] [REUSE=tag_suffix]"
|
305
|
-
end
|
306
|
-
|
307
|
-
# Is the release different than the current release.
|
308
|
-
# (or is REUSE set?)
|
309
|
-
if $package_version == CURRENT_VERSION && ! args.reuse
|
310
|
-
fail "Current version is #{$package_version}, must specify REUSE=tag_suffix to reuse version"
|
311
|
-
end
|
312
|
-
|
313
|
-
# Are all source files checked in?
|
314
|
-
if args.reltest
|
315
|
-
announce "Release Task Testing, skipping checked-in file test"
|
316
|
-
else
|
317
|
-
announce "Checking for unchecked-in files..."
|
318
|
-
data = `svn st`
|
319
|
-
unless data =~ /^$/
|
320
|
-
abort "svn status is not clean ... do you have unchecked-in files?"
|
321
|
-
end
|
322
|
-
announce "No outstanding checkins found ... OK"
|
323
|
-
end
|
324
|
-
end
|
325
|
-
|
326
|
-
task :update_version, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
|
327
|
-
if args.rel == CURRENT_VERSION
|
328
|
-
announce "No version change ... skipping version update"
|
329
|
-
else
|
330
|
-
announce "Updating Rake version to #{args.rel}"
|
331
|
-
open("lib/rake.rb") do |rakein|
|
332
|
-
open("lib/rake.rb.new", "w") do |rakeout|
|
333
|
-
rakein.each do |line|
|
334
|
-
if line =~ /^RAKEVERSION\s*=\s*/
|
335
|
-
rakeout.puts "RAKEVERSION = '#{args.rel}'"
|
336
|
-
else
|
337
|
-
rakeout.puts line
|
338
|
-
end
|
339
|
-
end
|
340
|
-
end
|
341
|
-
end
|
342
|
-
mv "lib/rake.rb.new", "lib/rake.rb"
|
343
|
-
if args.reltest
|
344
|
-
announce "Release Task Testing, skipping commiting of new version"
|
345
|
-
else
|
346
|
-
sh %{svn commit -m "Updated to version #{args.rel}" lib/rake.rb} # "
|
347
|
-
end
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
desc "Tag all the CVS files with the latest release number (REL=x.y.z)"
|
352
|
-
task :tag, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
|
353
|
-
reltag = "REL_#{args.rel.gsub(/\./, '_')}"
|
354
|
-
reltag << args.reuse.gsub(/\./, '_') if args.reuse
|
355
|
-
announce "Tagging Repository with [#{reltag}]"
|
356
|
-
if args.reltest
|
357
|
-
announce "Release Task Testing, skipping CVS tagging"
|
358
|
-
else
|
359
|
-
sh %{svn copy svn+ssh://rubyforge.org/var/svn/rake/trunk svn+ssh://rubyforge.org/var/svn/rake/tags/#{reltag} -m 'Commiting release #{reltag}'} ###'
|
360
|
-
end
|
361
|
-
end
|
362
|
-
|
363
|
-
# Require experimental XForge/Metaproject support.
|
364
|
-
|
365
|
-
load 'xforge.rf' if File.exist?('xforge.rf')
|
366
|
-
|
367
|
-
desc "Where is the current directory. This task displays\nthe current rake directory"
|
368
|
-
task :where_am_i do
|
369
|
-
puts Rake.original_dir
|
370
|
-
end
|
371
|
-
|
372
|
-
task :failure => :really_fail
|
373
|
-
task :really_fail do
|
374
|
-
fail "oops"
|
375
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
= Rake Project -- To Do List
|
2
|
-
|
3
|
-
Send suggestions for this list to mailto:jim@weirichhouse.org or on
|
4
|
-
the rake-devel@rubyforge.org mailing list.
|
5
|
-
|
6
|
-
=== To Do
|
7
|
-
* Need a nice API for accessing tasks in namespaces, namespaces in an app, etc.
|
8
|
-
* Provide a way to disable -w warning mode.
|
9
|
-
* Define a set of default rules that work in the absence of any Rakefile
|
10
|
-
* What about cyclic dependencies?
|
11
|
-
* Java support utilities
|
12
|
-
* Installation support utilities
|
13
|
-
* Check out installpkg.rb
|
14
|
-
* Autogenerate Dependencies
|
15
|
-
* Rules should apply to existing tasks if no actions are defined.
|
16
|
-
* How to create multiple package tasks without task name collision?
|
17
|
-
* Trap "ln -s" commands that fail and use "cp" instead (SMB mounted
|
18
|
-
drives have problems with "ln -s".
|
19
|
-
|
20
|
-
|
21
|
-
(moved DONE list to CHANGES file)
|
@@ -1,33 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#--
|
4
|
-
# Copyright (c) 2003, 2004, 2005, 2006, 2007 Jim Weirich
|
5
|
-
#
|
6
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
# of this software and associated documentation files (the "Software"), to
|
8
|
-
# deal in the Software without restriction, including without limitation the
|
9
|
-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
-
# sell copies of the Software, and to permit persons to whom the Software is
|
11
|
-
# furnished to do so, subject to the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be included in
|
14
|
-
# all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
22
|
-
# IN THE SOFTWARE.
|
23
|
-
#++
|
24
|
-
|
25
|
-
begin
|
26
|
-
require 'rubygems'
|
27
|
-
gem 'rake'
|
28
|
-
rescue LoadError
|
29
|
-
end
|
30
|
-
|
31
|
-
require 'rake'
|
32
|
-
|
33
|
-
Rake.application.run
|