Skip to content

Commit fd0a989

Browse files
authored
Merge pull request #516 from ellnix/drop-support-for-ruby-2
Drop support for ruby 2 and add ruby 3.2 to CI
2 parents db5f7ad + 1d2462d commit fd0a989

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

.github/workflows/gempush.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Set up Ruby 2.7
15+
- name: Set up Ruby 3.0
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
ruby-version: '2.7'
18+
ruby-version: '3.0'
1919
- name: Check release validity
2020
run: sh .github/scripts/check-release.sh
2121
- name: Publish to RubyGems

.github/workflows/pre-release-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby-version: ['2.6', '2.7', '3.0', '3.1']
16+
ruby-version: ['3.0', '3.1', '3.2']
1717
name: integration-tests-against-rc (ruby ${{ matrix.ruby-version }})
1818
runs-on: ubuntu-22.04
1919
steps:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
ruby-version: ['2.6', '2.7', '3.0', '3.1']
20+
ruby-version: ['3.0', '3.1', '3.2']
2121
name: integration-tests (ruby ${{ matrix.ruby-version }})
2222
runs-on: ubuntu-22.04
2323
steps:

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inherit_from: .rubocop_todo.yml
1313

1414
AllCops:
1515
NewCops: enable
16-
TargetRubyVersion: 2.6
16+
TargetRubyVersion: 3.0
1717

1818
Style/SymbolArray:
1919
EnforcedStyle: brackets

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Say goodbye to server deployment and manual updates with [Meilisearch Cloud](htt
5353

5454
## 🔧 Installation
5555

56-
This package requires Ruby version 2.6.0 or later.
56+
This package requires Ruby version 3.0.0 or later.
5757

5858
With `gem` in command line:
5959
```bash

bors.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
status = [
2-
'integration-tests (ruby 2.6)',
3-
'integration-tests (ruby 2.7)',
42
'integration-tests (ruby 3.0)',
53
'integration-tests (ruby 3.1)',
4+
'integration-tests (ruby 3.2)',
65
'linter-check'
76
]
87
# 1 hour timeout

lib/meilisearch/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

77
def self.transform_attributes(body)
88
case body

meilisearch.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
1414

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

17-
s.required_ruby_version = '>= 2.6.0'
17+
s.required_ruby_version = '>= 3.0.0'
1818
s.add_dependency 'httparty', '>= 0.17.1', '< 0.22.0'
19+
s.metadata['rubygems_mfa_required'] = 'true'
1920
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
'totalHits'
5858
].freeze
5959

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

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

0 commit comments

Comments
 (0)