ruby-changes:62407
From: Benoit <ko1@a...>
Date: Tue, 28 Jul 2020 04:43:14 +0900 (JST)
Subject: [ruby-changes:62407] 7429841ab6 (master): Update to ruby/mspec@9cffee9
https://git.ruby-lang.org/ruby.git/commit/?id=7429841ab6 From 7429841ab6494b849106e6d3b119f147adfee3b7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Mon, 27 Jul 2020 21:41:03 +0200 Subject: Update to ruby/mspec@9cffee9 diff --git a/spec/mspec/tool/sync/sync-rubyspec.rb b/spec/mspec/tool/sync/sync-rubyspec.rb index 163dde6..977bda3 100644 --- a/spec/mspec/tool/sync/sync-rubyspec.rb +++ b/spec/mspec/tool/sync/sync-rubyspec.rb @@ -160,6 +160,9 @@ end https://github.com/ruby/ruby/blob/trunk/spec/mspec/tool/sync/sync-rubyspec.rb#L160 def test_new_specs require "yaml" Dir.chdir(SOURCE_REPO) do + diff = `git diff master` + abort "#{BRIGHT_YELLOW}No new commits, aborting#{RESET}" if diff.empty? + workflow = YAML.load_file(".github/workflows/ci.yml") job_name = MSPEC ? "test" : "specs" versions = workflow.dig("jobs", job_name, "strategy", "matrix", "ruby") @@ -175,7 +178,7 @@ def test_new_specs https://github.com/ruby/ruby/blob/trunk/spec/mspec/tool/sync/sync-rubyspec.rb#L178 run_test[min_version] run_test[max_version] - run_test["master"] if TEST_MASTER + run_test["ruby-master"] if TEST_MASTER end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/