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

Drop support for ruby 2 and add ruby 3.2 to CI #516

Merged
merged 1 commit into from Feb 2, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gempush.yml
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.0'
- name: Check release validity
run: sh .github/scripts/check-release.sh
- name: Publish to RubyGems
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-tests.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
ruby-version: ['3.0', '3.1', '3.2']
name: integration-tests-against-rc (ruby ${{ matrix.ruby-version }})
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
ruby-version: ['3.0', '3.1', '3.2']
name: integration-tests (ruby ${{ matrix.ruby-version }})
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Expand Up @@ -13,7 +13,7 @@ inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0

Style/SymbolArray:
EnforcedStyle: brackets
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -53,7 +53,7 @@ Say goodbye to server deployment and manual updates with [Meilisearch Cloud](htt

## 🔧 Installation

This package requires Ruby version 2.6.0 or later.
This package requires Ruby version 3.0.0 or later.

With `gem` in command line:
```bash
Expand Down
3 changes: 1 addition & 2 deletions bors.toml
@@ -1,8 +1,7 @@
status = [
'integration-tests (ruby 2.6)',
'integration-tests (ruby 2.7)',
'integration-tests (ruby 3.0)',
'integration-tests (ruby 3.1)',
'integration-tests (ruby 3.2)',
'linter-check'
]
# 1 hour timeout
Expand Down
2 changes: 1 addition & 1 deletion lib/meilisearch/utils.rb
Expand Up @@ -2,7 +2,7 @@

module MeiliSearch
module Utils
SNAKE_CASE = /[^a-zA-Z0-9]+(.)/.freeze
SNAKE_CASE = /[^a-zA-Z0-9]+(.)/

def self.transform_attributes(body)
case body
Expand Down
3 changes: 2 additions & 1 deletion meilisearch.gemspec
Expand Up @@ -14,6 +14,7 @@ Gem::Specification.new do |s|

s.files = Dir['{lib}/**/*', 'LICENSE', 'README.md']

s.required_ruby_version = '>= 2.6.0'
s.required_ruby_version = '>= 3.0.0'
s.add_dependency 'httparty', '>= 0.17.1', '< 0.22.0'
s.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -57,7 +57,7 @@
'totalHits'
].freeze

Dir["#{Dir.pwd}/spec/support/**/*.rb"].sort.each { |file| require file }
Dir["#{Dir.pwd}/spec/support/**/*.rb"].each { |file| require file }

RSpec.configure do |config|
# rspec-expectations config goes here. You can use an alternate
Expand Down