Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
strategy:
max-parallel: 1
matrix:
ruby: ['2.7', '3.0', '3.1']
ruby: ["3.0", "3.1", "3.4"]
name: 💎 Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # gives the commit linter access to previous commits

Expand All @@ -21,10 +21,10 @@ jobs:
bundler-cache: true

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

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

- run: bundle exec rspec ./spec --require spec_helper
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/initiate_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: 🚀 Create release PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # gives the changelog generator access to all previous commits

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.event.pull_request.merged && startsWith(github.head_ref, 'release-')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AllCops:
DisabledByDefault: false
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Exclude:
- sorbet/**/*.rbi
- vendor/bundle/**/*
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ end
group :test do
gem 'rack', '~> 2.2.4'
end

ruby '>= 3.0.0'
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ For the client-side integrations (web and mobile) have a look at the JavaScript,

## ⚙️ Installation

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

- Ruby (2.7, 3.0, 3.1)
[`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`.

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

> 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.
>
> ```ruby
> # Wrong:
> user = { "user" => { "id" => "bob-1"}}
Expand Down Expand Up @@ -108,11 +107,13 @@ chan.add_members(['bob-1', 'jane-77'])
```

### Reactions

```ruby
chan.send_reaction(m1['id'], {type: 'like'}, 'bob-1')
```

### Moderation

```ruby
chan.add_moderators(['jane-77'])
chan.demote_moderators(['bob-1'])
Expand Down
12 changes: 6 additions & 6 deletions stream-chat.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
gem.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|sorbet|spec|\.github|scripts|assets)/}) }
end
gem.required_ruby_version = '>=2.7.0'
gem.required_ruby_version = '>=3.0.0'
gem.metadata = {
'rubygems_mfa_required' => 'false',
'homepage_uri' => 'https://getstream.io/chat/docs/',
Expand All @@ -26,10 +26,10 @@ Gem::Specification.new do |gem|
'source_code_uri' => 'https://github.com/GetStream/stream-chat-ruby'
}

gem.add_dependency 'faraday', '~> 2.0.1'
gem.add_dependency 'faraday-multipart', '~> 1.0.4'
gem.add_dependency 'faraday-net_http_persistent', '~> 2.0.1'
gem.add_dependency 'jwt', '~> 2.3'
gem.add_dependency 'faraday', '~> 2.12.2'
gem.add_dependency 'faraday-multipart', '~> 1.1.0'
gem.add_dependency 'faraday-net_http_persistent', '~> 2.3.0'
gem.add_dependency 'jwt', '~> 2.10'
gem.add_dependency 'net-http-persistent', '~> 4.0'
gem.add_dependency 'sorbet-runtime', '~> 0.5.10539'
gem.add_dependency 'sorbet-runtime', '~> 0.5.11820'
end
Loading