getstream-ruby 13.2.0 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fd7952704afa605faeb19cad7ffa73b8290b115b889a695a6f4293541c31559
4
- data.tar.gz: f9df4ca0e2bd40831e75ffe099bbd928ae22c0a50bc62e1aa638ed331e2b24be
3
+ metadata.gz: b051023a5efd3242f97748fe838cebac58b8b69da38c7de00fd018f274f16113
4
+ data.tar.gz: 9fc8981f69110a556c5e644b54c8dc31f0fb98d9acf9d09d0d9a536b24d8da1e
5
5
  SHA512:
6
- metadata.gz: 0dc9a1540d38270671afd7ebbc5aa0f83fcf21e0ce54ba6c14b274fb77e531a7d4336884ed5aeb32ac6eb456ef5564739f775e36ed380d5cc89c53a455f751e7
7
- data.tar.gz: 882242090e4bd9d0b5838465568e4aa01e0dc129ebf0b0925766077b472b04c74537bb728445a7451184be8878dd07b1a45a75fd19670edeb52042abb8a20d22
6
+ metadata.gz: 63a1240b7fe20d82815222c6003179279922b0d4901a251ba502810bb7901cfcc2e513e74aca4284333fe7ec67d396dd34fb18cfb80d14bb8003191f5c9030a6
7
+ data.tar.gz: a7a9ed011677519484692d5534840b2b60a70a182c65cf35ce42b37bef9eafd1571877ce88fdbc20bfc331d24cf20f37fe125ec5742472344de50a726f3662a1
@@ -210,10 +210,9 @@ module GetStreamRuby
210
210
 
211
211
  private
212
212
 
213
- # Plain strings and numbers stay unencoded: callers may already escape them.
214
213
  def query_value(value)
215
214
  return URI.encode_www_form_component(value.iso8601(9)) if value.is_a?(Time) || value.is_a?(DateTime)
216
- return value unless value.is_a?(Array) || value.is_a?(Hash) || value.is_a?(GetStream::BaseModel)
215
+ return URI.encode_www_form_component(value) unless [Array, Hash, GetStream::BaseModel].any? { |k| value.is_a?(k) }
217
216
 
218
217
  scalars = value.is_a?(Array) && value.all? { |e| e.is_a?(String) || e.is_a?(Numeric) || e == true || e == false }
219
218
  URI.encode_www_form_component(scalars ? value.join(',') : value.to_json)
@@ -13,7 +13,7 @@ module GetStream
13
13
  # @return [String] Opaque cursor for the next page of this section, present only when more results exist. Pass it back under next.channels with the same query
14
14
  attr_accessor :next
15
15
  # @!attribute channels
16
- # @return [Array<ChannelStateResponseFields>] Channels the caller is a member of whose name starts with the query, in the same shape as the query channels endpoint's results but without messages or members
16
+ # @return [Array<ChannelStateResponseFields>] Channels the caller is a member of whose name starts with the query, in the same shape as the query channels endpoint's results, without messages and with up to 4 members, oldest first. channel.member_count is the channel's total member count
17
17
  attr_accessor :channels
18
18
  # @!attribute error
19
19
  # @return [SearchAllSectionError]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GetStreamRuby
4
4
 
5
- VERSION = '13.2.0'
5
+ VERSION = '13.2.1'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getstream-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.0
4
+ version: 13.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream