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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffbc76da0214b13547950e2c04dab2515b71ac43be6e84ac0d5905eaaff55fff
4
- data.tar.gz: c051b60b31ec6c0066a31aae58c9fd0ea304390502a0ae493ad2b0b606e4a952
3
+ metadata.gz: c54b579f0190e13effdd0bf431cb72c10da1cb29bcf480c9fb576324d5f16968
4
+ data.tar.gz: fb38ca708f49735545db3d4babcb3f66544b0d1603c408ad4366cc2567d062ab
5
5
  SHA512:
6
- metadata.gz: 17e669e1b3420a1c6b0ecc62af46f8733d8e6a8b7c1799891930182ea7d41d6658cd4987b826399bb35680a3cf9924c7f0fe8235470487ac9bb6b9dbe111f245
7
- data.tar.gz: d224efa1e5453d35805593eacb2bc4ae1ea85a5b619b894f5677e4b395846da71ff9347f297a58b9caf7c868b3ae53a44b0edbb4cdc83f7d803bea2aea645684
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:
@@ -1,3 +1,3 @@
1
1
  module StreamRails
2
- VERSION = '2.6.1'.freeze
2
+ VERSION = '2.6.2'.freeze
3
3
  end
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.1
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-04-26 00:00:00.000000000 Z
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.6
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