ruby-changes:37692
From: hsbt <ko1@a...>
Date: Fri, 27 Feb 2015 20:56:02 +0900 (JST)
Subject: [ruby-changes:37692] hsbt:r49773 (trunk): * lib/rake: Update to rake (9237e74), typo fix and remove needless
hsbt 2015-02-27 20:55:47 +0900 (Fri, 27 Feb 2015) New Revision: 49773 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49773 Log: * lib/rake: Update to rake (9237e74), typo fix and remove needless private syntax. * test/rake: ditto. Modified files: trunk/ChangeLog trunk/lib/rake/dsl_definition.rb trunk/lib/rake/task_manager.rb trunk/lib/rake/testtask.rb trunk/test/rake/test_rake_application_options.rb trunk/test/rake/test_rake_linked_list.rb trunk/test/rake/test_rake_path_map.rb trunk/test/rake/test_rake_task.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49772) +++ ChangeLog (revision 49773) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Feb 27 20:55:42 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * lib/rake: Update to rake (9237e74), typo fix and remove needless + private syntax. + * test/rake: ditto. + Fri Feb 27 17:06:44 2015 Koichi Sasada <ko1@a...> * vm_core.h: define vm_svar_index. Index: lib/rake/dsl_definition.rb =================================================================== --- lib/rake/dsl_definition.rb (revision 49772) +++ lib/rake/dsl_definition.rb (revision 49773) @@ -7,7 +7,7 @@ module Rake https://github.com/ruby/ruby/blob/trunk/lib/rake/dsl_definition.rb#L7 # DSL is a module that provides #task, #desc, #namespace, etc. Use this # when you'd like to use rake outside the top level scope. # - # For a Rakefile you run from the comamnd line this module is automatically + # For a Rakefile you run from the command line this module is automatically # included. module DSL Index: lib/rake/testtask.rb =================================================================== --- lib/rake/testtask.rb (revision 49772) +++ lib/rake/testtask.rb (revision 49773) @@ -62,7 +62,7 @@ module Rake https://github.com/ruby/ruby/blob/trunk/lib/rake/testtask.rb#L62 # attr_accessor :loader - # Array of commandline options to pass to ruby when running test loader. + # Array of command line options to pass to ruby when running test loader. attr_accessor :ruby_opts # Description of the test task. (default is 'Run tests') Index: lib/rake/task_manager.rb =================================================================== --- lib/rake/task_manager.rb (revision 49772) +++ lib/rake/task_manager.rb (revision 49773) @@ -291,9 +291,6 @@ module Rake https://github.com/ruby/ruby/blob/trunk/lib/rake/task_manager.rb#L291 result.flatten end - - private - # Return the current description, clearing it in the process. def get_description(task) desc = @last_description Index: test/rake/test_rake_application_options.rb =================================================================== --- test/rake/test_rake_application_options.rb (revision 49772) +++ test/rake/test_rake_application_options.rb (revision 49773) @@ -198,7 +198,7 @@ class TestRakeApplicationOptions < Rake: https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_application_options.rb#L198 def test_quiet Rake::FileUtilsExt.verbose_flag = true flags('--quiet', '-q') do |opts| - assert ! Rake::FileUtilsExt.verbose_flag, "verbose flag shoud be false" + assert ! Rake::FileUtilsExt.verbose_flag, "verbose flag should be false" assert ! opts.silent, "should not be silent" end end Index: test/rake/test_rake_path_map.rb =================================================================== --- test/rake/test_rake_path_map.rb (revision 49772) +++ test/rake/test_rake_path_map.rb (revision 49773) @@ -152,11 +152,11 @@ class TestRakePathMap < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_path_map.rb#L152 "Your file extension is '.rb'", "dir/abc.rb".pathmap("Your file extension is '%x'")) assert_equal( - "bin/org/onstepback/proj/A.class", - "src/org/onstepback/proj/A.java".pathmap("%{src,bin}d/%n.class")) + "bin/org/onestepback/proj/A.class", + "src/org/onestepback/proj/A.java".pathmap("%{src,bin}d/%n.class")) assert_equal( - "src_work/bin/org/onstepback/proj/A.class", - "src_work/src/org/onstepback/proj/A.java". + "src_work/bin/org/onestepback/proj/A.class", + "src_work/src/org/onestepback/proj/A.java". pathmap('%{\bsrc\b,bin}X.class')) assert_equal( ".depends.bak", Index: test/rake/test_rake_linked_list.rb =================================================================== --- test/rake/test_rake_linked_list.rb (revision 49772) +++ test/rake/test_rake_linked_list.rb (revision 49773) @@ -57,13 +57,13 @@ class TestLinkedList < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_linked_list.rb#L57 refute_equal short, list end - def test_converstion_to_string + def test_conversion_to_string list = LinkedList.make(:one, :two, :three) assert_equal "LL(one, two, three)", list.to_s assert_equal "LL()", LinkedList.make().to_s end - def test_converstion_with_inspect + def test_conversion_with_inspect list = LinkedList.make(:one, :two, :three) assert_equal "LL(:one, :two, :three)", list.inspect assert_equal "LL()", LinkedList.make().inspect Index: test/rake/test_rake_task.rb =================================================================== --- test/rake/test_rake_task.rb (revision 49772) +++ test/rake/test_rake_task.rb (revision 49773) @@ -195,14 +195,14 @@ class TestRakeTask < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_task.rb#L195 assert_equal ["b", "c"], Task[:a].prerequisites end - def test_prerequiste_tasks_returns_tasks_not_strings + def test_prerequisite_tasks_returns_tasks_not_strings a = task :a => ["b", "c"] b = task :b c = task :c assert_equal [b, c], a.prerequisite_tasks end - def test_prerequiste_tasks_fails_if_prerequisites_are_undefined + def test_prerequisite_tasks_fails_if_prerequisites_are_undefined a = task :a => ["b", "c"] task :b assert_raises(RuntimeError) do @@ -210,7 +210,7 @@ class TestRakeTask < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_task.rb#L210 end end - def test_prerequiste_tasks_honors_namespaces + def test_prerequisite_tasks_honors_namespaces a = b = nil namespace "X" do a = task :a => ["b", "c"] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/