Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/rake
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v12.0.0
Choose a base ref
...
head repository: ruby/rake
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.0.1
Choose a head ref
Loading
Showing with 1,254 additions and 449 deletions.
  1. +22 −0 .github/workflows/macos.yml
  2. +28 −0 .github/workflows/ubuntu-rvm.yml
  3. +20 −0 .github/workflows/ubuntu.yml
  4. +20 −0 .github/workflows/windows.yml
  5. +16 −15 .rubocop.yml
  6. +0 −21 .travis.yml
  7. +11 −4 CONTRIBUTING.rdoc
  8. +7 −0 Gemfile
  9. +131 −10 History.rdoc
  10. +7 −8 README.rdoc
  11. +7 −4 Rakefile
  12. +0 −21 appveyor.yml
  13. +105 −0 bin/bundle
  14. +29 −0 bin/rake
  15. +29 −0 bin/rdoc
  16. +29 −0 bin/rubocop
  17. +1 −0 doc/jamis.rb
  18. +1 −1 doc/rakefile.rdoc
  19. +1 −0 lib/rake.rb
  20. +54 −15 lib/rake/application.rb
  21. +1 −0 lib/rake/backtrace.rb
  22. +3 −2 lib/rake/clean.rb
  23. +1 −0 lib/rake/cloneable.rb
  24. +2 −1 lib/rake/cpu_counter.rb
  25. +1 −0 lib/rake/default_loader.rb
  26. +4 −3 lib/rake/dsl_definition.rb
  27. +1 −0 lib/rake/early_time.rb
  28. +1 −0 lib/rake/ext/core.rb
  29. +2 −1 lib/rake/ext/string.rb
  30. +2 −1 lib/rake/file_creation_task.rb
  31. +5 −4 lib/rake/file_list.rb
  32. +11 −3 lib/rake/file_task.rb
  33. +10 −12 lib/rake/file_utils.rb
  34. +7 −17 lib/rake/file_utils_ext.rb
  35. +1 −0 lib/rake/invocation_chain.rb
  36. +1 −0 lib/rake/invocation_exception_mixin.rb
  37. +1 −0 lib/rake/late_time.rb
  38. +1 −0 lib/rake/linked_list.rb
  39. +1 −0 lib/rake/loaders/makefile.rb
  40. +2 −37 lib/rake/multi_task.rb
  41. +1 −0 lib/rake/name_space.rb
  42. +18 −6 lib/rake/packagetask.rb
  43. +1 −0 lib/rake/phony.rb
  44. +1 −0 lib/rake/private_reader.rb
  45. +3 −2 lib/rake/promise.rb
  46. +1 −0 lib/rake/pseudo_status.rb
  47. +29 −0 lib/rake/rake_module.rb
  48. +17 −11 lib/rake/rake_test_loader.rb
  49. +1 −0 lib/rake/rule_recursion_overflow_error.rb
  50. +2 −1 lib/rake/scope.rb
  51. +60 −16 lib/rake/task.rb
  52. +1 −0 lib/rake/task_argument_error.rb
  53. +1 −0 lib/rake/task_arguments.rb
  54. +49 −21 lib/rake/task_manager.rb
  55. +1 −0 lib/rake/tasklib.rb
  56. +2 −0 lib/rake/testtask.rb
  57. +1 −0 lib/rake/thread_history_display.rb
  58. +1 −0 lib/rake/thread_pool.rb
  59. +1 −0 lib/rake/trace_output.rb
  60. +2 −1 lib/rake/version.rb
  61. +1 −0 lib/rake/win32.rb
  62. +11 −7 rake.gemspec
  63. +11 −1 test/helper.rb
  64. +1 −0 test/support/file_creation.rb
  65. +19 −0 test/support/rakefile_definitions.rb
  66. +1 −0 test/support/ruby_runner.rb
  67. +3 −2 test/test_private_reader.rb
  68. +2 −1 test/test_rake.rb
  69. +63 −89 test/test_rake_application.rb
  70. +16 −24 test/test_rake_application_options.rb
  71. +3 −4 test/test_rake_backtrace.rb
  72. +2 −1 test/test_rake_clean.rb
  73. +3 −2 test/test_rake_cpu_counter.rb
  74. +2 −1 test/test_rake_definitions.rb
  75. +2 −1 test/test_rake_directory_task.rb
  76. +2 −1 test/test_rake_dsl.rb
  77. +2 −1 test/test_rake_early_time.rb
  78. +4 −3 test/test_rake_extension.rb
  79. +2 −2 test/test_rake_file_creation_task.rb
  80. +14 −12 test/test_rake_file_list.rb
  81. +2 −1 test/test_rake_file_list_path_map.rb
  82. +2 −1 test/test_rake_file_task.rb
  83. +28 −2 test/test_rake_file_utils.rb
  84. +22 −1 test/test_rake_functional.rb
  85. +2 −1 test/test_rake_invocation_chain.rb
  86. +2 −1 test/test_rake_late_time.rb
  87. +2 −1 test/test_rake_linked_list.rb
  88. +2 −1 test/test_rake_makefile_loader.rb
  89. +23 −2 test/test_rake_multi_task.rb
  90. +3 −2 test/test_rake_name_space.rb
  91. +14 −1 test/test_rake_package_task.rb
  92. +2 −1 test/test_rake_path_map.rb
  93. +2 −1 test/test_rake_path_map_explode.rb
  94. +3 −2 test/test_rake_path_map_partial.rb
  95. +2 −1 test/test_rake_pseudo_status.rb
  96. +43 −2 test/test_rake_rake_test_loader.rb
  97. +2 −1 test/test_rake_reduce_compat.rb
  98. +2 −1 test/test_rake_require.rb
  99. +25 −1 test/test_rake_rules.rb
  100. +2 −1 test/test_rake_scope.rb
  101. +56 −5 test/test_rake_task.rb
  102. +10 −5 test/test_rake_task_argument_parsing.rb
  103. +2 −1 test/test_rake_task_arguments.rb
  104. +13 −2 test/test_rake_task_manager.rb
  105. +15 −7 test/test_rake_task_manager_argument_resolution.rb
  106. +2 −4 test/test_rake_task_with_arguments.rb
  107. +20 −1 test/test_rake_test_task.rb
  108. +2 −1 test/test_rake_thread_pool.rb
  109. +2 −1 test/test_rake_top_level_functions.rb
  110. +8 −3 test/test_rake_win32.rb
  111. +2 −1 test/test_thread_history_display.rb
  112. +4 −3 test/test_trace_output.rb
22 changes: 22 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: macos

on: [push]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install minitest
- name: Run test
env:
COVERALLS: "yes"
run: ruby -Ilib exe/rake
28 changes: 28 additions & 0 deletions .github/workflows/ubuntu-rvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ubuntu-rvm

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ]
steps:
- uses: actions/checkout@master
- name: Set up RVM
run: |
curl -sSL https://get.rvm.io | bash
- name: Set up Ruby
run: |
source $HOME/.rvm/scripts/rvm
rvm install ${{ matrix.ruby }} --binary
rvm --default use ${{ matrix.ruby }}
- name: Install dependencies
run: |
source $HOME/.rvm/scripts/rvm
gem install minitest
- name: Run test
run: |
source $HOME/.rvm/scripts/rvm
ruby -Ilib exe/rake
20 changes: 20 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ubuntu

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install minitest
- name: Run test
run: ruby -Ilib exe/rake
20 changes: 20 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: windows

on: [push]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install minitest
- name: Run test
run: ruby -Ilib exe/rake
31 changes: 16 additions & 15 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,9 @@ AllCops:
Exclude:
- doc/**/*.rb
- rake.gemspec
- bin/*

Style/LineLength:
Metrics/LineLength:
Enabled: true
Max: 120

@@ -16,42 +17,42 @@ Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes

Style/IndentationWidth:
Style/MultilineIfThen:
Enabled: true

Style/Tab:
Style/MethodDefParentheses:
Enabled: true

Style/EmptyLines:
Style/BracesAroundHashParameters:
Enabled: true

Style/TrailingBlankLines:
Layout/IndentationWidth:
Enabled: true

Style/TrailingWhitespace:
Layout/Tab:
Enabled: true

Style/SpaceBeforeBlockBraces:
Layout/EmptyLines:
Enabled: true

Style/SpaceInsideBlockBraces:
Layout/TrailingBlankLines:
Enabled: true

Style/SpaceInsideHashLiteralBraces:
Layout/TrailingWhitespace:
Enabled: true

Style/CaseIndentation:
Layout/SpaceBeforeBlockBraces:
Enabled: true

Style/MultilineIfThen:
Layout/SpaceInsideBlockBraces:
Enabled: true

Style/MethodDefParentheses:
Layout/SpaceInsideHashLiteralBraces:
Enabled: true

Style/BracesAroundHashParameters:
Layout/CaseIndentation:
Enabled: true

Lint/EndAlignment:
Layout/EndAlignment:
Enabled: true
AlignWith: variable
EnforcedStyleAlignWith: variable
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

15 changes: 11 additions & 4 deletions CONTRIBUTING.rdoc
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
Rake is currently hosted at github. The github web page is
https://github.com/ruby/rake . The public git clone URL is

git://github.com/ruby/rake.git
https://github.com/ruby/rake.git

= Running the Rake Test Suite

@@ -12,11 +12,18 @@ If you wish to run the unit and functional tests that come with Rake:
* +cd+ into the top project directory of rake.
* Install gem dependency using bundler:

bundle install # Install bundler, minitest and rdoc
$ bundle install # Install bundler, minitest and rdoc

* Type one of the following:
* Run the test suite

rake # If you have run rake's tests
$ rake

= Rubocop

Rake uses Rubocop to enforce a consistent style on new changes being
proposed. You can check your code with Rubocop using:

$ ./bin/rubocop

= Issues and Bug Reports

7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
source "https://rubygems.org"

gemspec

group :development do
gem "bundler"
gem "minitest"
gem "coveralls"
gem "rubocop"
end
Loading