From f6b1680052a4b721c1b64553e6063bbfe22882a9 Mon Sep 17 00:00:00 2001 From: "Mark D. Blackwell" Date: Thu, 21 Jul 2016 17:54:56 -0400 Subject: [PATCH 001/334] Add test for sh full command echo on error exit --- test/test_rake_file_utils.rb | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 1b43a49d1..14430a3cd 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -287,6 +287,49 @@ def test_sh_show_command assert_equal expected_cmd, show_cmd end + def test_sh_if_a_command_exits_with_error_status_its_full_output_is_printed + verbose false do + standard_output = 'Some output' + standard_error = 'Some error' + shell_command = "ruby -e\"puts '#{standard_output}';STDERR.puts '#{standard_error}';exit false\"" + actual_both = capture_subprocess_io do + begin + sh shell_command + rescue + else + flunk + end + end + actual = actual_both.join + assert_match standard_output, actual + assert_match standard_error, actual + end + end + + def test_sh_if_a_command_exits_with_error_status_sh_echoes_it_fully + verbose true do + assert_echoes_fully + end + verbose false do + assert_echoes_fully + end + end + + def assert_echoes_fully + long_string = '1234567890' * 10 + shell_command = "ruby -e\"'#{long_string}';exit false\"" + capture_subprocess_io do + begin + sh shell_command + rescue => ex + assert_match 'Command failed with status', ex.message + assert_match shell_command, ex.message + else + flunk + end + end + end + def test_ruby_with_multiple_arguments skip if jruby9? # https://github.com/jruby/jruby/issues/3653 From 64eaba2c83dae029c06471a1b9e2844383f98543 Mon Sep 17 00:00:00 2001 From: "Mark D. Blackwell" Date: Sun, 24 Jul 2016 09:22:21 -0400 Subject: [PATCH 002/334] Sh full command echo on error exit --- lib/rake/file_utils.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb index 14cb092fc..8fd7067ec 100644 --- a/lib/rake/file_utils.rb +++ b/lib/rake/file_utils.rb @@ -62,8 +62,6 @@ def sh(*cmd, &block) def create_shell_runner(cmd) # :nodoc: show_command = sh_show_command cmd - show_command = show_command[0, 42] + "..." unless $trace - lambda do |ok, status| ok or fail "Command failed with status (#{status.exitstatus}): " + From 449766fb9abbfb9d8365ff824952cd1aa9067683 Mon Sep 17 00:00:00 2001 From: take-cheeze Date: Thu, 21 Jun 2018 20:12:09 +0900 Subject: [PATCH 003/334] Add order only dependency. --- lib/rake/task.rb | 18 +++++++++++++- lib/rake/task_manager.rb | 24 +++++++++++-------- ...t_rake_task_manager_argument_resolution.rb | 12 +++++----- test/test_rake_test_task.rb | 18 ++++++++++++++ 4 files changed, 55 insertions(+), 17 deletions(-) diff --git a/lib/rake/task.rb b/lib/rake/task.rb index c7e0a1d9e..cde41c636 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -16,6 +16,9 @@ class Task # List of prerequisites for a task. attr_reader :prerequisites + # List of order only prerequisites for a task. + attr_reader :order_only_prerequisites + # List of actions attached to a task. attr_reader :actions @@ -55,7 +58,7 @@ def sources # List of prerequisite tasks def prerequisite_tasks - prerequisites.map { |pre| lookup_prerequisite(pre) } + (prerequisites + order_only_prerequisites).map { |pre| lookup_prerequisite(pre) } end def lookup_prerequisite(prerequisite_name) # :nodoc: @@ -104,6 +107,7 @@ def initialize(task_name, app) @arg_names = nil @locations = [] @invocation_exception = nil + @order_only_prerequisites = [] end # Enhance a task with prerequisites or actions. Returns self. @@ -358,6 +362,18 @@ def investigation return result end + # Format dependencies parameter to pass to task. + def self.format_deps(deps) + deps = [deps] unless deps.respond_to?(:to_ary) + deps.map { |d| Rake.from_pathname(d).to_s } + end + + # Add order only dependencies. + def |(deps) + @order_only_prerequisites |= Task.format_deps(deps) - @prerequisites + self + end + # ---------------------------------------------------------------- # Rake Module Methods # diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb index c1e60b95e..88a2e6bb3 100644 --- a/lib/rake/task_manager.rb +++ b/lib/rake/task_manager.rb @@ -15,13 +15,13 @@ def initialize # :nodoc: end def create_rule(*args, &block) # :nodoc: - pattern, args, deps = resolve_args(args) + pattern, args, deps, order_only = resolve_args(args) pattern = Regexp.new(Regexp.quote(pattern) + "$") if String === pattern - @rules << [pattern, args, deps, block] + @rules << [pattern, args, deps, order_only, block] end def define_task(task_class, *args, &block) # :nodoc: - task_name, arg_names, deps = resolve_args(args) + task_name, arg_names, deps, order_only = resolve_args(args) original_scope = @scope if String === task_name and @@ -31,15 +31,15 @@ def define_task(task_class, *args, &block) # :nodoc: end task_name = task_class.scope_name(@scope, task_name) - deps = [deps] unless deps.respond_to?(:to_ary) - deps = deps.map { |d| Rake.from_pathname(d).to_s } task = intern(task_class, task_name) task.set_arg_names(arg_names) unless arg_names.empty? if Rake::TaskManager.record_task_metadata add_location(task) task.add_description(get_description(task)) end - task.enhance(deps, &block) + task.enhance(Task.format_deps(deps), &block) + task | order_only unless order_only.nil? + task ensure @scope = original_scope end @@ -108,7 +108,7 @@ def resolve_args_without_dependencies(args) else arg_names = args end - [task_name, arg_names, []] + [task_name, arg_names, [], nil] end private :resolve_args_without_dependencies @@ -121,7 +121,10 @@ def resolve_args_without_dependencies(args) # task :t, [a] => [:d] # def resolve_args_with_dependencies(args, hash) # :nodoc: - fail "Task Argument Error" if hash.size != 1 + fail "Task Argument Error" if + hash.size != 1 && + (hash.size != 2 || !hash.key?(:order_only)) + order_only = hash.delete(:order_only) key, value = hash.map { |k, v| [k, v] }.first if args.empty? task_name = key @@ -133,7 +136,7 @@ def resolve_args_with_dependencies(args, hash) # :nodoc: deps = value end deps = [deps] unless deps.respond_to?(:to_ary) - [task_name, arg_names, deps] + [task_name, arg_names, deps, order_only] end private :resolve_args_with_dependencies @@ -144,9 +147,10 @@ def resolve_args_with_dependencies(args, hash) # :nodoc: def enhance_with_matching_rule(task_name, level=0) fail Rake::RuleRecursionOverflowError, "Rule Recursion Too Deep" if level >= 16 - @rules.each do |pattern, args, extensions, block| + @rules.each do |pattern, args, extensions, order_only, block| if pattern && pattern.match(task_name) task = attempt_rule(task_name, pattern, args, extensions, block, level) + task | order_only unless order_only.nil? return task if task end end diff --git a/test/test_rake_task_manager_argument_resolution.rb b/test/test_rake_task_manager_argument_resolution.rb index c07be6f5e..bc4943613 100644 --- a/test/test_rake_task_manager_argument_resolution.rb +++ b/test/test_rake_task_manager_argument_resolution.rb @@ -4,13 +4,13 @@ class TestRakeTaskManagerArgumentResolution < Rake::TestCase def test_good_arg_patterns - assert_equal [:t, [], []], task(:t) - assert_equal [:t, [], [:x]], task(t: :x) - assert_equal [:t, [], [:x, :y]], task(t: [:x, :y]) + assert_equal [:t, [], [], nil], task(:t) + assert_equal [:t, [], [:x], nil], task(t: :x) + assert_equal [:t, [], [:x, :y], nil], task(t: [:x, :y]) - assert_equal [:t, [:a, :b], []], task(:t, [:a, :b]) - assert_equal [:t, [:a, :b], [:x]], task(:t, [:a, :b] => :x) - assert_equal [:t, [:a, :b], [:x, :y]], task(:t, [:a, :b] => [:x, :y]) + assert_equal [:t, [:a, :b], [], nil], task(:t, [:a, :b]) + assert_equal [:t, [:a, :b], [:x], nil], task(:t, [:a, :b] => :x) + assert_equal [:t, [:a, :b], [:x, :y], nil], task(:t, [:a, :b] => [:x, :y]) end def task(*args) diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index 396e05924..6a8dd2a4a 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -169,4 +169,22 @@ def test_task_prerequisites_deps task = Rake::Task[:child] assert_includes task.prerequisites, "parent" end + + def test_task_order_only_prerequisites + t = task(a: 'b') { + :aaa + } | 'c' + b, c = task('b'), task('c') + assert_equal ['b'], t.prerequisites + assert_equal ['c'], t.order_only_prerequisites + assert_equal [b, c], t.prerequisite_tasks + end + + def test_task_order_only_prerequisites_key + t = task 'a' => 'b', order_only: ['c'] + b, c = task('b'), task('c') + assert_equal ['b'], t.prerequisites + assert_equal ['c'], t.order_only_prerequisites + assert_equal [b, c], t.prerequisite_tasks + end end From 714a18093b38661508737a6849fc7168f28829a1 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 20 Aug 2018 14:50:48 +0200 Subject: [PATCH 004/334] Fixed bug: Task raises previous exception on second invokation after beeing reenable-d. --- lib/rake/task.rb | 3 ++- test/test_rake_task.rb | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/rake/task.rb b/lib/rake/task.rb index c56118f01..5f5254c84 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -141,7 +141,8 @@ def arg_names # Reenable the task, allowing its tasks to be executed if the task # is invoked again. def reenable - @already_invoked = false + @already_invoked = false + @invocation_exception = nil end # Clear the existing prerequisites, actions, comments, and arguments of a rake task. diff --git a/test/test_rake_task.rb b/test/test_rake_task.rb index 380f59b4f..dca594329 100644 --- a/test/test_rake_task.rb +++ b/test/test_rake_task.rb @@ -117,6 +117,33 @@ def test_can_double_invoke_with_reenable assert_equal ["t1", "t1"], runlist end + def test_can_triple_invoke_after_exception_with_reenable + raise_exception = true + invoked = 0 + + t1 = task(:t1) do |t| + invoked += 1 + next if !raise_exception + + raise_exception = false + raise 'Some error' + end + + assert_raises(RuntimeError) { t1.invoke } + assert_equal 1, invoked + + t1.reenable + + # actually invoke second time + t1.invoke + assert_equal 2, invoked + + # recognize already invoked and + # don't raise pre-reenable exception + t1.invoke + assert_equal 2, invoked + end + def test_clear desc "a task" t = task("t", ["b"] => "a") {} From 282b0d31586c7b723f6ba7d5103f874adec1bdb9 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 22 Aug 2018 09:04:08 +0200 Subject: [PATCH 005/334] Applied requested changes of @yuki24: Chose clean git blame over nice looking indentaiton. --- lib/rake/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/task.rb b/lib/rake/task.rb index 5f5254c84..2255b5c43 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -141,7 +141,7 @@ def arg_names # Reenable the task, allowing its tasks to be executed if the task # is invoked again. def reenable - @already_invoked = false + @already_invoked = false @invocation_exception = nil end From 382e8047208675c9fb09e2cf9e5c4e4d3fe7ac5f Mon Sep 17 00:00:00 2001 From: Jian Weihang Date: Fri, 10 May 2019 22:22:56 +0800 Subject: [PATCH 006/334] feat: add `without_parent_dir` to `PackageTask` --- lib/rake/packagetask.rb | 19 +++++++++++++++++-- test/test_rake_package_task.rb | 12 ++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/lib/rake/packagetask.rb b/lib/rake/packagetask.rb index 72fef4d5e..aeff81c29 100644 --- a/lib/rake/packagetask.rb +++ b/lib/rake/packagetask.rb @@ -79,6 +79,9 @@ class PackageTask < TaskLib # Zip command for zipped archives. The default is 'zip'. attr_accessor :zip_command + # True if parent directory should be omited (default is false) + attr_accessor :without_parent_dir + # Create a Package Task with the given name and version. Use +:noversion+ # as the version to build a package without a version or to provide a # fully-versioned package name. @@ -102,6 +105,7 @@ def init(name, version) @need_zip = false @tar_command = "tar" @zip_command = "zip" + @without_parent_dir = false end # Create the tasks defined by this task library. @@ -132,7 +136,8 @@ def define task package: ["#{package_dir}/#{file}"] file "#{package_dir}/#{file}" => [package_dir_path] + package_files do - chdir(package_dir) { sh @tar_command, "#{flag}cvf", file, package_name } + chdir(working_dir) { sh @tar_command, "#{flag}cvf", file, target_dir } + mv "#{package_dir_path}/#{target_dir}", package_dir if without_parent_dir end end end @@ -141,7 +146,8 @@ def define task package: ["#{package_dir}/#{zip_file}"] file "#{package_dir}/#{zip_file}" => [package_dir_path] + package_files do - chdir(package_dir) { sh @zip_command, "-r", zip_file, package_name } + chdir(working_dir) { sh @zip_command, "-r", zip_file, target_dir } + mv "#{package_dir_path}/#{zip_file}", package_dir if without_parent_dir end end @@ -202,6 +208,15 @@ def tar_xz_file def zip_file "#{package_name}.zip" end + + def working_dir + without_parent_dir ? package_dir_path : package_dir + end + + # target directory relative to working_dir + def target_dir + without_parent_dir ? "." : package_name + end end end diff --git a/test/test_rake_package_task.rb b/test/test_rake_package_task.rb index d3886f8ca..25a1baa95 100644 --- a/test/test_rake_package_task.rb +++ b/test/test_rake_package_task.rb @@ -78,4 +78,16 @@ def test_package_name_noversion assert_equal "a", pkg.package_name end + def test_without_parent_dir + pkg = Rake::PackageTask.new("foo", :noversion) + + assert_equal "pkg", pkg.working_dir + assert_equal "foo", pkg.target_dir + + pkg.without_parent_dir = true + + assert_equal "pkg/foo", pkg.working_dir + assert_equal ".", pkg.target_dir + end + end From a232f0204c636dc6b42c7bffef93c1d858635a05 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Fri, 9 Aug 2019 23:58:35 +0900 Subject: [PATCH 007/334] Update ruby.yml --- .github/workflows/ruby.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ruby.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 000000000..b61895f54 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,20 @@ +name: Ruby + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Set up Ruby 2.6 + uses: actions/setup-ruby@v1 + with: + version: 2.6.x + - name: Build and test with Rake + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake From cfc7e48a0447cec007c9e872035e846d7fd45ff5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:06:48 +0900 Subject: [PATCH 008/334] Enabled build matrix. --- .github/workflows/ruby.yml | 20 -------------------- .github/workflows/ubuntu.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/ruby.yml create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml deleted file mode 100644 index b61895f54..000000000 --- a/.github/workflows/ruby.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Ruby - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1 - with: - version: 2.6.x - - name: Build and test with Rake - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 000000000..f186d5e24 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -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', '2.3.x' ] + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + version: ${{ matrix.ruby }} + - name: Build and test with Rake + run: | + gem install minitest + ruby -Ilib exe/rake From 8017d98af33f9bd7e626afe79c09eb1c97c8ec22 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:09:56 +0900 Subject: [PATCH 009/334] Added Windows and macOS. --- .github/workflows/macos.yml | 20 ++++++++++++++++++++ .github/workflows/windows.yml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 000000000..1cb08f474 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,20 @@ +name: ubuntu + +on: [push] + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + version: ${{ matrix.ruby }} + - name: Build and test with Rake + run: | + gem install minitest + ruby -Ilib exe/rake diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..f3930c50c --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,20 @@ +name: ubuntu + +on: [push] + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + version: ${{ matrix.ruby }} + - name: Build and test with Rake + run: | + gem install minitest + ruby -Ilib exe/rake From 42060431d50fb50c6a2c9dd38fb68c3e5890671c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:10:30 +0900 Subject: [PATCH 010/334] Fixed build names. --- .github/workflows/macos.yml | 2 +- .github/workflows/windows.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1cb08f474..f991a6230 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,4 @@ -name: ubuntu +name: macos on: [push] diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f3930c50c..624394de3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: ubuntu +name: windows on: [push] From a4dc9e07dc007937137779cf564aae657b4ed025 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:12:51 +0900 Subject: [PATCH 011/334] Windows env only provide Ruby 2.4+ --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 624394de3..c0a2c4b39 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,7 +7,7 @@ jobs: runs-on: windows-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] + ruby: [ '2.6.x', '2.5.x', '2.4.x' ] steps: - uses: actions/checkout@master - name: Set up Ruby From 0544f30f32a4029f50c7f2a8233e8ce7b0ff71f8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:14:21 +0900 Subject: [PATCH 012/334] setup-ruby is not support macOS env. --- .github/workflows/macos.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f991a6230..3d7f3d93d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,15 +5,8 @@ on: [push] jobs: build: runs-on: macos-latest - strategy: - matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] steps: - uses: actions/checkout@master - - name: Set up Ruby - uses: actions/setup-ruby@v1 - with: - version: ${{ matrix.ruby }} - name: Build and test with Rake run: | gem install minitest From db19b5651b1d184c6ed5dab48baeb449f49c2f9c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:17:30 +0900 Subject: [PATCH 013/334] Split install and test tasks. --- .github/workflows/macos.yml | 8 ++++---- .github/workflows/ubuntu.yml | 8 ++++---- .github/workflows/windows.yml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 3d7f3d93d..b1d5cb47c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@master - - name: Build and test with Rake - run: | - gem install minitest - ruby -Ilib exe/rake + - name: Install dependencies + run: gem install minitest + - name: Run test + run: ruby -Ilib exe/rake diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f186d5e24..e42be3dda 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-ruby@v1 with: version: ${{ matrix.ruby }} - - name: Build and test with Rake - run: | - gem install minitest - ruby -Ilib exe/rake + - name: Install dependencies + run: gem install minitest + - name: Run test + run: ruby -Ilib exe/rake diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c0a2c4b39..6fea96fb7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-ruby@v1 with: version: ${{ matrix.ruby }} - - name: Build and test with Rake - run: | - gem install minitest - ruby -Ilib exe/rake + - name: Install dependencies + run: gem install minitest + - name: Run test + run: ruby -Ilib exe/rake From 116df91231135540719908a4a607fc8fdb9b20e8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 08:18:48 +0900 Subject: [PATCH 014/334] Removed duplicated tasks with GitHub Actions. --- .travis.yml | 9 +-------- appveyor.yml | 23 ----------------------- azure-pipelines.yml | 11 ----------- 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 appveyor.yml delete mode 100644 azure-pipelines.yml diff --git a/.travis.yml b/.travis.yml index b0bf3ebe3..560a3449a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,12 @@ language: ruby rvm: - - 2.0.0 - - 2.1.10 - - 2.2.10 - - 2.3.8 - - 2.4.5 - - 2.5.3 - - 2.6.1 - ruby-head - jruby-9.2.4.0 - jruby-head matrix: include: - - rvm: 2.5.3 + - rvm: ruby-head env: COVERALLS=yes before_script: diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index fa978bb4a..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -clone_depth: 10 -install: - - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - - gem install minitest -build: off -test_script: - - ruby -Ilib exe/rake -deploy: off -environment: - matrix: - - ruby_version: "200" - - ruby_version: "200-x64" - - ruby_version: "21" - - ruby_version: "21-x64" - - ruby_version: "22" - - ruby_version: "22-x64" - - ruby_version: "23" - - ruby_version: "23-x64" - - ruby_version: "24" - - ruby_version: "24-x64" - - ruby_version: "25" - - ruby_version: "25-x64" diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 19cce3eeb..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,11 +0,0 @@ -jobs: -- job: macOS - pool: - vmImage: 'macos-10.13' - steps: - - script: | - gem install bundler - bundle install --retry=3 --jobs=4 - displayName: 'bundle install' - - script: ruby -Ilib exe/rake - displayName: 'ruby -Ilib exe/rake' From 81c9ca24c9371eb9bdf3ea118a9cdd20cb9ba601 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 09:21:53 +0900 Subject: [PATCH 015/334] Removed the badge of appveyor. --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index ab136b85d..58e504e33 100644 --- a/README.rdoc +++ b/README.rdoc @@ -3,7 +3,7 @@ home :: https://github.com/ruby/rake bugs :: https://github.com/ruby/rake/issues docs :: https://ruby.github.io/rake -build status :: {travis-ci}[https://travis-ci.org/ruby/rake] {appveyor}[https://ci.appveyor.com/project/ruby/rake] +build status :: {travis-ci}[https://travis-ci.org/ruby/rake] == Description From e3c306c4a8d67e381d1abe1ac66b233066798fd0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 13:59:05 +0900 Subject: [PATCH 016/334] Try to use rvm on GitHub Actions --- .github/workflows/ubuntu-rvm.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ubuntu-rvm.yml diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml new file mode 100644 index 000000000..9eb37efc6 --- /dev/null +++ b/.github/workflows/ubuntu-rvm.yml @@ -0,0 +1,28 @@ +name: ubuntu-rvm + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ 'jruby-head', 'jruby-9.2.4.0', 'ruby-head' ] + 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 From c2868b7728e4907d38d2a1b07ba8f7fb5100b80a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 14:04:52 +0900 Subject: [PATCH 017/334] Enabled coveralls service on macOS env. --- .github/workflows/macos.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b1d5cb47c..f567d63d2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -10,4 +10,6 @@ jobs: - name: Install dependencies run: gem install minitest - name: Run test + env: + COVERALLS: "yes" run: ruby -Ilib exe/rake From 516c95e159d9d43f86b5bf72b43d0ccd46b8f398 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 14:08:08 +0900 Subject: [PATCH 018/334] Good bye Travis. Thanks for your contribution. --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 560a3449a..000000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: ruby -rvm: - - ruby-head - - jruby-9.2.4.0 - - jruby-head - -matrix: - include: - - rvm: ruby-head - env: COVERALLS=yes - -before_script: - - unset JRUBY_OPTS - - unset _JAVA_OPTIONS - - if ruby -e "exit RUBY_VERSION >= '2.3.0'"; then gem update --system=3.0.1; else gem update --system=2.7.8; fi - -script: ruby -Ilib exe/rake From d06f086872bb6770614f58bae40f3781f76f574b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 09:24:05 +0900 Subject: [PATCH 019/334] Use Gemfile instead of Gem::Specification#add_development_dependency. --- Gemfile | 8 ++++++++ rake.gemspec | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index b4e2a20bb..f0eb2bc9f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,11 @@ source "https://rubygems.org" gemspec + +group :development do + gem "bundler" + gem "minitest" + gem "rdoc" + gem "coveralls" + gem "rubocop" +end diff --git a/rake.gemspec b/rake.gemspec index 66c567ca9..1fb4515f1 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -33,10 +33,4 @@ Rake has the following features: s.rubygems_version = "2.6.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze) s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] - - s.add_development_dependency(%q.freeze) - s.add_development_dependency(%q.freeze) - s.add_development_dependency(%q.freeze) - s.add_development_dependency(%q.freeze) - s.add_development_dependency(%q.freeze) end From 74262fe6f0304aabd9b5fc250acbef0bd2133da7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 09:24:37 +0900 Subject: [PATCH 020/334] Removed rdoc. --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index f0eb2bc9f..8bcbf50a7 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ gemspec group :development do gem "bundler" gem "minitest" - gem "rdoc" gem "coveralls" gem "rubocop" end From 3e0c46b01e2b7d7fb6bcd9ee15c3cd291a7e79c8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 10 Aug 2019 15:21:37 +0900 Subject: [PATCH 021/334] Removed status badge of Travis. --- README.rdoc | 1 - 1 file changed, 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 58e504e33..5f0278d8e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -3,7 +3,6 @@ home :: https://github.com/ruby/rake bugs :: https://github.com/ruby/rake/issues docs :: https://ruby.github.io/rake -build status :: {travis-ci}[https://travis-ci.org/ruby/rake] == Description From b7da5b97cacd700fd7c9538a3127809308c49bb8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:19:51 +0900 Subject: [PATCH 022/334] Use the latest version of JRuby --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 9eb37efc6..07138f092 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.4.0', 'ruby-head' ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head' ] steps: - uses: actions/checkout@master - name: Set up RVM From 2c1a7ec6666a6e8bf5e329d0a82d278008554a08 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:20:31 +0900 Subject: [PATCH 023/334] Added the old versions --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 07138f092..09988add6 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head' ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', "2.0", "2.1", "2.2", "2.3" ] steps: - uses: actions/checkout@master - name: Set up RVM From 124de86913972c064b628b83be8ffc539e1f01f3 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:25:49 +0900 Subject: [PATCH 024/334] Set the explicitly versions. --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 09988add6..0b6bbae68 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', "2.0", "2.1", "2.2", "2.3" ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', "2.0.0-p648", "2.1.10", "2.2.10", "2.3.8" ] steps: - uses: actions/checkout@master - name: Set up RVM From 663acd5e5b3af905af4bd018967d7d9663696c41 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:33:07 +0900 Subject: [PATCH 025/334] There is no binaries of 2.0 and 2.1 on RVM --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 0b6bbae68..b5dce9e0f 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', "2.0.0-p648", "2.1.10", "2.2.10", "2.3.8" ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', 2.2.10", "2.3.8" ] steps: - uses: actions/checkout@master - name: Set up RVM From e7b12dfe554d81dcd906f0a53b3cbd9ddc0c5f38 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:34:51 +0900 Subject: [PATCH 026/334] Added truffleruby --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index b5dce9e0f..1d7aa2a33 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', 2.2.10", "2.3.8" ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', 2.2.10", "2.3.8" ] steps: - uses: actions/checkout@master - name: Set up RVM From c728f8f40565618ce0274fcf7a0c1f2838007bbc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:40:33 +0900 Subject: [PATCH 027/334] 2.3 is provided by GitHub Actions, We need to switch 2.1. --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 1d7aa2a33..2bebfd10b 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', 2.2.10", "2.3.8" ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', '2.2.10', '2.1.10' ] steps: - uses: actions/checkout@master - name: Set up RVM From ec19e59ac7fa41feed38a0bc95040666713c580f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 19 Aug 2019 20:43:23 +0900 Subject: [PATCH 028/334] 2.1 is not provided by binary installation --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 2bebfd10b..b807d35d0 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', '2.2.10', '2.1.10' ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', '2.2.10' ] steps: - uses: actions/checkout@master - name: Set up RVM From f19222ffae9168d4c4d2867f14de06df89febad2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 20 Aug 2019 09:39:04 +0900 Subject: [PATCH 029/334] Removed truffleruby temporary. https://github.com/oracle/truffleruby/issues/1739#issuecomment-522546333 --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index b807d35d0..5b5cf8391 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'truffleruby', 'ruby-head', '2.2.10' ] + ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', '2.2.10' ] steps: - uses: actions/checkout@master - name: Set up RVM From f4c27adbaff841c2fd3b7e66e827468f3e38fab5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 26 Aug 2019 22:05:04 +0900 Subject: [PATCH 030/334] Try to use setup-ruby on macos --- .github/workflows/macos.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f567d63d2..1c52cc0c3 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,8 +5,15 @@ on: [push] jobs: build: runs-on: macos-latest + strategy: + matrix: + ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] steps: - uses: actions/checkout@master + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + version: ${{ matrix.ruby }} - name: Install dependencies run: gem install minitest - name: Run test From 4d745f83ad15827e2cb92329356ccc24dcb8bbcd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 31 Aug 2019 22:00:51 +0900 Subject: [PATCH 031/334] Drop old ruby versions which are no longer tested --- rake.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.gemspec b/rake.gemspec index 1fb4515f1..20591cb36 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -29,7 +29,7 @@ Rake has the following features: s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } s.require_paths = ["lib".freeze] - s.required_ruby_version = Gem::Requirement.new(">= 2.0.0".freeze) + s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze) s.rubygems_version = "2.6.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze) s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] From a24f841926b182032fe6bd493c28d2f865cf5e5e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 31 Aug 2019 23:59:57 +0900 Subject: [PATCH 032/334] Removed stale skips --- test/test_rake_application.rb | 3 --- test/test_rake_backtrace.rb | 2 -- test/test_rake_file_list.rb | 1 - test/test_rake_task_with_arguments.rb | 3 --- 4 files changed, 9 deletions(-) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index 27645ea12..8514da354 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -77,9 +77,6 @@ def test_display_exception_details_bad_encoding end def test_display_exception_details_cause - skip "Exception#cause not implemented" unless - Exception.method_defined? :cause - begin raise "cause a" rescue diff --git a/test/test_rake_backtrace.rb b/test/test_rake_backtrace.rb index 27e3cecb7..05a2dfda1 100644 --- a/test/test_rake_backtrace.rb +++ b/test/test_rake_backtrace.rb @@ -13,7 +13,6 @@ def test_bin_rake_suppressed def test_system_dir_suppressed path = RbConfig::CONFIG["rubylibprefix"] - skip if path.nil? path = File.expand_path path paths = [path + ":12"] @@ -25,7 +24,6 @@ def test_system_dir_suppressed def test_near_system_dir_isnt_suppressed path = RbConfig::CONFIG["rubylibprefix"] - skip if path.nil? path = File.expand_path path paths = [" " + path + ":12"] diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 97ab99828..853ebc8d9 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -212,7 +212,6 @@ def test_exclude_with_string_return_on_create end def test_exclude_curly_bracket_pattern - skip "brace pattern matches not supported" unless defined? File::FNM_EXTGLOB fl = FileList["*"].exclude("{abc,xyz}.c") assert_equal %w[abc.h abc.x cfiles existing x.c xyzzy.txt], fl end diff --git a/test/test_rake_task_with_arguments.rb b/test/test_rake_task_with_arguments.rb index 46edcd112..36dfa2646 100644 --- a/test/test_rake_task_with_arguments.rb +++ b/test/test_rake_task_with_arguments.rb @@ -82,9 +82,6 @@ def test_actions_of_various_arity_are_ok_with_args end def test_actions_adore_keywords - # A brutish trick to avoid parsing. Remove it once support for 1.9 and 2.0 is dropped - # https://ci.appveyor.com/project/ruby/rake/build/1.0.301 - skip "Keywords aren't a feature in this version" if RUBY_VERSION =~ /^1|^2\.0/ # https://github.com/ruby/rake/pull/174#issuecomment-263460761 skip if jruby9? eval <<-RUBY, binding, __FILE__, __LINE__+1 From 6c0626da3a7af0cba1bdead219e96e5689dc1540 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 31 Aug 2019 23:48:47 +0900 Subject: [PATCH 033/334] Reduce repeated code --- lib/rake/file_utils.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb index dc434c8d9..00c9c9dca 100644 --- a/lib/rake/file_utils.rb +++ b/lib/rake/file_utils.rb @@ -111,16 +111,14 @@ def ruby(*args, &block) # Attempt to do a normal file link, but fall back to a copy if the link # fails. def safe_ln(*args) - if !LN_SUPPORTED[0] - cp(*args) - else + if LN_SUPPORTED[0] begin - ln(*args) + return ln(*args) rescue StandardError, NotImplementedError LN_SUPPORTED[0] = false - cp(*args) end end + cp(*args) end # Split a file path into individual directory names. From baa23cc8a8cc624bc8f46c8a55d2f0caade568ea Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 31 Aug 2019 22:24:24 +0900 Subject: [PATCH 034/334] Update keyword arguments merger --- lib/rake/clean.rb | 4 ++-- lib/rake/file_utils.rb | 13 ++++++------- lib/rake/file_utils_ext.rb | 23 ++++++----------------- lib/rake/task.rb | 6 +++++- test/test_rake_file_utils.rb | 16 ++++++++++++++++ 5 files changed, 35 insertions(+), 27 deletions(-) diff --git a/lib/rake/clean.rb b/lib/rake/clean.rb index 5af44015e..b52e832a9 100644 --- a/lib/rake/clean.rb +++ b/lib/rake/clean.rb @@ -28,10 +28,10 @@ def cleanup_files(file_names) end end - def cleanup(file_name, opts={}) + def cleanup(file_name, **opts) begin opts = { verbose: Rake.application.options.trace }.merge(opts) - rm_r file_name, opts + rm_r file_name, **opts rescue StandardError => ex puts "Failed to remove #{file_name}: #{ex}" unless file_already_gone?(file_name) end diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb index 00c9c9dca..e979eedb2 100644 --- a/lib/rake/file_utils.rb +++ b/lib/rake/file_utils.rb @@ -97,12 +97,11 @@ def set_verbose_option(options) # :nodoc: # Example: # ruby %{-pe '$_.upcase!' 1 - sh(*([RUBY] + args + [options]), &block) + sh(RUBY, *args, **options, &block) else - sh("#{RUBY} #{args.first}", options, &block) + sh("#{RUBY} #{args.first}", **options, &block) end end @@ -110,15 +109,15 @@ def ruby(*args, &block) # Attempt to do a normal file link, but fall back to a copy if the link # fails. - def safe_ln(*args) + def safe_ln(*args, **options) if LN_SUPPORTED[0] begin - return ln(*args) + return options.empty? ? ln(*args) : ln(*args, **options) rescue StandardError, NotImplementedError LN_SUPPORTED[0] = false end end - cp(*args) + options.empty? ? cp(*args) : cp(*args, **options) end # Split a file path into individual directory names. diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb index bf558b749..e91ad595f 100644 --- a/lib/rake/file_utils_ext.rb +++ b/lib/rake/file_utils_ext.rb @@ -23,19 +23,18 @@ class << self opts = FileUtils.options_of name default_options = [] if opts.include?("verbose") - default_options << ":verbose => FileUtilsExt.verbose_flag" + default_options << "verbose: FileUtilsExt.verbose_flag" end if opts.include?("noop") - default_options << ":noop => FileUtilsExt.nowrite_flag" + default_options << "noop: FileUtilsExt.nowrite_flag" end next if default_options.empty? module_eval(<<-EOS, __FILE__, __LINE__ + 1) - def #{name}( *args, &block ) - super( - *rake_merge_option(args, - #{default_options.join(', ')} - ), &block) + def #{name}(*args, **options, &block) + super(*args, + #{default_options.join(', ')}, + **options, &block) end EOS end @@ -113,16 +112,6 @@ def when_writing(msg=nil) end end - # Merge the given options with the default values. - def rake_merge_option(args, defaults) - if Hash === args.last - defaults.update(args.last) - args.pop - end - args.push defaults - args - end - # Send the message to the default rake output (which is $stderr). def rake_output_message(message) $stderr.puts(message) diff --git a/lib/rake/task.rb b/lib/rake/task.rb index 7629732f6..80824f37b 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -274,7 +274,11 @@ def execute(args=nil) end application.trace "** Execute #{name}" if application.options.trace application.enhance_with_matching_rule(name) if @actions.empty? - @actions.each { |act| act.call(self, args) } + if opts = Hash.try_convert(args) and !opts.empty? + @actions.each { |act| act.call(self, args, **opts)} + else + @actions.each { |act| act.call(self, args)} + end end # Is this task needed? diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 7e9674fdc..ebedd56b2 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -39,6 +39,22 @@ def test_rm_filelist refute File.exist?("b") end + def test_rm_nowrite + create_file("a") + nowrite(true) { + rm_rf "a" + } + assert File.exist?("a") + nowrite(false) { + rm_rf "a", noop: true + } + assert File.exist?("a") + nowrite(true) { + rm_rf "a", noop: false + } + refute File.exist?("a") + end + def test_ln open("a", "w") { |f| f.puts "TEST_LN" } From ab835523b29543092e31a81d7d620b7d90b1678c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 9 Sep 2019 15:54:11 +0900 Subject: [PATCH 035/334] bump version to 13.0.0.pre.1 --- History.rdoc | 15 +++++++++++++++ lib/rake/version.rb | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/History.rdoc b/History.rdoc index 16b6331a1..afdfde5ac 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,18 @@ +=== 13.0.0.pre.1 + +==== Enhancements + +* Follows recent changes on keyword arguments in ruby 2.7. + Pull Request #326 by nobu +* Make `PackageTask` be able to omit parent directory while packing files + Pull Request #310 by tonytonyjan +* Add order only dependency + Pull Request #269 by take-cheeze + +==== Compatibility changes + +* Drop old ruby versions(< 2.2) + === 12.3.3 ==== Bug fixes diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 6014e9322..b0d7dfa64 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "12.3.3" + VERSION = "13.0.0.pre.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From c84887d4607c672fda66b62ba4b1c970ac0ce94f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 10 Sep 2019 19:13:28 +0900 Subject: [PATCH 036/334] Use RUBY insted of BUNDLE_RUBY for test-bundled-gems of ruby/ruby. --- test/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index 64f7db7e2..32456fde4 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -28,7 +28,7 @@ class TaskManager include Rake::TaskManager end - RUBY = File.realpath(ENV["BUNDLE_RUBY"] || Gem.ruby) + RUBY = File.realpath(ENV["RUBY"] || Gem.ruby) def setup ARGV.clear From d8aba43cfe7c42b16856c85dcc6ee3e2b9aff01c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 24 Sep 2019 21:27:05 +0900 Subject: [PATCH 037/334] Prepare to release rake 13 --- History.rdoc | 2 +- lib/rake/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/History.rdoc b/History.rdoc index afdfde5ac..3d0b53d1d 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,4 +1,4 @@ -=== 13.0.0.pre.1 +=== 13.0.0 ==== Enhancements diff --git a/lib/rake/version.rb b/lib/rake/version.rb index b0d7dfa64..7f47740c1 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.0.pre.1" + VERSION = "13.0.0" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 00aacdcf70309a17de2580fb380ed29f2d0fb6f7 Mon Sep 17 00:00:00 2001 From: Matthew Bellantoni Date: Fri, 27 Sep 2019 16:18:12 -0400 Subject: [PATCH 038/334] Fix an incorrectly resolved arg pattern --- lib/rake/task_manager.rb | 4 ++-- test/test_rake_task_manager_argument_resolution.rb | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb index 1d3cb1cfa..6da31f97f 100644 --- a/lib/rake/task_manager.rb +++ b/lib/rake/task_manager.rb @@ -133,8 +133,8 @@ def resolve_args_with_dependencies(args, hash) # :nodoc: deps = value || [] else task_name = args.shift - arg_names = key - deps = value + arg_names = key || args.shift|| [] + deps = value || [] end deps = [deps] unless deps.respond_to?(:to_ary) [task_name, arg_names, deps, order_only] diff --git a/test/test_rake_task_manager_argument_resolution.rb b/test/test_rake_task_manager_argument_resolution.rb index 6539343ac..21e28a951 100644 --- a/test/test_rake_task_manager_argument_resolution.rb +++ b/test/test_rake_task_manager_argument_resolution.rb @@ -8,9 +8,16 @@ def test_good_arg_patterns assert_equal [:t, [], [:x], nil], task(t: :x) assert_equal [:t, [], [:x, :y], nil], task(t: [:x, :y]) + assert_equal [:t, [], [], [:m]], task(:t, order_only: [:m]) + assert_equal [:t, [], [:x, :y], [:m, :n]], task(t: [:x, :y], order_only: [:m, :n]) + assert_equal [:t, [:a, :b], [], nil], task(:t, [:a, :b]) assert_equal [:t, [:a, :b], [:x], nil], task(:t, [:a, :b] => :x) assert_equal [:t, [:a, :b], [:x, :y], nil], task(:t, [:a, :b] => [:x, :y]) + + assert_equal [:t, [:a, :b], [], [:m]], task(:t, [:a, :b], order_only: [:m]) + assert_equal [:t, [:a, :b], [:x], [:m]], task(:t, [:a, :b] => :x, order_only: [:m]) + assert_equal [:t, [:a, :b], [:x, :y], [:m, :n]], task(:t, [:a, :b] => [:x, :y], order_only: [:m, :n]) end def task(*args) From 46a8f7cbd4072431eb16e8e0858d556797ce677e Mon Sep 17 00:00:00 2001 From: Matthew Bellantoni Date: Fri, 27 Sep 2019 16:23:58 -0400 Subject: [PATCH 039/334] Update comments to reflect the current state --- lib/rake/task_manager.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb index 6da31f97f..97e3b9459 100644 --- a/lib/rake/task_manager.rb +++ b/lib/rake/task_manager.rb @@ -83,8 +83,8 @@ def synthesize_file_task(task_name) # :nodoc: define_task(Rake::FileTask, task_name) end - # Resolve the arguments for a task/rule. Returns a triplet of - # [task_name, arg_name_list, prerequisites]. + # Resolve the arguments for a task/rule. Returns a tuple of + # [task_name, arg_name_list, prerequisites, order_only_prerequisites]. def resolve_args(args) if args.last.is_a?(Hash) deps = args.pop @@ -118,8 +118,11 @@ def resolve_args_without_dependencies(args) # # The patterns recognized by this argument resolving function are: # + # task :t, order_only: [:e] # task :t => [:d] + # task :t => [:d], order_only: [:e] # task :t, [a] => [:d] + # task :t, [a] => [:d], order_only: [:e] # def resolve_args_with_dependencies(args, hash) # :nodoc: fail "Task Argument Error" if From c3953d4b2935895e1bb4596c435653d3a865711a Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Wed, 2 Oct 2019 23:06:46 +1000 Subject: [PATCH 040/334] Add project metadata to the gemspec As per https://guides.rubygems.org/specification-reference/#metadata, add metadata to the gemspec file. This'll allow people to more easily access the source code, raise issues and read the changelog. These `bug_tracker_uri`, `changelog_uri`, `documentation_uri`, and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/rake and be available via the Rubygems API after the next release. --- rake.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rake.gemspec b/rake.gemspec index 20591cb36..ecdec7299 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -23,6 +23,13 @@ Rake has the following features: s.homepage = "https://github.com/ruby/rake".freeze s.licenses = ["MIT".freeze] + s.metadata = { + "bug_tracker_uri" => "https://github.com/ruby/rake/issues", + "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc", + "documentation_uri" => "https://ruby.github.io/rake", + "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}", + } + s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - %w[.rubocop.yml .gitignore .travis.yml appveyor.yml] s.bindir = "exe" From 4dc6282eb24c0117a012d07744ea1bbcae1b3a79 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 4 Oct 2019 09:06:44 -0700 Subject: [PATCH 041/334] Skip a taint test on Ruby 2.7 Ruby 2.7 is deprecating taint, and taint will no longer have an effect. See https://bugs.ruby-lang.org/issues/16131. This just skips the test for FileList#clone and #dup copying the taint flag on Ruby 2.7+. --- test/test_rake_file_list.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 853ebc8d9..eda55d29f 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -496,13 +496,15 @@ def test_clone_and_dup assert_equal ["a", "b", "c"], d end - def test_dup_and_clone_replicate_taint - a = FileList["a", "b", "c"] - a.taint - c = a.clone - d = a.dup - assert c.tainted?, "Clone should be tainted" - assert d.tainted?, "Dup should be tainted" + if RUBY_VERSION < '2.7' + def test_dup_and_clone_replicate_taint + a = FileList["a", "b", "c"] + a.taint + c = a.clone + d = a.dup + assert c.tainted?, "Clone should be tainted" + assert d.tainted?, "Dup should be tainted" + end end def test_duped_items_will_thaw From 8edd860cd0fc9035bda472ef45110a40889b9627 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 12 Nov 2019 12:27:50 +0900 Subject: [PATCH 042/334] Fixed build failure of the latest GitHub Actions --- .github/workflows/macos.yml | 4 ++-- .github/workflows/ubuntu-rvm.yml | 2 +- .github/workflows/ubuntu.yml | 4 ++-- .github/workflows/windows.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1c52cc0c3..2dbc56a36 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,13 +7,13 @@ jobs: runs-on: macos-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] + 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: - version: ${{ matrix.ruby }} + ruby-version: ${{ matrix.ruby }} - name: Install dependencies run: gem install minitest - name: Run test diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index 5b5cf8391..cf3d1d05b 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.8.0', 'ruby-head', '2.2.10' ] + 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 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e42be3dda..b67130ad8 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -7,13 +7,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ] + 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: - version: ${{ matrix.ruby }} + ruby-version: ${{ matrix.ruby }} - name: Install dependencies run: gem install minitest - name: Run test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6fea96fb7..5ced11c45 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Ruby uses: actions/setup-ruby@v1 with: - version: ${{ matrix.ruby }} + ruby-version: ${{ matrix.ruby }} - name: Install dependencies run: gem install minitest - name: Run test From c8251e2299616d8126e4ac7426e0bb87df7e6922 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 12 Nov 2019 12:28:15 +0900 Subject: [PATCH 043/334] Bump version to 13.0.1 --- History.rdoc | 9 +++++++++ lib/rake/version.rb | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/History.rdoc b/History.rdoc index 3d0b53d1d..119747c66 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,12 @@ +=== 13.0.1 + +==== Bug fixes + +* Fixed bug: Reenabled task raises previous exception on second invokation + Pull Request #271 by thorsteneckel +* Fix an incorrectly resolved arg pattern + Pull Request #327 by mjbellantoni + === 13.0.0 ==== Enhancements diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 7f47740c1..b5486ba79 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.0" + VERSION = "13.0.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From c4a50da6217eacaef26d0d34d2e11c551bfe54ba Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 21 Nov 2019 17:24:44 +0100 Subject: [PATCH 044/334] Test Rake on TruffleRuby * See https://github.com/oracle/truffleruby/issues/1739 and f19222ffae9168d4c4d2867f14de06df89febad2. --- .github/workflows/ubuntu-rvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index cf3d1d05b..d938cdb50 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ] + ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'truffleruby', 'ruby-head', '2.3.8', '2.2.10' ] steps: - uses: actions/checkout@master - name: Set up RVM From 4a4bc2ea071d7cb70d83505955a4d9b53f1e1e96 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 21 Nov 2019 17:28:35 +0100 Subject: [PATCH 045/334] Enable GitHub Actions on pull requests --- .github/workflows/macos.yml | 2 +- .github/workflows/ubuntu-rvm.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/windows.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 2dbc56a36..f888bfa33 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,6 +1,6 @@ name: macos -on: [push] +on: [push, pull_request] jobs: build: diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml index d938cdb50..39171322a 100644 --- a/.github/workflows/ubuntu-rvm.yml +++ b/.github/workflows/ubuntu-rvm.yml @@ -1,6 +1,6 @@ name: ubuntu-rvm -on: [push] +on: [push, pull_request] jobs: build: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index b67130ad8..362f91c6c 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,6 +1,6 @@ name: ubuntu -on: [push] +on: [push, pull_request] jobs: build: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5ced11c45..10700a416 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,6 +1,6 @@ name: windows -on: [push] +on: [push, pull_request] jobs: build: From 18508c4845b1c7026e645295f4ceb27a46308347 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 22 Nov 2019 15:50:59 +0100 Subject: [PATCH 046/334] Skip the only failing test on TruffleRuby 19.3.0 * See https://github.com/ruby/rake/pull/331 --- test/test_rake_clean.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index b0b1ad602..1e78a3667 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -4,7 +4,11 @@ class TestRakeClean < Rake::TestCase # :nodoc: def test_clean - load "rake/clean.rb", true + if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION == '19.3.0' + load "rake/clean.rb" # TruffleRuby 19.3 does not set self correctly with wrap=true + else + load "rake/clean.rb", true + end assert Rake::Task["clean"], "Should define clean" assert Rake::Task["clobber"], "Should define clobber" From 1fec8e27731fca0d86fa8cde8f0008cba03402ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 14 Jan 2020 17:41:24 +0100 Subject: [PATCH 047/334] Do not include `.github` directory into released gem I have not tested this change, I have just edited the file via GH, but the point is that currently, the `.github` directory is included in released gem, which is probably mistake. --- rake.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.gemspec b/rake.gemspec index ecdec7299..75321497d 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -30,7 +30,7 @@ Rake has the following features: "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}", } - s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - + s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.github)/}) } - %w[.rubocop.yml .gitignore .travis.yml appveyor.yml] s.bindir = "exe" s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } From 5dd9db024e525177b34199d374fcffb3ca4aafb8 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 6 Feb 2020 15:52:02 +0100 Subject: [PATCH 048/334] Improve version check in test_rake_clean.rb --- test/test_rake_clean.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index 1e78a3667..dffab932d 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -4,7 +4,7 @@ class TestRakeClean < Rake::TestCase # :nodoc: def test_clean - if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION == '19.3.0' + if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION.start_with?('19.3.') load "rake/clean.rb" # TruffleRuby 19.3 does not set self correctly with wrap=true else load "rake/clean.rb", true From 9e83d30cdc8b442b51698221fb280c91a118488d Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 6 Feb 2020 15:40:36 +0100 Subject: [PATCH 049/334] Use ruby/setup-ruby to simplify CI --- .github/workflows/macos.yml | 7 +++---- .github/workflows/ubuntu-rvm.yml | 28 ---------------------------- .github/workflows/ubuntu.yml | 7 +++---- .github/workflows/windows.yml | 7 +++---- 4 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/ubuntu-rvm.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f888bfa33..fe47348c0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,11 +7,10 @@ jobs: runs-on: macos-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + ruby: [ 2.6, 2.5, 2.4 ] steps: - - uses: actions/checkout@master - - name: Set up Ruby - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml deleted file mode 100644 index 39171322a..000000000 --- a/.github/workflows/ubuntu-rvm.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: ubuntu-rvm - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'truffleruby', '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 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 362f91c6c..94b89a474 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -7,11 +7,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, truffleruby, ruby-head ] steps: - - uses: actions/checkout@master - - name: Set up Ruby - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 10700a416..61b87313c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,11 +7,10 @@ jobs: runs-on: windows-latest strategy: matrix: - ruby: [ '2.6.x', '2.5.x', '2.4.x' ] + ruby: [ 2.6, 2.5, 2.4 ] steps: - - uses: actions/checkout@master - - name: Set up Ruby - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5dd198c76781d05c92cd6df18e0700a14a47aedc Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 16 Feb 2020 16:51:22 +0100 Subject: [PATCH 050/334] Test with jruby-head --- .github/workflows/ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 94b89a474..7622c5bba 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, truffleruby, ruby-head ] + ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From 8bf306586399785e5e4e644fd4c06f13b94fdc21 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Mar 2020 21:10:12 +0900 Subject: [PATCH 051/334] Unify workflow files --- .github/workflows/{ubuntu.yml => test.yml} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename .github/workflows/{ubuntu.yml => test.yml} (81%) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/test.yml similarity index 81% rename from .github/workflows/ubuntu.yml rename to .github/workflows/test.yml index 7622c5bba..f70c12e8a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/test.yml @@ -4,9 +4,10 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] steps: - uses: actions/checkout@v2 From 8ce1c04e98a9d590e7af5a293c5949de22e16420 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Mar 2020 21:15:49 +0900 Subject: [PATCH 052/334] exclude truffleruby and windows --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f70c12e8a..139a136d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,9 @@ jobs: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + exclude: + - os: windows-latest + ruby: truffleruby steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From 1b3cc29baeaf9aef4894fd1c1f4047bf543c297a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Mar 2020 21:21:14 +0900 Subject: [PATCH 053/334] indent --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 139a136d6..d876810c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,9 @@ jobs: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] - exclude: - - os: windows-latest - ruby: truffleruby + exclude: + - os: windows-latest + ruby: truffleruby steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From 6c07d631b8f53ae09ad5b7fe33f908108ba4e5e5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Mar 2020 21:27:37 +0900 Subject: [PATCH 054/334] Allow failure with JRuby head --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d876810c2..2a0da57ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,3 +21,4 @@ jobs: run: gem install minitest - name: Run test run: ruby -Ilib exe/rake + continue-on-error: ${{ matrix.ruby == 'jruby-head' }} From 7be2afeae8b74e697a41d349a82bb0601f872dd6 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Mar 2020 22:17:54 +0900 Subject: [PATCH 055/334] exclude jruby and windows --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a0da57ce..a76aa0c87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,10 @@ jobs: exclude: - os: windows-latest ruby: truffleruby + - os: windows-latest + ruby: jruby-head + - os: windows-latest + ruby: jruby steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 @@ -21,4 +25,3 @@ jobs: run: gem install minitest - name: Run test run: ruby -Ilib exe/rake - continue-on-error: ${{ matrix.ruby == 'jruby-head' }} From 6a8243547a705aceffc414857b42f8ea94417327 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Sat, 18 Apr 2020 01:49:31 -0400 Subject: [PATCH 056/334] rule learns to accept Symbols as a prereq name rules presently expect string names as their prereqs (among others: Procs/Methods, RegExp patterns, or pathmap specs) This adds the conventional ability for a prereq task to be specified using a Symbol as is common with non-file-based tasks. --- lib/rake/task_manager.rb | 4 ++-- test/test_rake_rules.rb | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb index 97e3b9459..0db5c241e 100644 --- a/lib/rake/task_manager.rb +++ b/lib/rake/task_manager.rb @@ -300,8 +300,8 @@ def make_sources(task_name, task_pattern, extensions) when /^\./ source = task_name.sub(task_pattern, ext) source == ext ? task_name.ext(ext) : source - when String - ext + when String, Symbol + ext.to_s when Proc, Method if ext.arity == 1 ext.call(task_name) diff --git a/test/test_rake_rules.rb b/test/test_rake_rules.rb index bfb8e775f..e20df9350 100644 --- a/test/test_rake_rules.rb +++ b/test/test_rake_rules.rb @@ -80,6 +80,17 @@ def test_rule_prereqs_can_be_created_by_string assert_equal [OBJFILE], @runs end + def test_rule_prereqs_can_be_created_by_symbol + task :nonfile do |t| + @runs << t.name + end + rule ".o" => :nonfile do |t| + @runs << t.name + end + Task[OBJFILE].invoke + assert_equal ["nonfile", OBJFILE], @runs + end + def test_plain_strings_as_dependents_refer_to_files create_file(SRCFILE) rule ".o" => SRCFILE do |t| From 063950d6f1bed23243037c8838dc7306b0dbf877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 12 Jun 2020 12:34:03 +0200 Subject: [PATCH 057/334] Simplify default rake test loader Unless I'm missing something, we can require `rake_test_loader` directly. It's also safer, because there's no chance of requiring the file of a different copy of `rake`, and faster. --- lib/rake/testtask.rb | 37 +------------------------------------ test/test_rake_test_task.rb | 2 +- 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index 537627567..6150f2f6e 100644 --- a/lib/rake/testtask.rb +++ b/lib/rake/testtask.rb @@ -181,44 +181,9 @@ def run_code # :nodoc: when :testrb "-S testrb" when :rake - "#{rake_include_arg} \"#{rake_loader}\"" + "-r#{__dir__}/rake_test_loader" end end - def rake_loader # :nodoc: - find_file("rake/rake_test_loader") or - fail "unable to find rake test loader" - end - - def find_file(fn) # :nodoc: - $LOAD_PATH.each do |path| - file_path = File.join(path, "#{fn}.rb") - return file_path if File.exist? file_path - end - nil - end - - def rake_include_arg # :nodoc: - spec = Gem.loaded_specs["rake"] - if spec.respond_to?(:default_gem?) && spec.default_gem? - "" - else - "-I\"#{rake_lib_dir}\"" - end - end - - def rake_lib_dir # :nodoc: - find_dir("rake") or - fail "unable to find rake lib" - end - - def find_dir(fn) # :nodoc: - $LOAD_PATH.each do |path| - file_path = File.join(path, "#{fn}.rb") - return path if File.exist? file_path - end - nil - end - end end diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index 2fd1c1526..8f7d13f84 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -128,7 +128,7 @@ def test_run_code_rake t.loader = :rake end - assert_match(/\A-I".*?" ".*?"\Z/, test_task.run_code) + assert_match(/\A-r.*?\Z/, test_task.run_code) ensure Gem.loaded_specs["rake"] = rake end From bfdf462b0b4d6d12aa906f3a6f8ba1372e77e26e Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 12 Jun 2020 08:52:41 -0700 Subject: [PATCH 058/334] Fix tests to work with current FileUtils Historically, FileUtils logged verbose output to stderr instead of stdout. This was fixed in FileUtils to log verbose output to stdout (since it isn't an error). This commit adjusts the tests to handle both FileUtils versions. --- test/test_rake_clean.rb | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index dffab932d..654b95258 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -40,11 +40,20 @@ def test_cleanup_ignores_missing_files def test_cleanup_trace file_name = create_file - assert_output "", "rm -r #{file_name}\n" do + out, err = capture_io do with_trace true do Rake::Cleaner.cleanup(file_name) end end + + if err == "" + # Current FileUtils + assert_equal "rm -r #{file_name}\n", out + else + # Old FileUtils + assert_equal "", out + assert_equal "rm -r #{file_name}\n", err + end end def test_cleanup_without_trace @@ -70,11 +79,18 @@ def test_cleanup_opt_overrides_trace_silent def test_cleanup_opt_overrides_trace_verbose file_name = create_file - assert_output "", "rm -r #{file_name}\n" do + out, err = capture_io do with_trace false do Rake::Cleaner.cleanup(file_name, verbose: true) end end + + if err == "" + assert_equal "rm -r #{file_name}\n", out + else + assert_equal "", out + assert_equal "rm -r #{file_name}\n", err + end end private From 9e8e90db36aff3a9aeff9f911ed67f6a1e80486d Mon Sep 17 00:00:00 2001 From: svl7 Date: Mon, 3 Aug 2020 11:17:43 +0200 Subject: [PATCH 059/334] Update broken links to rake articles from Avdi in README --- README.rdoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rdoc b/README.rdoc index 5f0278d8e..f4b68d921 100644 --- a/README.rdoc +++ b/README.rdoc @@ -82,13 +82,13 @@ Type "rake --help" for all available options. === Presentations and Articles about Rake * Avdi Grimm's rake series: - 1. {Rake Basics}[http://devblog.avdi.org/2014/04/21/rake-part-1-basics/] - 2. {Rake File Lists}[http://devblog.avdi.org/2014/04/22/rake-part-2-file-lists/] - 3. {Rake Rules}[http://devblog.avdi.org/2014/04/23/rake-part-3-rules/] - 4. {Rake Pathmap}[http://devblog.avdi.org/2014/04/24/rake-part-4-pathmap/] - 5. {File Operations}[http://devblog.avdi.org/2014/04/25/rake-part-5-file-operations/] - 6. {Clean and Clobber}[http://devblog.avdi.org/2014/04/28/rake-part-6-clean-and-clobber/] - 7. {MultiTask}[http://devblog.avdi.org/2014/04/29/rake-part-7-multitask/] + 1. {Rake Basics}[https://avdi.codes/rake-part-1-basics/] + 2. {Rake File Lists}[https://avdi.codes/rake-part-2-file-lists-2/] + 3. {Rake Rules}[https://avdi.codes/rake-part-3-rules/] + 4. {Rake Pathmap}[https://avdi.codes/rake-part-4-pathmap/] + 5. {File Operations}[https://avdi.codes/rake-part-5-file-operations/] + 6. {Clean and Clobber}[https://avdi.codes/rake-part-6-clean-and-clobber/] + 7. {MultiTask}[https://avdi.codes/rake-part-7-multitask/] * {Jim Weirich's 2003 RubyConf presentation}[http://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/] * Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html From 49820401e29089fddb95f0499769a40c433b94ca Mon Sep 17 00:00:00 2001 From: Alam <73675883+bahasalien@users.noreply.github.com> Date: Mon, 9 Nov 2020 23:34:09 +0800 Subject: [PATCH 060/334] Update rdoc; HTTP -> HTTPS except www.a-a-p.org still cannot.... --- README.rdoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rdoc b/README.rdoc index f4b68d921..9dc2a0546 100644 --- a/README.rdoc +++ b/README.rdoc @@ -89,20 +89,20 @@ Type "rake --help" for all available options. 5. {File Operations}[https://avdi.codes/rake-part-5-file-operations/] 6. {Clean and Clobber}[https://avdi.codes/rake-part-6-clean-and-clobber/] 7. {MultiTask}[https://avdi.codes/rake-part-7-multitask/] -* {Jim Weirich's 2003 RubyConf presentation}[http://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/] -* Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html +* {Jim Weirich's 2003 RubyConf presentation}[https://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/] +* Martin Fowler's article on Rake: https://martinfowler.com/articles/rake.html == Other Make Re-envisionings ... Rake is a late entry in the make replacement field. Here are links to other projects with similar (and not so similar) goals. -* http://directory.fsf.org/wiki/Bras -- Bras, one of earliest +* https://directory.fsf.org/wiki/Bras -- Bras, one of earliest implementations of "make in a scripting language". -* http://www.a-a-p.org -- Make in Python -* http://ant.apache.org -- The Ant project -* http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System -* http://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool. +* http://http://www.a-a-p.org -- Make in Python +* https://ant.apache.org -- The Ant project +* https://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System +* https://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool. == Credits From efae4f88963229a7c8ee54c3d13af5730993308b Mon Sep 17 00:00:00 2001 From: Alam <73675883+bahasalien@users.noreply.github.com> Date: Mon, 9 Nov 2020 23:40:59 +0800 Subject: [PATCH 061/334] Fix doubled "http://" in line 102 sorry about that.... --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 9dc2a0546..0bcaef000 100644 --- a/README.rdoc +++ b/README.rdoc @@ -99,7 +99,7 @@ other projects with similar (and not so similar) goals. * https://directory.fsf.org/wiki/Bras -- Bras, one of earliest implementations of "make in a scripting language". -* http://http://www.a-a-p.org -- Make in Python +* http://www.a-a-p.org -- Make in Python * https://ant.apache.org -- The Ant project * https://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System * https://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool. From 6b8c70d2b39ac7c952f446d82fcf5e2fe6a09e09 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 19 Dec 2020 16:45:52 +0900 Subject: [PATCH 062/334] History for rake-13.0.2 --- History.rdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/History.rdoc b/History.rdoc index 119747c66..0bd376a9d 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,5 +1,18 @@ === 13.0.1 +==== Enhancements + +* Fix tests to work with current FileUtils + Pull Request #358 by jeremyevans +* Simplify default rake test loader + Pull Request #357 by deivid-rodriguez +* Update rdoc + Pull Request #366 by bahasalien +* Update broken links to rake articles from Avdi in README + Pull Request #360 by svl7 + +=== 13.0.1 + ==== Bug fixes * Fixed bug: Reenabled task raises previous exception on second invokation From 65be0c78c84510be26e4c6abc1a3d12301f583aa Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 19 Dec 2020 16:46:19 +0900 Subject: [PATCH 063/334] Bump version to 13.0.2 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index b5486ba79..5438d3cb6 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.1" + VERSION = "13.0.2" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 37635e61ad2b663542216105ba23042f1e80683c Mon Sep 17 00:00:00 2001 From: SAKATA Sinji Date: Sun, 20 Dec 2020 16:30:11 +0900 Subject: [PATCH 064/334] Fix breaking change of execution order on TestTask Due to #357, execution order on Rake 13.0.2 changes from Rake 13.0.1. Example: ``` Rake::TestTask do |t| t.test_files = [ "test/a.rb", "test/b.rb", ] end ``` On 13.0.2, Rake executes test/b.rb before test/a.rb because test/a.rb are loaded before rake_test_loader.rb. rake_test_loader.rb executes the Ruby code in ARGV using Kernel.#require, but does not execute test/a.rb which is already loaded. In addition, Rake 13.0.1 allows specifying test_files without .rb but 13.0.2 doesn't allows. This commit also fixes this problem. ``` Rake::TestTask do |t| t.test_files = [ "test/setup", "test/a.rb", ] end ``` --- lib/rake/testtask.rb | 2 +- test/test_rake_test_task.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index 6150f2f6e..56521d23d 100644 --- a/lib/rake/testtask.rb +++ b/lib/rake/testtask.rb @@ -181,7 +181,7 @@ def run_code # :nodoc: when :testrb "-S testrb" when :rake - "-r#{__dir__}/rake_test_loader" + "#{__dir__}/rake_test_loader.rb" end end diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index 8f7d13f84..fdb844607 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -128,7 +128,7 @@ def test_run_code_rake t.loader = :rake end - assert_match(/\A-r.*?\Z/, test_task.run_code) + assert_includes test_task.run_code, "lib/rake/rake_test_loader.rb" ensure Gem.loaded_specs["rake"] = rake end From c2eeae2fe2b67170472a1441ebf84d3a238c3361 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 21 Dec 2020 11:12:05 +0900 Subject: [PATCH 065/334] Bump version to 13.0.3 --- History.rdoc | 7 ++++++- lib/rake/version.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/History.rdoc b/History.rdoc index 0bd376a9d..99b863e1d 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,4 +1,9 @@ -=== 13.0.1 +=== 13.0.3 + +* Fix breaking change of execution order on TestTask. + Pull request #368 by ysakasin + +=== 13.0.2 ==== Enhancements diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 5438d3cb6..3d4c5aec9 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.2" + VERSION = "13.0.3" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From cf8b376b02eea9be078462668d6f83f4229849a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 3 Feb 2021 14:35:20 +0100 Subject: [PATCH 066/334] Lazily load `set` This file seems required by `rake` by default. By lazily loading `set`, usages of `rake` that don't use this part of `rake`, don't unnecessarily activate the `set` gem. This seems really minor, I know. But when testing rubygems & bundler, it's interesting for us to be in full control of the gems that are loaded, to make sure that we don't unintentionally activate gems causing our users to be unable to select the version of those gems that they need. --- lib/rake/thread_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/thread_pool.rb b/lib/rake/thread_pool.rb index b01a5efe0..332956670 100644 --- a/lib/rake/thread_pool.rb +++ b/lib/rake/thread_pool.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -require "set" require "rake/promise" @@ -10,6 +9,7 @@ class ThreadPool # :nodoc: all # Creates a ThreadPool object. The +thread_count+ parameter is the size # of the pool. def initialize(thread_count) + require "set" @max_active_threads = [thread_count, 0].max @threads = Set.new @threads_mon = Monitor.new From abfa78889171571bd6781c60a3c201b1715d807f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Feb 2021 14:50:53 +0900 Subject: [PATCH 067/334] Add -C/--directory option the same as GNU make --- lib/rake/application.rb | 7 +++++++ test/test_rake_application_options.rb | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 9ac9b2130..02586ad5e 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -433,6 +433,13 @@ def standard_rake_options # :nodoc: select_tasks_to_show(options, :describe, value) } ], + ["--directory", "-C [DIRECTORY]", + "Change to DIRECTORY before doing anything.", + lambda { |value| + Dir.chdir value + @original_dir = Dir.pwd + } + ], ["--dry-run", "-n", "Do a dry run without executing actions.", lambda { |value| diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 0ca06e264..288085938 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -65,6 +65,28 @@ def test_describe_with_pattern end end + def test_directory + pwd = Dir.pwd + [["--directory"], "--directory=", ["-C"], "-C"].each do |flag| + Dir.mktmpdir do |dir| + begin + flags(flag.dup << dir) do + assert_equal(File.realpath(dir), @app.original_dir) + end + ensure + Dir.chdir(pwd) + end + begin + assert_raises(Errno::ENOENT) do + flags(flag.dup << dir+"/nonexistent") + end + ensure + Dir.chdir(pwd) + end + end + end + end + def test_execute $xyzzy = 0 flags("--execute=$xyzzy=1", "-e $xyzzy=1") do From 90ee756e73661a6c6fa1a182a145d7c5880b5343 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Feb 2021 16:13:48 +0900 Subject: [PATCH 068/334] Add recent ruby versions to test --- .github/workflows/macos.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index fe47348c0..f9db60ef5 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest strategy: matrix: - ruby: [ 2.6, 2.5, 2.4 ] + ruby: [ 3.0, 2.7, 2.6, ruby-head ] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a76aa0c87..d2836a272 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] - ruby: [ 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] exclude: - os: windows-latest ruby: truffleruby diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 61b87313c..d2843c9c3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,7 +7,7 @@ jobs: runs-on: windows-latest strategy: matrix: - ruby: [ 2.6, 2.5, 2.4 ] + ruby: [ 3.0, 2.7, 2.6, ruby-head ] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From 027cef57e15c1c86506af2d5b3f9ab182fe57e97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Feb 2021 16:17:33 +0900 Subject: [PATCH 069/334] Suppress deprecation warning for $\ since ruby 3.0 --- test/test_trace_output.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_trace_output.rb b/test/test_trace_output.rb index 46403870f..4f1a1117e 100644 --- a/test/test_trace_output.rb +++ b/test/test_trace_output.rb @@ -41,13 +41,17 @@ def test_trace_handles_nil_objects end def test_trace_issues_single_io_for_args_multiple_strings_and_alternate_sep + verbose, $VERBOSE = $VERBOSE, nil old_sep = $\ $\ = "\r" + $VERBOSE = verbose spy = PrintSpy.new trace_on(spy, "HI\r", "LO") assert_equal "HI\rLO\r", spy.result assert_equal 1, spy.calls ensure + $VERBOSE = nil $\ = old_sep + $VERBOSE = verbose end end From 1b226631ff24c0fd2fbbfb4d9bd4f2f7acd2ff60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 10 Mar 2021 14:19:33 +0100 Subject: [PATCH 070/334] Remove unnecessary require --- lib/rake/rake_test_loader.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb index f0f7772ba..1707493b8 100644 --- a/lib/rake/rake_test_loader.rb +++ b/lib/rake/rake_test_loader.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -require "rake" # Load the test files from the command line. argv = ARGV.select do |argument| From 99e907ac2d4f602aa656b8b5eb17274a74a6de95 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 1 Apr 2021 16:08:06 +0200 Subject: [PATCH 071/334] CI: use "3.0" to avoid YAML --- .github/workflows/macos.yml | 2 +- .github/workflows/windows.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f9db60ef5..ea5327727 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest strategy: matrix: - ruby: [ 3.0, 2.7, 2.6, ruby-head ] + ruby: [ '3.0', 2.7, 2.6, ruby-head ] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d2843c9c3..e2eb52d74 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,7 +7,7 @@ jobs: runs-on: windows-latest strategy: matrix: - ruby: [ 3.0, 2.7, 2.6, ruby-head ] + ruby: [ '3.0', 2.7, 2.6, ruby-head ] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From b27565101553e929e74a576cc78fcc950ed8b7d4 Mon Sep 17 00:00:00 2001 From: Zac Clay Date: Tue, 6 Apr 2021 16:06:16 -0400 Subject: [PATCH 072/334] Fix grammar in help text For the `--tasks` flag. --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 9ac9b2130..5938463ab 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -568,7 +568,7 @@ def standard_rake_options # :nodoc: ["--tasks", "-T [PATTERN]", "Display the tasks (matching optional PATTERN) " + "with descriptions, then exit. " + - "-AT combination displays all of tasks contained no description.", + "-AT combination displays all the tasks, including those without descriptions.", lambda { |value| select_tasks_to_show(options, :tasks, value) } From 11973e8d31f29aee2e40d874206c9240956f86ed Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 14 Apr 2021 11:20:28 +0900 Subject: [PATCH 073/334] Removed the deprecated test configurations --- .github/workflows/{macos.yml => coverage.yml} | 9 +++------ .github/workflows/windows.yml | 19 ------------------- 2 files changed, 3 insertions(+), 25 deletions(-) rename .github/workflows/{macos.yml => coverage.yml} (64%) delete mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/coverage.yml similarity index 64% rename from .github/workflows/macos.yml rename to .github/workflows/coverage.yml index ea5327727..0aebaa561 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/coverage.yml @@ -1,18 +1,15 @@ -name: macos +name: coverage on: [push, pull_request] jobs: build: - runs-on: macos-latest - strategy: - matrix: - ruby: [ '3.0', 2.7, 2.6, ruby-head ] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby }} + ruby-version: '3.0' - name: Install dependencies run: gem install minitest - name: Run test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index e2eb52d74..000000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: windows - -on: [push, pull_request] - -jobs: - build: - runs-on: windows-latest - strategy: - matrix: - ruby: [ '3.0', 2.7, 2.6, ruby-head ] - steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: gem install minitest - - name: Run test - run: ruby -Ilib exe/rake From 17e69a5e0082d3ae84efbb4c9567756092910d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 11 Nov 2020 17:24:24 +0100 Subject: [PATCH 074/334] Fix rake test loader swallowing useful error information --- lib/rake/rake_test_loader.rb | 31 +++++++++++++++--------------- test/test_rake_rake_test_loader.rb | 20 ++++++++++++++++++- 2 files changed, 34 insertions(+), 17 deletions(-) diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb index 1707493b8..15ffbd2e6 100644 --- a/lib/rake/rake_test_loader.rb +++ b/lib/rake/rake_test_loader.rb @@ -2,24 +2,23 @@ # Load the test files from the command line. argv = ARGV.select do |argument| - begin - case argument - when /^-/ then - argument - when /\*/ then - FileList[argument].to_a.each do |file| - require File.expand_path file - end + case argument + when /^-/ then + argument + when /\*/ then + FileList[argument].to_a.each do |file| + require File.expand_path file + end - false - else - require File.expand_path argument + false + else + path = File.expand_path argument - false - end - rescue LoadError => e - raise unless e.path - abort "\nFile does not exist: #{e.path}\n\n" + abort "\nFile does not exist: #{path}\n\n" unless File.exist?(path) + + require path + + false end end diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index 4423a9b1c..4f481cd28 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -24,7 +24,7 @@ def test_pattern $:.replace orig_loaded_features end - def test_load_error_from_require + def test_load_error_from_missing_test_file out, err = capture_io do ARGV.replace %w[no_such_test_file.rb] @@ -45,6 +45,24 @@ def test_load_error_from_require assert_match expected, err end + def test_load_error_raised_implicitly + File.write("error_test.rb", "require 'superkalifragilisticoespialidoso'") + out, err = capture_io do + ARGV.replace %w[error_test.rb] + + exc = assert_raises(LoadError) do + load @loader + end + if RUBY_ENGINE == "jruby" + assert_equal "no such file to load -- superkalifragilisticoespialidoso", exc.message + else + assert_equal "cannot load such file -- superkalifragilisticoespialidoso", exc.message + end + end + assert_empty out + assert_empty err + end + def test_load_error_raised_explicitly File.write("error_test.rb", "raise LoadError, 'explicitly raised'") out, err = capture_io do From 925ad8a1ec19ac0db4c3f50ece2a506958453487 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 6 Jul 2021 15:36:20 +0900 Subject: [PATCH 075/334] Extract gemspec and removed needless files --- rake.gemspec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/rake.gemspec b/rake.gemspec index 75321497d..7a650f9ed 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -30,8 +30,68 @@ Rake has the following features: "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}", } - s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.github)/}) } - - %w[.rubocop.yml .gitignore .travis.yml appveyor.yml] + s.files = [ + "History.rdoc", + "MIT-LICENSE", + "README.rdoc", + "doc/command_line_usage.rdoc", + "doc/example/Rakefile1", + "doc/example/Rakefile2", + "doc/example/a.c", + "doc/example/b.c", + "doc/example/main.c", + "doc/glossary.rdoc", + "doc/jamis.rb", + "doc/proto_rake.rdoc", + "doc/rake.1", + "doc/rakefile.rdoc", + "doc/rational.rdoc", + "exe/rake", + "lib/rake.rb", + "lib/rake/application.rb", + "lib/rake/backtrace.rb", + "lib/rake/clean.rb", + "lib/rake/cloneable.rb", + "lib/rake/cpu_counter.rb", + "lib/rake/default_loader.rb", + "lib/rake/dsl_definition.rb", + "lib/rake/early_time.rb", + "lib/rake/ext/core.rb", + "lib/rake/ext/string.rb", + "lib/rake/file_creation_task.rb", + "lib/rake/file_list.rb", + "lib/rake/file_task.rb", + "lib/rake/file_utils.rb", + "lib/rake/file_utils_ext.rb", + "lib/rake/invocation_chain.rb", + "lib/rake/invocation_exception_mixin.rb", + "lib/rake/late_time.rb", + "lib/rake/linked_list.rb", + "lib/rake/loaders/makefile.rb", + "lib/rake/multi_task.rb", + "lib/rake/name_space.rb", + "lib/rake/packagetask.rb", + "lib/rake/phony.rb", + "lib/rake/private_reader.rb", + "lib/rake/promise.rb", + "lib/rake/pseudo_status.rb", + "lib/rake/rake_module.rb", + "lib/rake/rake_test_loader.rb", + "lib/rake/rule_recursion_overflow_error.rb", + "lib/rake/scope.rb", + "lib/rake/task.rb", + "lib/rake/task_argument_error.rb", + "lib/rake/task_arguments.rb", + "lib/rake/task_manager.rb", + "lib/rake/tasklib.rb", + "lib/rake/testtask.rb", + "lib/rake/thread_history_display.rb", + "lib/rake/thread_pool.rb", + "lib/rake/trace_output.rb", + "lib/rake/version.rb", + "lib/rake/win32.rb", + "rake.gemspec" + ] s.bindir = "exe" s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } s.require_paths = ["lib".freeze] From c64719150a19bfe459092036c7dd481c42bbf579 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 6 Jul 2021 15:36:55 +0900 Subject: [PATCH 076/334] Don't need to specify Rubygems version --- rake.gemspec | 2 -- 1 file changed, 2 deletions(-) diff --git a/rake.gemspec b/rake.gemspec index 7a650f9ed..8e68a002b 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -97,7 +97,5 @@ Rake has the following features: s.require_paths = ["lib".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze) - s.rubygems_version = "2.6.1".freeze - s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze) s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] end From 0acc575ef1c737e442aadc6d1ea2e3d7051e982a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 6 Jul 2021 15:38:04 +0900 Subject: [PATCH 077/334] Use require_relative to specify release version --- rake.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rake.gemspec b/rake.gemspec index 8e68a002b..20a1db423 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -1,6 +1,5 @@ # frozen_string_literal: true -$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) -require 'rake/version' +require_relative 'lib/rake/version' Gem::Specification.new do |s| s.name = "rake".freeze From b20de7859dc94684ba30006bb5b0008af429fb5f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 6 Jul 2021 20:17:33 +0900 Subject: [PATCH 078/334] Bump version to 13.0.4 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 3d4c5aec9..fed2e5b19 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.3" + VERSION = "13.0.4" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 72ac79629ac1de851f7ee27fbec0a16eddef937d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 7 Jul 2021 09:31:37 +0900 Subject: [PATCH 079/334] History for rake-13.0.4 --- History.rdoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/History.rdoc b/History.rdoc index 99b863e1d..5a1a50aa5 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,10 @@ +=== 13.0.4 + +* Fix rake test loader swallowing useful error information. + Pull request #367 by deivid-rodriguez +* Add -C/--directory option the same as GNU make. + Pull request #376 by nobu + === 13.0.3 * Fix breaking change of execution order on TestTask. From 85c55b49a1ea85840e6f3eb19cc52bf8bd3af62b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 8 Jul 2021 14:46:17 +0900 Subject: [PATCH 080/334] Fixed the regression of #388 --- lib/rake/rake_test_loader.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb index 15ffbd2e6..af4a182a3 100644 --- a/lib/rake/rake_test_loader.rb +++ b/lib/rake/rake_test_loader.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "rake/file_list" + # Load the test files from the command line. argv = ARGV.select do |argument| case argument From 29a3949faca43b8f6b94967160bf1ec429b1113b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 8 Jul 2021 17:58:47 +0900 Subject: [PATCH 081/334] Bump version to v13.0.5 --- History.rdoc | 5 +++++ lib/rake/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/History.rdoc b/History.rdoc index 5a1a50aa5..685f8897c 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,8 @@ +=== 13.0.5 + +* Fixed the regression of #388 + Pull request #389 by hsbt + === 13.0.4 * Fix rake test loader swallowing useful error information. diff --git a/lib/rake/version.rb b/lib/rake/version.rb index fed2e5b19..d1cbdc2a7 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.4" + VERSION = "13.0.5" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 63aacb6c87c9e423102ddd7f7a09292000f911a7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 8 Jul 2021 20:45:08 +0900 Subject: [PATCH 082/334] Added Rake namespace explicitly --- lib/rake/rake_test_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb index af4a182a3..3ecee5d85 100644 --- a/lib/rake/rake_test_loader.rb +++ b/lib/rake/rake_test_loader.rb @@ -8,7 +8,7 @@ when /^-/ then argument when /\*/ then - FileList[argument].to_a.each do |file| + Rake::FileList[argument].to_a.each do |file| require File.expand_path file end From 5c60da8644a9e4f655e819252e3b6ca77f42b7af Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 9 Jul 2021 11:51:50 +0900 Subject: [PATCH 083/334] Bump up Rake-13.0.6 --- History.rdoc | 5 +++++ lib/rake/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/History.rdoc b/History.rdoc index 685f8897c..b8751f9b6 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,8 @@ +=== 13.0.6 + +* Additional fix for #389 + Pull request #390 by hsbt + === 13.0.5 * Fixed the regression of #388 diff --git a/lib/rake/version.rb b/lib/rake/version.rb index d1cbdc2a7..a0bd095c1 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.5" + VERSION = "13.0.6" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From f8afda2b22d296a164a26552b341b400cfdea4a2 Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Thu, 16 Sep 2021 02:56:46 +0200 Subject: [PATCH 084/334] (Performance) Remove unnecessary syscall --- lib/rake/file_task.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rake/file_task.rb b/lib/rake/file_task.rb index db790e39f..ddd9cca34 100644 --- a/lib/rake/file_task.rb +++ b/lib/rake/file_task.rb @@ -19,9 +19,9 @@ def needed? # Time stamp for file task. def timestamp - if File.exist?(name) - File.mtime(name.to_s) - else + begin + File.mtime(name) + rescue Errno::ENOENT Rake::LATE end end From abf5e264649c4df2eacef67fe173b4f501ee802b Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Fri, 17 Sep 2021 04:09:07 +0200 Subject: [PATCH 085/334] (Performance) Remove an unnecessary syscall --- lib/rake/file_task.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/rake/file_task.rb b/lib/rake/file_task.rb index ddd9cca34..c36b49699 100644 --- a/lib/rake/file_task.rb +++ b/lib/rake/file_task.rb @@ -14,7 +14,11 @@ class FileTask < Task # Is this file task needed? Yes if it doesn't exist, or if its time stamp # is out of date. def needed? - !File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all + begin + out_of_date?(File.mtime(name)) || @application.options.build_all + rescue Errno::ENOENT + true + end end # Time stamp for file task. From 3bfd4afc88d0fa957250103dda5d5a64aeff3938 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Thu, 17 Mar 2022 09:12:59 -0700 Subject: [PATCH 086/334] Add Ruby 3.1 to the CI matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2836a272..2d2ee1036 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] - ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] exclude: - os: windows-latest ruby: truffleruby From 0bf1a6b5c2d042e06057fd6fd20f41f5646a7602 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 25 Mar 2022 16:23:20 +0900 Subject: [PATCH 087/334] Added dependabot --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..b18fd2935 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' From 156cd836d480f7445c5031a8d599ca676eb19911 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 25 Mar 2022 19:53:50 +0900 Subject: [PATCH 088/334] Skip test failure with JRuby --- test/test_rake_application_options.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 288085938..92bbeed86 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -200,6 +200,8 @@ def test_require end def test_missing_require + skip if jruby? + ex = assert_raises(LoadError) do flags(["--require", "test/missing"]) do |opts| end From 571dd04f896343a5402047c05af1243f84c290a3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Mar 2022 11:05:18 +0000 Subject: [PATCH 089/334] Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0aebaa561..df65a50e9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d2ee1036..c0e4acf0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} From 24c9d4d0561d6b3e011708ae889969dd99520e96 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 9 May 2022 02:11:52 +0000 Subject: [PATCH 090/334] Remove bin/rake Signed-off-by: Takuya Noguchi --- bin/rake | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 bin/rake diff --git a/bin/rake b/bin/rake deleted file mode 100755 index 9275675e8..000000000 --- a/bin/rake +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'rake' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -bundle_binstub = File.expand_path("../bundle", __FILE__) - -if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ - load(bundle_binstub) - else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") - end -end - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("rake", "rake") From 180938b6b95f406319e1e4a098f1848a6a274381 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 9 May 2022 02:42:16 +0000 Subject: [PATCH 091/334] Apply RuboCop linting for Ruby 2.3 Signed-off-by: Takuya Noguchi --- .rubocop.yml | 9 +++------ Gemfile | 2 +- lib/rake/task.rb | 4 ++-- test/test_rake_clean.rb | 2 +- test/test_rake_file_list.rb | 2 +- test/test_rake_task.rb | 2 +- test/test_rake_test_task.rb | 18 +++++++++--------- 7 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 84d6a7c5b..da0020dbe 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,10 +6,6 @@ AllCops: - rake.gemspec - bin/* -Metrics/LineLength: - Enabled: true - Max: 120 - Style/HashSyntax: Enabled: true @@ -23,8 +19,9 @@ Style/MultilineIfThen: Style/MethodDefParentheses: Enabled: true -Style/BracesAroundHashParameters: +Layout/LineLength: Enabled: true + Max: 120 Layout/IndentationWidth: Enabled: true @@ -35,7 +32,7 @@ Layout/Tab: Layout/EmptyLines: Enabled: true -Layout/TrailingBlankLines: +Layout/TrailingEmptyLines: Enabled: true Layout/TrailingWhitespace: diff --git a/Gemfile b/Gemfile index 8bcbf50a7..1b111915c 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest" gem "coveralls" - gem "rubocop" + gem "rubocop", "~> 0.81.0" end diff --git a/lib/rake/task.rb b/lib/rake/task.rb index ec2c756e0..a8ed24ddf 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -276,9 +276,9 @@ def execute(args=nil) application.trace "** Execute #{name}" if application.options.trace application.enhance_with_matching_rule(name) if @actions.empty? if opts = Hash.try_convert(args) and !opts.empty? - @actions.each { |act| act.call(self, args, **opts)} + @actions.each { |act| act.call(self, args, **opts) } else - @actions.each { |act| act.call(self, args)} + @actions.each { |act| act.call(self, args) } end end diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index 654b95258..8fb6a715e 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -4,7 +4,7 @@ class TestRakeClean < Rake::TestCase # :nodoc: def test_clean - if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION.start_with?('19.3.') + if RUBY_ENGINE == "truffleruby" and RUBY_ENGINE_VERSION.start_with?("19.3.") load "rake/clean.rb" # TruffleRuby 19.3 does not set self correctly with wrap=true else load "rake/clean.rb", true diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index eda55d29f..94572e92b 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -496,7 +496,7 @@ def test_clone_and_dup assert_equal ["a", "b", "c"], d end - if RUBY_VERSION < '2.7' + if RUBY_VERSION < "2.7" def test_dup_and_clone_replicate_taint a = FileList["a", "b", "c"] a.taint diff --git a/test/test_rake_task.rb b/test/test_rake_task.rb index fa4099b07..bffe2cb59 100644 --- a/test/test_rake_task.rb +++ b/test/test_rake_task.rb @@ -126,7 +126,7 @@ def test_can_triple_invoke_after_exception_with_reenable next if !raise_exception raise_exception = false - raise 'Some error' + raise "Some error" end assert_raises(RuntimeError) { t1.invoke } diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index fdb844607..b5b587410 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -171,20 +171,20 @@ def test_task_prerequisites_deps end def test_task_order_only_prerequisites - t = task(a: 'b') { + t = task(a: "b") { :aaa - } | 'c' - b, c = task('b'), task('c') - assert_equal ['b'], t.prerequisites - assert_equal ['c'], t.order_only_prerequisites + } | "c" + b, c = task("b"), task("c") + assert_equal ["b"], t.prerequisites + assert_equal ["c"], t.order_only_prerequisites assert_equal [b, c], t.prerequisite_tasks end def test_task_order_only_prerequisites_key - t = task 'a' => 'b', order_only: ['c'] - b, c = task('b'), task('c') - assert_equal ['b'], t.prerequisites - assert_equal ['c'], t.order_only_prerequisites + t = task "a" => "b", order_only: ["c"] + b, c = task("b"), task("c") + assert_equal ["b"], t.prerequisites + assert_equal ["c"], t.order_only_prerequisites assert_equal [b, c], t.prerequisite_tasks end end From 32bd598e12c5fcf900bcb5e290b9254e0867ff7d Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 9 May 2022 02:59:23 +0000 Subject: [PATCH 092/334] Remove bin/bundle Signed-off-by: Takuya Noguchi --- bin/bundle | 105 ----------------------------------------------------- 1 file changed, 105 deletions(-) delete mode 100755 bin/bundle diff --git a/bin/bundle b/bin/bundle deleted file mode 100755 index 524dfd3f2..000000000 --- a/bin/bundle +++ /dev/null @@ -1,105 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'bundle' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "rubygems" - -m = Module.new do - module_function - - def invoked_as_script? - File.expand_path($0) == File.expand_path(__FILE__) - end - - def env_var_version - ENV["BUNDLER_VERSION"] - end - - def cli_arg_version - return unless invoked_as_script? # don't want to hijack other binstubs - return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update` - bundler_version = nil - update_index = nil - ARGV.each_with_index do |a, i| - if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN - bundler_version = a - end - next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/ - bundler_version = $1 || ">= 0.a" - update_index = i - end - bundler_version - end - - def gemfile - gemfile = ENV["BUNDLE_GEMFILE"] - return gemfile if gemfile && !gemfile.empty? - - File.expand_path("../../Gemfile", __FILE__) - end - - def lockfile - lockfile = - case File.basename(gemfile) - when "gems.rb" then gemfile.sub(/\.rb$/, gemfile) - else "#{gemfile}.lock" - end - File.expand_path(lockfile) - end - - def lockfile_version - return unless File.file?(lockfile) - lockfile_contents = File.read(lockfile) - return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ - Regexp.last_match(1) - end - - def bundler_version - @bundler_version ||= begin - env_var_version || cli_arg_version || - lockfile_version || "#{Gem::Requirement.default}.a" - end - end - - def load_bundler! - ENV["BUNDLE_GEMFILE"] ||= gemfile - - # must dup string for RG < 1.8 compatibility - activate_bundler(bundler_version.dup) - end - - def activate_bundler(bundler_version) - if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0") - bundler_version = "< 2" - end - gem_error = activation_error_handling do - gem "bundler", bundler_version - end - return if gem_error.nil? - require_error = activation_error_handling do - require "bundler/version" - end - return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION)) - warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`" - exit 42 - end - - def activation_error_handling - yield - nil - rescue StandardError, LoadError => e - e - end -end - -m.load_bundler! - -if m.invoked_as_script? - load Gem.bin_path("bundler", "bundle") -end From ea02dbe04fa40f6f9201bd37eac1255ccc6bd8ff Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 9 May 2022 01:36:06 +0000 Subject: [PATCH 093/334] Remove bin/rdoc Signed-off-by: Takuya Noguchi --- CONTRIBUTING.rdoc | 2 +- bin/rdoc | 29 ----------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100755 bin/rdoc diff --git a/CONTRIBUTING.rdoc b/CONTRIBUTING.rdoc index e8430ddb4..b7c81f55d 100644 --- a/CONTRIBUTING.rdoc +++ b/CONTRIBUTING.rdoc @@ -12,7 +12,7 @@ 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, etc. * Run the test suite diff --git a/bin/rdoc b/bin/rdoc deleted file mode 100755 index a952e7988..000000000 --- a/bin/rdoc +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'rdoc' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -bundle_binstub = File.expand_path("../bundle", __FILE__) - -if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ - load(bundle_binstub) - else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") - end -end - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("rdoc", "rdoc") From 9381d4d7ae7ee146f2256616ab9bc39dfac9e207 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 9 May 2022 02:54:07 +0000 Subject: [PATCH 094/334] Apply RuboCop linting for Ruby 2.4 Signed-off-by: Takuya Noguchi --- .rubocop.yml | 5 +++-- Gemfile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index da0020dbe..7a8c25c1f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,7 @@ AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.4 DisabledByDefault: true + SuggestExtensions: false Exclude: - doc/**/*.rb - rake.gemspec @@ -26,7 +27,7 @@ Layout/LineLength: Layout/IndentationWidth: Enabled: true -Layout/Tab: +Layout/IndentationStyle: Enabled: true Layout/EmptyLines: diff --git a/Gemfile b/Gemfile index 1b111915c..8861d8470 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest" gem "coveralls" - gem "rubocop", "~> 0.81.0" + gem "rubocop", "~> 1.12.1" end From c48b94dd1889882a4ac93fa51ff0598a61a35c9f Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Tue, 10 May 2022 11:52:57 +0000 Subject: [PATCH 095/334] Use 'test' as workflow name on Actions Signed-off-by: Takuya Noguchi --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0e4acf0d..9fdeae227 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,9 @@ -name: ubuntu +name: test on: [push, pull_request] jobs: - build: + test: runs-on: ${{ matrix.os }} strategy: matrix: From 81688a729a83eee3f0a56e587b88c93cb3884499 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Fri, 13 May 2022 03:19:04 +0000 Subject: [PATCH 096/334] chore: fix typo in comments Signed-off-by: Takuya Noguchi --- lib/rake/packagetask.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/packagetask.rb b/lib/rake/packagetask.rb index aeff81c29..1b014d1ca 100644 --- a/lib/rake/packagetask.rb +++ b/lib/rake/packagetask.rb @@ -79,7 +79,7 @@ class PackageTask < TaskLib # Zip command for zipped archives. The default is 'zip'. attr_accessor :zip_command - # True if parent directory should be omited (default is false) + # True if parent directory should be omitted (default is false) attr_accessor :without_parent_dir # Create a Package Task with the given name and version. Use +:noversion+ From d7a62ea72160df042010a5953a6405276ecbe430 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Fri, 13 May 2022 03:17:20 +0000 Subject: [PATCH 097/334] docs: update CONTRIBUTING Signed-off-by: Takuya Noguchi --- CONTRIBUTING.rdoc | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING.rdoc b/CONTRIBUTING.rdoc index b7c81f55d..887c74a0a 100644 --- a/CONTRIBUTING.rdoc +++ b/CONTRIBUTING.rdoc @@ -1,7 +1,7 @@ = Source Repository -Rake is currently hosted at github. The github web page is -https://github.com/ruby/rake . The public git clone URL is +Rake is hosted at GitHub. The GitHub Web page is +https://github.com/ruby/rake . The public Git clone URL is https://github.com/ruby/rake.git @@ -12,32 +12,30 @@ 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, etc. + $ bin/setup # Install development dependencies * Run the test suite $ rake -= Rubocop += RuboCop -Rake uses Rubocop to enforce a consistent style on new changes being -proposed. You can check your code with Rubocop using: +Rake uses RuboCop to enforce a consistent style on new changes being +proposed. You can check your code with RuboCop using: - $ ./bin/rubocop + $ bin/rubocop = Issues and Bug Reports Feel free to submit commits or feature requests. If you send a patch, -remember to update the corresponding unit tests. In fact, I prefer -new feature to be submitted in the form of new unit tests. +remember to update the corresponding unit tests. In fact, the team prefers +a new feature to be submitted in the form of new unit tests. For other information, feel free to ask on the ruby-talk mailing list. -If you have found a bug in rake please try with the latest version of rake +If you have found a bug in rake, please try with the latest version of rake before filing an issue. Also check History.rdoc for bug fixes that may have addressed your issue. -When submitting pull requests please check the rake Travis-CI page for test -failures: - - https://travis-ci.org/ruby/rake +When submitting pull requests, please check the status checks on your PR page +to confirm if it says "All checks have passed". From 86bb028adeb129da454e8b62750bd6dd9f3416da Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Tue, 10 May 2022 11:52:01 +0000 Subject: [PATCH 098/334] Add RuboCop job to Actions Signed-off-by: Takuya Noguchi --- .github/workflows/lint.yml | 16 ++++++++++++++++ .rubocop.yml | 1 + 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..762042e9b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,16 @@ +name: lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + bundler-cache: true + - name: Run rubocop + run: bundle exec rubocop diff --git a/.rubocop.yml b/.rubocop.yml index 7a8c25c1f..9f76014d7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,6 +6,7 @@ AllCops: - doc/**/*.rb - rake.gemspec - bin/* + - vendor/**/* Style/HashSyntax: Enabled: true From 5cbc25e6c86b24ac1c9afe7a6bc5ff9c117b2e30 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 19 Jul 2022 14:31:39 +0900 Subject: [PATCH 099/334] Lock minitest-5.15.0 for Ruby 2.2 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8861d8470..777cab330 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec group :development do gem "bundler" - gem "minitest" + gem "minitest", "5.15.0" gem "coveralls" gem "rubocop", "~> 1.12.1" end From efc75f8ba0a87356fdb92b7bec335f54324af88f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 19 Jul 2022 14:34:46 +0900 Subject: [PATCH 100/334] Install minitest-5.15.0 on GHA --- .github/workflows/coverage.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index df65a50e9..cf11c9be5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: with: ruby-version: '3.0' - name: Install dependencies - run: gem install minitest + run: gem install minitest -v "5.15.0" - name: Run test env: COVERALLS: "yes" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fdeae227..48df02b7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,6 @@ jobs: with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies - run: gem install minitest + run: gem install minitest -v "5.15.0" - name: Run test run: ruby -Ilib exe/rake From 4d3b5d7f3b87db1c20fcabf5959eac1419039b21 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 18 Jul 2022 11:13:32 -0700 Subject: [PATCH 101/334] Eagerly require set in thread_pool.rb Lazily requiring it in this matter can break rake whenever a rake task limits access to the file system. For example: ```ruby task :default do Dir.chroot Dir.pwd end ``` One reason to lazily require this is to save on memory, but since Rake::Application appears to always use a thread pool (Rake::Application#run -> top_level -> run_with_threads -> thread_pool), it doesn't looks like lazily requiring actually saves memory in this case. --- lib/rake/thread_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/thread_pool.rb b/lib/rake/thread_pool.rb index 332956670..76aa3b74b 100644 --- a/lib/rake/thread_pool.rb +++ b/lib/rake/thread_pool.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "rake/promise" +require "set" module Rake @@ -9,7 +10,6 @@ class ThreadPool # :nodoc: all # Creates a ThreadPool object. The +thread_count+ parameter is the size # of the pool. def initialize(thread_count) - require "set" @max_active_threads = [thread_count, 0].max @threads = Set.new @threads_mon = Monitor.new From 98dcc9d66fa08d039b0cfa1345b8b6406fc740ef Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 18 Jul 2022 11:29:14 -0700 Subject: [PATCH 102/334] Avoid creating an unnecessary thread pool If the thread_pool does not already exist, there is no point in creating a thread pool just to join the threads in it. This is an alternative fix for #440. --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 02586ad5e..d4e2680f6 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -124,7 +124,7 @@ def run_with_threads yield - thread_pool.join + thread_pool.join if defined?(@thread_pool) if options.job_stats stats = thread_pool.statistics puts "Maximum active threads: #{stats[:max_active_threads]} + main" From e5585e6733e51b9cd6acb6a036134be7d87d2eff Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Mon, 25 Jul 2022 00:41:34 +0000 Subject: [PATCH 103/334] Add credit for maintenance in Rake 12/13 Shows current maintainers to wider community contributors. Signed-off-by: Takuya Noguchi --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 0bcaef000..3fc72dbd1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -116,7 +116,7 @@ other projects with similar (and not so similar) goals. [Eric Hodel] For aid in maintaining rake. -[Hiroshi SHIBATA] Maintainer of Rake 10.X and Rake 11.X +[Hiroshi SHIBATA] Maintainer of Rake 10 and later == License From 3e955f2136bf7dca839a0ee42874d7c96e87128f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 15 Aug 2022 10:52:17 +0200 Subject: [PATCH 104/334] Correct RuboCop offenses --- test/test_rake_file_utils.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 62ba97a60..0fd7de494 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -315,8 +315,8 @@ def test_sh_show_command def test_sh_if_a_command_exits_with_error_status_its_full_output_is_printed verbose false do - standard_output = 'Some output' - standard_error = 'Some error' + standard_output = "Some output" + standard_error = "Some error" shell_command = "ruby -e\"puts '#{standard_output}';STDERR.puts '#{standard_error}';exit false\"" actual_both = capture_subprocess_io do begin @@ -342,13 +342,13 @@ def test_sh_if_a_command_exits_with_error_status_sh_echoes_it_fully end def assert_echoes_fully - long_string = '1234567890' * 10 + long_string = "1234567890" * 10 shell_command = "ruby -e\"'#{long_string}';exit false\"" capture_subprocess_io do begin sh shell_command rescue => ex - assert_match 'Command failed with status', ex.message + assert_match "Command failed with status", ex.message assert_match shell_command, ex.message else flunk From 3bf3cd76301dcb1dd7accefd601674e66372a3ab Mon Sep 17 00:00:00 2001 From: StepSecurity Bot Date: Wed, 30 Nov 2022 04:26:50 +0000 Subject: [PATCH 105/334] [StepSecurity] ci: Harden GitHub Actions Signed-off-by: StepSecurity Bot --- .github/workflows/coverage.yml | 7 +++++-- .github/workflows/lint.yml | 7 +++++-- .github/workflows/test.yml | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index cf11c9be5..53a5fd38d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -2,12 +2,15 @@ name: coverage on: [push, pull_request] +permissions: # added using https://github.com/step-security/secure-workflows + contents: read + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 762042e9b..9e61fb2dd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,13 +2,16 @@ name: lint on: [push, pull_request] +permissions: # added using https://github.com/step-security/secure-workflows + contents: read + jobs: lint: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 48df02b7c..0be5d4dee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,9 @@ name: test on: [push, pull_request] +permissions: # added using https://github.com/step-security/secure-workflows + contents: read + jobs: test: runs-on: ${{ matrix.os }} @@ -17,8 +20,8 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From d31b1ac9e56ed94e2fb083e27fcfc0043a69b2c8 Mon Sep 17 00:00:00 2001 From: Jan Biedermann Date: Wed, 30 Nov 2022 11:17:45 +0100 Subject: [PATCH 106/334] Fix exception when exception has nil backtrace --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index d4e2680f6..f9c2a9f5a 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -215,7 +215,7 @@ def display_exception_details(ex) # :nodoc: display_exception_details_seen << ex display_exception_message_details(ex) - display_exception_backtrace(ex) + display_exception_backtrace(ex) if ex.backtrace display_cause_details(ex.cause) if has_cause?(ex) end From 6218e0cac725be8428902b7de79e11c4ad52bf2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 07:03:05 +0000 Subject: [PATCH 107/334] Bump ruby/setup-ruby from 1.126.0 to 1.127.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.126.0 to 1.127.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/c7079efafd956afb5d823e8999c2506e1053aefa...ee2113536afb7f793eed4ce60e8d3b26db912da4) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 53a5fd38d..20bad7e89 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 + - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9e61fb2dd..32d8a3d17 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 + - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0be5d4dee..4d32ce7fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - - uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 + - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From a7dffff8a754a6f584a25790b01c3a982ee0ab2c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Dec 2022 07:04:21 +0000 Subject: [PATCH 108/334] Bump actions/checkout from 3.1.0 to 3.2.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8...755da8c3cf115ac066823e79a1e1788f8940201b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 20bad7e89..f19749947 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: '3.0' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32d8a3d17..49505e8ef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d32ce7fd..34c6d69b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: ruby-version: ${{ matrix.ruby }} From 18c40512b5f6b89e81ea718e08db0b9106fd0a3f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Dec 2022 07:06:41 +0000 Subject: [PATCH 109/334] Bump ruby/setup-ruby from 1.127.0 to 1.131.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.127.0 to 1.131.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/ee2113536afb7f793eed4ce60e8d3b26db912da4...03b78bdda287ae04217ee12e4b64996630a03542) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f19749947..4e6708ecf 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 + - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 49505e8ef..1da47d904 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 + - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34c6d69b1..70708e2e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 + - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 39a68dbf3e0f86fd128284fe3a943c0a504b1f8b Mon Sep 17 00:00:00 2001 From: Hannes Kaeufler Date: Fri, 30 Dec 2022 22:02:50 +0100 Subject: [PATCH 110/334] Add ruby 3.2 to test matrix It was released on december 25th. Issue #431 shows that there might be an issue with 3.2, and I'm seeing the same. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70708e2e2..efcd95151 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] - ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + ruby: [ 3.2, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] exclude: - os: windows-latest ruby: truffleruby From bb8c1084ac57479b0a76a4cb3b5bb9d1942dc6ca Mon Sep 17 00:00:00 2001 From: Hannes Kaeufler Date: Fri, 30 Dec 2022 22:11:00 +0100 Subject: [PATCH 111/334] Bump setup ruby action to get windows ruby 3.2 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efcd95151..fc1f0d46a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 + - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5762b565a95ad929b1c09b5151b9d3879512f71a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jan 2023 07:03:03 +0000 Subject: [PATCH 112/334] Bump ruby/setup-ruby from 1.131.0 to 1.133.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.131.0 to 1.133.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/v1.131.0...09c10210cc6e998d842ce8433cd9d245933cd797) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4e6708ecf..0566d662a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 + - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1da47d904..1a23b7267 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 - - uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542 # v1.131.0 + - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: '3.0' bundler-cache: true From f71b506d17df39565abcea64cf0944df5bf83b84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 07:05:12 +0000 Subject: [PATCH 113/334] Bump actions/checkout from 3.2.0 to 3.3.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/755da8c3cf115ac066823e79a1e1788f8940201b...ac593985615ec2ede58e132d2e21d2b1cbd6127c) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0566d662a..c5330ce5f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: '3.0' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1a23b7267..a818c403d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc1f0d46a..5be820227 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 with: ruby-version: ${{ matrix.ruby }} From 7f3bf298d02ba4e10f68491d6f96846c929a48af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 07:20:38 +0000 Subject: [PATCH 114/334] Bump ruby/setup-ruby from 1.133.0 to 1.133.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.133.0 to 1.133.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/09c10210cc6e998d842ce8433cd9d245933cd797...319066216501fbd5e2d568f14b7d68c19fb67a5d) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c5330ce5f..2e82f0a8a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 + - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a818c403d..159906bd1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 + - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5be820227..69279eb78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.0 + - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From b421b5375ce7801fd883424c8bcb24ff46f88bdb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jan 2023 07:03:44 +0000 Subject: [PATCH 115/334] Bump ruby/setup-ruby from 1.133.1 to 1.133.2 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.133.1 to 1.133.2. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/319066216501fbd5e2d568f14b7d68c19fb67a5d...93287a1fa82c6ddbb6d8db978df4b0119cd8879f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2e82f0a8a..04a30093f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 + - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 159906bd1..d002a127c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 + - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69279eb78..c3d54762f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1 + - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 055f4b5d80c61972ba8d603b91385a9651d330de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 07:07:13 +0000 Subject: [PATCH 116/334] Bump ruby/setup-ruby from 1.133.2 to 1.134.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.133.2 to 1.134.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/93287a1fa82c6ddbb6d8db978df4b0119cd8879f...ee26e27437bde475b19a6bf8cb73c9fa658876a2) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 04a30093f..45ff355ec 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 + - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d002a127c..ee42820f3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 + - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3d54762f..57ed7cc68 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@93287a1fa82c6ddbb6d8db978df4b0119cd8879f # v1.133.2 + - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 816df68d736e87ceb8b06870aeaf966d3dccc833 Mon Sep 17 00:00:00 2001 From: zzak Date: Wed, 1 Feb 2023 11:34:49 +0900 Subject: [PATCH 117/334] Missing 'do' on example --- lib/rake/dsl_definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb index c80464020..27969d69e 100644 --- a/lib/rake/dsl_definition.rb +++ b/lib/rake/dsl_definition.rb @@ -158,7 +158,7 @@ def rule(*args, &block) # :doc: # # Example: # desc "Run the Unit Tests" - # task test: [:build] + # task test: [:build] do # # ... run tests # end # From a2e28241c8a731e1250122e3f7e156afc3825b34 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 14 Feb 2023 10:44:46 +0900 Subject: [PATCH 118/334] Try to use dependabot automerge --- .github/workflows/dependabot_automerge.yml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/dependabot_automerge.yml diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml new file mode 100644 index 000000000..cab301261 --- /dev/null +++ b/.github/workflows/dependabot_automerge.yml @@ -0,0 +1,41 @@ +# from https://github.com/gofiber/swagger/blob/main/.github/workflows/dependabot_automerge.yml +name: Dependabot auto-merge +on: + pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + wait_for_checks: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Wait for check is finished + uses: lewagon/wait-on-check-action@v1.2.0 + id: wait_for_checks + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + running-workflow-name: wait_for_checks + check-regexp: test + repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + wait-interval: 10 + dependabot: + needs: [wait_for_checks] + name: Dependabot auto-merge + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.3.6 + with: + github-token: "${{ secrets.MATZBOT_GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}} + run: | + gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.MATZBOT_GITHUB_TOKEN}} From 6b85824d7a10f8b6e11ef5edc135f982ef0c9610 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 14 Feb 2023 11:43:22 +0900 Subject: [PATCH 119/334] indent --- .github/workflows/dependabot_automerge.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index cab301261..fe70a1e70 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' }} steps: - - name: Wait for check is finished - uses: lewagon/wait-on-check-action@v1.2.0 - id: wait_for_checks - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - running-workflow-name: wait_for_checks - check-regexp: test - repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} - wait-interval: 10 + - name: Wait for check is finished + uses: lewagon/wait-on-check-action@v1.2.0 + id: wait_for_checks + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + running-workflow-name: wait_for_checks + check-regexp: test + repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + wait-interval: 10 dependabot: needs: [wait_for_checks] name: Dependabot auto-merge From 759161cc3e0db6ac8ec7c921d4f5c500dc83ede1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 14 Feb 2023 11:52:27 +0900 Subject: [PATCH 120/334] Try to use env instead of with --- .github/workflows/dependabot_automerge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index fe70a1e70..a11b3dcd5 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -19,8 +19,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} running-workflow-name: wait_for_checks check-regexp: test - repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} wait-interval: 10 + env: + REPO_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} dependabot: needs: [wait_for_checks] name: Dependabot auto-merge From febd61491ce587be556263f33474452308db48a9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 14 Feb 2023 17:16:25 +0900 Subject: [PATCH 121/334] Rewrite auto-merge feature for dependabot --- .github/workflows/dependabot_automerge.yml | 42 +++++++--------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index a11b3dcd5..53ca8c64e 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -1,42 +1,26 @@ # from https://github.com/gofiber/swagger/blob/main/.github/workflows/dependabot_automerge.yml name: Dependabot auto-merge on: - pull_request - -permissions: - contents: write - pull-requests: write + pull_request_target: jobs: - wait_for_checks: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Wait for check is finished - uses: lewagon/wait-on-check-action@v1.2.0 - id: wait_for_checks - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - running-workflow-name: wait_for_checks - check-regexp: test - wait-interval: 10 - env: - REPO_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} - dependabot: - needs: [wait_for_checks] - name: Dependabot auto-merge + automerge: runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Dependabot metadata + uses: dependabot/fetch-metadata@v1 id: metadata - uses: dependabot/fetch-metadata@v1.3.6 + - name: Wait for status checks + uses: lewagon/wait-on-check-action@v1.2.0 with: - github-token: "${{ secrets.MATZBOT_GITHUB_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}} - run: | - gh pr merge --auto --merge "$PR_URL" + repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + ref: ${{ github.event.pull_request.head.sha || github.sha }} + check-regexp: test* + wait-interval: 30 + - name: Auto-merge for Dependabot PRs + if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}} + run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.MATZBOT_GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} From d36f505efbf4bd92744cbd5f6a9d3545e3eec081 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 08:26:20 +0000 Subject: [PATCH 122/334] Bump ruby/setup-ruby from 1.134.0 to 1.137.2 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.134.0 to 1.137.2. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/ee26e27437bde475b19a6bf8cb73c9fa658876a2...f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 45ff355ec..9b2debda7 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 + - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ee42820f3..552c471ee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 + - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57ed7cc68..828c752f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0 + - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From de28c6f8788456114158b0bc41fa77c35dea0ee7 Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Wed, 15 Feb 2023 00:25:54 +0900 Subject: [PATCH 123/334] Update bundler in Dependabot --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b18fd2935..20ff5117d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,12 @@ version: 2 updates: + # dependencies for GitHub Actions - package-ecosystem: 'github-actions' directory: '/' schedule: interval: 'weekly' + # dependencies for bundler + - package-ecosystem: 'bundler' + directory: '/' + schedule: + interval: 'weekly' From c5c13b31fb7e70c2a91a86a248d62816da3c6475 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 22:53:41 +0000 Subject: [PATCH 124/334] Bump ruby/setup-ruby from 1.137.2 to 1.138.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.137.2 to 1.138.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7...d3c9825d67b0d8720afdfdde5af56c79fdb38d16) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9b2debda7..b319eaed1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 + - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 552c471ee..39a501f42 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 + - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 828c752f4..8bef56e02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@f60ef1e8084a2e64569f928c3f1cfac6c7e12ad7 # v1.137.2 + - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 24a40b2a0591d4181caf2a0943323fe7d1f22371 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 22:53:52 +0000 Subject: [PATCH 125/334] Update minitest requirement from 5.15.0 to 5.17.0 Updates the requirements on [minitest](https://github.com/seattlerb/minitest) to permit the latest version. - [Release notes](https://github.com/seattlerb/minitest/releases) - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](https://github.com/seattlerb/minitest/compare/v5.15.0...v5.17.0) --- updated-dependencies: - dependency-name: minitest dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 777cab330..d77438704 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec group :development do gem "bundler" - gem "minitest", "5.15.0" + gem "minitest", "5.17.0" gem "coveralls" gem "rubocop", "~> 1.12.1" end From 8d218b5697b551841c8fa7eddcbb212391a6798c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 15 Feb 2023 17:08:44 +0900 Subject: [PATCH 126/334] Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bef56e02..c7e42edad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,12 +6,20 @@ permissions: # added using https://github.com/step-security/secure-workflows contents: read jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.2 + engine: cruby-jruby + versions: '["truffleruby"]' + test: + needs: ruby-versions runs-on: ${{ matrix.os }} strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] - ruby: [ 3.2, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, jruby, jruby-head, truffleruby, ruby-head ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} exclude: - os: windows-latest ruby: truffleruby From a7bec8c118d3e867c2b92d08cf41ec168abee4d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Feb 2023 08:00:07 +0000 Subject: [PATCH 127/334] Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.2.0 to 1.3.1. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.2.0...v1.3.1) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 53ca8c64e..cc66fac30 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -12,7 +12,7 @@ jobs: uses: dependabot/fetch-metadata@v1 id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@v1.2.0 + uses: lewagon/wait-on-check-action@v1.3.1 with: repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From 3199888286ef2f90a8d0207aa0ab4a896c1f66cf Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 1 Mar 2023 11:59:34 +0900 Subject: [PATCH 128/334] Use GitHub Pages Action for generating rdoc page --- .github/workflows/gh-pages.yml | 46 ++++++++++++++++++++++++++++++++++ Rakefile | 11 +------- 2 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 000000000..1828e0386 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,46 @@ +name: Deploy RDoc site to Pages + +on: + push: + branches: [ 'master' ] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@92aece5fc9c784ab66851c1e702b1bd5885a51f2 # v1.139.0 + with: + ruby-version: '3.2' + bundler-cache: true + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with RDoc + # Outputs to the './_site' directory by default + run: bundle exec rake rdoc + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/Rakefile b/Rakefile index e03dc6feb..d778df5ff 100644 --- a/Rakefile +++ b/Rakefile @@ -26,16 +26,7 @@ RDoc::Task.new do |doc| doc.main = "README.rdoc" doc.title = "Rake -- Ruby Make" doc.rdoc_files = FileList.new %w[lib MIT-LICENSE doc/**/*.rdoc *.rdoc] - doc.rdoc_dir = "html" -end - -task ghpages: :rdoc do - %x[git checkout gh-pages] - require "fileutils" - FileUtils.rm_rf "/tmp/html" - FileUtils.mv "html", "/tmp" - FileUtils.rm_rf "*" - FileUtils.cp_r Dir.glob("/tmp/html/*"), "." + doc.rdoc_dir = "_site" # for github pages end task default: :test From 6e1b9c6597cc266d21f91a1376ad635ffdc92935 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 1 Mar 2023 12:51:02 +0900 Subject: [PATCH 129/334] gitignore rdoc pages --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f0cd1f570..9b8b3b586 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,6 @@ /TAGS /coverage /html +/_site /pkg Gemfile.lock From f25ddae32c0a57dfd156c4739a30a814f06d655f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Mar 2023 07:59:47 +0000 Subject: [PATCH 130/334] Bump ruby/setup-ruby from 1.138.0 to 1.143.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.138.0 to 1.143.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/v1.138.0...31a7f6d628878b80bc63375a93ae079ec50a1601) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b319eaed1..a7c1002d5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 + - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1828e0386..5eb82152b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@92aece5fc9c784ab66851c1e702b1bd5885a51f2 # v1.139.0 + uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 39a501f42..460bb6eae 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 + - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7e42edad..f0fc8c7ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0 + - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From f7e2e5bd4c8ca8860afc97cea7daee0cbed5c9e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Mar 2023 08:05:29 +0000 Subject: [PATCH 131/334] Update minitest requirement from 5.17.0 to 5.18.0 Updates the requirements on [minitest](https://github.com/seattlerb/minitest) to permit the latest version. - [Release notes](https://github.com/seattlerb/minitest/releases) - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](https://github.com/seattlerb/minitest/compare/v5.17.0...v5.18.0) --- updated-dependencies: - dependency-name: minitest dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index d77438704..702577e02 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec group :development do gem "bundler" - gem "minitest", "5.17.0" + gem "minitest", "5.18.0" gem "coveralls" gem "rubocop", "~> 1.12.1" end From e5bf12b1c9353ab5aedc38e4ddfdfbb8f77f9f21 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 07:58:51 +0000 Subject: [PATCH 132/334] Bump ruby/setup-ruby from 1.143.0 to 1.144.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.143.0 to 1.144.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/31a7f6d628878b80bc63375a93ae079ec50a1601...9669f3ee51dc3f4eda8447ab696b3ab19a90d14b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a7c1002d5..5aeb375a2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 + - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5eb82152b..66a10cdce 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.139.0 + uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 460bb6eae..b0b8548e4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 + - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0fc8c7ff..4d148afb8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0 + - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From aca913cef290ce0ef8c5f0de6d9a8ac674ee4ab3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Mar 2023 07:58:58 +0000 Subject: [PATCH 133/334] Bump ruby/setup-ruby from 1.144.0 to 1.144.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.144.0 to 1.144.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/9669f3ee51dc3f4eda8447ab696b3ab19a90d14b...e6689b4deb1cb2062ea45315001f687c0b52111b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5aeb375a2..ffc4086f8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 + - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 66a10cdce..2eced06d7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.139.0 + uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b0b8548e4..a85c0eb03 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 + - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d148afb8..2e6dbd4be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@9669f3ee51dc3f4eda8447ab696b3ab19a90d14b # v1.144.0 + - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From dad00350a96aee5bafc3d19fe9c60da36bcc760f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Mar 2023 03:04:27 +0000 Subject: [PATCH 134/334] Bump actions/deploy-pages from 1 to 2 Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 1 to 2. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/v1...v2) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2eced06d7..b15a7305f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,4 +43,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 From d8c80c24f4adf9390f9cb01bc5d6d93bafd022c3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 07:58:46 +0000 Subject: [PATCH 135/334] Bump ruby/setup-ruby from 1.144.1 to 1.144.2 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.144.1 to 1.144.2. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/e6689b4deb1cb2062ea45315001f687c0b52111b...ec02537da5712d66d4d50a0f33b7eb52773b5ed1) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ffc4086f8..6fd5f244f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 + - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b15a7305f..22553c070 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.139.0 + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a85c0eb03..4d1d04af9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 + - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e6dbd4be..151ce4279 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@e6689b4deb1cb2062ea45315001f687c0b52111b # v1.144.1 + - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 23fca9087b1916ed6b857da829c06e33fe1a0862 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 08:06:01 +0000 Subject: [PATCH 136/334] Update rubocop requirement from ~> 1.12.1 to ~> 1.48.1 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.12.1...v1.48.1) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 702577e02..b36271a95 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest", "5.18.0" gem "coveralls" - gem "rubocop", "~> 1.12.1" + gem "rubocop", "~> 1.48.1" end From 857e7e37db850ff0c227cfe241329a7f75b733e6 Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 30 Mar 2023 10:45:56 +0900 Subject: [PATCH 137/334] Support `#detailed_message` when task failed --- lib/rake/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 90f81e109..a8a7d99c1 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -237,6 +237,8 @@ def has_cause?(ex) # :nodoc: def display_exception_message_details(ex) # :nodoc: if ex.instance_of?(RuntimeError) trace ex.message + elsif ex.respond_to?(:detailed_message) + trace "#{ex.class.name}: #{ex.detailed_message(highlight: false)}" else trace "#{ex.class.name}: #{ex.message}" end From 23d8981dd4fe52f5cc7a09233af469fbbb25c84d Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 30 Mar 2023 11:31:46 +0900 Subject: [PATCH 138/334] Add testing code for calling `#detailed_message` --- test/test_rake_application.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index 8514da354..23fd1a670 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -60,6 +60,33 @@ def test_display_exception_details assert_match __method__.to_s, err end + if Exception.method_defined?(:detailed_message) + def test_display_exception_details_with_detailed_message + error_class = Class.new(StandardError) do + def detailed_message(**) + "detailed_message!!" + end + end + + begin + raise error_class + rescue error_class => ex + end + + out, err = capture_io do + @app.set_default_options # reset trace output IO + + @app.display_error_message ex + end + + assert_empty out + + assert_match "rake aborted!", err + assert_match "detailed_message!!", err + assert_match __method__.to_s, err + end + end + def test_display_exception_details_bad_encoding begin raise "El Niño is coming!".dup.force_encoding("US-ASCII") From 6e0b17588935a608d8fdb65691901149fd56a55c Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 30 Mar 2023 11:40:30 +0900 Subject: [PATCH 139/334] Remove condition minutes as they are unnecessary. --- test/test_rake_application.rb | 36 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index 23fd1a670..df756a4ad 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -60,31 +60,29 @@ def test_display_exception_details assert_match __method__.to_s, err end - if Exception.method_defined?(:detailed_message) - def test_display_exception_details_with_detailed_message - error_class = Class.new(StandardError) do - def detailed_message(**) - "detailed_message!!" - end + def test_display_exception_details_with_detailed_message + error_class = Class.new(StandardError) do + def detailed_message(**) + "detailed_message!!" end + end - begin - raise error_class - rescue error_class => ex - end + begin + raise error_class + rescue error_class => ex + end - out, err = capture_io do - @app.set_default_options # reset trace output IO + out, err = capture_io do + @app.set_default_options # reset trace output IO - @app.display_error_message ex - end + @app.display_error_message ex + end - assert_empty out + assert_empty out - assert_match "rake aborted!", err - assert_match "detailed_message!!", err - assert_match __method__.to_s, err - end + assert_match "rake aborted!", err + assert_match "detailed_message!!", err + assert_match __method__.to_s, err end def test_display_exception_details_bad_encoding From 3905e3462e0dd3a8a53a9cabe966bf575925eaf0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Apr 2023 07:58:50 +0000 Subject: [PATCH 140/334] Bump ruby/setup-ruby from 1.144.2 to 1.145.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.144.2 to 1.145.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/ec02537da5712d66d4d50a0f33b7eb52773b5ed1...904f3fef85a9c80a3750cbe7d5159268fd5caa9f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6fd5f244f..4343188a3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 + - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 22553c070..ec15fd06d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.139.0 + uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4d1d04af9..3e9c88a84 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 + - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 151ce4279..865aadb25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 # v1.144.2 + - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From af14b231053784b74f37c2cd1aa8235a174708ee Mon Sep 17 00:00:00 2001 From: ksss Date: Mon, 3 Apr 2023 22:57:30 +0900 Subject: [PATCH 141/334] Debug at stop when task fail Inspired by https://github.com/ko1/rspec-debug --- lib/rake/application.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 90f81e109..21d4ce770 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -94,10 +94,32 @@ def init(app_name="rake", argv = ARGV) # Backward compatibility for capistrano args = handle_options end + load_debug_at_stop collect_command_line_tasks(args) end end + def load_debug_at_stop_feature + return unless ['1', 'true'].include?(ENV["RAKE_DEBUG"]) + require 'debug/session' + DEBUGGER__::start no_sigint_hook: true, nonstop: true + Rake::Task.prepend Module.new { + def execute(*) + exception = DEBUGGER__::SESSION.capture_exception_frames(/(exe|bin|lib)\/rake/) do + super + end + + if exception + STDERR.puts exception.message + DEBUGGER__::SESSION.enter_postmortem_session exception + raise exception + end + end + } + rescue LoadError + end + private :load_debug_at_stop + # Find the rakefile and then load it and any pending imports. def load_rakefile standard_exception_handling do From 5741df966aeca2c7da7d5c42bffae4a54567c8ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 01:10:58 +0000 Subject: [PATCH 142/334] Update rubocop requirement from ~> 1.48.1 to ~> 1.49.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.48.1...v1.49.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b36271a95..92abbf50f 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest", "5.18.0" gem "coveralls" - gem "rubocop", "~> 1.48.1" + gem "rubocop", "~> 1.49.0" end From 121d369c2b8da447f308a818c81372a5fd886c6c Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 4 Apr 2023 13:17:07 +0900 Subject: [PATCH 143/334] Simplify --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 21d4ce770..fb380f17e 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -100,7 +100,7 @@ def init(app_name="rake", argv = ARGV) end def load_debug_at_stop_feature - return unless ['1', 'true'].include?(ENV["RAKE_DEBUG"]) + return unless ENV["RAKE_DEBUG"] require 'debug/session' DEBUGGER__::start no_sigint_hook: true, nonstop: true Rake::Task.prepend Module.new { From 52a4f1345b48358e0a649bac2dcc9d996dae3219 Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 4 Apr 2023 14:06:33 +0900 Subject: [PATCH 144/334] Fix method name --- lib/rake/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index fb380f17e..883dd0b4a 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -94,7 +94,7 @@ def init(app_name="rake", argv = ARGV) # Backward compatibility for capistrano args = handle_options end - load_debug_at_stop + load_debug_at_stop_feature collect_command_line_tasks(args) end end @@ -118,7 +118,7 @@ def execute(*) } rescue LoadError end - private :load_debug_at_stop + private :load_debug_at_stop_feature # Find the rakefile and then load it and any pending imports. def load_rakefile From 473acea817b904b998d53458e5cda33c62193cf7 Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 4 Apr 2023 14:13:35 +0900 Subject: [PATCH 145/334] Auto collect for Style/StringLiterals --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 883dd0b4a..42849e606 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -101,7 +101,7 @@ def init(app_name="rake", argv = ARGV) def load_debug_at_stop_feature return unless ENV["RAKE_DEBUG"] - require 'debug/session' + require "debug/session" DEBUGGER__::start no_sigint_hook: true, nonstop: true Rake::Task.prepend Module.new { def execute(*) From 704c2f10667b4d244191e1bff50d92f34a0e861c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 11 Apr 2023 09:19:31 +0900 Subject: [PATCH 146/334] Drop to support Ruby 2.2 because rubygems.org will not support V1 API and bundler 1.x --- .github/workflows/test.yml | 2 +- rake.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 865aadb25..9791ccd49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: ruby-versions: uses: ruby/actions/.github/workflows/ruby_versions.yml@master with: - min_version: 2.2 + min_version: 2.3 engine: cruby-jruby versions: '["truffleruby"]' diff --git a/rake.gemspec b/rake.gemspec index 20a1db423..4546e6cf6 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -95,6 +95,6 @@ Rake has the following features: s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } s.require_paths = ["lib".freeze] - s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze) + s.required_ruby_version = Gem::Requirement.new(">= 2.3".freeze) s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] end From dbf9d692d3050879c82416a079e68468d631dd12 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 11 Apr 2023 09:20:06 +0900 Subject: [PATCH 147/334] standardrb --fix rake.gemspec --- rake.gemspec | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/rake.gemspec b/rake.gemspec index 4546e6cf6..b3e8a8eef 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -1,32 +1,33 @@ # frozen_string_literal: true -require_relative 'lib/rake/version' + +require_relative "lib/rake/version" Gem::Specification.new do |s| - s.name = "rake".freeze + s.name = "rake" s.version = Rake::VERSION - s.authors = ["Hiroshi SHIBATA".freeze, "Eric Hodel".freeze, "Jim Weirich".freeze] - s.email = ["hsbt@ruby-lang.org".freeze, "drbrain@segment7.net".freeze, "".freeze] + s.authors = ["Hiroshi SHIBATA", "Eric Hodel", "Jim Weirich"] + s.email = ["hsbt@ruby-lang.org", "drbrain@segment7.net", ""] - s.summary = "Rake is a Make-like program implemented in Ruby".freeze - s.description = <<-DESCRIPTION -Rake is a Make-like program implemented in Ruby. Tasks and dependencies are -specified in standard Ruby syntax. -Rake has the following features: - * Rakefiles (rake's version of Makefiles) are completely defined in standard Ruby syntax. - No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?) - * Users can specify tasks with prerequisites. - * Rake supports rule patterns to synthesize implicit tasks. - * Flexible FileLists that act like arrays but know about manipulating file names and paths. - * Supports parallel execution of tasks. + s.summary = "Rake is a Make-like program implemented in Ruby" + s.description = <<~DESCRIPTION + Rake is a Make-like program implemented in Ruby. Tasks and dependencies are + specified in standard Ruby syntax. + Rake has the following features: + * Rakefiles (rake's version of Makefiles) are completely defined in standard Ruby syntax. + No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?) + * Users can specify tasks with prerequisites. + * Rake supports rule patterns to synthesize implicit tasks. + * Flexible FileLists that act like arrays but know about manipulating file names and paths. + * Supports parallel execution of tasks. DESCRIPTION - s.homepage = "https://github.com/ruby/rake".freeze - s.licenses = ["MIT".freeze] + s.homepage = "https://github.com/ruby/rake" + s.licenses = ["MIT"] s.metadata = { - "bug_tracker_uri" => "https://github.com/ruby/rake/issues", - "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc", + "bug_tracker_uri" => "https://github.com/ruby/rake/issues", + "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc", "documentation_uri" => "https://ruby.github.io/rake", - "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}", + "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}" } s.files = [ @@ -93,8 +94,8 @@ Rake has the following features: ] s.bindir = "exe" s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } - s.require_paths = ["lib".freeze] + s.require_paths = ["lib"] - s.required_ruby_version = Gem::Requirement.new(">= 2.3".freeze) - s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] + s.required_ruby_version = Gem::Requirement.new(">= 2.3") + s.rdoc_options = ["--main", "README.rdoc"] end From 327416b61f0a1bea9739124b410c14bf0d46c53b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 01:30:02 +0000 Subject: [PATCH 148/334] Bump ruby/setup-ruby from 1.145.0 to 1.146.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.145.0 to 1.146.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/904f3fef85a9c80a3750cbe7d5159268fd5caa9f...55283cc23133118229fd3f97f9336ee23a179fcf) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4343188a3..597ad954e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 + - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ec15fd06d..e7da5570c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.139.0 + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e9c88a84..7d2b97a16 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 + - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9791ccd49..1d3cea786 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f # v1.145.0 + - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 4b2e2dd732e01c30da1b0000390ecb26630422fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 08:03:35 +0000 Subject: [PATCH 149/334] Update rubocop requirement from ~> 1.49.0 to ~> 1.50.1 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.49.0...v1.50.1) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 92abbf50f..5d7b7c953 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest", "5.18.0" gem "coveralls" - gem "rubocop", "~> 1.49.0" + gem "rubocop", "~> 1.50.1" end From c67f4b938028a2d8fff5f095c715baa45e5d128c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 May 2023 07:59:13 +0000 Subject: [PATCH 150/334] Bump ruby/setup-ruby from 1.146.0 to 1.148.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.146.0 to 1.148.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/55283cc23133118229fd3f97f9336ee23a179fcf...d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 597ad954e..34ec52bbd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e7da5570c..c7914f095 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.139.0 + uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7d2b97a16..2fa379abe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d3cea786..21ff1fe9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 4321c6b270169194c57e1e974bc4916769dad30d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 13 May 2023 10:19:16 +0900 Subject: [PATCH 151/334] truffleruby is not working today --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21ff1fe9d..ddd55d90a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,6 @@ jobs: with: min_version: 2.3 engine: cruby-jruby - versions: '["truffleruby"]' test: needs: ruby-versions From c709184062b0690d6ef44b807dd78d8c2839f79a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 07:58:41 +0000 Subject: [PATCH 152/334] Bump ruby/setup-ruby from 1.148.0 to 1.149.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.148.0 to 1.149.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c...7d546f4868fb108ed378764d873683f920672ae2) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 34ec52bbd..daac4fc8e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 + - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c7914f095..d89afa091 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.139.0 + uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2fa379abe..998361aac 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 + - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddd55d90a..26eff02a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@d2b39ad0b52eca07d23f3aa14fdf2a3fcc1f411c # v1.148.0 + - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 50daab7dc930ea541451038ead5f8052e23418f4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 08:01:46 +0000 Subject: [PATCH 153/334] Update rubocop requirement from ~> 1.50.1 to ~> 1.51.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.50.1...v1.51.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5d7b7c953..30c045fe3 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest", "5.18.0" gem "coveralls" - gem "rubocop", "~> 1.50.1" + gem "rubocop", "~> 1.51.0" end From 27ddbd9946e5f8227e891a0dd825a6ea9b3ed500 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 07:58:34 +0000 Subject: [PATCH 154/334] Bump ruby/setup-ruby from 1.149.0 to 1.150.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.149.0 to 1.150.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/7d546f4868fb108ed378764d873683f920672ae2...8a45918450651f5e4784b6031db26f4b9f76b251) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index daac4fc8e..d53ac5830 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 + - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d89afa091..a49328532 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.139.0 + uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 998361aac..9475926fd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 + - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26eff02a2..910a12544 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # v1.149.0 + - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From f2ecd87153711086551913eb80b6956dc0d1b0e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Jun 2023 08:03:00 +0000 Subject: [PATCH 155/334] Update rubocop requirement from ~> 1.51.0 to ~> 1.52.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.51.0...v1.52.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 30c045fe3..df22035b1 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ group :development do gem "bundler" gem "minitest", "5.18.0" gem "coveralls" - gem "rubocop", "~> 1.51.0" + gem "rubocop", "~> 1.52.0" end From 23a2adf8cb3e15d25ec4a64efd0014dcffc2abb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 07:58:37 +0000 Subject: [PATCH 156/334] Bump ruby/setup-ruby from 1.150.0 to 1.151.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.150.0 to 1.151.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/8a45918450651f5e4784b6031db26f4b9f76b251...bc1dd263b68cb5626dbb55d5c89777d79372c484) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d53ac5830..194b545af 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 + - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a49328532..d4514736d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.139.0 + uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9475926fd..3d203a3ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 + - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 910a12544..d469d35b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0 + - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From a0cdd73d88eaa0041df84353d778999b095d166f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 16 Jun 2023 08:35:42 +0900 Subject: [PATCH 157/334] Bump up development dependencies --- Gemfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index df22035b1..8bcbf50a7 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec group :development do gem "bundler" - gem "minitest", "5.18.0" + gem "minitest" gem "coveralls" - gem "rubocop", "~> 1.52.0" + gem "rubocop" end From 1438ebd0bb2f15d7be9a4d819c7605236238d074 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 16 Jun 2023 08:36:12 +0900 Subject: [PATCH 158/334] Don't need to declare bundler on Gemfile --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8bcbf50a7..04edfabcf 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,6 @@ source "https://rubygems.org" gemspec group :development do - gem "bundler" gem "minitest" gem "coveralls" gem "rubocop" From 02c0783d78a1c74f31688cbdc490d9b66ef6d831 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 07:58:17 +0000 Subject: [PATCH 159/334] Bump ruby/setup-ruby from 1.151.0 to 1.152.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.151.0 to 1.152.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/bc1dd263b68cb5626dbb55d5c89777d79372c484...250fcd6a742febb1123a77a841497ccaa8b9e939) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 194b545af..ad8e237f0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 + - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d4514736d..6e5208a0d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.139.0 + uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3d203a3ce..5f965b8f1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 + - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d469d35b9..816464755 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # v1.151.0 + - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From dbf240b2a081cd8c8e06e06221dd996d966a5641 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 07:22:37 +0000 Subject: [PATCH 160/334] Bump actions/upload-pages-artifact from 1 to 2 Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v1...v2) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6e5208a0d..613b27948 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -32,7 +32,7 @@ jobs: # Outputs to the './_site' directory by default run: bundle exec rake rdoc - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 deploy: environment: From 418bec00535af0787a4d62b28f156c76d0543530 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 07:12:39 +0000 Subject: [PATCH 161/334] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...3df4ab11eba7bda6032a0b82a6bb43b11571feac) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ad8e237f0..1675f5a17 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 613b27948..cd805066e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Setup Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5f965b8f1..a136d6b14 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 816464755..c8d6ecc8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 with: ruby-version: ${{ matrix.ruby }} From 129e20a12bb1688c7026a7626ced37a3ae80a83d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 07:59:58 +0000 Subject: [PATCH 162/334] Bump ruby/setup-ruby from 1.152.0 to 1.153.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.152.0 to 1.153.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/250fcd6a742febb1123a77a841497ccaa8b9e939...5311f05890856149502132d25c4a24985a00d426) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1675f5a17..2f2d34c3f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 + - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index cd805066e..dfe92fcce 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Setup Ruby - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.139.0 + uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a136d6b14..766807c7d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 + - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8d6ecc8b..b611e1b08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 - - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 + - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 4a54e103b271b3ad50a58e96c46ce016d94007bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 07:21:18 +0000 Subject: [PATCH 163/334] Bump actions/checkout from 4.0.0 to 4.1.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/3df4ab11eba7bda6032a0b82a6bb43b11571feac...8ade135a41bc03ea155e62e844d188df1ea18608) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2f2d34c3f..ec2b18291 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index dfe92fcce..080b5789e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Setup Ruby uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 766807c7d..ad908fba5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b611e1b08..027282f83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.3.0 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 with: ruby-version: ${{ matrix.ruby }} From e9f613b3867eaf90ae90f0d4d3e31f7734fe1f1a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 07:30:29 +0000 Subject: [PATCH 164/334] Bump ruby/setup-ruby from 1.153.0 to 1.154.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.153.0 to 1.154.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5311f05890856149502132d25c4a24985a00d426...52b8784594ec115fd17094752708121dc5dabb47) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ec2b18291..047fb5b1f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 + - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 080b5789e..db14372a1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Setup Ruby - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.139.0 + uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ad908fba5..278308f15 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 + - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 027282f83..10a8e0fbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # v1.153.0 + - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 8d39c6bd90337871ed703f7fd9c309f124143a78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 07:10:33 +0000 Subject: [PATCH 165/334] Bump ruby/setup-ruby from 1.154.0 to 1.155.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.154.0 to 1.155.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/52b8784594ec115fd17094752708121dc5dabb47...d37167af451eb51448db3354e1057b75c4b268f7) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 047fb5b1f..2ef910784 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 + - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index db14372a1..2b2aef535 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Setup Ruby - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.139.0 + uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 278308f15..20003be16 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 + - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10a8e0fbb..03afe29dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0 + - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 4b4b211cc3632c04e4551f469691e20799ae7575 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 07:15:04 +0000 Subject: [PATCH 166/334] Bump ruby/setup-ruby from 1.155.0 to 1.156.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.155.0 to 1.156.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/d37167af451eb51448db3354e1057b75c4b268f7...5cfe23c062c0aac352e765b1b7cc12ea5255ccc4) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2ef910784..923c6943e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 + - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2b2aef535..4567096e2 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Setup Ruby - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.139.0 + uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 20003be16..5608d00df 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 + - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03afe29dc..724fb72c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 - - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 + - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 65945859913708da963ec9b0b6986b0890ef8809 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 07:44:06 +0000 Subject: [PATCH 167/334] Bump actions/checkout from 4.1.0 to 4.1.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8ade135a41bc03ea155e62e844d188df1ea18608...b4ffde65f46336ab88eb53be808477a3936bae11) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 923c6943e..d5822a8a0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4567096e2..df680d761 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5608d00df..6a3b2ddd4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 724fb72c4..d202efb91 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3.3.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 with: ruby-version: ${{ matrix.ruby }} From 8b2a01c2847e9ddda6ccd963711d104e70fc697f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 07:52:04 +0000 Subject: [PATCH 168/334] Bump ruby/setup-ruby from 1.156.0 to 1.157.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.156.0 to 1.157.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5cfe23c062c0aac352e765b1b7cc12ea5255ccc4...a05e47355e80e57b9a67566a813648fa67d92011) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d5822a8a0..0cbdfc0e9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 + - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index df680d761..4b6407518 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.139.0 + uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6a3b2ddd4..86c0423aa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 + - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d202efb91..21543f452 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 # v1.156.0 + - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5476cda5c368773c5198a7157d032fe4fc93d795 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 28 Oct 2023 10:23:14 +0900 Subject: [PATCH 169/334] Bump up v13.1.0 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index a0bd095c1..9808db094 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.0.6" + VERSION = "13.1.0" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 8db5e19561535b5bbf570915497d08f35443a9fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 07:28:28 +0000 Subject: [PATCH 170/334] Bump ruby/setup-ruby from 1.157.0 to 1.159.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.157.0 to 1.159.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/a05e47355e80e57b9a67566a813648fa67d92011...54a18e26dbbb1eabc604f317ade9a5788dddef81) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0cbdfc0e9..e1fa0aef4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 + - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4b6407518..ba173a3ff 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.139.0 + uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 86c0423aa..1df1beb31 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 + - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21543f452..7763c37ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 # v1.157.0 + - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From f920edc0e077c260b424b0b1701193e50353892d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 07:24:30 +0000 Subject: [PATCH 171/334] Bump ruby/setup-ruby from 1.159.0 to 1.160.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.159.0 to 1.160.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/54a18e26dbbb1eabc604f317ade9a5788dddef81...036ef458ddccddb148a2b9fb67e95a22fdbf728b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e1fa0aef4..cce3127bc 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 + - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ba173a3ff..6d825b1b6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.139.0 + uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1df1beb31..e20532738 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 + - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7763c37ea..2688b3120 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 # v1.159.0 + - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From f8ddd336a3fb89f6d61c60d9934d61ae609eb280 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 07:15:50 +0000 Subject: [PATCH 172/334] Bump ruby/setup-ruby from 1.160.0 to 1.161.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.160.0 to 1.161.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/036ef458ddccddb148a2b9fb67e95a22fdbf728b...8575951200e472d5f2d95c625da0c7bec8217c42) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index cce3127bc..e2dd0fc42 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 + - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6d825b1b6..986414aa7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.139.0 + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e20532738..2fd139a12 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 + - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2688b3120..d82c30305 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b # v1.160.0 + - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 54cbaa0878002adbcc176bb009259d0992371457 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Wed, 29 Nov 2023 11:40:59 -0800 Subject: [PATCH 173/334] Fix rule example to be correct .c -> .o requires the -c flag. This could be confusing. --- lib/rake/dsl_definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb index 27969d69e..a9dd9f820 100644 --- a/lib/rake/dsl_definition.rb +++ b/lib/rake/dsl_definition.rb @@ -145,7 +145,7 @@ def namespace(name=nil, &block) # :doc: # # Example: # rule '.o' => '.c' do |t| - # sh 'cc', '-o', t.name, t.source + # sh 'cc', '-c', '-o', t.name, t.source # end # def rule(*args, &block) # :doc: From f48b5c25312aafa4515b5344f16ba784294af25d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 07:01:31 +0000 Subject: [PATCH 174/334] Bump actions/deploy-pages from 2 to 3 Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 2 to 3. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 986414aa7..a155aeb26 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,4 +43,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 From 77e929f094281343ab56f0e312d94cf6e56c078e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 07:01:34 +0000 Subject: [PATCH 175/334] Bump actions/configure-pages from 3 to 4 Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 3 to 4. - [Release notes](https://github.com/actions/configure-pages/releases) - [Commits](https://github.com/actions/configure-pages/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/configure-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 986414aa7..b0654c9c5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,7 +27,7 @@ jobs: bundler-cache: true - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Build with RDoc # Outputs to the './_site' directory by default run: bundle exec rake rdoc From bab7be07e91315879050ec702eeb9452376b3074 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 07:30:33 +0000 Subject: [PATCH 176/334] Bump ruby/setup-ruby from 1.161.0 to 1.162.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.161.0 to 1.162.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/8575951200e472d5f2d95c625da0c7bec8217c42...af848b40be8bb463a751551a1180d74782ba8a72) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e2dd0fc42..87b038757 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 874b98c78..c579d3be1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.139.0 + uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2fd139a12..d371d8f6f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d82c30305..d6386a371 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From c4a30c4c6145ffea0d19c6cfb885a2b9047bff3d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 07:59:32 +0000 Subject: [PATCH 177/334] Bump lewagon/wait-on-check-action from 1.3.1 to 1.3.3 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.1 to 1.3.3. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.3.1...v1.3.3) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index cc66fac30..ea0052386 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -12,7 +12,7 @@ jobs: uses: dependabot/fetch-metadata@v1 id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@v1.3.1 + uses: lewagon/wait-on-check-action@v1.3.3 with: repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From 409de574ed4c0d1c37edab70bcee1654d0415a67 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 07:59:36 +0000 Subject: [PATCH 178/334] Bump actions/deploy-pages from 3 to 4 Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 3 to 4. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c579d3be1..161432bcc 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,4 +43,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 From 23398908f8cb17ede14bdbee334da8b17c80ed16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 07:59:39 +0000 Subject: [PATCH 179/334] Bump actions/upload-pages-artifact from 2 to 3 Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c579d3be1..f871edb68 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -32,7 +32,7 @@ jobs: # Outputs to the './_site' directory by default run: bundle exec rake rdoc - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 deploy: environment: From 200eb8dd02d31331f0df47ef4cf21874ec49fed7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 07:31:16 +0000 Subject: [PATCH 180/334] Bump ruby/setup-ruby from 1.162.0 to 1.165.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.162.0 to 1.165.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/af848b40be8bb463a751551a1180d74782ba8a72...360dc864d5da99d54fcb8e9148c14a84b90d3e88) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 87b038757..54ff3a020 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 + - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 161432bcc..5d606635b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.139.0 + uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d371d8f6f..d15f73dd7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 + - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6386a371..07654a55a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0 + - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From c94aff84eabb6e86c22ce7f6d2a44d9a813341c9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 9 Jan 2024 16:57:49 +0900 Subject: [PATCH 181/334] Switch to use test-unit from minitest --- Gemfile | 2 +- test/helper.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 04edfabcf..78bc01c96 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ source "https://rubygems.org" gemspec group :development do - gem "minitest" + gem "test-unit" gem "coveralls" gem "rubocop" end diff --git a/test/helper.rb b/test/helper.rb index 32456fde4..7ef6e6958 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -10,8 +10,7 @@ rescue Gem::LoadError end -gem "minitest", "~> 5" -require "minitest/autorun" +require "test/unit" require "rake" require "tmpdir" @@ -19,7 +18,7 @@ require_relative "support/ruby_runner" require_relative "support/rakefile_definitions" -class Rake::TestCase < Minitest::Test +class Rake::TestCase < Test::Unit::TestCase include FileCreation include Rake::DSL From 2bc6561ed181c2889c27d028d2dbfe09bc43302b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:15:32 +0900 Subject: [PATCH 182/334] Use capture_output instead of capture_io --- test/test_rake_application.rb | 58 +++++++++++++-------------- test/test_rake_application_options.rb | 10 ++--- test/test_rake_clean.rb | 10 ++--- test/test_rake_file_list.rb | 4 +- test/test_rake_file_utils.rb | 6 +-- test/test_rake_rake_test_loader.rb | 6 +-- test/test_rake_task.rb | 4 +- test/test_rake_top_level_functions.rb | 4 +- test/test_rake_win32.rb | 2 +- test/test_thread_history_display.rb | 16 ++++---- 10 files changed, 60 insertions(+), 60 deletions(-) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index df756a4ad..98ca3ca22 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -48,7 +48,7 @@ def test_display_exception_details rescue => ex end - out, err = capture_io do + out, err = capture_output do @app.set_default_options # reset trace output IO @app.display_error_message ex @@ -72,7 +72,7 @@ def detailed_message(**) rescue error_class => ex end - out, err = capture_io do + out, err = capture_output do @app.set_default_options # reset trace output IO @app.display_error_message ex @@ -91,7 +91,7 @@ def test_display_exception_details_bad_encoding rescue => ex end - out, err = capture_io do + out, err = capture_output do @app.set_default_options # reset trace output IO @app.display_error_message ex @@ -111,7 +111,7 @@ def test_display_exception_details_cause end end - out, err = capture_io do + out, err = capture_output do @app.set_default_options # reset trace output IO @app.display_error_message ex @@ -129,7 +129,7 @@ def test_display_tasks @app.options.show_task_pattern = // @app.last_description = "COMMENT" @app.define_task(Rake::Task, "t") - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t/, out) assert_match(/# COMMENT/, out) end @@ -142,7 +142,7 @@ def test_display_tasks_with_long_comments @app.last_description = numbers @app.define_task(Rake::Task, "t") - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t/, out) assert_match(/# #{numbers[0, 65]}\.\.\./, out) @@ -156,7 +156,7 @@ def test_display_tasks_with_task_name_wider_than_tty_display @app.last_description = "something short" @app.define_task(Rake::Task, task_name) - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end # Ensure the entire task name is output and we end up showing no description assert_match(/rake #{task_name} # .../, out) @@ -171,7 +171,7 @@ def test_display_tasks_with_very_long_task_name_to_a_non_tty_shows_name_and_comm @app.last_description = "something short" @app.define_task(Rake::Task, task_name) - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end # Ensure the entire task name is output and we end up showing no description assert_match(/rake #{task_name} # #{description}/, out) @@ -183,7 +183,7 @@ def test_display_tasks_with_long_comments_to_a_non_tty_shows_entire_comment @app.tty_output = false @app.last_description = "1234567890" * 8 @app.define_task(Rake::Task, "t") - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t/, out) assert_match(/# #{@app.last_description}/, out) end @@ -197,7 +197,7 @@ def test_truncating_comments_to_a_non_tty @app.last_description = numbers @app.define_task(Rake::Task, "t") - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t/, out) assert_match(/# #{numbers[0, 65]}\.\.\./, out) @@ -208,7 +208,7 @@ def test_describe_tasks @app.options.show_task_pattern = // @app.last_description = "COMMENT" @app.define_task(Rake::Task, "t") - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t$/, out) assert_match(/^ {4}COMMENT$/, out) end @@ -219,7 +219,7 @@ def test_show_lines @app.last_description = "COMMENT" @app.define_task(Rake::Task, "t") @app["t"].locations << "HERE:1" - out, = capture_io do @app.instance_eval { display_tasks_and_comments } end + out, = capture_output do @app.instance_eval { display_tasks_and_comments } end assert_match(/^rake t +[^:]+:\d+ *$/, out) end @@ -251,7 +251,7 @@ def test_load_rakefile def test_load_rakefile_doesnt_print_rakefile_directory_from_same_dir rakefile_unittest - _, err = capture_io do + _, err = capture_output do @app.instance_eval do # pretend we started from the unittest dir @original_dir = File.expand_path(".") @@ -283,7 +283,7 @@ def test_load_rakefile_prints_rakefile_directory_from_subdir app = Rake::Application.new app.options.rakelib = [] - _, err = capture_io do + _, err = capture_output do app.instance_eval do raw_load_rakefile end @@ -296,7 +296,7 @@ def test_load_rakefile_doesnt_print_rakefile_directory_from_subdir_if_silent rakefile_unittest Dir.chdir "subdir" - _, err = capture_io do + _, err = capture_output do @app.instance_eval do handle_options [] options.silent = true @@ -455,7 +455,7 @@ def test_good_run rakefile_default - out, err = capture_io do + out, err = capture_output do @app.run %w[--rakelib=""] end @@ -468,7 +468,7 @@ def test_display_task_run ran = false @app.last_description = "COMMENT" @app.define_task(Rake::Task, "default") - out, = capture_io { @app.run %w[-f -s --tasks --rakelib=""] } + out, = capture_output { @app.run %w[-f -s --tasks --rakelib=""] } assert @app.options.show_tasks assert ! ran assert_match(/rake default/, out) @@ -482,7 +482,7 @@ def test_display_prereqs t.enhance([:a, :b]) @app.define_task(Rake::Task, "a") @app.define_task(Rake::Task, "b") - out, = capture_io { @app.run %w[-f -s --prereqs --rakelib=""] } + out, = capture_output { @app.run %w[-f -s --prereqs --rakelib=""] } assert @app.options.show_prereqs assert ! ran assert_match(/rake a$/, out) @@ -492,7 +492,7 @@ def test_display_prereqs def test_bad_run @app.intern(Rake::Task, "default").enhance { fail } - _, err = capture_io { + _, err = capture_output { assert_raises(SystemExit) { @app.run %w[-f -s --rakelib=""] } } assert_match(/see full trace/i, err) @@ -500,7 +500,7 @@ def test_bad_run def test_bad_run_with_trace @app.intern(Rake::Task, "default").enhance { fail } - _, err = capture_io { + _, err = capture_output { @app.set_default_options assert_raises(SystemExit) { @app.run %w[-f -s -t] } } @@ -509,7 +509,7 @@ def test_bad_run_with_trace def test_bad_run_with_backtrace @app.intern(Rake::Task, "default").enhance { fail } - _, err = capture_io { + _, err = capture_output { assert_raises(SystemExit) { @app.run %w[-f -s --backtrace] } @@ -523,7 +523,7 @@ def test_bad_run_includes_exception_name @app.intern(Rake::Task, "default").enhance { raise CustomError, "intentional" } - _, err = capture_io { + _, err = capture_output { assert_raises(SystemExit) { @app.run %w[-f -s] } @@ -535,7 +535,7 @@ def test_rake_error_excludes_exception_name @app.intern(Rake::Task, "default").enhance { fail "intentional" } - _, err = capture_io { + _, err = capture_output { assert_raises(SystemExit) { @app.run %w[-f -s] } @@ -558,7 +558,7 @@ def test_printing_original_exception_cause raise custom_error, "Secondary Error" end } - _ ,err = capture_io { + _ ,err = capture_output { assert_raises(SystemExit) { @app.run %w[-f -s] } @@ -572,12 +572,12 @@ def test_printing_original_exception_cause def test_run_with_bad_options @app.intern(Rake::Task, "default").enhance { fail } assert_raises(SystemExit) { - capture_io { @app.run %w[-f -s --xyzzy] } + capture_output { @app.run %w[-f -s --xyzzy] } } end def test_standard_exception_handling_invalid_option - out, err = capture_io do + out, err = capture_output do e = assert_raises SystemExit do @app.standard_exception_handling do raise OptionParser::InvalidOption, "blah" @@ -592,7 +592,7 @@ def test_standard_exception_handling_invalid_option end def test_standard_exception_handling_other - out, err = capture_io do + out, err = capture_output do @app.set_default_options # reset trace output IO e = assert_raises SystemExit do @@ -610,7 +610,7 @@ def test_standard_exception_handling_other end def test_standard_exception_handling_system_exit - out, err = capture_io do + out, err = capture_output do e = assert_raises SystemExit do @app.standard_exception_handling do exit 0 @@ -625,7 +625,7 @@ def test_standard_exception_handling_system_exit end def test_standard_exception_handling_system_exit_nonzero - out, err = capture_io do + out, err = capture_output do e = assert_raises SystemExit do @app.standard_exception_handling do exit 5 diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 92bbeed86..4ba63521b 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -107,7 +107,7 @@ def test_execute_and_continue def test_execute_and_print $xyzzy = 0 - out, = capture_io do + out, = capture_output do flags('--execute-print=$xyzzy="pugh"', '-p $xyzzy="pugh"') do assert_equal "pugh", $xyzzy assert_equal :exit, @exit @@ -119,7 +119,7 @@ def test_execute_and_print end def test_help - out, = capture_io do + out, = capture_output do flags "--help", "-H", "-h" end @@ -386,7 +386,7 @@ def test_no_deprecated_messages end def test_verbose - capture_io do + capture_output do flags("--verbose", "-v") do |opts| assert Rake::FileUtilsExt.verbose_flag, "verbose should be true" assert ! opts.silent, "opts should not be silent" @@ -395,7 +395,7 @@ def test_verbose end def test_version - out, _ = capture_io do + out, _ = capture_output do flags "--version", "-V" end @@ -405,7 +405,7 @@ def test_version end def test_bad_option - _, err = capture_io do + _, err = capture_output do ex = assert_raises(OptionParser::InvalidOption) do flags("--bad-option") end diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index 8fb6a715e..1f7da8a1d 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -19,7 +19,7 @@ def test_clean def test_cleanup file_name = create_undeletable_file - out, _ = capture_io do + out, _ = capture_output do Rake::Cleaner.cleanup(file_name, verbose: false) end assert_match(/failed to remove/i, out) @@ -31,7 +31,7 @@ def test_cleanup def test_cleanup_ignores_missing_files file_name = File.join(@tempdir, "missing_directory", "no_such_file") - out, _ = capture_io do + out, _ = capture_output do Rake::Cleaner.cleanup(file_name, verbose: false) end refute_match(/failed to remove/i, out) @@ -40,7 +40,7 @@ def test_cleanup_ignores_missing_files def test_cleanup_trace file_name = create_file - out, err = capture_io do + out, err = capture_output do with_trace true do Rake::Cleaner.cleanup(file_name) end @@ -79,7 +79,7 @@ def test_cleanup_opt_overrides_trace_silent def test_cleanup_opt_overrides_trace_verbose file_name = create_file - out, err = capture_io do + out, err = capture_output do with_trace false do Rake::Cleaner.cleanup(file_name, verbose: true) end @@ -132,7 +132,7 @@ def with_trace(value) old, Rake.application.options.trace = Rake.application.options.trace, value - # FileUtils caches the $stderr object, which breaks capture_io et. al. + # FileUtils caches the $stderr object, which breaks capture_output et. al. # We hack it here where it's convenient to do so. Rake::Cleaner.instance_variable_set :@fileutils_output, nil yield diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 94572e92b..7a1d7051d 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -383,7 +383,7 @@ def test_egrep_returns_0_if_no_matches def test_egrep_with_output files = FileList["*.txt"] - out, = capture_io do + out, = capture_output do files.egrep(/XYZZY/) end @@ -404,7 +404,7 @@ def test_egrep_with_block def test_egrep_with_error files = FileList["*.txt"] - _, err = capture_io do + _, err = capture_output do files.egrep(/XYZZY/) do |fn, ln, line | raise "_EGREP_FAILURE_" end diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 0fd7de494..181802769 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -129,7 +129,7 @@ def test_nowrite def test_file_utils_methods_are_available_at_top_level create_file("a") - capture_io do + capture_output do rm_rf "a" end @@ -256,7 +256,7 @@ def test_sh_bad_option def test_sh_verbose shellcommand - _, err = capture_io do + _, err = capture_output do verbose(true) { sh %{shellcommand.rb}, noop: true } @@ -268,7 +268,7 @@ def test_sh_verbose def test_sh_verbose_false shellcommand - _, err = capture_io do + _, err = capture_output do verbose(false) { sh %{shellcommand.rb}, noop: true } diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index 4f481cd28..6bde77d9c 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -25,7 +25,7 @@ def test_pattern end def test_load_error_from_missing_test_file - out, err = capture_io do + out, err = capture_output do ARGV.replace %w[no_such_test_file.rb] assert_raises SystemExit do @@ -47,7 +47,7 @@ def test_load_error_from_missing_test_file def test_load_error_raised_implicitly File.write("error_test.rb", "require 'superkalifragilisticoespialidoso'") - out, err = capture_io do + out, err = capture_output do ARGV.replace %w[error_test.rb] exc = assert_raises(LoadError) do @@ -65,7 +65,7 @@ def test_load_error_raised_implicitly def test_load_error_raised_explicitly File.write("error_test.rb", "raise LoadError, 'explicitly raised'") - out, err = capture_io do + out, err = capture_output do ARGV.replace %w[error_test.rb] exc = assert_raises(LoadError) do diff --git a/test/test_rake_task.rb b/test/test_rake_task.rb index bffe2cb59..7dc18aee4 100644 --- a/test/test_rake_task.rb +++ b/test/test_rake_task.rb @@ -64,7 +64,7 @@ def test_invoke_with_circular_dependencies def test_dry_run_prevents_actions runlist = [] t1 = task(:t1) { |t| runlist << t.name; 3321 } - _, err = capture_io { + _, err = capture_output { Rake.application.set_default_options # reset trace output IO Rake.application.options.dryrun = true @@ -80,7 +80,7 @@ def test_dry_run_prevents_actions def test_tasks_can_be_traced t1 = task(:t1) - _, err = capture_io { + _, err = capture_output { Rake.application.set_default_options # reset trace output IO Rake.application.options.trace = true diff --git a/test/test_rake_top_level_functions.rb b/test/test_rake_top_level_functions.rb index f0dec1b76..b29e2368d 100644 --- a/test/test_rake_top_level_functions.rb +++ b/test/test_rake_top_level_functions.rb @@ -46,7 +46,7 @@ def test_import end def test_when_writing - out, = capture_io do + out, = capture_output do when_writing("NOTWRITING") do puts "WRITING" end @@ -56,7 +56,7 @@ def test_when_writing def test_when_not_writing Rake::FileUtilsExt.nowrite_flag = true - _, err = capture_io do + _, err = capture_output do when_writing("NOTWRITING") do puts "WRITING" end diff --git a/test/test_rake_win32.rb b/test/test_rake_win32.rb index ed08ef09e..474bf50e9 100644 --- a/test/test_rake_win32.rb +++ b/test/test_rake_win32.rb @@ -65,7 +65,7 @@ def test_win32_backtrace_with_different_case rake.options.trace = true rake.instance_variable_set(:@rakefile, "Rakefile") - _, err = capture_io { + _, err = capture_output { rake.set_default_options # reset trace output IO rake.display_error_message(ex) diff --git a/test/test_thread_history_display.rb b/test/test_thread_history_display.rb index 026576446..5d706ce34 100644 --- a/test/test_thread_history_display.rb +++ b/test/test_thread_history_display.rb @@ -12,7 +12,7 @@ def setup end def test_banner - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/Job History/i, out) @@ -20,7 +20,7 @@ def test_banner def test_item_queued @stats << event(:item_queued, item_id: 123) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/^ *1000000 +A +item_queued +item_id:1$/, out) @@ -28,7 +28,7 @@ def test_item_queued def test_item_dequeued @stats << event(:item_dequeued, item_id: 123) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/^ *1000000 +A +item_dequeued +item_id:1$/, out) @@ -37,7 +37,7 @@ def test_item_dequeued def test_multiple_items @stats << event(:item_queued, item_id: 123) @stats << event(:item_queued, item_id: 124) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/^ *1000000 +A +item_queued +item_id:1$/, out) @@ -46,7 +46,7 @@ def test_multiple_items def test_waiting @stats << event(:waiting, item_id: 123) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/^ *1000000 +A +waiting +item_id:1$/, out) @@ -54,7 +54,7 @@ def test_waiting def test_continue @stats << event(:continue, item_id: 123) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match(/^ *1000000 +A +continue +item_id:1$/, out) @@ -65,7 +65,7 @@ def test_thread_deleted :thread_deleted, deleted_thread: 123_456, thread_count: 12) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match( @@ -78,7 +78,7 @@ def test_thread_created :thread_created, new_thread: 123_456, thread_count: 13) - out, _ = capture_io do + out, _ = capture_output do @display.show end assert_match( From 3f7b6241f249c36559952bd9023850df509a4118 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:26:03 +0900 Subject: [PATCH 183/334] Rewrite assert_silent with capture_output --- test/test_rake_file_utils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 181802769..a4d4adca7 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -282,9 +282,10 @@ def test_sh_verbose_flag_nil RakeFileUtils.verbose_flag = nil - assert_silent do + out, _ = capture_output do sh %{shellcommand.rb}, noop: true end + assert_empty out end def test_ruby_with_a_single_string_argument From b99a21e462818497414afbca1d54eb40a0100e4a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:42:00 +0900 Subject: [PATCH 184/334] Use capture_output instead of assert_output --- test/test_rake_clean.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index 1f7da8a1d..a9e1a9918 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -59,21 +59,25 @@ def test_cleanup_trace def test_cleanup_without_trace file_name = create_file - assert_output "", "" do + out, err = capture_output do with_trace false do Rake::Cleaner.cleanup(file_name) end end + assert_empty out + assert_empty err end def test_cleanup_opt_overrides_trace_silent file_name = create_file - assert_output "", "" do + out, err = capture_output do with_trace true do Rake::Cleaner.cleanup(file_name, verbose: false) end end + assert_empty out + assert_empty err end def test_cleanup_opt_overrides_trace_verbose From 6ae142173476f7ad58a5b8b1bb661cf3b438143f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:42:29 +0900 Subject: [PATCH 185/334] Define capture_subprocess_io from minitest --- test/test_rake_file_utils.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index a4d4adca7..1df6ce4cb 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -342,6 +342,41 @@ def test_sh_if_a_command_exits_with_error_status_sh_echoes_it_fully end end + # https://github.com/seattlerb/minitest/blob/21d9e804b63c619f602f3f4ece6c71b48974707a/lib/minitest/assertions.rb#L188 + def _synchronize + yield + end + + # https://github.com/seattlerb/minitest/blob/21d9e804b63c619f602f3f4ece6c71b48974707a/lib/minitest/assertions.rb#L546 + def capture_subprocess_io + _synchronize do + require "tempfile" + + captured_stdout = Tempfile.new("out") + captured_stderr = Tempfile.new("err") + + orig_stdout = $stdout.dup + orig_stderr = $stderr.dup + $stdout.reopen captured_stdout + $stderr.reopen captured_stderr + + yield + + $stdout.rewind + $stderr.rewind + + return captured_stdout.read, captured_stderr.read + ensure + $stdout.reopen orig_stdout + $stderr.reopen orig_stderr + + orig_stdout.close + orig_stderr.close + captured_stdout.close! + captured_stderr.close! + end + end + def assert_echoes_fully long_string = "1234567890" * 10 shell_command = "ruby -e\"'#{long_string}';exit false\"" From ddc4b922f94bb0027d3bf8e00ec20fdb98560277 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:42:43 +0900 Subject: [PATCH 186/334] Use FrozenError instead of RuntimeError if FrozenError was declared --- test/test_rake_file_list.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 7a1d7051d..0527b03c6 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -519,7 +519,8 @@ def test_cloned_items_stay_frozen a = FileList["a", "b", "c"] a.freeze c = a.clone - assert_raises(TypeError, RuntimeError) do + error_class = defined?(FrozenError) ? FrozenError : RuntimeError + assert_raises(error_class) do c << "more" end end From 1336b5e9fbc56ea0054c94e4a39152b31623fbf7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:47:13 +0900 Subject: [PATCH 187/334] Added begin-end for Ruby 2.4 parser of rubocop --- test/test_rake_file_utils.rb | 38 +++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 1df6ce4cb..1b3e4fb39 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -350,30 +350,32 @@ def _synchronize # https://github.com/seattlerb/minitest/blob/21d9e804b63c619f602f3f4ece6c71b48974707a/lib/minitest/assertions.rb#L546 def capture_subprocess_io _synchronize do - require "tempfile" + begin + require "tempfile" - captured_stdout = Tempfile.new("out") - captured_stderr = Tempfile.new("err") + captured_stdout = Tempfile.new("out") + captured_stderr = Tempfile.new("err") - orig_stdout = $stdout.dup - orig_stderr = $stderr.dup - $stdout.reopen captured_stdout - $stderr.reopen captured_stderr + orig_stdout = $stdout.dup + orig_stderr = $stderr.dup + $stdout.reopen captured_stdout + $stderr.reopen captured_stderr - yield + yield - $stdout.rewind - $stderr.rewind + $stdout.rewind + $stderr.rewind - return captured_stdout.read, captured_stderr.read - ensure - $stdout.reopen orig_stdout - $stderr.reopen orig_stderr + return captured_stdout.read, captured_stderr.read + ensure + $stdout.reopen orig_stdout + $stderr.reopen orig_stderr - orig_stdout.close - orig_stderr.close - captured_stdout.close! - captured_stderr.close! + orig_stdout.close + orig_stderr.close + captured_stdout.close! + captured_stderr.close! + end end end From c7b5ce777e7e6cdd17f5a7b6fa8c42da6ffea353 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:53:33 +0900 Subject: [PATCH 188/334] Install test-unit on GHA --- .github/workflows/coverage.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 54ff3a020..e26b9ce94 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,7 +14,7 @@ jobs: with: ruby-version: '3.0' - name: Install dependencies - run: gem install minitest -v "5.15.0" + run: gem install test-unit - name: Run test env: COVERALLS: "yes" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07654a55a..4636288a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,6 @@ jobs: with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies - run: gem install minitest -v "5.15.0" + run: gem install test-unit - name: Run test run: ruby -Ilib exe/rake From 18065176891fba43848725bad30d33111c7da23f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:54:06 +0900 Subject: [PATCH 189/334] need to install coveralls --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e26b9ce94..207824678 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,7 +14,7 @@ jobs: with: ruby-version: '3.0' - name: Install dependencies - run: gem install test-unit + run: gem install test-unit coveralls - name: Run test env: COVERALLS: "yes" From 88bbdd7829779c42c40383e5442199abed84668c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 15:56:04 +0900 Subject: [PATCH 190/334] Fix Regexp literal --- test/test_rake_functional.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rake_functional.rb b/test/test_rake_functional.rb index afc31d28f..658cb5aac 100644 --- a/test/test_rake_functional.rb +++ b/test/test_rake_functional.rb @@ -442,7 +442,7 @@ def test_comment_separated_from_task_by_blank_line_is_not_picked_up rake "-T" - refute_match("t2", @out) + refute_match(/t2/, @out) end def test_comment_after_desc_is_ignored From 83ce43e96350a96baa09c93877fcfeb95c0edc91 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 10 Jan 2024 16:01:04 +0900 Subject: [PATCH 191/334] Use omit instead of skip for test-unit --- test/test_rake_application.rb | 2 +- test/test_rake_application_options.rb | 2 +- test/test_rake_backtrace.rb | 2 +- test/test_rake_clean.rb | 2 +- test/test_rake_cpu_counter.rb | 2 +- test/test_rake_file_utils.rb | 10 +++++----- test/test_rake_functional.rb | 10 +++++----- test/test_rake_task_with_arguments.rb | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index 98ca3ca22..2d4e52c00 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -308,7 +308,7 @@ def test_load_rakefile_doesnt_print_rakefile_directory_from_subdir_if_silent end def test_load_rakefile_not_found - skip if jruby9? + omit if jruby9? Dir.chdir @tempdir ENV["RAKE_SYSTEM"] = "not_exist" diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 4ba63521b..241db55cd 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -200,7 +200,7 @@ def test_require end def test_missing_require - skip if jruby? + omit if jruby? ex = assert_raises(LoadError) do flags(["--require", "test/missing"]) do |opts| diff --git a/test/test_rake_backtrace.rb b/test/test_rake_backtrace.rb index 05a2dfda1..f605384e2 100644 --- a/test/test_rake_backtrace.rb +++ b/test/test_rake_backtrace.rb @@ -40,7 +40,7 @@ class TestRakeBacktrace < Rake::TestCase # :nodoc: def setup super - skip "tmpdir is suppressed in backtrace" if + omit "tmpdir is suppressed in backtrace" if Rake::Backtrace::SUPPRESS_PATTERN =~ Dir.pwd end diff --git a/test/test_rake_clean.rb b/test/test_rake_clean.rb index a9e1a9918..dfc8a2192 100644 --- a/test/test_rake_clean.rb +++ b/test/test_rake_clean.rb @@ -119,7 +119,7 @@ def create_undeletable_file rescue file_name else - skip "Permission to delete files is different on this system" + omit "Permission to delete files is different on this system" end end diff --git a/test/test_rake_cpu_counter.rb b/test/test_rake_cpu_counter.rb index 5d04e7c97..fd00b888f 100644 --- a/test/test_rake_cpu_counter.rb +++ b/test/test_rake_cpu_counter.rb @@ -11,7 +11,7 @@ def setup def test_count num = @cpu_counter.count - skip "cannot count CPU" if num == nil + omit "cannot count CPU" if num == nil assert_kind_of Numeric, num assert_operator num, :>=, 1 end diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 1b3e4fb39..42dccac6c 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -171,7 +171,7 @@ def test_sh_with_env end def test_sh_with_multiple_arguments - skip if jruby9? # https://github.com/jruby/jruby/issues/3653 + omit if jruby9? # https://github.com/jruby/jruby/issues/3653 check_no_expansion ENV["RAKE_TEST_SH"] = "someval" @@ -182,7 +182,7 @@ def test_sh_with_multiple_arguments end def test_sh_with_spawn_options - skip "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby? echocommand @@ -198,7 +198,7 @@ def test_sh_with_spawn_options end def test_sh_with_hash_option - skip "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby? check_expansion verbose(false) { @@ -243,7 +243,7 @@ def test_sh_noop def test_sh_bad_option # Skip on JRuby because option checking is performed by spawn via system # now. - skip "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby? shellcommand @@ -395,7 +395,7 @@ def assert_echoes_fully end def test_ruby_with_multiple_arguments - skip if jruby9? # https://github.com/jruby/jruby/issues/3653 + omit if jruby9? # https://github.com/jruby/jruby/issues/3653 check_no_expansion diff --git a/test/test_rake_functional.rb b/test/test_rake_functional.rb index 658cb5aac..6ab005f53 100644 --- a/test/test_rake_functional.rb +++ b/test/test_rake_functional.rb @@ -123,7 +123,7 @@ def test_by_default_rakelib_files_are_included end def test_implicit_system - skip if jruby9? + omit if jruby9? rake_system_dir Dir.chdir @tempdir @@ -470,7 +470,7 @@ def test_correct_number_of_tasks_reported end def test_file_list_is_requirable_separately - skip if jruby9? # https://github.com/jruby/jruby/issues/3655 + omit if jruby9? # https://github.com/jruby/jruby/issues/3655 ruby "-rrake/file_list", "-e", 'puts Rake::FileList["a"].size' assert_equal "1\n", @out @@ -496,12 +496,12 @@ def test_signal_propagation_in_tests assert_match(/ATEST/, @out) refute_match(/BTEST/, @out) else - skip "Signal detect seems broken on this system" + omit "Signal detect seems broken on this system" end end def test_failing_test_sets_exit_status - skip if uncertain_exit_status? + omit if uncertain_exit_status? rakefile_failing_test_task rake assert @exit.exitstatus > 0, "should be non-zero" @@ -520,7 +520,7 @@ def test_stand_alone_filelist # We are unable to accurately verify that Rake returns a proper # error exit status using popen3 in Ruby 1.8.7 and JRuby. This - # predicate function can be used to skip tests or assertions as + # predicate function can be used to omit tests or assertions as # needed. def uncertain_exit_status? defined?(JRUBY_VERSION) diff --git a/test/test_rake_task_with_arguments.rb b/test/test_rake_task_with_arguments.rb index 36dfa2646..5cd5d0e98 100644 --- a/test/test_rake_task_with_arguments.rb +++ b/test/test_rake_task_with_arguments.rb @@ -83,7 +83,7 @@ def test_actions_of_various_arity_are_ok_with_args def test_actions_adore_keywords # https://github.com/ruby/rake/pull/174#issuecomment-263460761 - skip if jruby9? + omit if jruby9? eval <<-RUBY, binding, __FILE__, __LINE__+1 notes = [] t = task :t, [:reqr, :ovrd, :dflt] # required, overridden-optional, default-optional From 0cb25e029cd929463ff8764e1d25868ecd92e0ec Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 11 Jan 2024 10:31:40 +0900 Subject: [PATCH 192/334] Removed redundant block --- test/test_rake_file_utils.rb | 47 +++++++++++++++--------------------- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 42dccac6c..3af5e96f1 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -342,40 +342,33 @@ def test_sh_if_a_command_exits_with_error_status_sh_echoes_it_fully end end - # https://github.com/seattlerb/minitest/blob/21d9e804b63c619f602f3f4ece6c71b48974707a/lib/minitest/assertions.rb#L188 - def _synchronize - yield - end - - # https://github.com/seattlerb/minitest/blob/21d9e804b63c619f602f3f4ece6c71b48974707a/lib/minitest/assertions.rb#L546 + # Originally copied from minitest/assertions.rb def capture_subprocess_io - _synchronize do - begin - require "tempfile" + begin + require "tempfile" - captured_stdout = Tempfile.new("out") - captured_stderr = Tempfile.new("err") + captured_stdout = Tempfile.new("out") + captured_stderr = Tempfile.new("err") - orig_stdout = $stdout.dup - orig_stderr = $stderr.dup - $stdout.reopen captured_stdout - $stderr.reopen captured_stderr + orig_stdout = $stdout.dup + orig_stderr = $stderr.dup + $stdout.reopen captured_stdout + $stderr.reopen captured_stderr - yield + yield - $stdout.rewind - $stderr.rewind + $stdout.rewind + $stderr.rewind - return captured_stdout.read, captured_stderr.read - ensure - $stdout.reopen orig_stdout - $stderr.reopen orig_stderr + [captured_stdout.read, captured_stderr.read] + ensure + $stdout.reopen orig_stdout + $stderr.reopen orig_stderr - orig_stdout.close - orig_stderr.close - captured_stdout.close! - captured_stderr.close! - end + orig_stdout.close + orig_stderr.close + captured_stdout.close! + captured_stderr.close! end end From 84a4ef7a32773e1430a43171a310c2440ad4cff9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 07:05:38 +0000 Subject: [PATCH 193/334] Bump ruby/setup-ruby from 1.165.1 to 1.168.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.165.1 to 1.168.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/360dc864d5da99d54fcb8e9148c14a84b90d3e88...432702e864cadc1b56247e31aa341be5be3e129a) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 207824678..f12c04150 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6bc23db69..384424baf 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.139.0 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d15f73dd7..b6f6a654f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4636288a5..33aaa830f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # v1.165.1 + - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From ab774893a0051207e75d42ec3ba55eb53c3f90af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 07:53:11 +0000 Subject: [PATCH 194/334] Bump ruby/setup-ruby from 1.168.0 to 1.172.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.168.0 to 1.172.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/432702e864cadc1b56247e31aa341be5be3e129a...d4526a55538b775af234ba4af27118ed6f8f6677) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f12c04150..dd159b5ec 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 384424baf..8961a34f4 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.139.0 + uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b6f6a654f..5a0b13253 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33aaa830f..c9bfd3966 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 - - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0 + - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From c8739550dffc40cd2e864266ab5e84f7ec86e6c5 Mon Sep 17 00:00:00 2001 From: gemmaro Date: Wed, 20 Dec 2023 19:47:46 +0900 Subject: [PATCH 195/334] Accept FileList object as directory task's target --- lib/rake/dsl_definition.rb | 1 + test/test_rake_directory_task.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb index a9dd9f820..6bd660cb6 100644 --- a/lib/rake/dsl_definition.rb +++ b/lib/rake/dsl_definition.rb @@ -90,6 +90,7 @@ def file_create(*args, &block) # directory "testdata/doc" # def directory(*args, &block) # :doc: + args = args.flat_map { |arg| arg.is_a?(FileList) ? arg.to_a.flatten : arg } result = file_create(*args, &block) dir, _ = *Rake.application.resolve_args(args) dir = Rake.from_pathname(dir) diff --git a/test/test_rake_directory_task.rb b/test/test_rake_directory_task.rb index 5635afd13..628344a1b 100644 --- a/test/test_rake_directory_task.rb +++ b/test/test_rake_directory_task.rb @@ -74,4 +74,16 @@ def test_can_use_pathname assert File.directory?("a/b/c") end + + def test_can_use_filelist + directory FileList["a", "b", "c"] + + assert_equal FileCreationTask, Task["a"].class + + verbose(false) { + Task["a"].invoke + } + + assert File.directory?("a") + end end From a27bb8e10786efa4776cc3ecfe12490e1ea106a7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 14 Mar 2024 18:07:57 +0900 Subject: [PATCH 196/334] Use Struct instead of OpenStruct. I will migrate osturct as bundled gems at Ruby 3.5. We should remove its dependency from Rake --- lib/rake.rb | 1 - lib/rake/application.rb | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/rake.rb b/lib/rake.rb index 0dfd05315..0f3d6a330 100644 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -30,7 +30,6 @@ module Rake; end require "singleton" require "monitor" require "optparse" -require "ostruct" require "rake/ext/string" diff --git a/lib/rake/application.rb b/lib/rake/application.rb index ac5714b11..143c96f03 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -165,7 +165,15 @@ def add_loader(ext, loader) # Application options from the command line def options - @options ||= OpenStruct.new + return @options if @options + + @options = Struct.new( + :always_multitask, :backtrace, :build_all, :dryrun, + :ignore_deprecate, :ignore_system, :job_stats, :load_system, + :nosearch, :rakelib, :show_all_tasks, :show_prereqs, + :show_task_pattern, :show_tasks, :silent, :suppress_backtrace_pattern, + :thread_pool_size, :trace, :trace_output, :trace_rules + ).new end # Return the thread pool used for multithreaded processing. From f4d6eebb6d886d23496f45ee088e024f33c25ada Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 14 Mar 2024 18:22:04 +0900 Subject: [PATCH 197/334] Avoid to warning for variable initialization --- lib/rake/application.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 143c96f03..b5631cdf6 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -165,9 +165,7 @@ def add_loader(ext, loader) # Application options from the command line def options - return @options if @options - - @options = Struct.new( + @options ||= Struct.new( :always_multitask, :backtrace, :build_all, :dryrun, :ignore_deprecate, :ignore_system, :job_stats, :load_system, :nosearch, :rakelib, :show_all_tasks, :show_prereqs, From a8d1107aafc132c8b797cb98465b6c7a14933f3b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 07:04:53 +0000 Subject: [PATCH 198/334] Bump actions/checkout from 4.1.1 to 4.1.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index dd159b5ec..3abff6242 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8961a34f4..a81b3a816 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 - name: Setup Ruby uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a0b13253..9fb67cf38 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9bfd3966..c20d5a465 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 with: ruby-version: ${{ matrix.ruby }} From 3d1fba78c660def6595aed6f96bc5333c7b8d432 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 07:32:59 +0000 Subject: [PATCH 199/334] Bump dependabot/fetch-metadata from 1 to 2 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1 to 2. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1...v2) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index ea0052386..47cd43bb9 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -9,7 +9,7 @@ jobs: if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Dependabot metadata - uses: dependabot/fetch-metadata@v1 + uses: dependabot/fetch-metadata@v2 id: metadata - name: Wait for status checks uses: lewagon/wait-on-check-action@v1.3.3 From 5fe71f7491401ce81d2a38baad50fa20e639927a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 07:33:06 +0000 Subject: [PATCH 200/334] Bump ruby/setup-ruby from 1.172.0 to 1.173.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.172.0 to 1.173.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/d4526a55538b775af234ba4af27118ed6f8f6677...5f19ec79cedfadb78ab837f95b87734d0003c899) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3abff6242..3c835a464 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 + - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a81b3a816..5a84f24fa 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 - name: Setup Ruby - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.139.0 + uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9fb67cf38..25e4a1f2e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 + - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c20d5a465..b1f64f53f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 - - uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0 + - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From c342e96d86f11f7a46c6187a7a79baaa14a58295 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Mon, 25 Mar 2024 18:01:39 +0200 Subject: [PATCH 201/334] Add TruffleRuby on CI --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1f64f53f..b98338d17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,7 @@ jobs: with: min_version: 2.3 engine: cruby-jruby + versions: '["truffleruby"]' test: needs: ruby-versions From 3dc4277aa0e2da717f0421292205b4fbab5f2f90 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 07:36:46 +0000 Subject: [PATCH 202/334] Bump actions/configure-pages from 4 to 5 Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 4 to 5. - [Release notes](https://github.com/actions/configure-pages/releases) - [Commits](https://github.com/actions/configure-pages/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/configure-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5a84f24fa..d687e8890 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,7 +27,7 @@ jobs: bundler-cache: true - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Build with RDoc # Outputs to the './_site' directory by default run: bundle exec rake rdoc From 675498cb71f7267e0a5d66947325dc0c7386296f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 2 Apr 2024 10:30:41 +0900 Subject: [PATCH 203/334] Bump up 13.2.0 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 9808db094..5d423ee19 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.1.0" + VERSION = "13.2.0" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 54950e023c051cee2e5a540f9ff7372080038b6f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 5 Apr 2024 15:10:29 +0900 Subject: [PATCH 204/334] Suppressed ":52:in 'Array#each'" from backtrace --- lib/rake/backtrace.rb | 1 + test/test_rake_backtrace.rb | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/lib/rake/backtrace.rb b/lib/rake/backtrace.rb index 31ff05450..c87f2f991 100644 --- a/lib/rake/backtrace.rb +++ b/lib/rake/backtrace.rb @@ -10,6 +10,7 @@ module Backtrace # :nodoc: all map { |f| File.expand_path(f) }. reject { |s| s.nil? || s =~ /^ *$/ } SUPPRESSED_PATHS_RE = SUPPRESSED_PATHS.map { |f| Regexp.quote(f) }.join("|") + SUPPRESSED_PATHS_RE << "|^" SUPPRESSED_PATHS_RE << "|^org\\/jruby\\/\\w+\\.java" if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == "jruby" diff --git a/test/test_rake_backtrace.rb b/test/test_rake_backtrace.rb index f605384e2..e4c7fb0ff 100644 --- a/test/test_rake_backtrace.rb +++ b/test/test_rake_backtrace.rb @@ -32,6 +32,14 @@ def test_near_system_dir_isnt_suppressed assert_equal paths, actual end + + def test_ruby_array_each_suppressed + paths = [":52:in 'Array#each'"] + + actual = Rake::Backtrace.collapse(paths) + + assert_equal [], actual + end end class TestRakeBacktrace < Rake::TestCase # :nodoc: From d84f6ef7f3540a1d0e95fabe451ea3a16157791b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 5 Apr 2024 15:27:56 +0900 Subject: [PATCH 205/334] Bump up 13.2.1 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 5d423ee19..bba5f1b74 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.2.0" + VERSION = "13.2.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 0e617a64f72129a54ae7c27d1f8ab01306daed41 Mon Sep 17 00:00:00 2001 From: Vitaliy Serov Date: Fri, 5 Apr 2024 12:42:54 +0300 Subject: [PATCH 206/334] Add missing changelog --- History.rdoc | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/History.rdoc b/History.rdoc index b8751f9b6..51e9f711e 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,54 @@ +=== 13.2.1 + +* Suppressed "internal:array:52:in 'Array#each'" from backtrace by @hsbt in #554 +* Bump actions/configure-pages from 4 to 5 by @dependabot in #553 + +=== 13.2.0 + +* Fix rule example to be correct by @zenspider in #525 +* Switch to use test-unit by @hsbt in #536 +* Removed redundant block by @hsbt in #537 +* Use Struct instead of OpenStruct. by @hsbt in #545 +* Accept FileList object as directory task's target by @gemmaro in #530 +* Fix exception when exception has nil backtrace by @janbiedermann in #451 +* Add TruffleRuby on CI by @andrykonchin in #551 + +=== 13.1.0 + +* Added dependabot.yml for actions by @hsbt in #416 +* Add Ruby 3.1 to the CI matrix by @petergoldstein in #415 +* (Performance) Remove unnecessary I/O syscalls for FileTasks by @da2x in #393 +* Skip test failure with JRuby by @hsbt in #418 +* Remove bin/rdoc by @tnir in #421 +* Remove bin/rake by @tnir in #422 +* Remove bin/bundle by @tnir in #425 +* Apply RuboCop linting for Ruby 2.3 by @tnir in #423 +* Update rubocop to work with Ruby 2.4 compatible by @tnir in #424 +* chore: fix typo in comments by @tnir in #429 +* Use 'test' as workflow name on Actions by @tnir in #427 +* docs: update CONTRIBUTING.rdoc by @tnir in #428 +* Add RuboCop job to Actions by @tnir in #426 +* Lock minitest-5.15.0 for Ruby 2.2 by @hsbt in #442 +* Eagerly require set in thread_pool.rb by @jeremyevans in #440 +* Avoid creating an unnecessary thread pool by @jeremyevans in #441 +* Add credit for maintenance in Rake 12/13 by @tnir in #443 +* Sh fully echoes commands which error exit by @MarkDBlackwell in #147 +* Correct RuboCop offenses by @deivid-rodriguez in #444 +* [StepSecurity] ci: Harden GitHub Actions by @step-security-bot in #450 +* Add ruby 3.2 to test matrix by @hanneskaeufler in #458 +* Missing 'do' on example by @zzak in #467 +* Try to use dependabot automerge by @hsbt in #470 +* Rewrite auto-merge feature for dependabot by @hsbt in #471 +* Update bundler in Dependabot by @ono-max in #472 +* Fix grammar in help text by @mebezac in #381 +* Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master by @hsbt in #475 +* Use GitHub Pages Action for generating rdoc page by @hsbt in #477 +* Support #detailed_message when task failed by @ksss in #486 +* Debug at stop when task fail by @ksss in #489 +* Drop to support Ruby 2.2 by @hsbt in #492 +* Bump up setup-ruby by @hsbt in #497 +* Update development dependencies by @hsbt in #505 + === 13.0.6 * Additional fix for #389 @@ -37,7 +88,7 @@ ==== Bug fixes -* Fixed bug: Reenabled task raises previous exception on second invokation +* Fixed bug: Reenabled task raises previous exception on second invokation Pull Request #271 by thorsteneckel * Fix an incorrectly resolved arg pattern Pull Request #327 by mjbellantoni @@ -48,7 +99,7 @@ * Follows recent changes on keyword arguments in ruby 2.7. Pull Request #326 by nobu -* Make `PackageTask` be able to omit parent directory while packing files +* Make `PackageTask` be able to omit parent directory while packing files Pull Request #310 by tonytonyjan * Add order only dependency Pull Request #269 by take-cheeze From 4ba959c877eeafd47d3cd383f8ff803fcad5c50c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 07:05:00 +0000 Subject: [PATCH 207/334] Bump lewagon/wait-on-check-action from 1.3.3 to 1.3.4 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.3 to 1.3.4. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.3.3...v1.3.4) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 47cd43bb9..57e0fe279 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -12,7 +12,7 @@ jobs: uses: dependabot/fetch-metadata@v2 id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@v1.3.3 + uses: lewagon/wait-on-check-action@v1.3.4 with: repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From 50c2dae937efb7f940790619a68f79439a801a05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 07:55:52 +0000 Subject: [PATCH 208/334] Bump actions/checkout from 4.1.2 to 4.1.3 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9bb56186c3b09b4f86b1c65136769dd318469633...1d96c772d19495a3b5c517cd2bc0cb401ea0529f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3c835a464..9162014bd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d687e8890..27afc6e08 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f - name: Setup Ruby uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 25e4a1f2e..d02ef6d0a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b98338d17..90d9aca00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.3.0 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 with: ruby-version: ${{ matrix.ruby }} From 7a350d539b67197161d72bfa6e072fcfebabdc6e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 08:03:36 +0000 Subject: [PATCH 209/334] Bump ruby/setup-ruby from 1.173.0 to 1.174.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.173.0 to 1.174.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5f19ec79cedfadb78ab837f95b87734d0003c899...6bd3d993c602f6b675728ebaecb2b569ff86e99b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9162014bd..b0417f90d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 + - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 27afc6e08..1321a9f9c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f - name: Setup Ruby - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.139.0 + uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d02ef6d0a..1b09ed77f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 + - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90d9aca00..b5fd99d01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 - - uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 + - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From dc957e571e08a9731fba2472f47c7560b3d7552c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 07:54:55 +0000 Subject: [PATCH 210/334] Bump actions/checkout from 4.1.3 to 4.1.4 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/1d96c772d19495a3b5c517cd2bc0cb401ea0529f...0ad4b8fadaa221de15dcec353f45205ec38ea70b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b0417f90d..a9f1d9345 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1321a9f9c..69426f405 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Setup Ruby uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1b09ed77f..8ccb55d1a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5fd99d01..154ae98b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 with: ruby-version: ${{ matrix.ruby }} From 15b0598239cda52846ddee3d0f18417e29894f7d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 30 Apr 2024 16:01:55 +0900 Subject: [PATCH 211/334] Exclude 2.3-2.5 on macos-14 iamge --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 154ae98b9..bc41aba7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,13 @@ jobs: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} exclude: + - os: macos-latest + ruby: 2.3 + - os: macos-latest + ruby: 2.4 + - os: macos-latest + ruby: 2.5 + - os: macos-latest - os: windows-latest ruby: truffleruby - os: windows-latest From 8ae30bc745f33ac30ab26fd1c74a421687e28f8f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 07:08:52 +0000 Subject: [PATCH 212/334] Bump ruby/setup-ruby from 1.174.0 to 1.175.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.174.0 to 1.175.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/6bd3d993c602f6b675728ebaecb2b569ff86e99b...1198b074305f9356bd56dd4b311757cc0dab2f1c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a9f1d9345..266813b35 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 + - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 69426f405..6db3a7e77 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Setup Ruby - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.139.0 + uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8ccb55d1a..e6ee9d962 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 + - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc41aba7a..37a757688 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0 + - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From cabe93fda1a7013b5620c978d46c3f668fae7763 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 07:38:52 +0000 Subject: [PATCH 213/334] Bump ruby/setup-ruby from 1.175.1 to 1.176.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.175.1 to 1.176.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/1198b074305f9356bd56dd4b311757cc0dab2f1c...cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 266813b35..73fa4d2f4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 + - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6db3a7e77..1b9b6cecd 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Setup Ruby - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.139.0 + uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e6ee9d962..4d95f96b7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 + - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37a757688..195a04f6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 - - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 + - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 61bb4532690a70609c7bd577b8b4796c047dc067 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 9 May 2024 01:25:08 +0900 Subject: [PATCH 214/334] Use `require_relative` in the Rake codebase If there are many searches in the `$LOAD_PATH` in the user environment, require will perform unnecessary searches that are not needed. In contrast, `require_relative` is efficient because it uses a relative path. Rake requires Ruby 2.3+, it is possible to use `require_relative`, which was introduced in Ruby 1.9. https://github.com/ruby/rake/blob/v13.2.1/rake.gemspec#L99 --- lib/rake.rb | 54 +++++++++++++++--------------- lib/rake/application.rb | 12 +++---- lib/rake/clean.rb | 2 +- lib/rake/dsl_definition.rb | 2 +- lib/rake/ext/string.rb | 2 +- lib/rake/file_creation_task.rb | 4 +-- lib/rake/file_list.rb | 6 ++-- lib/rake/file_task.rb | 4 +-- lib/rake/file_utils_ext.rb | 2 +- lib/rake/packagetask.rb | 4 +-- lib/rake/phony.rb | 2 +- lib/rake/rake_test_loader.rb | 2 +- lib/rake/task.rb | 2 +- lib/rake/tasklib.rb | 2 +- lib/rake/testtask.rb | 4 +-- lib/rake/thread_history_display.rb | 2 +- lib/rake/thread_pool.rb | 2 +- 17 files changed, 54 insertions(+), 54 deletions(-) diff --git a/lib/rake.rb b/lib/rake.rb index 0f3d6a330..77cb0c73a 100644 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -23,7 +23,7 @@ module Rake; end -require "rake/version" +require_relative "rake/version" require "rbconfig" require "fileutils" @@ -31,34 +31,34 @@ module Rake; end require "monitor" require "optparse" -require "rake/ext/string" +require_relative "rake/ext/string" -require "rake/win32" +require_relative "rake/win32" -require "rake/linked_list" -require "rake/cpu_counter" -require "rake/scope" -require "rake/task_argument_error" -require "rake/rule_recursion_overflow_error" -require "rake/rake_module" -require "rake/trace_output" -require "rake/pseudo_status" -require "rake/task_arguments" -require "rake/invocation_chain" -require "rake/task" -require "rake/file_task" -require "rake/file_creation_task" -require "rake/multi_task" -require "rake/dsl_definition" -require "rake/file_utils_ext" -require "rake/file_list" -require "rake/default_loader" -require "rake/early_time" -require "rake/late_time" -require "rake/name_space" -require "rake/task_manager" -require "rake/application" -require "rake/backtrace" +require_relative "rake/linked_list" +require_relative "rake/cpu_counter" +require_relative "rake/scope" +require_relative "rake/task_argument_error" +require_relative "rake/rule_recursion_overflow_error" +require_relative "rake/rake_module" +require_relative "rake/trace_output" +require_relative "rake/pseudo_status" +require_relative "rake/task_arguments" +require_relative "rake/invocation_chain" +require_relative "rake/task" +require_relative "rake/file_task" +require_relative "rake/file_creation_task" +require_relative "rake/multi_task" +require_relative "rake/dsl_definition" +require_relative "rake/file_utils_ext" +require_relative "rake/file_list" +require_relative "rake/default_loader" +require_relative "rake/early_time" +require_relative "rake/late_time" +require_relative "rake/name_space" +require_relative "rake/task_manager" +require_relative "rake/application" +require_relative "rake/backtrace" $trace = false diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 2ea8c780c..33ca872dd 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true require "optparse" -require "rake/task_manager" -require "rake/file_list" -require "rake/thread_pool" -require "rake/thread_history_display" -require "rake/trace_output" -require "rake/win32" +require_relative "task_manager" +require_relative "file_list" +require_relative "thread_pool" +require_relative "thread_history_display" +require_relative "trace_output" +require_relative "win32" module Rake diff --git a/lib/rake/clean.rb b/lib/rake/clean.rb index b52e832a9..c49adf933 100644 --- a/lib/rake/clean.rb +++ b/lib/rake/clean.rb @@ -12,7 +12,7 @@ # The intent of this task is to return a project to its # pristine, just unpacked state. -require "rake" +require_relative "../rake" # :stopdoc: diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb index 6bd660cb6..37990687a 100644 --- a/lib/rake/dsl_definition.rb +++ b/lib/rake/dsl_definition.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Rake DSL functions. -require "rake/file_utils_ext" +require_relative "file_utils_ext" module Rake diff --git a/lib/rake/ext/string.rb b/lib/rake/ext/string.rb index c70236ae9..c82f53245 100644 --- a/lib/rake/ext/string.rb +++ b/lib/rake/ext/string.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake/ext/core" +require_relative "core" class String diff --git a/lib/rake/file_creation_task.rb b/lib/rake/file_creation_task.rb index 5a4c68492..3df254cea 100644 --- a/lib/rake/file_creation_task.rb +++ b/lib/rake/file_creation_task.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "rake/file_task" -require "rake/early_time" +require_relative "file_task" +require_relative "early_time" module Rake diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb index 22c339f24..76078d269 100644 --- a/lib/rake/file_list.rb +++ b/lib/rake/file_list.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true -require "rake/cloneable" -require "rake/file_utils_ext" -require "rake/ext/string" +require_relative "cloneable" +require_relative "file_utils_ext" +require_relative "ext/string" module Rake diff --git a/lib/rake/file_task.rb b/lib/rake/file_task.rb index c36b49699..8c398bcf0 100644 --- a/lib/rake/file_task.rb +++ b/lib/rake/file_task.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "rake/task" -require "rake/early_time" +require_relative "task" +require_relative "early_time" module Rake diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb index e91ad595f..687d80584 100644 --- a/lib/rake/file_utils_ext.rb +++ b/lib/rake/file_utils_ext.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake/file_utils" +require_relative "file_utils" module Rake # diff --git a/lib/rake/packagetask.rb b/lib/rake/packagetask.rb index 1b014d1ca..80a4acf02 100644 --- a/lib/rake/packagetask.rb +++ b/lib/rake/packagetask.rb @@ -2,8 +2,8 @@ # Define a package task library to aid in the definition of # redistributable package files. -require "rake" -require "rake/tasklib" +require_relative "../rake" +require_relative "tasklib" module Rake diff --git a/lib/rake/phony.rb b/lib/rake/phony.rb index 8caa5de17..8f62b7c8d 100644 --- a/lib/rake/phony.rb +++ b/lib/rake/phony.rb @@ -5,7 +5,7 @@ # # See FileTask#out_of_date? and Task#timestamp for more info. -require "rake" +require_relative "../rake" task :phony diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb index 3ecee5d85..05d89fc45 100644 --- a/lib/rake/rake_test_loader.rb +++ b/lib/rake/rake_test_loader.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "rake/file_list" +require_relative "file_list" # Load the test files from the command line. argv = ARGV.select do |argument| diff --git a/lib/rake/task.rb b/lib/rake/task.rb index a8ed24ddf..e61ccb641 100644 --- a/lib/rake/task.rb +++ b/lib/rake/task.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake/invocation_exception_mixin" +require_relative "invocation_exception_mixin" module Rake diff --git a/lib/rake/tasklib.rb b/lib/rake/tasklib.rb index 5354b4f94..597a2d650 100644 --- a/lib/rake/tasklib.rb +++ b/lib/rake/tasklib.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake" +require_relative "../rake" module Rake diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index 56521d23d..7cf1ece5d 100644 --- a/lib/rake/testtask.rb +++ b/lib/rake/testtask.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "rake" -require "rake/tasklib" +require_relative "../rake" +require_relative "tasklib" module Rake diff --git a/lib/rake/thread_history_display.rb b/lib/rake/thread_history_display.rb index 412ea37be..50e2bc8a4 100644 --- a/lib/rake/thread_history_display.rb +++ b/lib/rake/thread_history_display.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require "rake/private_reader" +require_relative "private_reader" module Rake diff --git a/lib/rake/thread_pool.rb b/lib/rake/thread_pool.rb index 76aa3b74b..d791caa6e 100644 --- a/lib/rake/thread_pool.rb +++ b/lib/rake/thread_pool.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "rake/promise" +require_relative "promise" require "set" module Rake From d4f913bdc1b8b6abce8f230e9d7312a0f561b472 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 07:51:21 +0000 Subject: [PATCH 215/334] Bump actions/checkout from 4.1.4 to 4.1.5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/0ad4b8fadaa221de15dcec353f45205ec38ea70b...44c2b7a8a4ea60a981eaca3cf939b5f4305c123b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 73fa4d2f4..30d5e7db7 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1b9b6cecd..e22d1209e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b + uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b - name: Setup Ruby uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4d95f96b7..047e315c7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 195a04f6e..e7c6f4bc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: ${{ matrix.ruby }} From 8e20be393579ed95ca9e758412a6c1e11c6dbc16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 07:13:30 +0000 Subject: [PATCH 216/334] Bump actions/checkout from 4.1.5 to 4.1.6 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.5 to 4.1.6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/44c2b7a8a4ea60a981eaca3cf939b5f4305c123b...a5ac7e51b41094c92402da3b24376905380afc29) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 30d5e7db7..8a89c8560 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e22d1209e..f1be6e10c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - name: Setup Ruby uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 047e315c7..149f957c1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7c6f4bc8..603da0d2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v3.3.0 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 with: ruby-version: ${{ matrix.ruby }} From 3e32667366deb4127e8127a5e510c80933765f5a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 07:29:27 +0000 Subject: [PATCH 217/334] Bump ruby/setup-ruby from 1.176.0 to 1.177.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.176.0 to 1.177.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49...943103cae7d3f1bb1e4951d5fcc7928b40e4b742) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8a89c8560..bef884197 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f1be6e10c..aad8b39a3 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - name: Setup Ruby - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.139.0 + uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 149f957c1..e6165e23e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 603da0d2c..be7149294 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 42af5278d98bffa822d0df434dff234fb3beadb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 07:28:17 +0000 Subject: [PATCH 218/334] Bump ruby/setup-ruby from 1.177.1 to 1.178.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.177.1 to 1.178.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/943103cae7d3f1bb1e4951d5fcc7928b40e4b742...0cde4689ba33c09f1b890c1725572ad96751a3fc) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index bef884197..c2c4d1114 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index aad8b39a3..5087d7fd6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - name: Setup Ruby - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.139.0 + uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e6165e23e..e9a720b40 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be7149294..2104daf86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1 + - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From b9de78c1b782601ff26f66df71a52fce7492db54 Mon Sep 17 00:00:00 2001 From: Mark Young Date: Fri, 7 Jun 2024 15:16:34 +0100 Subject: [PATCH 219/334] Provide a 'Changelog' link on rubygems.org/gems/rake The current link points to a file that hasn't been updated since v13.0.6. The github.com releases link looks to be a more reliable target. --- rake.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.gemspec b/rake.gemspec index b3e8a8eef..0a2d1fd62 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |s| s.metadata = { "bug_tracker_uri" => "https://github.com/ruby/rake/issues", - "changelog_uri" => "https://github.com/ruby/rake/blob/v#{s.version}/History.rdoc", + "changelog_uri" => "https://github.com/ruby/rake/releases", "documentation_uri" => "https://ruby.github.io/rake", "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}" } From 1017f397bd81c024557b56c3f2e835b2402fcf45 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sat, 8 Jun 2024 17:39:19 +0200 Subject: [PATCH 220/334] Remove dependency on `win32ole` This gem is being bundled in Ruby 3.5: https://github.com/ruby/ruby/commit/f365bef0c78085b7db9b6736ae59c1657baa79a3 So, just use buildin commands to do the same thing. The powershell version will work on at least Windows 8. There are no docs I could find for earlier versions wmic is deprecated, prefer the powershell version --- lib/rake/cpu_counter.rb | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/lib/rake/cpu_counter.rb b/lib/rake/cpu_counter.rb index 564a62859..75cc0d08d 100644 --- a/lib/rake/cpu_counter.rb +++ b/lib/rake/cpu_counter.rb @@ -58,11 +58,20 @@ def count_via_java_runtime end def count_via_win32 - require 'win32ole' - wmi = WIN32OLE.connect("winmgmts://") - cpu = wmi.ExecQuery("select NumberOfCores from Win32_Processor") # TODO count hyper-threaded in this - cpu.to_enum.first.NumberOfCores - rescue StandardError, LoadError + # Get-CimInstance introduced in PowerShell 3 or earlier: https://learn.microsoft.com/en-us/previous-versions/powershell/module/cimcmdlets/get-ciminstance?view=powershell-3.0 + result = run_win32( + 'powershell -command "Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores ' \ + '| Select-Object -Property NumberOfCores"' + ) + if !result || $?.exitstatus != 0 + # fallback to deprecated wmic for older systems + result = run_win32("wmic cpu get NumberOfCores") + end + + # powershell: "\nNumberOfCores\n-------------\n 4\n\n\n" + # wmic: "NumberOfCores \n\n4 \n\n\n\n" + result.scan(/\d+/).map(&:to_i).reduce(:+) if result + rescue StandardError nil end @@ -87,6 +96,12 @@ def run(command, *args) end end + def run_win32(command, *args) + IO.popen(command, &:read) + rescue Errno::ENOENT + nil + end + def resolve_command(command) look_for_command("/usr/sbin", command) || look_for_command("/sbin", command) || From 2a5e2215b94287566728b44e8602cc6c00d8e4ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 07:20:28 +0000 Subject: [PATCH 221/334] Bump ruby/setup-ruby from 1.178.0 to 1.179.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.178.0 to 1.179.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/0cde4689ba33c09f1b890c1725572ad96751a3fc...78c01b705fd9d5ad960d432d3a0cfa341d50e410) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c2c4d1114..5e7bc58b3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5087d7fd6..0e3da6344 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - name: Setup Ruby - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.139.0 + uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e9a720b40..e12e3130c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2104daf86..941fdc990 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # v1.178.0 + - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 93c126deb5415a1c641cf548c125c97fded5f3a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 07:02:44 +0000 Subject: [PATCH 222/334] Bump ruby/setup-ruby from 1.179.1 to 1.180.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.179.1 to 1.180.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/78c01b705fd9d5ad960d432d3a0cfa341d50e410...ff740bc00a01b3a50fffc55a1071b1060eeae9dc) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5e7bc58b3..739d8bc7b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0e3da6344..82ba4fa13 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - name: Setup Ruby - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.139.0 + uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e12e3130c..289d49f66 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 941fdc990..7c87b7aca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 - - uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From b1e8e6f735768b416e14c3067eace6223efe7969 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 07:08:19 +0000 Subject: [PATCH 223/334] Bump actions/checkout from 4.1.6 to 4.1.7 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/a5ac7e51b41094c92402da3b24376905380afc29...692973e3d937129bcbf40652eb9f2f61becf3332) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 739d8bc7b..508559ef6 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 82ba4fa13..f3ea78265 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 289d49f66..140f6dab1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c87b7aca..7aabe1214 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3.3.0 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 with: ruby-version: ${{ matrix.ruby }} From dcde66f8b10b4ee470eca2e3a8819ce1153d0160 Mon Sep 17 00:00:00 2001 From: fynsta <63241108+fynsta@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:23:09 +0200 Subject: [PATCH 224/334] Switch changelog_uri to releases tab Since you seem to have switched. --- rake.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.gemspec b/rake.gemspec index 0a2d1fd62..49cec19a9 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |s| "bug_tracker_uri" => "https://github.com/ruby/rake/issues", "changelog_uri" => "https://github.com/ruby/rake/releases", "documentation_uri" => "https://ruby.github.io/rake", - "source_code_uri" => "https://github.com/ruby/rake/tree/v#{s.version}" + "source_code_uri" => "#{s.homepage}/releases/v#{s.version}" } s.files = [ From 69524de085d24d9b688b5d8eff954327c2813517 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 07:57:36 +0000 Subject: [PATCH 225/334] Bump ruby/setup-ruby from 1.180.0 to 1.180.1 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.180.0 to 1.180.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/ff740bc00a01b3a50fffc55a1071b1060eeae9dc...3783f195e29b74ae398d7caca108814bbafde90e) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 508559ef6..e7a8c8cf5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 + - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f3ea78265..88baa0b7c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.139.0 + uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 140f6dab1..ec7b5869d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 + - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7aabe1214..08de7b7fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@ff740bc00a01b3a50fffc55a1071b1060eeae9dc # v1.180.0 + - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 89bbe5559f06e4494eda2cc7d02b3604e56fb181 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 07:50:32 +0000 Subject: [PATCH 226/334] Bump ruby/setup-ruby from 1.180.1 to 1.183.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.180.1 to 1.183.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/3783f195e29b74ae398d7caca108814bbafde90e...1d0e911f615a112e322369596f10ee0b95b010ae) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e7a8c8cf5..a5eabfc27 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 + - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 88baa0b7c..95733d305 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.139.0 + uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ec7b5869d..2097c2fe7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 + - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08de7b7fb..ebc6cc245 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 + - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 28cd792e9e034f2af76c3ffaa405ba09ccca6841 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 07:10:14 +0000 Subject: [PATCH 227/334] Bump ruby/setup-ruby from 1.183.0 to 1.185.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.183.0 to 1.185.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/1d0e911f615a112e322369596f10ee0b95b010ae...3a77c29278ae80936b4cb030fefc7d21c96c786f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a5eabfc27..9aaebb3bf 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 + - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 95733d305..289bec0a3 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.139.0 + uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2097c2fe7..1ee0128a3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 + - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebc6cc245..8eb9c7c62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 + - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 78c80c725c845cb33defed792c914259b007c08b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 07:57:50 +0000 Subject: [PATCH 228/334] Bump ruby/setup-ruby from 1.185.0 to 1.187.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.185.0 to 1.187.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/3a77c29278ae80936b4cb030fefc7d21c96c786f...161cd54b698f1fb3ea539faab2e036d409550e3c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9aaebb3bf..d9e26788a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 + - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 289bec0a3..1721c5a55 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.139.0 + uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1ee0128a3..d08901a33 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 + - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8eb9c7c62..f8586578e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@3a77c29278ae80936b4cb030fefc7d21c96c786f # v1.185.0 + - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From abcf711ae570b1a20f00cf8fc225b7577e3d120d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 07:20:00 +0000 Subject: [PATCH 229/334] Bump ruby/setup-ruby from 1.187.0 to 1.190.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.187.0 to 1.190.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/161cd54b698f1fb3ea539faab2e036d409550e3c...a6e6f86333f0a2523ece813039b8b4be04560854) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d9e26788a..20caa1483 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 + - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1721c5a55..e3022333d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.139.0 + uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d08901a33..fb9b54b52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 + - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8586578e..e7e2e9735 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0 + - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From c6829ffcdfab370d1b5fe788f9ce928f81a8ac56 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 22 Aug 2024 16:24:47 +0900 Subject: [PATCH 230/334] Strictly checking pull-request author --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 57e0fe279..89534a975 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -6,7 +6,7 @@ on: jobs: automerge: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} + if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} steps: - name: Dependabot metadata uses: dependabot/fetch-metadata@v2 From c1cede2fe1643a9beee0578cdcbc8be653ae74bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 07:08:13 +0000 Subject: [PATCH 231/334] Bump ruby/setup-ruby from 1.190.0 to 1.191.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.190.0 to 1.191.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/a6e6f86333f0a2523ece813039b8b4be04560854...52753b7da854d5c07df37391a986c76ab4615999) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 20caa1483..fb247750e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 + - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e3022333d..c55868e59 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.139.0 + uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fb9b54b52..2fcaea3a2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 + - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7e2e9735..31bf4388e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 + - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5d9f4d160c28e397ccbc8267ce7a171036eed35f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 07:34:37 +0000 Subject: [PATCH 232/334] Bump ruby/setup-ruby from 1.191.0 to 1.193.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.191.0 to 1.193.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/52753b7da854d5c07df37391a986c76ab4615999...f321cf5a4d1533575411f8752cf25b86478b0442) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fb247750e..c5cc249f4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 + - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c55868e59..c082f9596 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.139.0 + uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2fcaea3a2..61842a2bf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 + - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31bf4388e..51680035a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0 + - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5e94d73130d18c8e7ff7a839f87f4eb9400461bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:08:32 +0000 Subject: [PATCH 233/334] Bump ruby/setup-ruby from 1.193.0 to 1.194.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.193.0 to 1.194.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/f321cf5a4d1533575411f8752cf25b86478b0442...c04af2bb7258bb6a03df1d3c1865998ac9390972) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c5cc249f4..90099f3a7 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 + - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c082f9596..f748c18d5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ruby - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.139.0 + uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 61842a2bf..365c6a002 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 + - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51680035a..fa24b286b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 - - uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0 + - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From cfec0828e2178e64876d1271add665119b10eaf6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:14:34 +0000 Subject: [PATCH 234/334] Bump actions/checkout from 4.1.7 to 4.2.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...d632683dd7b4114ad314bca15554477dd762a938) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 90099f3a7..78d5b2e58 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f748c18d5..c25c65030 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - name: Setup Ruby uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 365c6a002..6a87f6091 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa24b286b..494e3e1ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.3.0 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 with: ruby-version: ${{ matrix.ruby }} From baf279c57d1f81e0fe36254094f1a4d4eafdef03 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Tue, 1 Oct 2024 08:47:15 +0100 Subject: [PATCH 235/334] chore: use squiggly heredocs and fix indentation --- test/helper.rb | 8 +- test/support/rakefile_definitions.rb | 602 +++++++++++++------------- test/test_rake_file_utils.rb | 50 +-- test/test_rake_makefile_loader.rb | 24 +- test/test_rake_task_with_arguments.rb | 44 +- 5 files changed, 364 insertions(+), 364 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index 7ef6e6958..9a00c7703 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -96,10 +96,10 @@ def rake_system_dir FileUtils.mkdir_p @system_dir open File.join(@system_dir, "sys1.rake"), "w" do |io| - io << <<-SYS -task "sys1" do - puts "SYS1" -end + io << <<~SYS + task "sys1" do + puts "SYS1" + end SYS end diff --git a/test/support/rakefile_definitions.rb b/test/support/rakefile_definitions.rb index 5dacd3783..78c464369 100644 --- a/test/support/rakefile_definitions.rb +++ b/test/support/rakefile_definitions.rb @@ -3,178 +3,178 @@ module RakefileDefinitions include FileUtils def rakefile_access - rakefile <<-ACCESS -TOP_LEVEL_CONSTANT = 0 + rakefile <<~ACCESS + TOP_LEVEL_CONSTANT = 0 -def a_top_level_function -end + def a_top_level_function + end -task :default => [:work, :obj, :const] + task :default => [:work, :obj, :const] -task :work do - begin - a_top_level_function - puts "GOOD:M Top level methods can be called in tasks" - rescue NameError => ex - puts "BAD:M Top level methods can not be called in tasks" - end -end + task :work do + begin + a_top_level_function + puts "GOOD:M Top level methods can be called in tasks" + rescue NameError => ex + puts "BAD:M Top level methods can not be called in tasks" + end + end -task :obj do - begin - Object.new.instance_eval { task :xyzzy } - puts "BAD:D Rake DSL are polluting objects" - rescue StandardError => ex - puts "GOOD:D Rake DSL are not polluting objects" - end -end + task :obj do + begin + Object.new.instance_eval { task :xyzzy } + puts "BAD:D Rake DSL are polluting objects" + rescue StandardError => ex + puts "GOOD:D Rake DSL are not polluting objects" + end + end -task :const do - begin - TOP_LEVEL_CONSTANT - puts "GOOD:C Top level constants are available in tasks" - rescue StandardError => ex - puts "BAD:C Top level constants are NOT available in tasks" - end -end + task :const do + begin + TOP_LEVEL_CONSTANT + puts "GOOD:C Top level constants are available in tasks" + rescue StandardError => ex + puts "BAD:C Top level constants are NOT available in tasks" + end + end ACCESS end def rakefile_test_task - rakefile <<-RAKEFILE - require "rake/testtask" + rakefile <<~RAKEFILE + require "rake/testtask" - Rake::TestTask.new(:unit) do |t| - t.description = "custom test task description" - end + Rake::TestTask.new(:unit) do |t| + t.description = "custom test task description" + end RAKEFILE end def rakefile_test_task_verbose - rakefile <<-RAKEFILE - require "rake/testtask" + rakefile <<~RAKEFILE + require "rake/testtask" - Rake::TestTask.new(:unit) do |t| - t.verbose = true - end + Rake::TestTask.new(:unit) do |t| + t.verbose = true + end RAKEFILE end def rakefile_chains - rakefile <<-DEFAULT -task :default => "play.app" + rakefile <<~DEFAULT + task :default => "play.app" -file "play.scpt" => "base" do |t| - cp t.prerequisites.first, t.name -end + file "play.scpt" => "base" do |t| + cp t.prerequisites.first, t.name + end -rule ".app" => ".scpt" do |t| - cp t.source, t.name -end + rule ".app" => ".scpt" do |t| + cp t.source, t.name + end -file 'base' do - touch 'base' -end + file 'base' do + touch 'base' + end DEFAULT end def rakefile_file_chains - rakefile <<-RAKEFILE -file "fileA" do |t| - sh "echo contentA >\#{t.name}" -end + rakefile <<~RAKEFILE + file "fileA" do |t| + sh "echo contentA >\#{t.name}" + end -file "fileB" => "fileA" do |t| - sh "(cat fileA; echo transformationB) >\#{t.name}" -end + file "fileB" => "fileA" do |t| + sh "(cat fileA; echo transformationB) >\#{t.name}" + end -file "fileC" => "fileB" do |t| - sh "(cat fileB; echo transformationC) >\#{t.name}" -end + file "fileC" => "fileB" do |t| + sh "(cat fileB; echo transformationC) >\#{t.name}" + end -task default: "fileC" + task default: "fileC" RAKEFILE end def rakefile_comments - rakefile <<-COMMENTS -# comment for t1 -task :t1 do -end + rakefile <<~COMMENTS + # comment for t1 + task :t1 do + end -# no comment or task because there's a blank line + # no comment or task because there's a blank line -task :t2 do -end + task :t2 do + end -desc "override comment for t3" -# this is not the description -multitask :t3 do -end + desc "override comment for t3" + # this is not the description + multitask :t3 do + end -# this is not the description -desc "override comment for t4" -file :t4 do -end + # this is not the description + desc "override comment for t4" + file :t4 do + end COMMENTS end def rakefile_override - rakefile <<-OVERRIDE - task :t1 do - puts :foo - end + rakefile <<~OVERRIDE + task :t1 do + puts :foo + end - task :t1 do - puts :bar - end + task :t1 do + puts :bar + end OVERRIDE end def rakefile_default - rakefile <<-DEFAULT -if ENV['TESTTOPSCOPE'] - puts "TOPSCOPE" -end + rakefile <<~DEFAULT + if ENV['TESTTOPSCOPE'] + puts "TOPSCOPE" + end -task :default do - puts "DEFAULT" -end + task :default do + puts "DEFAULT" + end -task :other => [:default] do - puts "OTHER" -end + task :other => [:default] do + puts "OTHER" + end -task :task_scope do - if ENV['TESTTASKSCOPE'] - puts "TASKSCOPE" - end -end + task :task_scope do + if ENV['TESTTASKSCOPE'] + puts "TASKSCOPE" + end + end DEFAULT end def rakefile_dryrun - rakefile <<-DRYRUN -task :default => ["temp_main"] + rakefile <<~DRYRUN + task :default => ["temp_main"] -file "temp_main" => [:all_apps] do touch "temp_main" end + file "temp_main" => [:all_apps] do touch "temp_main" end -task :all_apps => [:one, :two] -task :one => ["temp_one"] -task :two => ["temp_two"] + task :all_apps => [:one, :two] + task :one => ["temp_one"] + task :two => ["temp_two"] -file "temp_one" do |t| - touch "temp_one" -end -file "temp_two" do |t| - touch "temp_two" -end + file "temp_one" do |t| + touch "temp_one" + end + file "temp_two" do |t| + touch "temp_two" + end -task :clean do - ["temp_one", "temp_two", "temp_main"].each do |file| - rm_f file - end -end + task :clean do + ["temp_one", "temp_two", "temp_main"].each do |file| + rm_f file + end + end DRYRUN FileUtils.touch "temp_main" @@ -187,77 +187,77 @@ def rakefile_extra FileUtils.mkdir_p "rakelib" open File.join("rakelib", "extra.rake"), "w" do |io| - io << <<-EXTRA_RAKE -# Added for testing - -namespace :extra do - desc "An Extra Task" - task :extra do - puts "Read all about it" - end -end + io << <<~EXTRA_RAKE + # Added for testing + + namespace :extra do + desc "An Extra Task" + task :extra do + puts "Read all about it" + end + end EXTRA_RAKE end end def rakefile_file_creation - rakefile <<-'FILE_CREATION' -N = 2 + rakefile <<~'FILE_CREATION' + N = 2 -task :default => :run + task :default => :run -BUILD_DIR = 'build' -task :clean do - rm_rf 'build' - rm_rf 'src' -end + BUILD_DIR = 'build' + task :clean do + rm_rf 'build' + rm_rf 'src' + end -task :run + task :run -TARGET_DIR = 'build/copies' + TARGET_DIR = 'build/copies' -FileList['src/*'].each do |src| - directory TARGET_DIR - target = File.join TARGET_DIR, File.basename(src) - file target => [src, TARGET_DIR] do - cp src, target - end - task :run => target -end + FileList['src/*'].each do |src| + directory TARGET_DIR + target = File.join TARGET_DIR, File.basename(src) + file target => [src, TARGET_DIR] do + cp src, target + end + task :run => target + end -task :prep => :clean do - mkdir_p 'src' - N.times do |n| - touch "src/foo#{n}" - end -end + task :prep => :clean do + mkdir_p 'src' + N.times do |n| + touch "src/foo#{n}" + end + end FILE_CREATION end def rakefile_imports - rakefile <<-IMPORTS -require 'rake/loaders/makefile' + rakefile <<~IMPORTS + require 'rake/loaders/makefile' -task :default + task :default -task :other do - puts "OTHER" -end + task :other do + puts "OTHER" + end -file "dynamic_deps" do |t| - open(t.name, "w") do |f| f.puts "puts 'DYNAMIC'" end -end + file "dynamic_deps" do |t| + open(t.name, "w") do |f| f.puts "puts 'DYNAMIC'" end + end -import "dynamic_deps" -import "static_deps" -import "static_deps" -import "deps.mf" -puts "FIRST" + import "dynamic_deps" + import "static_deps" + import "static_deps" + import "deps.mf" + puts "FIRST" IMPORTS open "deps.mf", "w" do |io| - io << <<-DEPS -default: other + io << <<~DEPS + default: other DEPS end @@ -267,115 +267,115 @@ def rakefile_imports end def rakefile_regenerate_imports - rakefile <<-REGENERATE_IMPORTS -task :default - -task :regenerate do - open("deps", "w") do |f| - f << <<-CONTENT -file "deps" => :regenerate -puts "REGENERATED" - CONTENT - end -end + rakefile <<~REGENERATE_IMPORTS + task :default + + task :regenerate do + open("deps", "w") do |f| + f << <<~CONTENT + file "deps" => :regenerate + puts "REGENERATED" + CONTENT + end + end -import "deps" + import "deps" REGENERATE_IMPORTS open "deps", "w" do |f| - f << <<-CONTENT -file "deps" => :regenerate -puts "INITIAL" + f << <<~CONTENT + file "deps" => :regenerate + puts "INITIAL" CONTENT end end def rakefile_multidesc - rakefile <<-MULTIDESC -task :b + rakefile <<~MULTIDESC + task :b -desc "A" -task :a + desc "A" + task :a -desc "B" -task :b + desc "B" + task :b -desc "A2" -task :a + desc "A2" + task :a -task :c + task :c -desc "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -task :d + desc "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + task :d MULTIDESC end def rakefile_namespace - rakefile <<-NAMESPACE -desc "copy" -task :copy do - puts "COPY" -end + rakefile <<~NAMESPACE + desc "copy" + task :copy do + puts "COPY" + end -namespace "nest" do - desc "nest copy" - task :copy do - puts "NEST COPY" - end - task :xx => :copy -end + namespace "nest" do + desc "nest copy" + task :copy do + puts "NEST COPY" + end + task :xx => :copy + end -anon_ns = namespace do - desc "anonymous copy task" - task :copy do - puts "ANON COPY" - end -end + anon_ns = namespace do + desc "anonymous copy task" + task :copy do + puts "ANON COPY" + end + end -desc "Top level task to run the anonymous version of copy" -task :anon => anon_ns[:copy] + desc "Top level task to run the anonymous version of copy" + task :anon => anon_ns[:copy] -namespace "very" do - namespace "nested" do - task "run" => "rake:copy" - end -end + namespace "very" do + namespace "nested" do + task "run" => "rake:copy" + end + end -namespace "a" do - desc "Run task in the 'a' namespace" - task "run" do - puts "IN A" - end -end + namespace "a" do + desc "Run task in the 'a' namespace" + task "run" do + puts "IN A" + end + end -namespace "b" do - desc "Run task in the 'b' namespace" - task "run" => "a:run" do - puts "IN B" - end -end + namespace "b" do + desc "Run task in the 'b' namespace" + task "run" => "a:run" do + puts "IN B" + end + end -namespace "file1" do - file "xyz.rb" do - puts "XYZ1" - end -end + namespace "file1" do + file "xyz.rb" do + puts "XYZ1" + end + end -namespace "file2" do - file "xyz.rb" do - puts "XYZ2" - end -end + namespace "file2" do + file "xyz.rb" do + puts "XYZ2" + end + end -namespace "scopedep" do - task :prepare do - touch "scopedep.rb" - puts "PREPARE" - end - file "scopedep.rb" => [:prepare] do - puts "SCOPEDEP" - end -end + namespace "scopedep" do + task :prepare do + touch "scopedep.rb" + puts "PREPARE" + end + file "scopedep.rb" => [:prepare] do + puts "SCOPEDEP" + end + end NAMESPACE end @@ -388,18 +388,18 @@ def rakefile_rakelib Dir.chdir "rakelib" do open "test1.rb", "w" do |io| - io << <<-TEST1 -task :default do - puts "TEST1" -end + io << <<~TEST1 + task :default do + puts "TEST1" + end TEST1 end open "test2.rake", "w" do |io| - io << <<-TEST1 -task :default do - puts "TEST2" -end + io << <<~TEST1 + task :default do + puts "TEST2" + end TEST1 end end @@ -421,61 +421,61 @@ def rakefile_unittest end def rakefile_verbose - rakefile <<-VERBOSE -task :standalone_verbose_true do - verbose true - sh "#{RUBY} -e '0'" -end + rakefile <<~VERBOSE + task :standalone_verbose_true do + verbose true + sh "#{RUBY} -e '0'" + end -task :standalone_verbose_false do - verbose false - sh "#{RUBY} -e '0'" -end + task :standalone_verbose_false do + verbose false + sh "#{RUBY} -e '0'" + end -task :inline_verbose_default do - sh "#{RUBY} -e '0'" -end + task :inline_verbose_default do + sh "#{RUBY} -e '0'" + end -task :inline_verbose_false do - sh "#{RUBY} -e '0'", :verbose => false -end + task :inline_verbose_false do + sh "#{RUBY} -e '0'", :verbose => false + end -task :inline_verbose_true do - sh "#{RUBY} -e '0'", :verbose => true -end + task :inline_verbose_true do + sh "#{RUBY} -e '0'", :verbose => true + end -task :block_verbose_true do - verbose(true) do - sh "#{RUBY} -e '0'" - end -end + task :block_verbose_true do + verbose(true) do + sh "#{RUBY} -e '0'" + end + end -task :block_verbose_false do - verbose(false) do - sh "#{RUBY} -e '0'" - end -end + task :block_verbose_false do + verbose(false) do + sh "#{RUBY} -e '0'" + end + end VERBOSE end def rakefile_test_signal - rakefile <<-TEST_SIGNAL -require 'rake/testtask' + rakefile <<~TEST_SIGNAL + require 'rake/testtask' -Rake::TestTask.new(:a) do |t| - t.test_files = ['a_test.rb'] -end + Rake::TestTask.new(:a) do |t| + t.test_files = ['a_test.rb'] + end -Rake::TestTask.new(:b) do |t| - t.test_files = ['b_test.rb'] -end + Rake::TestTask.new(:b) do |t| + t.test_files = ['b_test.rb'] + end -task :test do - Rake::Task[:a].invoke - Rake::Task[:b].invoke -end + task :test do + Rake::Task[:a].invoke + Rake::Task[:b].invoke + end -task :default => :test + task :default => :test TEST_SIGNAL open "a_test.rb", "w" do |io| io << 'puts "ATEST"' << "\n" @@ -489,13 +489,13 @@ def rakefile_test_signal end def rakefile_failing_test_task - rakefile <<-TEST_TASK -require 'rake/testtask' + rakefile <<~TEST_TASK + require 'rake/testtask' -task :default => :test -Rake::TestTask.new(:test) do |t| - t.test_files = ['a_test.rb'] -end + task :default => :test + Rake::TestTask.new(:test) do |t| + t.test_files = ['a_test.rb'] + end TEST_TASK open "a_test.rb", "w" do |io| io << "require 'minitest/autorun'\n" diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 3af5e96f1..6e54b3485 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -416,42 +416,42 @@ def command(name, text) end def check_no_expansion - command "check_no_expansion.rb", <<-CHECK_EXPANSION -if ARGV[0] != ARGV[1] - exit 0 -else - exit 1 -end + command "check_no_expansion.rb", <<~CHECK_EXPANSION + if ARGV[0] != ARGV[1] + exit 0 + else + exit 1 + end CHECK_EXPANSION end def check_environment - command "check_environment.rb", <<-CHECK_ENVIRONMENT -if ENV[ARGV[0]] != ARGV[1] - exit 1 -else - exit 0 -end + command "check_environment.rb", <<~CHECK_ENVIRONMENT + if ENV[ARGV[0]] != ARGV[1] + exit 1 + else + exit 0 + end CHECK_ENVIRONMENT end def check_expansion - command "check_expansion.rb", <<-CHECK_EXPANSION -if ARGV[0] != ARGV[1] - exit 1 -else - exit 0 -end + command "check_expansion.rb", <<~CHECK_EXPANSION + if ARGV[0] != ARGV[1] + exit 1 + else + exit 0 + end CHECK_EXPANSION end def echocommand - command "echocommand.rb", <<-ECHOCOMMAND -#!/usr/bin/env ruby + command "echocommand.rb", <<~ECHOCOMMAND + #!/usr/bin/env ruby -puts "echocommand.rb" + puts "echocommand.rb" -exit 0 + exit 0 ECHOCOMMAND end @@ -466,10 +466,10 @@ def replace_ruby end def shellcommand - command "shellcommand.rb", <<-SHELLCOMMAND -#!/usr/bin/env ruby + command "shellcommand.rb", <<~SHELLCOMMAND + #!/usr/bin/env ruby -exit((ARGV[0] || "0").to_i) + exit((ARGV[0] || "0").to_i) SHELLCOMMAND end diff --git a/test/test_rake_makefile_loader.rb b/test/test_rake_makefile_loader.rb index 4f5270e0a..125f9eb4f 100644 --- a/test/test_rake_makefile_loader.rb +++ b/test/test_rake_makefile_loader.rb @@ -9,21 +9,21 @@ def test_parse Dir.chdir @tempdir open "sample.mf", "w" do |io| - io << <<-'SAMPLE_MF' -# Comments -a: a1 a2 a3 a4 -b: b1 b2 b3 \ - b4 b5 b6\ -# Mid: Comment -b7 + io << <<~'SAMPLE_MF' + # Comments + a: a1 a2 a3 a4 + b: b1 b2 b3 \ + b4 b5 b6\ + # Mid: Comment + b7 - a : a5 a6 a7 -c: c1 -d: d1 d2 \ + a : a5 a6 a7 + c: c1 + d: d1 d2 \ -e f : e1 f1 + e f : e1 f1 -g\ 0: g1 g\ 2 g\ 3 g4 + g\ 0: g1 g\ 2 g\ 3 g4 SAMPLE_MF end diff --git a/test/test_rake_task_with_arguments.rb b/test/test_rake_task_with_arguments.rb index 5cd5d0e98..a939d7ad1 100644 --- a/test/test_rake_task_with_arguments.rb +++ b/test/test_rake_task_with_arguments.rb @@ -84,28 +84,28 @@ def test_actions_of_various_arity_are_ok_with_args def test_actions_adore_keywords # https://github.com/ruby/rake/pull/174#issuecomment-263460761 omit if jruby9? - eval <<-RUBY, binding, __FILE__, __LINE__+1 - notes = [] - t = task :t, [:reqr, :ovrd, :dflt] # required, overridden-optional, default-optional - verify = lambda do |name, expecteds, actuals| - notes << name - assert_equal expecteds.length, actuals.length - expecteds.zip(actuals) { |e, a| assert_equal e, a, "(TEST \#{name})" } - end - - t.enhance { |dflt: 'd', **| verify.call :a, ['d'], [dflt] } - t.enhance { |ovrd: '-', **| verify.call :b, ['o'], [ovrd] } - t.enhance { |reqr: , **| verify.call :c, ['r'], [reqr] } - - t.enhance { |t2, dflt: 'd', **| verify.call :d, [t,'d'], [t2,dflt] } - t.enhance { |t2, ovrd: 'd', **| verify.call :e, [t,'o'], [t2,ovrd] } - t.enhance { |t2, reqr: , **| verify.call :f, [t,'r'], [t2,reqr] } - - t.enhance { |t2, dflt: 'd', reqr:, **| verify.call :g, [t,'d','r'], [t2,dflt,reqr] } - t.enhance { |t2, ovrd: '-', reqr:, **| verify.call :h, [t,'o','r'], [t2,ovrd,reqr] } - - t.invoke('r', 'o') - assert_equal [*:a..:h], notes + eval <<~RUBY, binding, __FILE__, __LINE__+1 + notes = [] + t = task :t, [:reqr, :ovrd, :dflt] # required, overridden-optional, default-optional + verify = lambda do |name, expecteds, actuals| + notes << name + assert_equal expecteds.length, actuals.length + expecteds.zip(actuals) { |e, a| assert_equal e, a, "(TEST \#{name})" } + end + + t.enhance { |dflt: 'd', **| verify.call :a, ['d'], [dflt] } + t.enhance { |ovrd: '-', **| verify.call :b, ['o'], [ovrd] } + t.enhance { |reqr: , **| verify.call :c, ['r'], [reqr] } + + t.enhance { |t2, dflt: 'd', **| verify.call :d, [t,'d'], [t2,dflt] } + t.enhance { |t2, ovrd: 'd', **| verify.call :e, [t,'o'], [t2,ovrd] } + t.enhance { |t2, reqr: , **| verify.call :f, [t,'r'], [t2,reqr] } + + t.enhance { |t2, dflt: 'd', reqr:, **| verify.call :g, [t,'d','r'], [t2,dflt,reqr] } + t.enhance { |t2, ovrd: '-', reqr:, **| verify.call :h, [t,'o','r'], [t2,ovrd,reqr] } + + t.invoke('r', 'o') + assert_equal [*:a..:h], notes RUBY end From 8834181de729721604f6bc826b388eea2272a24d Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Mon, 30 Sep 2024 20:39:16 +0100 Subject: [PATCH 236/334] chore: use `File::write` instead of `Kernel#open` --- test/helper.rb | 16 ++-- test/support/rakefile_definitions.rb | 126 +++++++++++--------------- test/test_rake_application_options.rb | 6 +- test/test_rake_definitions.rb | 2 +- test/test_rake_file_list.rb | 8 +- test/test_rake_file_task.rb | 2 +- test/test_rake_file_utils.rb | 6 +- test/test_rake_makefile_loader.rb | 28 +++--- 8 files changed, 85 insertions(+), 109 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index 9a00c7703..9d2271298 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -95,21 +95,17 @@ def rake_system_dir FileUtils.mkdir_p @system_dir - open File.join(@system_dir, "sys1.rake"), "w" do |io| - io << <<~SYS - task "sys1" do - puts "SYS1" - end - SYS - end + File.write File.join(@system_dir, "sys1.rake"), <<~SYS + task "sys1" do + puts "SYS1" + end + SYS ENV["RAKE_SYSTEM"] = @system_dir end def rakefile(contents) - open "Rakefile", "w" do |io| - io << contents - end + File.write "Rakefile", contents end def jruby? diff --git a/test/support/rakefile_definitions.rb b/test/support/rakefile_definitions.rb index 78c464369..d1c9afdd1 100644 --- a/test/support/rakefile_definitions.rb +++ b/test/support/rakefile_definitions.rb @@ -186,18 +186,16 @@ def rakefile_extra FileUtils.mkdir_p "rakelib" - open File.join("rakelib", "extra.rake"), "w" do |io| - io << <<~EXTRA_RAKE - # Added for testing - - namespace :extra do - desc "An Extra Task" - task :extra do - puts "Read all about it" - end + File.write File.join("rakelib", "extra.rake"), <<~EXTRA_RAKE + # Added for testing + + namespace :extra do + desc "An Extra Task" + task :extra do + puts "Read all about it" end - EXTRA_RAKE - end + end + EXTRA_RAKE end def rakefile_file_creation @@ -245,7 +243,7 @@ def rakefile_imports end file "dynamic_deps" do |t| - open(t.name, "w") do |f| f.puts "puts 'DYNAMIC'" end + File.write t.name, "puts 'DYNAMIC'\n" end import "dynamic_deps" @@ -255,15 +253,11 @@ def rakefile_imports puts "FIRST" IMPORTS - open "deps.mf", "w" do |io| - io << <<~DEPS - default: other - DEPS - end + File.write "deps.mf", <<~DEPS + default: other + DEPS - open "static_deps", "w" do |f| - f.puts 'puts "STATIC"' - end + File.write "static_deps", "puts 'STATIC'\n" end def rakefile_regenerate_imports @@ -271,23 +265,19 @@ def rakefile_regenerate_imports task :default task :regenerate do - open("deps", "w") do |f| - f << <<~CONTENT - file "deps" => :regenerate - puts "REGENERATED" - CONTENT - end + File.write "deps", <<~CONTENT + file "deps" => :regenerate + puts "REGENERATED" + CONTENT end import "deps" REGENERATE_IMPORTS - open "deps", "w" do |f| - f << <<~CONTENT - file "deps" => :regenerate - puts "INITIAL" - CONTENT - end + File.write "deps", <<~CONTENT + file "deps" => :regenerate + puts "INITIAL" + CONTENT end def rakefile_multidesc @@ -387,28 +377,22 @@ def rakefile_rakelib FileUtils.mkdir_p "rakelib" Dir.chdir "rakelib" do - open "test1.rb", "w" do |io| - io << <<~TEST1 - task :default do - puts "TEST1" - end - TEST1 - end + File.write "test1.rb", <<~TEST1 + task :default do + puts "TEST1" + end + TEST1 - open "test2.rake", "w" do |io| - io << <<~TEST1 - task :default do - puts "TEST2" - end - TEST1 - end + File.write "test2.rake", <<~TEST2 + task :default do + puts "TEST2" + end + TEST2 end end def rakefile_rbext - open "rakefile.rb", "w" do |io| - io << 'task :default do puts "OK" end' - end + File.write "rakefile.rb", 'task :default do puts "OK" end' end def rakefile_unittest @@ -477,15 +461,15 @@ def rakefile_test_signal task :default => :test TEST_SIGNAL - open "a_test.rb", "w" do |io| - io << 'puts "ATEST"' << "\n" - io << "$stdout.flush" << "\n" - io << 'Process.kill("TERM", $$)' << "\n" - end - open "b_test.rb", "w" do |io| - io << 'puts "BTEST"' << "\n" - io << "$stdout.flush" << "\n" - end + File.write "a_test.rb", <<~A_TEST + puts "ATEST" + $stdout.flush + Process.kill("TERM", $$) + A_TEST + File.write "b_test.rb", <<~B_TEST + puts "BTEST" + $stdout.flush + B_TEST end def rakefile_failing_test_task @@ -497,21 +481,21 @@ def rakefile_failing_test_task t.test_files = ['a_test.rb'] end TEST_TASK - open "a_test.rb", "w" do |io| - io << "require 'minitest/autorun'\n" - io << "class ExitTaskTest < Minitest::Test\n" - io << " def test_exit\n" - io << " assert false, 'this should fail'\n" - io << " end\n" - io << "end\n" - end + File.write "a_test.rb", <<~A_TEST + require 'minitest/autorun' + class ExitTaskTest < Minitest::Test + def test_exit + assert false, 'this should fail' + end + end + A_TEST end def rakefile_stand_alone_filelist - open "stand_alone_filelist.rb", "w" do |io| - io << "require 'rake/file_list'\n" - io << "FL = Rake::FileList['*.rb']\n" - io << "puts FL\n" - end + File.write "stand_alone_filelist.rb", <<~STAND_ALONE + require 'rake/file_list' + FL = Rake::FileList['*.rb'] + puts FL + STAND_ALONE end end diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 241db55cd..3d3d621eb 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -184,9 +184,9 @@ def test_rakelib def test_require $LOAD_PATH.unshift @tempdir - open "reqfile.rb", "w" do |io| io << "TESTING_REQUIRE << 1" end - open "reqfile2.rb", "w" do |io| io << "TESTING_REQUIRE << 2" end - open "reqfile3.rake", "w" do |io| io << "TESTING_REQUIRE << 3" end + File.write "reqfile.rb", "TESTING_REQUIRE << 1" + File.write "reqfile2.rb", "TESTING_REQUIRE << 2" + File.write "reqfile3.rake", "TESTING_REQUIRE << 3" flags(["--require", "reqfile"], "-rreqfile2", "-rreqfile3") diff --git a/test/test_rake_definitions.rb b/test/test_rake_definitions.rb index 52e468e3b..25d6195f0 100644 --- a/test/test_rake_definitions.rb +++ b/test/test_rake_definitions.rb @@ -78,7 +78,7 @@ def test_implicit_file_dependencies def create_existing_file Dir.mkdir File.dirname(EXISTINGFILE) unless File.exist?(File.dirname(EXISTINGFILE)) - open(EXISTINGFILE, "w") do |f| f.puts "HI" end unless + File.write(EXISTINGFILE, "HI") unless File.exist?(EXISTINGFILE) end diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 0527b03c6..35355622d 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -23,10 +23,10 @@ def setup FileUtils.touch "abc.x" FileUtils.touch "existing" - open "xyzzy.txt", "w" do |io| - io.puts "x" - io.puts "XYZZY" - end + File.write "xyzzy.txt", <<~EOTEXT + x + XYZZY + EOTEXT end diff --git a/test/test_rake_file_task.rb b/test/test_rake_file_task.rb index 61303d88a..a8b3ec413 100644 --- a/test/test_rake_file_task.rb +++ b/test/test_rake_file_task.rb @@ -27,7 +27,7 @@ def test_file_need assert ftask.needed?, "file should be needed" assert_equal Rake::LATE, ftask.timestamp - open(ftask.name, "w") { |f| f.puts "HI" } + File.write(ftask.name, "HI\n") assert_nil ftask.prerequisites.map { |n| Task[n].timestamp }.max assert ! ftask.needed?, "file should not be needed" diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 6e54b3485..c27fdd4a2 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -56,7 +56,7 @@ def test_rm_nowrite end def test_ln - open("a", "w") { |f| f.puts "TEST_LN" } + File.write("a", "TEST_LN\n") Rake::FileUtilsExt.safe_ln("a", "b", verbose: false) @@ -410,9 +410,7 @@ def test_split_all end def command(name, text) - open name, "w", 0750 do |io| - io << text - end + File.write(name, text) end def check_no_expansion diff --git a/test/test_rake_makefile_loader.rb b/test/test_rake_makefile_loader.rb index 125f9eb4f..b0a2f8a74 100644 --- a/test/test_rake_makefile_loader.rb +++ b/test/test_rake_makefile_loader.rb @@ -8,24 +8,22 @@ class TestRakeMakefileLoader < Rake::TestCase # :nodoc: def test_parse Dir.chdir @tempdir - open "sample.mf", "w" do |io| - io << <<~'SAMPLE_MF' - # Comments - a: a1 a2 a3 a4 - b: b1 b2 b3 \ - b4 b5 b6\ - # Mid: Comment - b7 + File.write "sample.mf", <<~'SAMPLE_MF' + # Comments + a: a1 a2 a3 a4 + b: b1 b2 b3 \ + b4 b5 b6\ + # Mid: Comment + b7 - a : a5 a6 a7 - c: c1 - d: d1 d2 \ + a : a5 a6 a7 + c: c1 + d: d1 d2 \ - e f : e1 f1 + e f : e1 f1 - g\ 0: g1 g\ 2 g\ 3 g4 - SAMPLE_MF - end + g\ 0: g1 g\ 2 g\ 3 g4 + SAMPLE_MF Task.clear loader = Rake::MakefileLoader.new From a54cbe560454615d22b12771968b65b3c777d256 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Wed, 2 Oct 2024 08:46:46 +0100 Subject: [PATCH 237/334] avoid double `ENV["RAKE_SYSTEM"]` lookup --- lib/rake/application.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 33ca872dd..f5728b797 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -755,14 +755,7 @@ def glob(path, &block) # :nodoc: # The directory path containing the system wide rakefiles. def system_dir # :nodoc: - @system_dir ||= - begin - if ENV["RAKE_SYSTEM"] - ENV["RAKE_SYSTEM"] - else - standard_system_dir - end - end + @system_dir ||= ENV["RAKE_SYSTEM"] || standard_system_dir end # The standard directory containing system wide rake files. From 215112261b2467cac6d3878b6857bfaec7804f6a Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Wed, 2 Oct 2024 10:02:05 +0100 Subject: [PATCH 238/334] remove `$trace` global variable / option --- lib/rake.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/rake.rb b/lib/rake.rb index 77cb0c73a..2006fbad9 100644 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -60,8 +60,6 @@ module Rake; end require_relative "rake/application" require_relative "rake/backtrace" -$trace = false - # :stopdoc: # # Some top level Constants. From e1bfb4844d89435e54db746c84ca459b7ea17020 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Thu, 3 Oct 2024 08:00:45 +0100 Subject: [PATCH 239/334] Link to actual commit, not git tree with that SHA --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 3fc72dbd1..7716e782e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -148,7 +148,7 @@ February 2014. This repository was originally hosted at with his passing, has been moved to {ruby/rake}[https://github.com/ruby/rake]. You can view Jim's last commit here: -https://github.com/jimweirich/rake/tree/336559f28f55bce418e2ebcc0a57548dcbac4025 +https://github.com/jimweirich/rake/commit/336559f28f55bce418e2ebcc0a57548dcbac4025 You can {read more about Jim}[https://en.wikipedia.org/wiki/Jim_Weirich] at Wikipedia. From 3c28faa10164f13193db0418c0e2649897c4a1b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 07:35:48 +0000 Subject: [PATCH 240/334] Bump ruby/setup-ruby from 1.194.0 to 1.195.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.194.0 to 1.195.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/c04af2bb7258bb6a03df1d3c1865998ac9390972...086ffb1a2090c870a3f881cc91ea83aa4243d408) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 78d5b2e58..6420d4d28 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 + - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c25c65030..e098ebe12 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - name: Setup Ruby - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.139.0 + uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6a87f6091..9cd6bd4c0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 + - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 494e3e1ac..f42587bd8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 + - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 487d8ec0485cafabb83fc22fe602dc8ee7fc8db3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 07:29:29 +0000 Subject: [PATCH 241/334] Bump ruby/setup-ruby from 1.195.0 to 1.196.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.195.0 to 1.196.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/086ffb1a2090c870a3f881cc91ea83aa4243d408...f26937343756480a8cb3ae1f623b9c8d89ed6984) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6420d4d28..f931ea90a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 + - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e098ebe12..7a377ddac 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - name: Setup Ruby - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.139.0 + uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9cd6bd4c0..3357cc333 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 + - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f42587bd8..e9ba9af86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 - - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0 + - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 17041b7c6e57c454af8d226313bf3cccfd26892f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 07:35:13 +0000 Subject: [PATCH 242/334] Bump actions/checkout from 4.2.0 to 4.2.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/d632683dd7b4114ad314bca15554477dd762a938...eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f931ea90a..dc007ed58 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7a377ddac..3e91c3bbe 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 - name: Setup Ruby uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3357cc333..0a7caad63 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9ba9af86..b6911dc31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3.3.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 with: ruby-version: ${{ matrix.ruby }} From ce780cc0de5cf195791b24367d206a5e56f3fe6e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:47:46 +0000 Subject: [PATCH 243/334] Bump ruby/setup-ruby from 1.196.0 to 1.197.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.196.0 to 1.197.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/f26937343756480a8cb3ae1f623b9c8d89ed6984...7bae1d00b5db9166f4f0fc47985a3a5702cb58f0) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index dc007ed58..550d1286c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 + - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3e91c3bbe..00b139431 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 - name: Setup Ruby - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.139.0 + uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a7caad63..c5cef7bc6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 + - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6911dc31..3f8aa11e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 - - uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 + - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 43ac7c2a051562b1ddea74a3bedf4e385a368f45 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:35:03 +0000 Subject: [PATCH 244/334] Bump actions/checkout from 4.2.1 to 4.2.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871...11bd71901bbe5b1630ceea73d27597364c9af683) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 550d1286c..68dc46861 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 00b139431..5d53bb0cb 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.139.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c5cef7bc6..8047e9363 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f8aa11e1..695f50955 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 with: ruby-version: ${{ matrix.ruby }} From e3206dc8f08eb465079bf015da810d374eca2eb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 07:18:44 +0000 Subject: [PATCH 245/334] Bump ruby/setup-ruby from 1.197.0 to 1.199.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.197.0 to 1.199.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/7bae1d00b5db9166f4f0fc47985a3a5702cb58f0...7d3497fd78c07c0d84ebafa58d8dac60cd1f0763) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 68dc46861..78b3f8df2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 + - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5d53bb0cb..4b0c82894 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.139.0 + uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8047e9363..60b8ee921 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 + - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 695f50955..dfb29fb72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 + - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From d2ae9337ddeb28201ca7fe42487e7f8aa06900e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 07:12:29 +0000 Subject: [PATCH 246/334] Bump ruby/setup-ruby from 1.199.0 to 1.202.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.199.0 to 1.202.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/7d3497fd78c07c0d84ebafa58d8dac60cd1f0763...a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 78b3f8df2..c559adfaa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 + - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4b0c82894..bb14784b0 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.139.0 + uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 60b8ee921..5b71f1f72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 + - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dfb29fb72..2de1335b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0 + - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 24a583e976d406b7b164e5cf7206cba44524887b Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Mon, 11 Nov 2024 15:12:12 +0000 Subject: [PATCH 247/334] Refactor "exposed" `@system_dir` instance variable --- test/helper.rb | 8 ++++---- test/test_rake_application.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index 9d2271298..8992caa05 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -91,17 +91,17 @@ def ignore_deprecations end def rake_system_dir - @system_dir = "system" + system_dir = "system" - FileUtils.mkdir_p @system_dir + FileUtils.mkdir_p system_dir - File.write File.join(@system_dir, "sys1.rake"), <<~SYS + File.write File.join(system_dir, "sys1.rake"), <<~SYS task "sys1" do puts "SYS1" end SYS - ENV["RAKE_SYSTEM"] = @system_dir + ENV["RAKE_SYSTEM"] = system_dir end def rakefile(contents) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index 2d4e52c00..a32d07b17 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -338,7 +338,7 @@ def test_load_from_system_rakefile load_rakefile end - assert_equal @system_dir, @app.system_dir + assert_equal "system", @app.system_dir assert_nil @app.rakefile rescue SystemExit flunk "failed to load rakefile" From 7310d7a0a5b1d5b15e4ee2f434e2f6c595cc7768 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Sat, 7 Dec 2024 17:02:21 +0000 Subject: [PATCH 248/334] Use `$LOADED_FEATURES` built-in instead of `$"` --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 33ca872dd..b1b780a23 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -691,7 +691,7 @@ def handle_options(argv) # :nodoc: # Similar to the regular Ruby +require+ command, but will check # for *.rake files in addition to *.rb files. - def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc: + def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc: fn = file_name + ".rake" return false if loaded.include?(fn) paths.each do |path| From 854ee1fce8e736f3e91b5971e5924aebbf78141e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 07:44:10 +0000 Subject: [PATCH 249/334] Bump ruby/setup-ruby from 1.202.0 to 1.203.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.202.0 to 1.203.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc...2a18b06812b0e15bb916e1df298d3e740422c47e) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c559adfaa..26aa29c7b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 + - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index bb14784b0..c7f78e4d6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.139.0 + uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b71f1f72..f12a12e28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 + - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2de1335b4..6d0096efd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 + - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 66298af3253c437b97e35aaaa1a15a41835bff86 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 07:15:59 +0000 Subject: [PATCH 250/334] Bump ruby/setup-ruby from 1.203.0 to 1.204.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.203.0 to 1.204.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/2a18b06812b0e15bb916e1df298d3e740422c47e...401c19e14f474b54450cd3905bb8b86e2c8509cf) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 26aa29c7b..2803dddfd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 + - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c7f78e4d6..5c25ed429 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.139.0 + uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f12a12e28..1f7e73e44 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 + - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d0096efd..f4509896c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0 + - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From ef3b4702bec54955145dd24af9dd9f583d495ec0 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Thu, 19 Dec 2024 13:06:29 +0000 Subject: [PATCH 251/334] Use more idiomatic `Dir.home` to find system dir --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index e387aec1c..87ae47b32 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -765,7 +765,7 @@ def standard_system_dir #:nodoc: end else def standard_system_dir #:nodoc: - File.join(File.expand_path("~"), ".rake") + File.join(Dir.home, ".rake") end end private :standard_system_dir From 58fa1f4c63694c9f21842ec5543ad94f71aa2fd4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 07:53:05 +0000 Subject: [PATCH 252/334] Bump ruby/setup-ruby from 1.204.0 to 1.207.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.204.0 to 1.207.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/401c19e14f474b54450cd3905bb8b86e2c8509cf...4a9ddd6f338a97768b8006bf671dfbad383215f4) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2803dddfd..c78ae5e20 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 + - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5c25ed429..1f262d421 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.139.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1f7e73e44..9b431d5f7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 + - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4509896c..e7dd43dc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 + - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From e35f35c1b4b0e3b27a1e9db6bc92b3792976289e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 07:14:15 +0000 Subject: [PATCH 253/334] Bump ruby/setup-ruby from 1.207.0 to 1.213.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.207.0 to 1.213.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/4a9ddd6f338a97768b8006bf671dfbad383215f4...28c4deda893d5a96a6b2d958c5b47fc18d65c9d3) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c78ae5e20..f0ba321e5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1f262d421..d914d6d98 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.139.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9b431d5f7..e4d37de45 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7dd43dc8..a60922629 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From ce1502978f5e34a69d0c72dc2b0658a333a2b41a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 07:43:50 +0000 Subject: [PATCH 254/334] Bump ruby/setup-ruby from 1.213.0 to 1.215.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.213.0 to 1.215.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/28c4deda893d5a96a6b2d958c5b47fc18d65c9d3...2654679fe7f7c29875c669398a8ec0791b8a64a1) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f0ba321e5..a1400230f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d914d6d98..6db5a08e1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.139.0 + uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e4d37de45..b4f0f1227 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a60922629..0ae752a4a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 69415b85c64a76d79e9eaa3c2af08dbc1127279d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 07:26:05 +0000 Subject: [PATCH 255/334] Bump ruby/setup-ruby from 1.215.0 to 1.218.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.215.0 to 1.218.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/2654679fe7f7c29875c669398a8ec0791b8a64a1...d781c1b4ed31764801bfae177617bb0446f5ef8d) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a1400230f..1fdb10846 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6db5a08e1..59e49481a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.139.0 + uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b4f0f1227..9a603e215 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ae752a4a..8ad3053a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 2a6ef82c6f0d1bf683e1fb34dcde0d1c086ef7a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 07:48:49 +0000 Subject: [PATCH 256/334] Bump ruby/setup-ruby from 1.218.0 to 1.221.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.218.0 to 1.221.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/d781c1b4ed31764801bfae177617bb0446f5ef8d...32110d4e311bd8996b2a82bf2a43b714ccc91777) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1fdb10846..6f9ece440 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 59e49481a..8f600a079 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.139.0 + uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9a603e215..f814f6f8e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ad3053a2..560273248 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From a372fe961a8c356f838d4bb2e7984a3e3013745b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 07:49:01 +0000 Subject: [PATCH 257/334] Bump ruby/setup-ruby from 1.221.0 to 1.222.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.221.0 to 1.222.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/32110d4e311bd8996b2a82bf2a43b714ccc91777...277ba2a127aba66d45bad0fa2dc56f80dbfedffa) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6f9ece440..90f4c74c5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 + - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8f600a079..e97977722 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.139.0 + uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f814f6f8e..5545eaad8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 + - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 560273248..d15bb279a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 + - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From a029c19dc66ed58025fcaa4dae44cc947252eb10 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 07:23:20 +0000 Subject: [PATCH 258/334] Bump ruby/setup-ruby from 1.222.0 to 1.227.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.222.0 to 1.227.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/277ba2a127aba66d45bad0fa2dc56f80dbfedffa...1a615958ad9d422dd932dc1d5823942ee002799f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 90f4c74c5..83a64df6f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 + - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e97977722..2781bd59c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.139.0 + uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5545eaad8..20a968880 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 + - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d15bb279a..0c2da701d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@277ba2a127aba66d45bad0fa2dc56f80dbfedffa # v1.222.0 + - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 0e5e7c34419aea5affc71e89e22ac1b79783b74f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 07:51:23 +0000 Subject: [PATCH 259/334] Bump ruby/setup-ruby from 1.227.0 to 1.229.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.227.0 to 1.229.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/1a615958ad9d422dd932dc1d5823942ee002799f...354a1ad156761f5ee2b7b13fa8e09943a5e8d252) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 83a64df6f..25d7c3058 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 + - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2781bd59c..2fd8a1db9 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.139.0 + uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 20a968880..f3249522d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 + - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c2da701d..b28d64727 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0 + - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 3315330b5a5d975b59fcdeb810282b4ad5a6a060 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 4 Apr 2025 11:48:46 +0900 Subject: [PATCH 260/334] Hardening auto-merge --- .github/workflows/dependabot_automerge.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 89534a975..f998e1822 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -1,12 +1,16 @@ # from https://github.com/gofiber/swagger/blob/main/.github/workflows/dependabot_automerge.yml name: Dependabot auto-merge on: - pull_request_target: + pull_request: + +permissions: + contents: write + pull-requests: write jobs: automerge: runs-on: ubuntu-latest - if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ruby/rake' steps: - name: Dependabot metadata uses: dependabot/fetch-metadata@v2 @@ -22,5 +26,5 @@ jobs: if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}} run: gh pr merge --auto --merge "$PR_URL" env: - PR_URL: ${{github.event.pull_request.html_url}} + PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} From d7470a36d50fd8b333f503f3829f7aaf3a7af756 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 4 Apr 2025 11:57:42 +0900 Subject: [PATCH 261/334] cosmetic --- .github/workflows/dependabot_automerge.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index f998e1822..db2a48113 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -15,6 +15,7 @@ jobs: - name: Dependabot metadata uses: dependabot/fetch-metadata@v2 id: metadata + - name: Wait for status checks uses: lewagon/wait-on-check-action@v1.3.4 with: @@ -22,6 +23,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} check-regexp: test* wait-interval: 30 + - name: Auto-merge for Dependabot PRs if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}} run: gh pr merge --auto --merge "$PR_URL" From 13ef80c832de5967185eac96d1a307835386155c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 07:06:44 +0000 Subject: [PATCH 262/334] Bump ruby/setup-ruby from 1.229.0 to 1.230.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.229.0 to 1.230.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/354a1ad156761f5ee2b7b13fa8e09943a5e8d252...e5ac7b085f6e63d49c8973eb0c6e04d876b881f1) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.230.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 25d7c3058..26371326c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 + - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2fd8a1db9..581451ed8 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.139.0 + uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f3249522d..94ae8f5ea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 + - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b28d64727..b018c2f6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0 + - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 17b67312a83877a067f6833502b059dbee87476a Mon Sep 17 00:00:00 2001 From: takmar Date: Sat, 26 Apr 2025 20:41:46 +0900 Subject: [PATCH 263/334] Remove unused argument --- lib/rake/task_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb index 0db5c241e..838779caa 100644 --- a/lib/rake/task_manager.rb +++ b/lib/rake/task_manager.rb @@ -35,7 +35,7 @@ def define_task(task_class, *args, &block) # :nodoc: task.set_arg_names(arg_names) unless arg_names.empty? if Rake::TaskManager.record_task_metadata add_location(task) - task.add_description(get_description(task)) + task.add_description(get_description) end task.enhance(Task.format_deps(deps), &block) task | order_only unless order_only.nil? @@ -316,7 +316,7 @@ def make_sources(task_name, task_pattern, extensions) end # Return the current description, clearing it in the process. - def get_description(task) + def get_description desc = @last_description @last_description = nil desc From 478f3051de33bd1766795f87c5d7fd96fb069298 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 08:20:47 +0000 Subject: [PATCH 264/334] Bump ruby/setup-ruby from 1.230.0 to 1.235.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.230.0 to 1.235.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/e5ac7b085f6e63d49c8973eb0c6e04d876b881f1...dffc446db9ba5a0c4446edb5bca1c5c473a806c5) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.235.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 26371326c..5a21bb6f1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 + - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 581451ed8..59f7ae547 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.139.0 + uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 94ae8f5ea..b7bbe587a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 + - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b018c2f6c..f38d8564e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e5ac7b085f6e63d49c8973eb0c6e04d876b881f1 # v1.230.0 + - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From b48af235e81e47a7f76925306f1493c8bfc5ce27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 07:53:58 +0000 Subject: [PATCH 265/334] Bump ruby/setup-ruby from 1.235.0 to 1.237.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.235.0 to 1.237.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/dffc446db9ba5a0c4446edb5bca1c5c473a806c5...eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.237.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5a21bb6f1..b3d80c0ce 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 + - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 59f7ae547..1db4002db 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.139.0 + uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b7bbe587a..d6d0d3ae9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 + - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f38d8564e..350ae5727 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 + - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 253b526c1af8c7c8d0cc0987949fab2d237addbb Mon Sep 17 00:00:00 2001 From: komagata Date: Sun, 11 May 2025 11:30:41 +0900 Subject: [PATCH 266/334] Fix RDoc links in Rake Information section --- README.rdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rdoc b/README.rdoc index 7716e782e..b31fe377a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -74,10 +74,10 @@ Type "rake --help" for all available options. === Rake Information -* {Rake command-line}[link:doc/command_line_usage.rdoc] -* {Writing Rakefiles}[link:doc/rakefile.rdoc] -* The original {Rake announcement}[link:doc/rational.rdoc] -* Rake {glossary}[link:doc/glossary.rdoc] +* {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc] +* {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc] +* The original {Rake announcement}[rdoc-ref:doc/rational.rdoc] +* Rake {glossary}[rdoc-ref:doc/glossary.rdoc] === Presentations and Articles about Rake From aa286050a40c1a68642d2ed901df2c8ff2974785 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 May 2025 07:39:10 +0000 Subject: [PATCH 267/334] Bump ruby/setup-ruby from 1.237.0 to 1.238.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.237.0 to 1.238.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c...e34163cd15f4bb403dcd72d98e295997e6a55798) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.238.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b3d80c0ce..fb965e822 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 + - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1db4002db..7c2f0fa28 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.139.0 + uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d6d0d3ae9..fb6dc334a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 + - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 350ae5727..1f7f68cce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 + - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 36b8a0d1df2c83d1b9d8b93ccbd71dc3783cf51e Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 19 May 2025 21:30:07 +0100 Subject: [PATCH 268/334] Use latest RDoc release instead of Ruby 3.2's default version --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 78bc01c96..478e787cf 100644 --- a/Gemfile +++ b/Gemfile @@ -6,4 +6,5 @@ group :development do gem "test-unit" gem "coveralls" gem "rubocop" + gem "rdoc" end From 6b3daf8723b9768590fa6bddbede8652f221a42d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 30 May 2025 14:23:35 +0900 Subject: [PATCH 269/334] Enabled trusted publisher for rubygems.org --- .github/workflows/push_gem.yml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/push_gem.yml diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml new file mode 100644 index 000000000..4c0ca086b --- /dev/null +++ b/.github/workflows/push_gem.yml @@ -0,0 +1,46 @@ +name: Publish gem to rubygems.org + +on: + push: + tags: + - 'v*' + +permissions: + contents: read + +jobs: + push: + if: github.repository == 'ruby/rake' + runs-on: ubuntu-latest + + environment: + name: rubygems.org + url: https://rubygems.org/gems/rake + + permissions: + contents: write + id-token: write + + steps: + - name: Harden Runner + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up Ruby + uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0 + with: + bundler-cache: true + ruby-version: "ruby" + + - name: Publish to RubyGems + uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1 + + - name: Create GitHub release + run: | + tag_name="$(git describe --tags --abbrev=0)" + gh release create "${tag_name}" --verify-tag --generate-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5367e5c92d78be969812ac1ffa43a11df6a602d7 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Fri, 20 Dec 2024 08:20:52 +0000 Subject: [PATCH 270/334] Move dependency requires to RubyRunner file --- test/support/ruby_runner.rb | 4 ++++ test/test_rake_backtrace.rb | 1 - test/test_rake_functional.rb | 2 -- test/test_rake_reduce_compat.rb | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/support/ruby_runner.rb b/test/support/ruby_runner.rb index 160a57090..d94d34137 100644 --- a/test/support/ruby_runner.rb +++ b/test/support/ruby_runner.rb @@ -1,4 +1,8 @@ # frozen_string_literal: true + +require "open3" +require "fileutils" + module RubyRunner include FileUtils diff --git a/test/test_rake_backtrace.rb b/test/test_rake_backtrace.rb index e4c7fb0ff..eddb13150 100644 --- a/test/test_rake_backtrace.rb +++ b/test/test_rake_backtrace.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require File.expand_path("../helper", __FILE__) -require "open3" class TestBacktraceSuppression < Rake::TestCase # :nodoc: def test_bin_rake_suppressed diff --git a/test/test_rake_functional.rb b/test/test_rake_functional.rb index 6ab005f53..3854c5751 100644 --- a/test/test_rake_functional.rb +++ b/test/test_rake_functional.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true require File.expand_path("../helper", __FILE__) -require "fileutils" -require "open3" class TestRakeFunctional < Rake::TestCase # :nodoc: include RubyRunner diff --git a/test/test_rake_reduce_compat.rb b/test/test_rake_reduce_compat.rb index 17986dcde..05f514892 100644 --- a/test/test_rake_reduce_compat.rb +++ b/test/test_rake_reduce_compat.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require File.expand_path("../helper", __FILE__) -require "open3" class TestRakeReduceCompat < Rake::TestCase # :nodoc: include RubyRunner From 0b727e9abfc60d3ee7eb22f5668c8552aa2d9028 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Fri, 20 Dec 2024 12:50:06 +0000 Subject: [PATCH 271/334] Remove superfluous dependency requires (in tests) --- test/test_rake_file_utils.rb | 1 - test/test_trace_output.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index c27fdd4a2..97b6ea83b 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require File.expand_path("../helper", __FILE__) require "fileutils" -require "stringio" class TestRakeFileUtils < Rake::TestCase # :nodoc: def setup diff --git a/test/test_trace_output.rb b/test/test_trace_output.rb index 4f1a1117e..ddfe2b1c7 100644 --- a/test/test_trace_output.rb +++ b/test/test_trace_output.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require File.expand_path("../helper", __FILE__) -require "stringio" class TestTraceOutput < Rake::TestCase # :nodoc: include Rake::TraceOutput From cff76641e7aff0b905f0c20b77efe0b6acfbb0be Mon Sep 17 00:00:00 2001 From: Russell Garner Date: Mon, 18 Sep 2023 19:07:57 +0100 Subject: [PATCH 272/334] Pattern matching support for arguments Implement `Rake::TaskArguments#deconstruct_keys` for use in Ruby 3.1 and up. This means in an idiomatic rake task we can use rightward assignment to say: ``` task :get, %i[tenant id] do |_t, args| args => {tenant:, id:} ... end ``` ... and omit the `.to_h` from `args`, raising `NoMatchingPatternError` if either of the two params is absent from the task args. --- lib/rake/task_arguments.rb | 4 ++++ test/test_rake_task_arguments.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/lib/rake/task_arguments.rb b/lib/rake/task_arguments.rb index 0d3001afd..ecd27ab75 100644 --- a/lib/rake/task_arguments.rb +++ b/lib/rake/task_arguments.rb @@ -94,6 +94,10 @@ def fetch(*args, &block) @hash.fetch(*args, &block) end + def deconstruct_keys(keys) + @hash.slice(*keys) + end + protected def lookup(name) # :nodoc: diff --git a/test/test_rake_task_arguments.rb b/test/test_rake_task_arguments.rb index 245a71661..2706827e5 100644 --- a/test/test_rake_task_arguments.rb +++ b/test/test_rake_task_arguments.rb @@ -54,6 +54,13 @@ def test_to_hash assert_equal 0, h.fetch(:one) end + def test_deconstruct_keys + omit "No stable pattern matching until Ruby 3.1 (testing #{RUBY_VERSION})" if RUBY_VERSION < "3.1" + + ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3]) + assert_equal ta.deconstruct_keys([:a, :b]), { a: 1, b: 2 } + end + def test_enumerable_behavior ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3]) assert_equal [10, 20, 30], ta.map { |k, v| v * 10 }.sort From 0fdacef47aa9a4140e472b0ce302a2dd09423a75 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 30 May 2025 15:03:13 +0900 Subject: [PATCH 273/334] Bump rake to 13.3.0 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index bba5f1b74..99e0502f6 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.2.1" + VERSION = "13.3.0" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 90946b654c7e1d898d6cfb6ea563b4d5e6621d8a Mon Sep 17 00:00:00 2001 From: nick evans Date: Mon, 2 Jun 2025 10:54:49 -0400 Subject: [PATCH 274/334] Fix TaskArguments#deconstruct_keys with keys = nil `#deconstruct_keys` should handle `keys == nil`, or `**rest` will be broken. For example, the normal behavior looks like this: ```ruby {a: 1, b: 2, c: 3} => {a:, **rest} a # => 1 rest # => {b: 2, c: 3} ``` But without handling `keys == nil`, we'll get this: ```ruby class Example def initialize(hash) = @hash = hash def deconstruct_keys(keys) = @hash.slice(*keys) end Example.new({a: 1, b: 2, c: 3}) => {a:, **rest} # !> "#{inspect}: key not found: :a" (NoMatchingPatternKeyError) ``` --- lib/rake/task_arguments.rb | 2 +- test/test_rake_task_arguments.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rake/task_arguments.rb b/lib/rake/task_arguments.rb index ecd27ab75..24abebcea 100644 --- a/lib/rake/task_arguments.rb +++ b/lib/rake/task_arguments.rb @@ -95,7 +95,7 @@ def fetch(*args, &block) end def deconstruct_keys(keys) - @hash.slice(*keys) + keys ? @hash.slice(*keys) : to_hash end protected diff --git a/test/test_rake_task_arguments.rb b/test/test_rake_task_arguments.rb index 2706827e5..d0d536fbb 100644 --- a/test/test_rake_task_arguments.rb +++ b/test/test_rake_task_arguments.rb @@ -58,6 +58,7 @@ def test_deconstruct_keys omit "No stable pattern matching until Ruby 3.1 (testing #{RUBY_VERSION})" if RUBY_VERSION < "3.1" ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3]) + assert_equal ta.deconstruct_keys(nil), { a: 1, b: 2, c: 3 } assert_equal ta.deconstruct_keys([:a, :b]), { a: 1, b: 2 } end From e8c48e07d861d7aac443e4bdf81e6ffca730be85 Mon Sep 17 00:00:00 2001 From: nick evans Date: Wed, 4 Jun 2025 15:23:04 -0400 Subject: [PATCH 275/334] Fix test assert expected/actual order Co-authored-by: Russell Garner --- test/test_rake_task_arguments.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_rake_task_arguments.rb b/test/test_rake_task_arguments.rb index d0d536fbb..371b4e737 100644 --- a/test/test_rake_task_arguments.rb +++ b/test/test_rake_task_arguments.rb @@ -58,8 +58,8 @@ def test_deconstruct_keys omit "No stable pattern matching until Ruby 3.1 (testing #{RUBY_VERSION})" if RUBY_VERSION < "3.1" ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3]) - assert_equal ta.deconstruct_keys(nil), { a: 1, b: 2, c: 3 } - assert_equal ta.deconstruct_keys([:a, :b]), { a: 1, b: 2 } + assert_equal({ a: 1, b: 2, c: 3 }, ta.deconstruct_keys(nil)) + assert_equal({ a: 1, b: 2 }, ta.deconstruct_keys([:a, :b])) end def test_enumerable_behavior From fb5277a248cf138e5e5fb83f006dcb191964f871 Mon Sep 17 00:00:00 2001 From: Guo Date: Thu, 5 Jun 2025 17:19:34 +0800 Subject: [PATCH 276/334] Remove useless condition check Since threads count is already guaranteed to be less or equal than max_active_threads in thread_pool.rb:line 113, there is no need to double check. Not to mention that this will cause a race condition on the JRuby platform, as noted in 5ac9df09d6be3fbb7edb127f31aa0684db620cd3. Removing the conditional check will also reduce lock acquisitions and improve overall efficiency. In the original commit 173745949fa299d20a558c0511c02991f056933d, this check was essential. However, after subsequent changes, it seems no one performed a careful review of this logic. --- lib/rake/thread_pool.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/rake/thread_pool.rb b/lib/rake/thread_pool.rb index d791caa6e..ea9c0ae30 100644 --- a/lib/rake/thread_pool.rb +++ b/lib/rake/thread_pool.rb @@ -108,19 +108,13 @@ def process_queue_item #:nodoc: false end - def safe_thread_count - @threads_mon.synchronize do - @threads.count - end - end - def start_thread # :nodoc: @threads_mon.synchronize do next unless @threads.count < @max_active_threads t = Thread.new do begin - while safe_thread_count <= @max_active_threads + loop do break unless process_queue_item end ensure From bc19b73e346b227a8d9126480152a50baaebbe23 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 11 Jun 2025 14:14:35 +0900 Subject: [PATCH 277/334] Added document for RAKEOPT Fixed #439 --- doc/command_line_usage.rdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/command_line_usage.rdoc b/doc/command_line_usage.rdoc index 105d6c8e9..c1ff39d5b 100644 --- a/doc/command_line_usage.rdoc +++ b/doc/command_line_usage.rdoc @@ -153,6 +153,19 @@ Options are: [--no-deprecation-warnings (-X)] Do not display the deprecation warnings. +== Environment Variables + +[RAKEOPT] + Command line options can be specified in the RAKEOPT + environment variable. These options will be processed as if they + were given on the command line. This is useful for setting default + options that you want to use with every rake invocation. + + For example, setting: + export RAKEOPT="-s --trace" + + would cause rake to run silently with tracing enabled by default. + In addition, any command line option of the form VAR=VALUE will be added to the environment hash ENV and may be tested in the Rakefile. From bdf49852898df1ea20d8551bfc09a8238067b97d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 17 Jun 2025 15:00:02 +0900 Subject: [PATCH 278/334] lewagon/wait-on-check-action didn't need bot token --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index db2a48113..daa3c415b 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -19,7 +19,7 @@ jobs: - name: Wait for status checks uses: lewagon/wait-on-check-action@v1.3.4 with: - repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} check-regexp: test* wait-interval: 30 From dbb1833662bc1340a923fccb54fab98413fd560d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 17 Jun 2025 15:13:52 +0900 Subject: [PATCH 279/334] Fixed wrong name of environmental variable --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index daa3c415b..ae7bd8c1d 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -29,4 +29,4 @@ jobs: run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} From cf550b31c6153d23becc8ebbfb044a4cb077e185 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 06:20:35 +0000 Subject: [PATCH 280/334] Bump ruby/setup-ruby from 1.238.0 to 1.245.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.238.0 to 1.245.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/v1.238.0...a4effe49ee8ee5b8b5091268c473a4628afb5651) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.245.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fb965e822..4f066e9b8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 + - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7c2f0fa28..c9f04a9be 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Ruby - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.139.0 + uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.139.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fb6dc334a..4f445e5d8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 + - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 4c0ca086b..5f97b8ade 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0 + uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f7f68cce..1e15adfa6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 - - uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0 + - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 1b91fafd5e0020cc6d353adfe13434a23eefae36 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 06:49:20 +0000 Subject: [PATCH 281/334] Bump step-security/harden-runner from 2.12.0 to 2.12.1 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.12.0 to 2.12.1. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/0634a2670c59f64b4a01f0f96f84700a4088b9f0...002fdce3c6a235733a90a27c80493a3241e56863) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.12.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 5f97b8ade..a9538634d 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: egress-policy: audit From e3ba79907605254302975a728b8ac7c2fb24aa92 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 20 Jun 2025 16:56:03 +0900 Subject: [PATCH 282/334] Use the hash version of steps --- .github/workflows/dependabot_automerge.yml | 4 ++-- .github/workflows/gh-pages.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index ae7bd8c1d..3f8c25342 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -13,11 +13,11 @@ jobs: if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ruby/rake' steps: - name: Dependabot metadata - uses: dependabot/fetch-metadata@v2 + uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0 id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@v1.3.4 + uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc # v1.3.4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c9f04a9be..0c7728a2d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,12 +27,12 @@ jobs: bundler-cache: true - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build with RDoc # Outputs to the './_site' directory by default run: bundle exec rake rdoc - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 deploy: environment: @@ -43,4 +43,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 From 4f18e50de630a3d1b26e2c846a5ddc68114c97b8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 20 Jun 2025 17:02:31 +0900 Subject: [PATCH 283/334] Update the latest versions of steps --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4f066e9b8..b86f00b39 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0c7728a2d..b81eb0e35 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,9 +19,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Ruby - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.139.0 + uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4f445e5d8..5b0209d25 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: '3.0' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e15adfa6..07bff33ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 with: ruby-version: ${{ matrix.ruby }} From 838142c04d1628cea37de95a202f0c7919636239 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 9 Jul 2025 16:43:04 +0900 Subject: [PATCH 284/334] The old Ruby version of Windows is broken --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07bff33ef..562196960 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,8 @@ jobs: ruby: 2.4 - os: macos-latest ruby: 2.5 - - os: macos-latest + - os: windows-latest + ruby: 2.3 - os: windows-latest ruby: truffleruby - os: windows-latest From 4a293d4115f4ad153ac150885bf64e0e9f627984 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 9 Jul 2025 17:16:45 +0900 Subject: [PATCH 285/334] Use new token --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 3f8c25342..e4075874b 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -29,4 +29,4 @@ jobs: run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} - GH_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.MATZBOT_DEPENDABOT_MERGE_TOKEN }} From 5bf3f14ddf5d72498fa9848a8b4afb054ae7d97e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:21:19 +0000 Subject: [PATCH 286/334] Bump step-security/harden-runner from 2.12.1 to 2.12.2 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.12.1 to 2.12.2. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/002fdce3c6a235733a90a27c80493a3241e56863...6c439dc8bdf85cadbbce9ed30d1c7b959517bc49) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.12.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index a9538634d..e0b9c3d3c 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 + uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 with: egress-policy: audit From 09832cd3827cf915a612996aedbfa91ba35130a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 08:27:33 +0000 Subject: [PATCH 287/334] Bump lewagon/wait-on-check-action from 1.3.4 to 1.4.0 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.4 to 1.4.0. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc...0dceb95e7c4cad8cc7422aee3885998f5cab9c79) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index e4075874b..aaf940b0d 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -17,7 +17,7 @@ jobs: id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc # v1.3.4 + uses: lewagon/wait-on-check-action@0dceb95e7c4cad8cc7422aee3885998f5cab9c79 # v1.4.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From 58e1eac00afb385c8c5da5bc89e14ab87617bab8 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Fri, 20 Dec 2024 09:07:58 +0000 Subject: [PATCH 288/334] only include lib in $LOAD_PATH if not included yet --- test/helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index 8992caa05..537d7e3a2 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true -$:.unshift File.expand_path("../../lib", __FILE__) + +lib = File.expand_path("../../lib", __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) begin if ENV["COVERALLS"] From 7a8087dda4b04c09d8f583c63a25f3206dbc81dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 10:14:46 +0000 Subject: [PATCH 289/334] Bump ruby/setup-ruby from 1.245.0 to 1.253.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.245.0 to 1.253.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/a4effe49ee8ee5b8b5091268c473a4628afb5651...bb6434c747fa7022e12fa1cae2a0951fcffcff26) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.253.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b86f00b39..5c2c9f44a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 + - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b81eb0e35..c9bb0eef4 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Ruby - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 + uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b0209d25..3e4e27f92 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 + - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index e0b9c3d3c..523db29ee 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 + uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 562196960..e9df0278e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0 + - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 2974ef834fb8bd2663185aa65fb09c563e3f2b15 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 10:20:20 +0000 Subject: [PATCH 290/334] Bump step-security/harden-runner from 2.12.2 to 2.13.0 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.12.2 to 2.13.0. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/6c439dc8bdf85cadbbce9ed30d1c7b959517bc49...ec9f2d5744a09debf3a187a3f4f675c53b671911) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index e0b9c3d3c..b7953bb9d 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 + uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 with: egress-policy: audit From 41d963b635bb55866a346a2cbabf3b9726ad5cdb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 29 Jul 2025 12:00:28 +0900 Subject: [PATCH 291/334] Avoid to use `it` with block scope becaus Ruby 3.4 introduced block parameters named `it` --- test/test_rake_file_list.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_rake_file_list.rb b/test/test_rake_file_list.rb index 35355622d..45f695d4f 100644 --- a/test/test_rake_file_list.rb +++ b/test/test_rake_file_list.rb @@ -563,19 +563,19 @@ def test_enumeration_methods assert_equal ["a", "b"], b assert_equal FileList, b.class - b = a.sort_by { |it| it } + b = a.sort_by { |i| i } assert_equal ["a", "b"], b assert_equal FileList, b.class - b = a.select { |it| it == "b" } + b = a.select { |i| i == "b" } assert_equal ["b"], b assert_equal FileList, b.class - b = a.select { |it| it.size == 1 } + b = a.select { |i| i.size == 1 } assert_equal ["a", "b"], b assert_equal FileList, b.class - b = a.reject { |it| it == "b" } + b = a.reject { |i| i == "b" } assert_equal ["a"], b assert_equal FileList, b.class @@ -583,7 +583,7 @@ def test_enumeration_methods assert_equal ["a", "b"], b assert_equal FileList, b.class - b = a.partition { |it| it == "b" } + b = a.partition { |i| i == "b" } assert_equal [["b"], ["a"]], b assert_equal Array, b.class assert_equal FileList, b[0].class From fbe56f5a018476deb69bd91d648851c6a6ec5322 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 19 Aug 2025 13:27:48 +0900 Subject: [PATCH 292/334] Fixed assertion result with the latest stable version of JRuby --- test/test_rake_rake_test_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index 6bde77d9c..a504159f1 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -53,7 +53,7 @@ def test_load_error_raised_implicitly exc = assert_raises(LoadError) do load @loader end - if RUBY_ENGINE == "jruby" + if RUBY_ENGINE == "jruby" && JRUBY_VERSION < "10.0.3" assert_equal "no such file to load -- superkalifragilisticoespialidoso", exc.message else assert_equal "cannot load such file -- superkalifragilisticoespialidoso", exc.message From a6f58a1f56483cde457a808e28610538eabb619a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 05:28:37 +0000 Subject: [PATCH 293/334] Bump actions/checkout from 4.2.2 to 5.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/11bd71901bbe5b1630ceea73d27597364c9af683...08c6903cd8c0fde910a37f88322edcfb5dd907a8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5c2c9f44a..939c305c2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c9bb0eef4..db8dab5cf 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e4e27f92..4a9fe985e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: '3.0' diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 824cc5434..b25265cda 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -27,7 +27,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9df0278e..d1f11fd4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 with: ruby-version: ${{ matrix.ruby }} From cb5c0c0d4114a1fa16c9a04d3a72bcb4da3691cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 05:28:44 +0000 Subject: [PATCH 294/334] Bump actions/upload-pages-artifact from 3.0.1 to 4.0.0 Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3.0.1 to 4.0.0. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/56afc609e74202658d3ffba0e8f6dda462b719fa...7b1f4a764d45c48632c6b24a0339c27f5614fb0b) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c9bb0eef4..598f43780 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -32,7 +32,7 @@ jobs: # Outputs to the './_site' directory by default run: bundle exec rake rdoc - name: Upload artifact - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 + uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 deploy: environment: From c4926bd0ec1b6289bfd051153ade0bf3851b7288 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 26 Aug 2025 10:27:23 +0900 Subject: [PATCH 295/334] Fixup test_load_error_raised_implicitly with JRuby --- test/test_rake_rake_test_loader.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index a504159f1..67b51e745 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -53,11 +53,8 @@ def test_load_error_raised_implicitly exc = assert_raises(LoadError) do load @loader end - if RUBY_ENGINE == "jruby" && JRUBY_VERSION < "10.0.3" - assert_equal "no such file to load -- superkalifragilisticoespialidoso", exc.message - else - assert_equal "cannot load such file -- superkalifragilisticoespialidoso", exc.message - end + + assert_match /.* -- superkalifragilisticoespialidoso/, exc.message end assert_empty out assert_empty err From 41b604c2c1aab96a06be2c80198e6d1866e0dbef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 01:45:15 +0000 Subject: [PATCH 296/334] Bump ruby/setup-ruby from 1.253.0 to 1.256.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.253.0 to 1.256.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/bb6434c747fa7022e12fa1cae2a0951fcffcff26...efbf473cab83af4468e8606cc33eca9281bb213f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.256.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 939c305c2..bd31f723c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 + - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4b0731bb0..4e6d61bde 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 + uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4a9fe985e..353272786 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 + - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index b25265cda..e846859a6 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 + uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1f11fd4e..4daa1a107 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@bb6434c747fa7022e12fa1cae2a0951fcffcff26 # v1.253.0 + - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From f4b0e39924555ad14c5072558ec6c0ecac21705b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 14:13:20 +0000 Subject: [PATCH 297/334] Bump ruby/setup-ruby from 1.256.0 to 1.257.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.256.0 to 1.257.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/efbf473cab83af4468e8606cc33eca9281bb213f...44511735964dcb71245e7e55f72539531f7bc0eb) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.257.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index bd31f723c..5968af7cb 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 + - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4e6d61bde..b44b98a69 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 + uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 353272786..e89796d54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 + - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index e846859a6..9e9de490a 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 + uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4daa1a107..a4f9a985b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0 + - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From dccc37c9090a20642655d1c9d1f5effb69d81d43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 07:41:37 +0000 Subject: [PATCH 298/334] Bump step-security/harden-runner from 2.13.0 to 2.13.1 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.0 to 2.13.1. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/ec9f2d5744a09debf3a187a3f4f675c53b671911...f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.13.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 9e9de490a..1327de7af 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 with: egress-policy: audit From ccc66ff14479c69f64886e0d031b9b575cf1b654 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 07:02:39 +0000 Subject: [PATCH 299/334] Bump lewagon/wait-on-check-action from 1.4.0 to 1.4.1 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/0dceb95e7c4cad8cc7422aee3885998f5cab9c79...3603e826ee561ea102b58accb5ea55a1a7482343) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-version: 1.4.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index aaf940b0d..b27b76f57 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -17,7 +17,7 @@ jobs: id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@0dceb95e7c4cad8cc7422aee3885998f5cab9c79 # v1.4.0 + uses: lewagon/wait-on-check-action@3603e826ee561ea102b58accb5ea55a1a7482343 # v1.4.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From be2a92f94626a9cc799c4e59f8f4e25979a4d758 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 07:02:50 +0000 Subject: [PATCH 300/334] Bump ruby/setup-ruby from 1.257.0 to 1.262.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.257.0 to 1.262.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/44511735964dcb71245e7e55f72539531f7bc0eb...cf7216d52fba1017929b4d7162fabe2b30af5b49) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.262.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5968af7cb..1509c64d1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 + - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b44b98a69..1e752ed19 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 + uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e89796d54..657cceb97 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 + - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 1327de7af..6366652f7 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 + uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4f9a985b..6489b887f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 + - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 907fb1b75d3b4b77b89f32e958c2d329b5478d95 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 24 Sep 2025 22:53:43 +0900 Subject: [PATCH 301/334] source_code_uri should point to the gem's public repo URL That's what the `bundle gem` template suggests: https://github.com/rubygems/rubygems/blob/fcb672f/bundler/lib/bundler/cli/gem.rb#L54 --- rake.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.gemspec b/rake.gemspec index 49cec19a9..589979058 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |s| "bug_tracker_uri" => "https://github.com/ruby/rake/issues", "changelog_uri" => "https://github.com/ruby/rake/releases", "documentation_uri" => "https://ruby.github.io/rake", - "source_code_uri" => "#{s.homepage}/releases/v#{s.version}" + "source_code_uri" => s.homepage } s.files = [ From 0f46d61b3fbd880afde82307f9b2c1e3b85e29c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 09:00:35 +0000 Subject: [PATCH 302/334] Bump ruby/setup-ruby from 1.262.0 to 1.263.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.262.0 to 1.263.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/cf7216d52fba1017929b4d7162fabe2b30af5b49...0481980f17b760ef6bca5e8c55809102a0af1e5a) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.263.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1509c64d1..0a270b04b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1e752ed19..860461e9e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 657cceb97..58da9b2a9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 6366652f7..3a579c637 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6489b887f..94b3c9cbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 1e7ef52f75be42cbe611e14d8efd7bcd62472a86 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 07:08:28 +0000 Subject: [PATCH 303/334] Bump ruby/setup-ruby from 1.263.0 to 1.265.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.263.0 to 1.265.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/0481980f17b760ef6bca5e8c55809102a0af1e5a...ab177d40ee5483edb974554986f56b33477e21d0) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.265.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0a270b04b..49af6cc45 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 860461e9e..e6e861a49 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 58da9b2a9..95bbe3a76 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 3a579c637..3934b0655 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94b3c9cbb..c191a3952 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 7a0bf15a81e7d3508e33de4d9398ae640bb50d68 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 07:19:39 +0000 Subject: [PATCH 304/334] Bump ruby/setup-ruby from 1.265.0 to 1.266.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.265.0 to 1.266.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/ab177d40ee5483edb974554986f56b33477e21d0...4ff6f3611a42bc75eee1e5138240eb1613f48c8f) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.266.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 49af6cc45..fad4751ce 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 + - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e6e861a49..0b0f69a24 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 + uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 95bbe3a76..07d877dc3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 + - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 3934b0655..c98e7e81d 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 + uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c191a3952..96acdff0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0 + - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 2465ea541d6d721e3e03cd4a75594928032a8731 Mon Sep 17 00:00:00 2001 From: lukeg Date: Tue, 21 Mar 2023 16:43:56 -0400 Subject: [PATCH 305/334] silence warnings during execution of rake tasks in Rakefile (ex: rake test) --- Rakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rakefile b/Rakefile index d778df5ff..e5a654a9b 100644 --- a/Rakefile +++ b/Rakefile @@ -10,8 +10,11 @@ lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) begin + old_verbose, $VERBOSE = $VERBOSE, nil require "bundler/gem_tasks" rescue LoadError +ensure + $VERBOSE = old_verbose end require "rake/testtask" From f0001c3eeada8220f2976170876c75d21ed0626f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 29 Oct 2025 14:40:34 +0900 Subject: [PATCH 306/334] v13.3.1 --- lib/rake/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 99e0502f6..01df37d39 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.3.0" + VERSION = "13.3.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." From 74bfd21b7c2399d1c9d36d17db1bab09762ba6b5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 29 Oct 2025 14:42:25 +0900 Subject: [PATCH 307/334] Update the latest versions of actions --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 4 ++-- .github/workflows/test.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fad4751ce..80be507a1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 + - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0b0f69a24..e8b2d5bff 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 + uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 07d877dc3..adf400050 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 + - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index c98e7e81d..108049f35 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,13 +30,13 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 + uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: bundler-cache: true ruby-version: "ruby" - name: Publish to RubyGems - uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1 + uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2 - name: Create GitHub release run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96acdff0d..6743160b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0 + - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 3c5975a41e58a39193a223c2bb391970d88f32f5 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Wed, 29 Oct 2025 15:56:12 +0000 Subject: [PATCH 308/334] fix warning about ambiguous regexp --- test/test_rake_rake_test_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index 67b51e745..800e496b0 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -54,7 +54,7 @@ def test_load_error_raised_implicitly load @loader end - assert_match /.* -- superkalifragilisticoespialidoso/, exc.message + assert_match(/.* -- superkalifragilisticoespialidoso/, exc.message) end assert_empty out assert_empty err From 29759e5cddde678ea3e40e5c8cfc5cb50197282c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 07:02:49 +0000 Subject: [PATCH 309/334] Bump step-security/harden-runner from 2.13.1 to 2.13.2 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.1 to 2.13.2. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a...95d9a5deda9de15063e7595e9719c11c38c90ae2) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.13.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 108049f35..565edeb8f 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 with: egress-policy: audit From 8e3c337618d7f4ba03768a6de1b15fde004975f6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 07:02:14 +0000 Subject: [PATCH 310/334] Bump actions/checkout from 5.0.0 to 6.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/08c6903cd8c0fde910a37f88322edcfb5dd907a8...1af3b93b6815bc44a9784bd300feb67ff0d1eeb3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 80be507a1..84577b8d4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e8b2d5bff..26474b6fa 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Setup Ruby uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index adf400050..c50bdf4af 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: '3.0' diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 565edeb8f..6a3adc75d 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -27,7 +27,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Ruby uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6743160b6..339cfd350 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 with: ruby-version: ${{ matrix.ruby }} From ebd257171866c981133efe2c29d0c18fcd16cdfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 02:17:22 +0000 Subject: [PATCH 311/334] Bump ruby/setup-ruby from 1.267.0 to 1.268.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.267.0 to 1.268.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/d5126b9b3579e429dd52e51e68624dda2e05be25...8aeb6ff8030dd539317f8e1769a044873b56ea71) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.268.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 84577b8d4..9e40dffae 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 + - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 26474b6fa..6ef2ce46d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 + uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c50bdf4af..9db119d23 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 + - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 6a3adc75d..c86834064 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 + uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 339cfd350..e1b8ca3c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 + - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 5c5eb22e1b0d62bcbbd4b8ce3f6a409a0e603022 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 07:01:55 +0000 Subject: [PATCH 312/334] Bump ruby/setup-ruby from 1.268.0 to 1.269.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.268.0 to 1.269.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/8aeb6ff8030dd539317f8e1769a044873b56ea71...d697be2f83c6234b20877c3b5eac7a7f342f0d0c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.269.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9e40dffae..19804a4c9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 + - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6ef2ce46d..0feebd2ea 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Setup Ruby - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 + uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9db119d23..5268a14d9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 + - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index c86834064..30a1bc5a1 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Ruby - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 + uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e1b8ca3c2..231175ce3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 + - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From ee497d5f4c6d6a7a2a47eb1ebac7c24872d230da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 07:07:33 +0000 Subject: [PATCH 313/334] Bump actions/checkout from 6.0.0 to 6.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/1af3b93b6815bc44a9784bd300feb67ff0d1eeb3...8e8c483db84b4bee98b60c0593521ed34d9990e8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 19804a4c9..f846e4a9c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0feebd2ea..eccb37c3e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5268a14d9..46cdbb7e7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: '3.0' diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 30a1bc5a1..907d0bb63 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -27,7 +27,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 231175ce3..e9fed0a02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 with: ruby-version: ${{ matrix.ruby }} From b504b608333d2c7d98cbbf485ce673b42812f95c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 07:01:55 +0000 Subject: [PATCH 314/334] Bump step-security/harden-runner from 2.13.2 to 2.14.0 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.2 to 2.14.0. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/95d9a5deda9de15063e7595e9719c11c38c90ae2...20cf305ff2072d973412fa9b1e3a4f227bda3c76) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.14.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 907d0bb63..634f74c1d 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 + uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 with: egress-policy: audit From 32d03eea6afc6f253d0c75bd011713bb82df9c15 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 07:02:14 +0000 Subject: [PATCH 315/334] Bump ruby/setup-ruby from 1.269.0 to 1.275.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.269.0 to 1.275.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/d697be2f83c6234b20877c3b5eac7a7f342f0d0c...d354de180d0c9e813cfddfcbdc079945d4be589b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.275.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f846e4a9c..811fba452 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 + - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index eccb37c3e..0390e34a4 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 + uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 46cdbb7e7..d920f339b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 + - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 634f74c1d..4ad25de75 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 + uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9fed0a02..e828fd396 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0 + - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 99ae02bd6cfbf0eecb6ff3270764b17142e9ee0b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 07:01:58 +0000 Subject: [PATCH 316/334] Bump ruby/setup-ruby from 1.275.0 to 1.278.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.275.0 to 1.278.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/d354de180d0c9e813cfddfcbdc079945d4be589b...4c24fa5ec04b2e79eb40571b1cee2a0d2b705771) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.278.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 811fba452..65aa4afa5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 + - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0390e34a4..c96d0006a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 + uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d920f339b..14a1b5154 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 + - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 4ad25de75..1a497face 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 + uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e828fd396..f3fbe17f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@d354de180d0c9e813cfddfcbdc079945d4be589b # v1.275.0 + - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From d5a13ec61a45c247cff5645e1a7de20a1cdb9489 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:06:32 +0000 Subject: [PATCH 317/334] Bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.4.0 to 2.5.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/08eff52bf64351f401fb50d4972fa95b9f2c2d1b...21025c705c08248db411dc16f3619e6b5f9ea21a) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index b27b76f57..cb7b93e91 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -13,7 +13,7 @@ jobs: if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ruby/rake' steps: - name: Dependabot metadata - uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0 + uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 id: metadata - name: Wait for status checks From a21c74d8bbc4e62ffc034b8e41c283b95e591479 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:06:49 +0000 Subject: [PATCH 318/334] Bump ruby/setup-ruby from 1.278.0 to 1.281.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.278.0 to 1.281.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/4c24fa5ec04b2e79eb40571b1cee2a0d2b705771...675dd7ba1b06c8786a1480d89c384f5620a42647) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.281.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 65aa4afa5..0a931c6fa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c96d0006a..be01dc969 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 14a1b5154..10f9cdfa5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 1a497face..b4b78747a 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3fbe17f9..da289cd67 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 8d22cc705e6b4badd7ed6ce2a89d928da34cfd19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 07:58:09 +0000 Subject: [PATCH 319/334] Bump ruby/setup-ruby from 1.281.0 to 1.284.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.281.0 to 1.284.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/675dd7ba1b06c8786a1480d89c384f5620a42647...80740b3b13bf9857e28854481ca95a84e78a2bdf) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.284.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0a931c6fa..be9f23941 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 + - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index be01dc969..016a3de62 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 + uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 10f9cdfa5..51076ca32 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 + - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index b4b78747a..cffc76fc7 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 + uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da289cd67..e8d5cef55 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0 + - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From e75db02937485023a8266fdbef0b02d7c22b7e23 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:40:57 +0000 Subject: [PATCH 320/334] Bump ruby/setup-ruby from 1.284.0 to 1.286.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.284.0 to 1.286.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/80740b3b13bf9857e28854481ca95a84e78a2bdf...90be1154f987f4dc0fe0dd0feedac9e473aa4ba8) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.286.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index be9f23941..8da7acd32 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 + - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 016a3de62..60548b38b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 + uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 51076ca32..2078bd126 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 + - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index cffc76fc7..4cf82681e 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 + uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8d5cef55..c10be48c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf # v1.284.0 + - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From fdd466c09d5a76baf7fdfa3f0e7afc4d49125495 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:41:09 +0000 Subject: [PATCH 321/334] Bump lewagon/wait-on-check-action from 1.4.1 to 1.5.0 Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.4.1 to 1.5.0. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/3603e826ee561ea102b58accb5ea55a1a7482343...74049309dfeff245fe8009a0137eacf28136cb3c) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-version: 1.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot_automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index cb7b93e91..a3cb63ba4 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -17,7 +17,7 @@ jobs: id: metadata - name: Wait for status checks - uses: lewagon/wait-on-check-action@3603e826ee561ea102b58accb5ea55a1a7482343 # v1.4.1 + uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c # v1.5.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha || github.sha }} From 38c1eb9196a151e6c7252117bcf67898202097b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:41:13 +0000 Subject: [PATCH 322/334] Bump step-security/harden-runner from 2.14.0 to 2.14.1 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.14.0 to 2.14.1. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/20cf305ff2072d973412fa9b1e3a4f227bda3c76...e3f713f2d8f53843e71c69a996d56f51aa9adfb9) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index cffc76fc7..2044d943b 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 with: egress-policy: audit From fa4c673f30a2566dd4ea9bcd8c4bc22a72d8df71 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:47:17 +0000 Subject: [PATCH 323/334] Bump actions/checkout from 6.0.1 to 6.0.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8da7acd32..070359e06 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: '3.0' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 60548b38b..f6a044ef0 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Ruby uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2078bd126..c386519d8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: '3.0' diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 4cf82681e..5aaf9d393 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -27,7 +27,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Ruby uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c10be48c0..17c6b78ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: - os: windows-latest ruby: jruby steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 with: ruby-version: ${{ matrix.ruby }} From 527cae5dd6fd4ebae5b8ab0588d872e474d9e960 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 07:40:57 +0000 Subject: [PATCH 324/334] Bump ruby/setup-ruby from 1.286.0 to 1.287.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.286.0 to 1.287.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/90be1154f987f4dc0fe0dd0feedac9e473aa4ba8...8d27f39a5e7ad39aebbcbd1324f7af020229645c) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.287.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 070359e06..953d65fa9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 + - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f6a044ef0..927ae811d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Ruby - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 + uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c386519d8..3536fc0ae 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 + - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index a42a8bacf..4fa9191c4 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Ruby - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 + uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17c6b78ff..ef9452d51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 + - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies From 68020a79b28fa2f350d031c4c07e6475c2e5edb3 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Feb 2026 11:21:37 +0900 Subject: [PATCH 325/334] Exclude jruby-head from our CI --- .github/workflows/test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef9452d51..4e8b95b8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,8 @@ jobs: uses: ruby/actions/.github/workflows/ruby_versions.yml@master with: min_version: 2.3 - engine: cruby-jruby - versions: '["truffleruby"]' + engine: cruby + versions: '["truffleruby", "jruby"]' test: needs: ruby-versions @@ -31,8 +31,6 @@ jobs: ruby: 2.3 - os: windows-latest ruby: truffleruby - - os: windows-latest - ruby: jruby-head - os: windows-latest ruby: jruby steps: From fb97f0487bfe33010154dc715886b5bf56e1288d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Feb 2026 11:16:44 +0900 Subject: [PATCH 326/334] Fix RDoc formatting in doc/command_line_usage.rdoc to correct code markup and clarify option syntax --- doc/command_line_usage.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/command_line_usage.rdoc b/doc/command_line_usage.rdoc index c1ff39d5b..95d6b3d64 100644 --- a/doc/command_line_usage.rdoc +++ b/doc/command_line_usage.rdoc @@ -6,10 +6,10 @@ Rake is invoked from the command line using: Options are: -[name=value] +[name=value] Set the environment variable name to value during the execution of the rake command. You can access - the value by using ENV['name']. + the value by using ENV['name']. [--all (-A)] Used in combination with the -T and -D options, will force @@ -110,7 +110,7 @@ Options are: [--silent (-s)] Like --quiet, but also suppresses the 'in directory' announcement. -[--suppress-backtrace _pattern_ ] +[--suppress-backtrace _pattern_] Line matching the regular expression _pattern_ will be removed from the backtrace output. Note that the --backtrace option is the full backtrace without these lines suppressed. From be030da58adb64f8fe9b14d1f5bc8059b9cc19db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=C3=ADque=20Kandy=20Koga?= Date: Wed, 27 Oct 2021 16:11:22 -0300 Subject: [PATCH 327/334] Set ENV["TESTOPTS"] with "-v" when verbose is called. Doing that -v and --verbose options will work as expected Assert ENV --- lib/rake/file_utils_ext.rb | 1 + test/test_rake_file_utils.rb | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb index 687d80584..7860b65ee 100644 --- a/lib/rake/file_utils_ext.rb +++ b/lib/rake/file_utils_ext.rb @@ -53,6 +53,7 @@ def #{name}(*args, **options, &block) def verbose(value=nil) oldvalue = FileUtilsExt.verbose_flag FileUtilsExt.verbose_flag = value unless value.nil? + ENV["TESTOPTS"] = "-v" if value if block_given? begin yield diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 97b6ea83b..7a6ad14c9 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -12,6 +12,7 @@ def teardown FileUtils::LN_SUPPORTED[0] = true RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT ENV["RAKE_TEST_SH"] = @rake_test_sh + ENV["TESTOPTS"] = nil super end @@ -106,8 +107,13 @@ def test_safe_ln_fails_on_script_error def test_verbose verbose true assert_equal true, verbose + assert_equal '-v', ENV['TESTOPTS'] + + ENV['TESTOPTS'] = nil verbose false assert_equal false, verbose + assert_equal nil, ENV['TESTOPTS'] + verbose(true) { assert_equal true, verbose } From e293cc1d29b8808f7cd1c0b812b15d70c2021fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=C3=ADque=20Kandy=20Koga?= Date: Wed, 27 Oct 2021 16:13:43 -0300 Subject: [PATCH 328/334] Delete message which indicates the use of TESTOPTS="--verbose" --- lib/rake/testtask.rb | 2 -- test/test_rake_functional.rb | 7 ------- 2 files changed, 9 deletions(-) diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index 7cf1ece5d..29f546b51 100644 --- a/lib/rake/testtask.rb +++ b/lib/rake/testtask.rb @@ -109,8 +109,6 @@ def define desc @description task @name => Array(deps) do FileUtilsExt.verbose(@verbose) do - puts "Use TESTOPTS=\"--verbose\" to pass --verbose" \ - ", etc. to runners." if ARGV.include? "--verbose" args = "#{ruby_opts_string} #{run_code} " + "#{file_list_string} #{option_list}" diff --git a/test/test_rake_functional.rb b/test/test_rake_functional.rb index 3854c5751..1298a3235 100644 --- a/test/test_rake_functional.rb +++ b/test/test_rake_functional.rb @@ -420,13 +420,6 @@ def test_test_task_when_verbose_unless_verbose_passed_not_prompt_testopts refute_match exp, @out end - def test_test_task_when_verbose_passed_prompts_testopts - rakefile_test_task - rake "--verbose", "unit" - exp = /TESTOPTS="--verbose" to pass --verbose/ - assert_match exp, @out - end - def test_comment_before_task_acts_like_desc rakefile_comments From 2840414f5e13a361e82dfd22463c23b40a5c2637 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Feb 2026 12:01:31 +0900 Subject: [PATCH 329/334] Run rubocop --- test/test_rake_file_utils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 7a6ad14c9..1eca1120e 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -107,12 +107,12 @@ def test_safe_ln_fails_on_script_error def test_verbose verbose true assert_equal true, verbose - assert_equal '-v', ENV['TESTOPTS'] + assert_equal "-v", ENV["TESTOPTS"] - ENV['TESTOPTS'] = nil + ENV["TESTOPTS"] = nil verbose false assert_equal false, verbose - assert_equal nil, ENV['TESTOPTS'] + assert_equal nil, ENV["TESTOPTS"] verbose(true) { assert_equal true, verbose From 0325c516b350bef9115e43b54c87e5d4cdf77bed Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Feb 2026 10:56:34 +0900 Subject: [PATCH 330/334] Document implicit file tasks --- doc/command_line_usage.rdoc | 2 +- doc/rakefile.rdoc | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/command_line_usage.rdoc b/doc/command_line_usage.rdoc index c1ff39d5b..0f7113564 100644 --- a/doc/command_line_usage.rdoc +++ b/doc/command_line_usage.rdoc @@ -105,7 +105,7 @@ Options are: Require _name_ before executing the Rakefile. [--rules] - Trace the rules resolution. + Trace the resolution of rules used to create tasks. [--silent (-s)] Like --quiet, but also suppresses the 'in directory' announcement. diff --git a/doc/rakefile.rdoc b/doc/rakefile.rdoc index 4014306a1..949e40d6f 100644 --- a/doc/rakefile.rdoc +++ b/doc/rakefile.rdoc @@ -360,6 +360,19 @@ The following rule might be used for Java files ... *NOTE:* +java_compile+ is a hypothetical method that invokes the java compiler. +=== Implicit File Tasks + +When a task is not defined but a file with that name exists, Rake +automatically creates an implicit file task for it. For example: + + $ rake hello_world # Error: task not found + $ touch hello_world # Create a file with the same name + $ rake hello_world # Now succeeds automatically + +Use the --rules command line option to trace how rules are +resolved when searching for tasks; note that creation of implicit file +tasks is not traced. + == Importing Dependencies Any ruby file (including other rakefiles) can be included with a From ab746d6e57c046a8bbc36f9c7cff317d30a008d2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 29 Mar 2024 13:57:01 +0900 Subject: [PATCH 331/334] Show `chdir` option as a command Currently, it is not possible to tell from the output message whether that option is specified for `sh`. --- lib/rake/file_utils.rb | 11 ++++++++--- test/test_rake_file_utils.rb | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb index 1510d95c3..c52091715 100644 --- a/lib/rake/file_utils.rb +++ b/lib/rake/file_utils.rb @@ -48,7 +48,7 @@ def sh(*cmd, &block) verbose = options.delete :verbose noop = options.delete(:noop) || Rake::FileUtilsExt.nowrite_flag - Rake.rake_output_message sh_show_command cmd if verbose + Rake.rake_output_message sh_show_command(cmd, options) if verbose unless noop res = (Hash === cmd.last) ? system(*cmd) : system(*cmd, options) @@ -68,7 +68,7 @@ def create_shell_runner(cmd) # :nodoc: end private :create_shell_runner - def sh_show_command(cmd) # :nodoc: + def sh_show_command(cmd, options = nil) # :nodoc: cmd = cmd.dup if Hash === cmd.first @@ -77,7 +77,12 @@ def sh_show_command(cmd) # :nodoc: cmd[0] = env end - cmd.join " " + cmd = cmd.join " " + if options and chdir = options[:chdir] + "(cd #{chdir} && #{cmd})" + else + cmd + end end private :sh_show_command diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 97b6ea83b..4a38c5133 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -239,6 +239,20 @@ def test_sh_noop assert true, "should not fail" end + def test_sh_chdir + omit "JRuby does not support spawn options" if jruby? + + Dir.mkdir "chdir_test" + out, err = capture_output do + verbose(true) { + sh "echo ok", chdir: "chdir_test", verbose: true, noop: true + } + end + + assert_equal "(cd chdir_test && echo ok)\n", err + assert_empty out + end + def test_sh_bad_option # Skip on JRuby because option checking is performed by spawn via system # now. From 4e8f7ddac34a2fb65380c9e5465368515b6c0bb8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 29 Mar 2024 14:49:24 +0900 Subject: [PATCH 332/334] `system` with keyword argument works in recent JRuby --- test/helper.rb | 6 +++++- test/test_rake_file_utils.rb | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index 537d7e3a2..3d92dbf88 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -29,7 +29,7 @@ class TaskManager include Rake::TaskManager end - RUBY = File.realpath(ENV["RUBY"] || Gem.ruby) + RUBY = (ENV["RUBY"] || Gem.ruby) def setup ARGV.clear @@ -122,5 +122,9 @@ def jruby9? jruby? && (JRUBY_VERSION >= "9.0.0.0") end + def jruby90? + jruby? && JRUBY_VERSION.start_with?("9.0.") + end + include RakefileDefinitions end diff --git a/test/test_rake_file_utils.rb b/test/test_rake_file_utils.rb index 4a38c5133..d60f71262 100644 --- a/test/test_rake_file_utils.rb +++ b/test/test_rake_file_utils.rb @@ -181,7 +181,7 @@ def test_sh_with_multiple_arguments end def test_sh_with_spawn_options - omit "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby90? echocommand @@ -240,7 +240,7 @@ def test_sh_noop end def test_sh_chdir - omit "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby90? Dir.mkdir "chdir_test" out, err = capture_output do @@ -256,7 +256,7 @@ def test_sh_chdir def test_sh_bad_option # Skip on JRuby because option checking is performed by spawn via system # now. - omit "JRuby does not support spawn options" if jruby? + omit "JRuby does not support spawn options" if jruby90? shellcommand @@ -401,7 +401,7 @@ def assert_echoes_fully end def test_ruby_with_multiple_arguments - omit if jruby9? # https://github.com/jruby/jruby/issues/3653 + omit if jruby90? # https://github.com/jruby/jruby/issues/3653 check_no_expansion From 1f73893671f9f31e0219d0cb34064c15331d2fcb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 07:35:18 +0000 Subject: [PATCH 333/334] Bump step-security/harden-runner from 2.14.1 to 2.14.2 Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.14.1 to 2.14.2. - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/e3f713f2d8f53843e71c69a996d56f51aa9adfb9...5ef0c079ce82195b2a36a210272d6b661572d83e) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.14.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/push_gem.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 4fa9191c4..7e08c430c 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 + uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 with: egress-policy: audit From 551d75d42a5eb6d0cc502d212fc4481558086ef7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 07:35:32 +0000 Subject: [PATCH 334/334] Bump ruby/setup-ruby from 1.287.0 to 1.288.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.287.0 to 1.288.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](https://github.com/ruby/setup-ruby/compare/8d27f39a5e7ad39aebbcbd1324f7af020229645c...09a7688d3b55cf0e976497ff046b70949eeaccfd) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.288.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 953d65fa9..291352988 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 + - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: ruby-version: '3.0' - name: Install dependencies diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 927ae811d..8ac5b4940 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Ruby - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 + uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: ruby-version: '3.2' bundler-cache: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3536fc0ae..baffc10cd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 + - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: ruby-version: '3.0' bundler-cache: true diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 4fa9191c4..b59a41fc5 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Ruby - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 + uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: bundler-cache: true ruby-version: "ruby" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e8b95b8a..1a3b45632 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: ruby: jruby steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: ruby/setup-ruby@8d27f39a5e7ad39aebbcbd1324f7af020229645c # v1.287.0 + - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: ruby-version: ${{ matrix.ruby }} - name: Install dependencies