stream-chat-ruby 2.6.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f6c91605363e141dcbaeaf6818c8fb8b32266c6afc652a84785c488a4d5227
4
- data.tar.gz: eeeaec08c0c1eb776010740264b056689c9bb32983dbdf89a434e2527c9c928e
3
+ metadata.gz: 6bd69ddcd8703b0afb1c93208ed7c42112f3daaa6b61e2d80ab86606be615151
4
+ data.tar.gz: acd7af4d4b43ed330b6bd7f95a73b4aff60593d52cf9133032e9e1b4adc66736
5
5
  SHA512:
6
- metadata.gz: a4e2fd98ecab0fb43f91141e175d71677248cb0e5869184b91e6d5d1b182610953f3e0762396cdc8a2f663d949fd26449e336157c58dcd8c0b3a4a0c96a9d2e2
7
- data.tar.gz: 07f07ffd865cb2b9efbf89ca2827e7e49f949c1b045102a2ce70a6654590079217bc60d8f0709989d3cbc71ac109ec4cbacf32dc856aa43bc2c18bb60712d04f
6
+ metadata.gz: 765c5deea378177673be188e11eefb4da985597459922b6043df2c6701f8637312f2c9c77848ab2b07f77747840ca586032a8eda442ded7b043616419e2f39d0
7
+ data.tar.gz: fc9300507e09e346b7bdaacf0dd0754f5ecf3c054140ed1409082eb009dec5efba880675ef1c464ce3450f8d5a15ff5cec2ba6223db63dce376417b1c5119379
@@ -6,9 +6,10 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
+ max-parallel: 1
9
10
  matrix:
10
- ruby: [ '2.5', '2.6', '2.7' ]
11
- name: Ruby ${{ matrix.ruby }} sample
11
+ ruby: ['2.5', '2.6', '2.7', '3.0']
12
+ name: Ruby ${{ matrix.ruby }}
12
13
  steps:
13
14
  - uses: actions/checkout@v2
14
15
  - uses: actions/setup-ruby@v1
@@ -18,7 +19,6 @@ jobs:
18
19
  - env:
19
20
  STREAM_CHAT_API_KEY: ${{ secrets.STREAM_CHAT_API_KEY }}
20
21
  STREAM_CHAT_API_SECRET: ${{ secrets.STREAM_CHAT_API_SECRET }}
21
- BLOCKLIST: ${{ matrix.ruby == '2.7' }}
22
22
  run: |
23
23
  gem install bundler
24
24
  bundle install --jobs 4 --retry 3
data/.gitignore CHANGED
@@ -48,3 +48,4 @@ Gemfile.lock
48
48
 
49
49
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
50
  .rvmrc
51
+ .envrc
data/CHANGELOG.md CHANGED
@@ -1,20 +1,34 @@
1
+ ## May 21st, 2021 - 2.8.0
2
+
3
+ - Add query message flags support
4
+
5
+ ## March 17th, 2021 - 2.7.0
6
+
7
+ - Add Ruby 3.x support
8
+ - Update CI to run all tests for all versions
9
+
1
10
  ## March 9th, 2021 - 2.6.0
11
+
2
12
  - Add get_rate_limits endpoint
3
13
 
4
14
  ## February 3rd, 2021 - 2.5.0
15
+
5
16
  - Add channel partial update
6
17
  - Increase convenience in query members
7
18
  - Improve internal symbol conversions
8
19
 
9
20
  ## January 20th, 2021 - 2.4.0
21
+
10
22
  - Add query_members to channel
11
23
  - Use post endpoint for query channels instead of get
12
24
  - Extract common code for sorting into a helper for query calls
13
25
 
14
26
  ## January 5th, 2021 - 2.3.0
27
+
15
28
  - Add check SQS helper
16
29
 
17
30
  ## January 4th, 2021 - 2.2.0
31
+
18
32
  - Add support for export channels
19
33
  - Improve readme for blocklist and export channels
20
34
  - Improve running tests for multiple versions of ruby
@@ -22,27 +36,34 @@
22
36
  - Move to GitHub Actions
23
37
 
24
38
  ## October 5th, 2020 - 2.1.0
39
+
25
40
  - Add support for blocklist
26
41
 
27
42
  ## October 2nd, 2020 - 2.0.0
