Permalink
Browse files

update docs to reflect removed deprecations

  • Loading branch information...
1 parent d345e98 commit e82ffd23ff5d84f86c613a25e26df1ad2eb0746e @jimweirich committed Oct 26, 2012
@@ -21,13 +21,6 @@ Options are:
by default. If the options _output_ parameter is set to "stdout",
then the output will be directed to standard output.
-[<tt>--classic-namespace</tt> (-n)]
- Import the Task, FileTask, and FileCreateTask into the top-level
- scope to be compatible with older versions of Rake. Alternatively
- you can include the line <code>require
- 'rake/classic_namespace'</code> in your Rakefile to get the
- classic behavior.
-
[<tt>--comments</tt>]
Used in combination with the -W options to force the output to
contain commented options only. This is the reverse of
@@ -100,16 +93,6 @@ Options are:
[<tt>--rakelibdir</tt> _rakelibdir_ (-R)]
Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
-[<tt>--reduce-compat</tt>]
-
- Remove the DSL commands from the Object inheritance hierarchy and
- do not define top level constants. This reduces the backwards
- compatibility of Rake, but allows rake to be used with software
- that would otherwise have conflicting definitions.
-
- *NOTE:* The next major version of Rake will only be able to be run
- in "reduce-compat" mode.
-
[<tt>--require</tt> _name_ (-r)]
Require _name_ before executing the Rakefile.
@@ -407,11 +407,6 @@ def standard_rake_options
"Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')",
lambda { |value| options.rakelib = value.split(File::PATH_SEPARATOR) }
],
- ['--reduce-compat', "Remove DSL in Object; remove Module#const_missing which defines ::Task etc.",
- # Load-time option.
- # Handled in bin/rake where Rake::REDUCE_COMPAT is defined (or not).
- lambda { |_| }
- ],
['--require', '-r MODULE', "Require MODULE before executing rakefile.",
lambda { |value|
begin
@@ -13,10 +13,6 @@ def invoke_normal(task_name)
rake task_name.to_s
end
- def invoke_reduce_compat(task_name)
- rake "--reduce-compat", task_name.to_s
- end
-
def test_no_deprecated_dsl
rakefile %q{
task :check_task do
@@ -30,8 +26,5 @@ def test_no_deprecated_dsl
assert_equal "nil", invoke_normal(:check_task).chomp
assert_equal "nil", invoke_normal(:check_file).chomp
-
- assert_equal "nil", invoke_reduce_compat(:check_task).chomp
- assert_equal "nil", invoke_reduce_compat(:check_file).chomp
end
end
@@ -2,18 +2,6 @@
class TestRakeTaskManagerArgumentResolution < Rake::TestCase
- def setup
- super
-
- Rake.application.options.ignore_deprecate = true
- end
-
- def teardown
- Rake.application.options.ignore_deprecate = false
-
- super
- end
-
def test_good_arg_patterns
assert_equal [:t, [], []], task(:t)
assert_equal [:t, [], [:x]], task(:t => :x)
@@ -40,14 +40,6 @@ def test_name_args_and_prereqs
assert_equal ["pre"], t.prerequisites
end
- def test_illegal_keys_in_task_name_hash
- ignore_deprecations do
- assert_raises RuntimeError do
- t = task(:t, :x, :y => 1, :needs => [:pre])
- end
- end
- end
-
def test_arg_list_is_empty_if_no_args_given
t = task(:t) { |tt, args| assert_equal({}, args.to_hash) }
t.invoke(1, 2, 3)

0 comments on commit e82ffd2

Please sign in to comment.