stream-ruby 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/stream/client.rb +1 -2
- data/lib/stream/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9829e572c44feada438e80842fa2d7878d97d47f
|
4
|
+
data.tar.gz: c3759b5fd1bc1d723e290743baea682c873e75bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528c2382d9c6eff3d6dcd60368654039ab56ab18d0280b4c5ece685626ccd44a8a04fc7259d1a7037fc07abd03d456ae69dcfabc4dd3306eefc8868b2e6aeb8e
|
7
|
+
data.tar.gz: 73648771cd9d7f0e8d5a98d099a5ecae310e105b4c28e7ba69c7c29ddcfff7cafed8b783bcc7f8341087d8992d8314420a57a80d6035ad50108f38d2334426bc
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ gem install "stream-ruby"
|
|
22
22
|
```ruby
|
23
23
|
# Instantiate a new client
|
24
24
|
require 'stream'
|
25
|
-
client = Stream::Client.new('YOUR_API_KEY', 'API_KEY_SECRET')
|
25
|
+
client = Stream::Client.new('YOUR_API_KEY', 'API_KEY_SECRET', 'APP_ID', :location => 'us-east')
|
26
26
|
# Find your API keys here https://getstream.io/dashboard/
|
27
27
|
|
28
28
|
# Instantiate a feed object
|
data/lib/stream/client.rb
CHANGED
@@ -3,9 +3,8 @@ require 'stream/exceptions'
|
|
3
3
|
require 'stream/feed'
|
4
4
|
require 'stream/signer'
|
5
5
|
|
6
|
-
|
7
6
|
module Stream
|
8
|
-
STREAM_URL_RE = /https\:\/\/(?<key>\w+)\:(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?getstream\.io
|
7
|
+
STREAM_URL_RE = /https\:\/\/(?<key>\w+)\:(?<secret>\w+)@((api\.)|((?<location>[-\w]+)\.))?getstream\.io\/[\w=-\?%&]+app_id=(?<app_id>\d+)/i
|
9
8
|
|
10
9
|
class Client
|
11
10
|
attr_reader :api_key
|
data/lib/stream/version.rb
CHANGED
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: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommaso Barbugli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|