Skip to content

Commit 77ddb1f

Browse files
authored
chore: drop old rubies (#122)
* chore: drop old rubies * fix: arity in autogenerated rbi
1 parent 191ea82 commit 77ddb1f

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
strategy:
99
max-parallel: 1
1010
matrix:
11-
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
11+
ruby: ['2.7', '3.0', '3.1']
1212
name: 💎 Ruby ${{ matrix.ruby }}
1313
steps:
1414
- uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0 # gives the commit linter access to previous commits
1717

1818
- name: Commit message linter
19-
if: ${{ matrix.ruby == '2.5' }}
19+
if: ${{ matrix.ruby == '2.7' }}
2020
uses: wagoid/commitlint-github-action@v4
2121

2222
- uses: ruby/setup-ruby@v1
@@ -25,10 +25,10 @@ jobs:
2525
bundler-cache: true
2626

2727
- run: bundle exec rake rubocop
28-
if: ${{ matrix.ruby == '2.5' }}
28+
if: ${{ matrix.ruby == '2.7' }}
2929

3030
- run: bundle exec srb tc
31-
if: ${{ matrix.ruby == '2.5' }}
31+
if: ${{ matrix.ruby == '2.7' }}
3232

3333
- run: bundle exec rspec ./spec --require spec_helper
3434
env:

.github/workflows/reviewdog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: reviewdog
22

33
on: [pull_request]
44

5-
concurrency:
5+
concurrency:
66
group: ${{ github.workflow }}-${{ github.head_ref }}
77
cancel-in-progress: true
88

@@ -22,4 +22,4 @@ jobs:
2222
uses: reviewdog/action-rubocop@v2
2323
with:
2424
rubocop_version: gemfile
25-
reporter: github-pr-review
25+
reporter: github-pr-review

.github/workflows/scheduled_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
schedule:
66
# Monday at 9:00 UTC
7-
- cron: "0 9 * * 1"
7+
- cron: '0 9 * * 1'
88

99
jobs:
1010
test:
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: "3.1"
17+
ruby-version: '3.1'
1818
bundler-cache: true
1919

2020
- name: Test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ build-iPhoneSimulator/
4545

4646
# for a library or gem, you might want to ignore these files since the code is
4747
# intended to run in multiple environments; otherwise, check them in:
48-
Gemfile.lock # See https://github.com/rubygems/rubygems/issues/3372 for more info
48+
# See https://github.com/rubygems/rubygems/issues/3372 for more info
49+
Gemfile.lock
4950
.ruby-version
5051
# .ruby-gemset
5152

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AllCops:
22
DisabledByDefault: false
33
NewCops: enable
4-
TargetRubyVersion: 2.5
4+
TargetRubyVersion: 2.7
55
Exclude:
66
- sorbet/**/*.rbi
77
- vendor/bundle/**/*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For the client-side integrations (web and mobile) have a look at the JavaScript,
3030

3131
[`stream-chat-ruby`](https://rubygems.org/gems/stream-chat-ruby) supports:
3232

33-
- Ruby (2.5, 2.6, 2.7, 3.0, 3.1)
33+
- Ruby (2.7, 3.0, 3.1)
3434

3535
```bash
3636
$ gem install stream-chat-ruby
@@ -49,7 +49,7 @@ client = StreamChat::Client.new('STREAM_KEY', 'STREAM_SECRET')
4949
> What this means, is that you'll receive an error during runtime if you pass an invalid type to our methods. To prepare for that, just make sure whatever you pass in, matches the method signature (`sig { ... }`).
5050
5151
> **Update (2022-May-24)**: we have relased [v3.0.0](https://github.com/GetStream/stream-chat-ruby/releases/tag/v3.0.0) with enabled runtime checks.
52-
52+
5353
---
5454

5555
> Additionally, in a future major version, we would like to enforce symbol hash keys during runtime to conform to Ruby best practises. It's a good idea to prepare your application for that.

sorbet/rbi/hidden-definitions/hidden.rbi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5154,11 +5154,11 @@ class OpenSSL::KDF::KDFError
51545154
end
51555155

51565156
module OpenSSL::KDF
5157-
def self.hkdf(*arg); end
5157+
def self.hkdf(ikm, salt:, info:, length:, hash:); end
51585158

5159-
def self.pbkdf2_hmac(*arg); end
5159+
def self.pbkdf2_hmac(pass, salt:, iterations:, length:, hash:); end
51605160

5161-
def self.scrypt(*arg); end
5161+
def self.scrypt(pass, **kwargs); end
51625162
end
51635163

51645164
class OpenSSL::OCSP::Request

stream-chat.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
1616
gem.files = Dir.chdir(File.expand_path(__dir__)) do
1717
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|sorbet|spec|\.github|scripts|assets)/}) }
1818
end
19-
gem.required_ruby_version = '>=2.5.0'
19+
gem.required_ruby_version = '>=2.7.0'
2020
gem.metadata = {
2121
'rubygems_mfa_required' => 'false',
2222
'homepage_uri' => 'https://getstream.io/chat/docs/',

0 commit comments

Comments
 (0)