Skip to content

Commit 3c986f2

Browse files
authored
Update dependencies (#148)
* chore: update dependencies * chore: update min ruby version
1 parent e2e7673 commit 3c986f2

File tree

8 files changed

+20
-17
lines changed

8 files changed

+20
-17
lines changed

.github/workflows/ci.yml

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

@@ -21,10 +21,10 @@ jobs:
2121
bundler-cache: true
2222

2323
- run: bundle exec rake rubocop
24-
if: ${{ matrix.ruby == '2.7' }}
24+
if: ${{ matrix.ruby == '3.4' }}
2525

2626
- run: bundle exec srb tc
27-
if: ${{ matrix.ruby == '2.7' }}
27+
if: ${{ matrix.ruby == '3.4' }}
2828

2929
- run: bundle exec rspec ./spec --require spec_helper
3030
env:

.github/workflows/initiate_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: 🚀 Create release PR
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0 # gives the changelog generator access to all previous commits
1818

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.pull_request.merged && startsWith(github.head_ref, 'release-')
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- uses: ruby/setup-ruby@v1
1818
with:

.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.7
4+
TargetRubyVersion: 3.0
55
Exclude:
66
- sorbet/**/*.rbi
77
- vendor/bundle/**/*

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ end
2020
group :test do
2121
gem 'rack', '~> 2.2.4'
2222
end
23+
24+
ruby '>= 3.0.0'

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ For the client-side integrations (web and mobile) have a look at the JavaScript,
2828

2929
## ⚙️ Installation
3030

31-
[`stream-chat-ruby`](https://rubygems.org/gems/stream-chat-ruby) supports:
32-
33-
- Ruby (2.7, 3.0, 3.1)
31+
[`stream-chat-ruby`](https://rubygems.org/gems/stream-chat-ruby) supports Ruby version `3.0` and greater. We test against Ruby versions `3.0`, `3.1` and `3.4`.
3432

3533
```bash
3634
$ gem install stream-chat-ruby
@@ -53,6 +51,7 @@ client = StreamChat::Client.new('STREAM_KEY', 'STREAM_SECRET')
5351
---
5452

5553
> 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.
54+
>
5655
> ```ruby
5756
> # Wrong:
5857
> user = { "user" => { "id" => "bob-1"}}
@@ -108,11 +107,13 @@ chan.add_members(['bob-1', 'jane-77'])
108107
```
109108

110109
### Reactions
110+
111111
```ruby
112112
chan.send_reaction(m1['id'], {type: 'like'}, 'bob-1')
113113
```
114114

115115
### Moderation
116+
116117
```ruby
117118
chan.add_moderators(['jane-77'])
118119
chan.demote_moderators(['bob-1'])

stream-chat.gemspec

Lines changed: 6 additions & 6 deletions
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.7.0'
19+
gem.required_ruby_version = '>=3.0.0'
2020
gem.metadata = {
2121
'rubygems_mfa_required' => 'false',
2222
'homepage_uri' => 'https://getstream.io/chat/docs/',
@@ -26,10 +26,10 @@ Gem::Specification.new do |gem|
2626
'source_code_uri' => 'https://github.com/GetStream/stream-chat-ruby'
2727
}
2828

29-
gem.add_dependency 'faraday', '~> 2.0.1'
30-
gem.add_dependency 'faraday-multipart', '~> 1.0.4'
31-
gem.add_dependency 'faraday-net_http_persistent', '~> 2.0.1'
32-
gem.add_dependency 'jwt', '~> 2.3'
29+
gem.add_dependency 'faraday', '~> 2.12.2'
30+
gem.add_dependency 'faraday-multipart', '~> 1.1.0'
31+
gem.add_dependency 'faraday-net_http_persistent', '~> 2.3.0'
32+
gem.add_dependency 'jwt', '~> 2.10'
3333
gem.add_dependency 'net-http-persistent', '~> 4.0'
34-
gem.add_dependency 'sorbet-runtime', '~> 0.5.10539'
34+
gem.add_dependency 'sorbet-runtime', '~> 0.5.11820'
3535
end

0 commit comments

Comments
 (0)