stream_rails 2.6.1 → 2.6.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 +8 -0
- data/lib/stream_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54b579f0190e13effdd0bf431cb72c10da1cb29bcf480c9fb576324d5f16968
|
4
|
+
data.tar.gz: fb38ca708f49735545db3d4babcb3f66544b0d1603c408ad4366cc2567d062ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e73e7b0f211f5571ae0992dbc9b90bf150d63fa35b7ffb3b15e52babdc4e4df4ed81707bf8ef1cf3b41be26da87d6377940d5f901f31160a9d71628d84267ea
|
7
|
+
data.tar.gz: 7699314f3e562ac9c346ff7510d4815623a62edff0f57a5e21131413f73dd9919c2fe3fc2efef8682769e5f9f31e26590cbc2227790aadc0b64746f98fde5897
|
data/README.md
CHANGED
@@ -350,6 +350,14 @@ feed = StreamRails.feed_manager.get_news_feeds(current_user.id)[:flat]
|
|
350
350
|
results = feed.get()['results']
|
351
351
|
activities = enricher.enrich_activities(results)
|
352
352
|
```
|
353
|
+
A similar method called enrich_aggregated_activities is available for aggregated feeds.
|
354
|
+
```ruby
|
355
|
+
enricher = StreamRails::Enrich.new
|
356
|
+
|
357
|
+
feed = StreamRails.feed_manager.get_news_feeds(current_user.id)[:aggregated]
|
358
|
+
results = feed.get()['results']
|
359
|
+
activities = enricher.enrich_aggregated_activities(results)
|
360
|
+
```
|
353
361
|
|
354
362
|
If you have additional metadata in your activity (by overriding `activity_extra_data` in the class where you add the
|
355
363
|
Stream Activity mixin), you can also enrich that field's data by doing the following:
|
data/lib/stream_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stream_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommaso Barbugli
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.7.
|
188
|
+
rubygems_version: 2.7.3
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: A gem that provides a client interface for getstream.io
|