43
+
28
44
  - Drop EOL Ruby versions: 2.3 && 2.4
29
45
  - Setup Rubocop and mark string literals as frozen
30
46
 
31
47
  ## August 3rd, 2020 - 1.1.3
48
+
32
49
  - Fixed Argument Error on delete_user
33
50
 
34
51
  ## April 23th, 2020 - 1.1.2
52
+
35
53
  - Fixed ArgumentError when no users was passed
36
54
 
37
55
  ## March 30th, 2020 - 1.1.1
56
+
38
57
  - Fixed few minor issues
39
58
 
40
59
  ## Oct 27th, 2019 - 1.1.0
60
+
41
61
  - Mark gems use for testing as development dependencies
42
62
  - Added `send_file`, `send_image`, `delete_file`, `delete_image`
43
63
  - Added `invite_members`
44
64
 
45
65
  ## Oct 19th, 2019 - 1.0.0
66
+
46
67
  - Added `channel.hide` and `channel.show`
47
68
  - Added `client.flag_message` and `client.unflag_message`
48
69
  - Added `client.flag_user` and `client.unflag_user`
data/README.md CHANGED
@@ -1,20 +1,20 @@
1
1
  # stream-chat-ruby
2
2
 
3
- [![build](https://github.com/GetStream/stream-chat-ruby/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-ruby/actions) [![Gem Version](https://badge.fury.io/rb/stream-chat-ruby.svg)](http://badge.fury.io/rb/stream-chat-ruby)
3
+ [![build](https://github.com/GetStream/stream-chat-ruby/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-ruby/actions) [![Gem Version](https://badge.fury.io/rb/stream-chat-ruby.svg)](http://badge.fury.io/rb/stream-chat-ruby)
4
4
 
5
5
  stream-chat-ruby is the official Ruby client for [Stream chat](https://getstream.io/chat/) a service for building chat applications.
6
6
 
7
7
  You can sign up for a Stream account at https://getstream.io/chat/get_started/.
8
8
 
9
9
  You can use this library to access chat API endpoints server-side. For the
10
- client-side integrations (web and mobile) have a look at the Javascript, iOS and
10
+ client-side integrations (web and mobile) have a look at the JavaScript, iOS and
11
11
  Android SDK libraries (https://getstream.io/chat/).
12
12
 
13
13
  ### Installation
14
14
 
15
15
  stream-chat-ruby supports:
16
16
 
17
- - Ruby (2.7, 2.6, 2.5)
17
+ - Ruby (3.0, 2.7, 2.6, 2.5)
18
18
 
19
19
  #### Install
20
20
 
@@ -165,6 +165,7 @@ client.remove_device(jane_phone['id'], jane_phone['user_id'])
165
165
  ```
166
166
 
167
167
  ### Blocklists
168
+
168
169
  ```ruby
169
170
  # Create a blocklist
170
171
  client.create_blocklist('my_blocker', %w[fudge cream sugar])
@@ -180,6 +181,7 @@ client.delete_blocklist('my_blocker')
180
181
  ```
181
182
 
182
183
  ### Export Channels
184
+
183
185
  ```ruby
184
186
  # Register an export
185
187
  response = client.export_channels({type: 'messaging', id: 'jane'})
@@ -190,6 +192,7 @@ status_response = client.get_export_channel_status(response['task_id'])
190
192
  ```
191
193
 
192
194
  ### Rate limits
195
+
193
196
  ```ruby
194
197
  # Get all rate limits
195
198
  limits = client.get_rate_limits
@@ -69,6 +69,13 @@ module StreamChat
69
69
  post('moderation/unflag', data: payload)
70
70
  end
71
71
 
72
+ def query_message_flags(filter_conditions, **options)
73
+ params = options.merge({
74
+ filter_conditions: filter_conditions
75
+ })
76
+ get('moderation/flags/message', params: { payload: params.to_json })
77
+ end
78
+
72
79
  def flag_user(id, **options)
73
80
  payload = { target_user_id: id }.merge(options)
74
81
  post('moderation/flag', data: payload)
@@ -3,5 +3,5 @@
3
3
  # lib/version.rb
4
4
 
5
5
  module StreamChat
6
- VERSION = '2.6.0'
6
+ VERSION = '2.8.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mircea Cosbuc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday