Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest group for integration #3916

Merged
merged 6 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,38 @@ 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
# The latest group declares dependencies without version constraints,
# still requires being updated to pick up the next major version and
# committing the changes to lockfiles.
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
Loading