stream-ruby 1.0.0 → 1.0.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OThkZjY2OWMwNDJkNzQ1YzlhYjBjNGFkYzc0ZGI0MWQwZDk4Y2U3YQ==
4
+ ZDI3MWVjOWViNmQwMmEwMWFiYWU2NzA4MmJkODNmOTE1Y2I4YzU4OA==
5
5
  data.tar.gz: !binary |-
6
- YjlhMDk3NmUyODE3OTM5YjFmYTQ3YTYwYThiNGRmMzAzODFhNDNkNA==
6
+ MmJhOGM4N2I0OGEyZThjOGYyMzAzMTM0Zjg5OWRlNjg1MjEyNDEwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTUzY2NhNmUyNTc0YmRjNTVkZWI1YjlkNDc3ZTEzYjM1ZTIzNDIzYjVmMWNh
10
- OWU5YTliZThjZGVmZjQzZmExNmY0ODdmZjc3YTAxYTI2NTVjYTM4M2RmNmM4
11
- YzRlMTQxOTMzM2FiYWRhYjVlOGIyYjZkNTZkODRiZTI1NjU4MTc=
9
+ NmFhODExYTZmMDhjZTUyMmUwNDY1ZGUwMjk0NWZiNDY2NTc4ZWIwMjlhOGI4
10
+ OTc3YmU2YTZmZjJjZjgxMmEyN2JhZTE2NWUzZDVhYjNjYzQ4ZGVhZWY0M2Rm
11
+ ZjFjYzU4ZTMyMjA4NTFhNTVmMTdkNzAzY2QxYjQ1MzczNmNkZDg=
12
12
  data.tar.gz: !binary |-
13
- MDdlMGM1MmI5ZmJlZTlhMjc1M2EzYzU5NTFlNzEyNWU5MTJiMDU3MjE5ZjUx
14
- NmI0NDBlOGI2NDdlMjA3MTlkYmFjZTY3Y2VjMjgxMDY4M2U2MjU3ZWVkOGVh
15
- ZjlkNTUwNDUyMmQ1NzYyYWUwNjhlMTJjODhlMWQ5YTFjNDJlNGU=
13
+ NTdiZDNmZDc4NDFhMGZkNDZhN2MwOWQ0OTVhNzQyZDhjMjgzMDFjZTJhNzc5
14
+ MDI3NThkZjFlODlmMmUxYzY5Y2VhOTRhZTE0MTIyMmI2MWQ3ZjZiOGMzNTE5
15
+ ZDQ5ZDlhMGE0NGE3NThjYTU3YWVhOWQ3MDVjMTAwOGI2ZWJjMzI=
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  stream-ruby
2
2
  ===========
3
+ [![Gem Version](https://badge.fury.io/rb/stream-ruby.svg)](http://badge.fury.io/rb/stream-ruby)
3
4
 
4
5
  stream-ruby is a Ruby client for [Stream](https://getstream.io/).
5
6
 
data/lib/stream/feed.rb CHANGED
@@ -30,11 +30,12 @@ module Stream
30
30
 
31
31
  def initialize(client, feed_id, api_key, signature)
32
32
  @client = client
33
- @feed_id = Stream::clean_feed_id(feed_id)
33
+ @feed_id = feed_id
34
34
  @feed_url = feed_id.sub(':', '/')
35
35
  @api_key = api_key
36
36
  @token = signature
37
- @auth_headers = {'Authorization' => "#{@feed_id} #{signature}"}
37
+ cleaned_feed_id = Stream::clean_feed_id(feed_id)
38
+ @auth_headers = {'Authorization' => "#{cleaned_feed_id} #{signature}"}
38
39
  end
39
40
 
40
41
  def get_http_client
@@ -58,9 +59,12 @@ module Stream
58
59
 
59
60
  def get(params = {})
60
61
  uri = "/feed/#{@feed_url}/"
61
- if params[:mark_read]
62
+ if params[:mark_read] and params[:mark_read].kind_of?(Array)
62
63
  params[:mark_read] = params[:mark_read].join(",")
63
64
  end
65
+ if params[:mark_seen] and params[:mark_seen].kind_of?(Array)
66
+ params[:mark_seen] = params[:mark_seen].join(",")
67
+ end
64
68
  self.make_request(:get, uri, params)
65
69
  end
66
70
 
@@ -1,3 +1,3 @@
1
1
  module Stream
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbugli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -133,3 +133,4 @@ signing_key:
133
133
  specification_version: 4
134
134
  summary: A gem that provides a client interface for getstream.io
135
135
  test_files: []
136
+ has_rdoc: true