Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 17, 2024
1 parent 24f44ff commit ee52ac1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/edge.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ namespace :edge do
desc 'Update all the groups from the matrix'
task :update do |_t, args|
ruby_version = RUBY_VERSION[0..2]
whitelist = {
allowlist = {
'stripe' => 'stripe',
'elasticsearch' => 'elasticsearch',
'opensearch' => 'opensearch-ruby',
# Add more integrations here, when they are extracted to its own isolated group
}

whitelist = whitelist.slice(*args.extras) if args.extras.any?
allowlist = allowlist.slice(*args.extras) if args.extras.any?

whitelist.each do |integration, gem|
allowlist.each do |integration, gem|
candidates = TEST_METADATA.fetch(integration).select do |_, rubies|
if RUBY_PLATFORM == 'java'
rubies.include?("✅ #{ruby_version}") && rubies.include?('✅ jruby')
Expand All @@ -82,16 +82,16 @@ namespace :edge do
desc 'Update the `latest` group from the matrix'
task :latest do |_t, args|
ruby_version = RUBY_VERSION[0..2]
whitelist = {
allowlist = {
'stripe' => 'stripe',
'elasticsearch' => 'elasticsearch',
'opensearch' => 'opensearch-ruby',
# Add more integrations here, when hey are extracted to its own isolated group
}

whitelist = whitelist.slice(*args.extras) if args.extras.any?
allowlist = allowlist.slice(*args.extras) if args.extras.any?

whitelist.each do |integration, gem|
allowlist.each do |integration, gem|
candidates = TEST_METADATA.fetch(integration).select do |_, rubies|
if RUBY_PLATFORM == 'java'
rubies.include?("✅ #{ruby_version}") && rubies.include?('✅ jruby')
Expand Down

0 comments on commit ee52ac1

Please sign in to comment.