stream_rails 2.1.1 → 2.2.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
  SHA1:
3
- metadata.gz: 70c5b22ea342a9c2caa66521fcb38dd70adfcc14
4
- data.tar.gz: 9cb603fa72c135002d2243d36d7134a8669e90c7
3
+ metadata.gz: d3197a48ab9100cf298b1494864808c1816ddd27
4
+ data.tar.gz: 7db84bb94ffd1048d43b34bac2d68da061403eae
5
5
  SHA512:
6
- metadata.gz: 6f32e2070d44937683e0ee1b7367fc12ac74d24012d9eca6e5f8d135702b71d63bdbea792ebdfc302b83f9e91af7ab8b25b13a92630c8e91ea3148c94fe3ac8b
7
- data.tar.gz: a690422094cc32d3254e125a7a105b7e60724de99e56cd361aada66f8441e13ba888946506ee15bb0f9056718b0cf9f8d162cac82288ec17e1f25401de6e56eb
6
+ metadata.gz: 48332e5d5f486497a68aad4f7383edc41411ce19a37c05ef3932fb04eaf40884d9e471d42b7a4ec67901c9873972345948c6fcbf6befaae2cc0ca0c8c6aef9c5
7
+ data.tar.gz: e6e4053c752d001eaeaea25626b9276ba126bd3a7e8d7bb9e21d8e75f66426fa5ae9d1cfa409bce90c89ab631760ed9ed5a037ab38bbbe7c49e9eb81b84a092b
data/lib/stream_rails.rb CHANGED
@@ -14,7 +14,12 @@ module StreamRails
14
14
  autoload :VERSION
15
15
 
16
16
  def self.client
17
- Stream::Client.new(self.config.api_key, self.config.api_secret)
17
+ Stream::Client.new(
18
+ self.config.api_key,
19
+ self.config.api_secret,
20
+ self.config.api_site_id,
21
+ :location => self.config.location
22
+ )
18
23
  end
19
24
 
20
25
  # Returns StreamRails's configuration object.
@@ -48,6 +53,7 @@ module StreamRails
48
53
  # config.api_key = "key"
49
54
  # config.api_secret = "secret"
50
55
  # config.api_site_id = "42"
56
+ # config.location = "us-east"
51
57
  # config.enabled = true
52
58
  # end
53
59
  def self.configure(&block)
@@ -3,6 +3,7 @@ module StreamRails
3
3
  class Config
4
4
  attr_accessor :api_key
5
5
  attr_accessor :api_secret
6
+ attr_accessor :location
6
7
  attr_accessor :api_site_id
7
8
  attr_accessor :enabled
8
9
 
@@ -1,3 +1,3 @@
1
1
  module StreamRails
2
- VERSION = '2.1.1'
2
+ VERSION = '2.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
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-11-22 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '2.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activerecord
57
57
  requirement: !ruby/object:Gem::Requirement