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 +4 -4
- data/README.md +4 -0
- data/lib/stream_rails/logger.rb +2 -0
- data/lib/stream_rails/railtie.rb +4 -0
- data/lib/stream_rails/sync_policies.rb +4 -2
- data/lib/stream_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e57fb207229b63d03d93d4ff6f96e783b0daa4
|
4
|
+
data.tar.gz: 548fcb9f24f5c7b4f64633945a23496931fd2fc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 -->
|
data/lib/stream_rails/logger.rb
CHANGED
data/lib/stream_rails/railtie.rb
CHANGED
@@ -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:
|
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:
|
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
|
data/lib/stream_rails/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|