Skip to content

Commit 862f6d5

Browse files
authored
Merge pull request #144 from GetStream/PBE-112-Update-Ruby-SDK
[PBE-112]update ruby sdk 3.2
2 parents 046f113 + 5d2b86b commit 862f6d5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @ferhatelmas
1+
* @JimmyPettersson85 @xernobyl @itsmeadi

.github/workflows/ci.yml

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

2222
- name: Commit message linter
23-
if: ${{ matrix.ruby == '2.5' }}
23+
if: ${{ matrix.ruby == '3.0' }}
2424
uses: wagoid/commitlint-github-action@v4
2525

2626
- uses: ruby/setup-ruby@v1

.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: 3.0
55

66
Layout/LineLength:
77
Enabled: false

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ end
99
group :test do
1010
gem 'faraday'
1111
gem 'rack'
12+
gem 'rake'
13+
gem 'rspec'
14+
gem 'simplecov'
1215
gem 'yard'
1316
end

lib/stream/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
require 'stream/url'
77

88
module Stream
9-
STREAM_URL_COM_RE = %r{https://(?<key>\w+):(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?(?<api_hostname>stream-io-api\.com)/[\w=-?%&]+app_id=(?<app_id>\d+)}i.freeze
10-
STREAM_URL_IO_RE = %r{https://(?<key>\w+):(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?(?<api_hostname>getstream\.io)/[\w=-?%&]+app_id=(?<app_id>\d+)}i.freeze
9+
STREAM_URL_COM_RE = %r{https://(?<key>\w+):(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?(?<api_hostname>stream-io-api\.com)/[\w=-?%&]+app_id=(?<app_id>\d+)}i
10+
STREAM_URL_IO_RE = %r{https://(?<key>\w+):(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?(?<api_hostname>getstream\.io)/[\w=-?%&]+app_id=(?<app_id>\d+)}i
1111

1212
class Client
1313
attr_reader :api_key

stream.gemspec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
1313
gem.extra_rdoc_files = %w[README.md LICENSE]
1414
gem.files = Dir['lib/**/*']
1515
gem.license = 'BSD-3-Clause'
16-
gem.required_ruby_version = '>=2.5.0'
16+
gem.required_ruby_version = '>=3.0.0'
1717
gem.metadata = {
1818
'rubygems_mfa_required' => 'false',
1919
'homepage_uri' => 'https://getstream.io/activity-feeds/',
@@ -27,7 +27,4 @@ Gem::Specification.new do |gem|
2727
gem.add_dependency 'faraday-net_http_persistent'
2828
gem.add_dependency 'jwt'
2929
gem.add_dependency 'net-http-persistent'
30-
gem.add_development_dependency 'rake'
31-
gem.add_development_dependency 'rspec'
32-
gem.add_development_dependency 'simplecov'
3330
end

0 commit comments

Comments
 (0)