Skip to content

Commit

Permalink
Task for updating latest group
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 17, 2024
1 parent 39f25d3 commit 3680662
Show file tree
Hide file tree
Showing 80 changed files with 7,912 additions and 201 deletions.
29 changes: 29 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,35 @@ def appraise(group, &block)
end
end

# Builds a matrix of versions to test for a given integration
#
# `range`: the range of versions to test
# `gem` : optional, gem name to test (gem name can be different from the integration name)
# `min` : optional, minimum version to test
# `meta` : optional, additional metadata (development dependencies, etc.) for the group
def build_coverage_matrix(integration, range, gem: nil, min: nil, meta: {})
gem ||= integration

if min
appraise "#{integration}-min" do
gem gem, "= #{n}"
meta.each { |k, v| gem k, v }
end
end

range.each do |n|
appraise "#{integration}-#{n}" do
gem gem, "~> #{n}"
meta.each { |k, v| gem k, v }
end
end

appraise "#{integration}-latest" do
gem gem
meta.each { |k, v| gem k, v }
end
end

major, minor, = if defined?(RUBY_ENGINE_VERSION)
Gem::Version.new(RUBY_ENGINE_VERSION).segments
else
Expand Down
23 changes: 13 additions & 10 deletions Matrixfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@
'relational_db' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby'
},
'elasticsearch' => {
'elasticsearch-7' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'elasticsearch-8' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby'
'elasticsearch-latest' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'elasticsearch-8' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'elasticsearch-7' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
},
'ethon' => {
'http' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ❌ jruby'
Expand Down Expand Up @@ -113,8 +114,9 @@
'relational_db' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ❌ jruby'
},
'opensearch' => {
'opensearch-2' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'opensearch-3' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby'
'opensearch-latest' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'opensearch-3' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'opensearch-2' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
},
'pg' => {
'relational_db' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ❌ jruby'
Expand Down Expand Up @@ -164,12 +166,13 @@
'contrib' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby'
},
'stripe' => {
'stripe-12' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-11' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-10' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-9' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-8' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-7' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-latest' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-12' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-11' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-10' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-9' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-8' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
'stripe-7' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby',
},
'sucker_punch' => {
'contrib' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/jruby-9.2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,23 +189,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 5'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/jruby-9.3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 6.0.0'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/jruby-9.4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 6.1.0'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-2.5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,23 +209,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 5'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-2.6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 6.0.0'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-2.7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 6.1.0'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-3.0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 7'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-3.1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 7'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-3.2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 7'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-3.3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 7'
Expand Down
20 changes: 3 additions & 17 deletions appraisal/ruby-3.4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,9 @@
gem 'typhoeus'
end

(7..12).each do |n|
appraise "stripe-#{n}" do
gem 'stripe', "~> #{n}"
end
end

[2, 3].each do |n|
appraise "opensearch-#{n}" do
gem 'opensearch-ruby', "~> #{n}"
end
end

[7, 8].each do |n|
appraise "elasticsearch-#{n}" do
gem 'elasticsearch', "~> #{n}"
end
end
build_coverage_matrix('stripe', 7..12)
build_coverage_matrix('opensearch', 2..3, gem: 'opensearch-ruby')
build_coverage_matrix('elasticsearch', 7..8)

appraise 'relational_db' do
gem 'activerecord', '~> 7'
Expand Down
Loading

0 comments on commit 3680662

Please sign in to comment.