Skip to content

Commit

Permalink
Drop support for ruby 2 and add ruby 3.2 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Jan 17, 2024
1 parent 40f80cb commit 419bb8e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
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

0 comments on commit 419bb8e

Please sign in to comment.