stream_rails 2.2.1 → 2.2.2

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: 69e7a8cd9e2a22e171976180b9f3899e7c3156a8
4
- data.tar.gz: c398d2d1abaf50c96bac7dd559c4a9d9cbdfae64
3
+ metadata.gz: 42e57fb207229b63d03d93d4ff6f96e783b0daa4
4
+ data.tar.gz: 548fcb9f24f5c7b4f64633945a23496931fd2fc0
5
5
  SHA512:
6
- metadata.gz: 0f1a76d3b7ff08ed16b889d299a1cc241384cffcf8bd293bd17e5e977a70cb90d71a28e379f1ed430a9d52d678c3bffd19c4d0af3dcadb9ff4bb5b4a3891a0dd
7
- data.tar.gz: 87e51649b64a5ea270c495ed918d1bb2ccc116e47629a705162331f2dddfd96972555d078909752424b14f6680c74beef2025426ab6ab0434c256d3ff36df8a0
6
+ metadata.gz: 333126bba376d6acf4ff7cac9403fb74f8a1ddb3bf151f365f37511eb1f5a2b6fca40f2ee13a2398223fa298250803c5afbb10f4d17c0651e7c1eb91c8168e7c
7
+ data.tar.gz: 6ecd2019ed9df6a4239771773f1db3a600d3f34a8cd1bef4d21c65520563e046c8593348d848718fb40a77a16b6028e47a47afa8a65f06905b331926ad3b93b7
data/README.md CHANGED
@@ -18,6 +18,10 @@ What you can build:
18
18
  * Facebook style newsfeeds
19
19
  * A notification system
20
20
 
21
+ ### Demo
22
+
23
+ You can check out our example app built using this library on Github [https://github.com/GetStream/Stream-Example-Rails](https://github.com/GetStream/Stream-Example-Rails)
24
+
21
25
  ###Table of Contents
22
26
 
23
27
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -1,3 +1,5 @@
1
+ require 'logger'
2
+
1
3
  module StreamRails
2
4
  class << self
3
5
  attr_accessor :logger
@@ -1,7 +1,11 @@
1
+ require 'rails'
2
+
1
3
  module StreamRails
2
4
  class Railtie < ::Rails::Railtie
5
+
3
6
  initializer 'stream_rails.setup_logging' do
4
7
  StreamRails.logger = Rails.logger
5
8
  end
9
+
6
10
  end
7
11
  end
@@ -5,7 +5,7 @@ module StreamRails
5
5
  module SyncCreate
6
6
 
7
7
  def self.included(base)
8
- base.after_commit :add_to_feed, on: [:create]
8
+ base.after_commit :add_to_feed, on: :create
9
9
  end
10
10
 
11
11
  private
@@ -14,6 +14,7 @@ module StreamRails
14
14
  StreamRails.feed_manager.created_activity(self)
15
15
  rescue Exception => e
16
16
  StreamRails.logger.error "Something went wrong creating an activity: #{e}"
17
+ raise
17
18
  end
18
19
  end
19
20
  end
@@ -21,7 +22,7 @@ module StreamRails
21
22
  module SyncDestroy
22
23
 
23
24
  def self.included(base)
24
- base.after_commit :remove_from_feed, on: [:destroy]
25
+ base.after_commit :remove_from_feed, on: :destroy
25
26
  end
26
27
 
27
28
  private
@@ -30,6 +31,7 @@ module StreamRails
30
31
  StreamRails.feed_manager.destroyed_activity(self)
31
32
  rescue Exception => e
32
33
  StreamRails.logger.error "Something went wrong deleting an activity: #{e}"
34
+ raise
33
35
  end
34
36
  end
35
37
  end
@@ -1,3 +1,3 @@
1
1
  module StreamRails
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.2'
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.2.1
4
+ version: 2.2.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-12-19 00:00:00.000000000 Z
11
+ date: 2015-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.2.2
180
+ rubygems_version: 2.4.7
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: A gem that provides a client interface for getstream.io