activity_feed 2.0.0.rc1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.0 (2012-06-29)
4
+
5
+ * Rewrite of the activity_feed gem
6
+ * Simplifies namespace in Redis
7
+ * Simplifies code to manipulate items and feeds
8
+ * Removes explicit ORM/ODM support and delegates that to `item_loader` if necessary
9
+ * Adds internal code documentation
10
+
3
11
  ## 1.4.0
4
12
 
5
13
  * Added support for [Mongoid](http://www.mongoid.org)
@@ -12,7 +12,7 @@ module ActivityFeed
12
12
  # @return page from the activity feed for a given +user_id+.
13
13
  def feed(user_id, page, aggregate = ActivityFeed.aggregate)
14
14
  feederboard = ActivityFeed.feederboard_for(user_id, aggregate)
15
- feed = feederboard.members(page, :page_size => ActivityFeed.page_size).inject([]) do |feed_items, feed_item|
15
+ feed = feederboard.leaders(page, :page_size => ActivityFeed.page_size).inject([]) do |feed_items, feed_item|
16
16
  item = if ActivityFeed.item_loader
17
17
  ActivityFeed.item_loader.call(feed_item[:member])
18
18
  else
@@ -1,3 +1,3 @@
1
1
  module ActivityFeed
2
- VERSION = "2.0.0.rc1"
2
+ VERSION = "2.0.0"
3
3
  end
data/spec/version_spec.rb CHANGED
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe 'ActivityFeed::VERSION' do
4
4
  it "should be the correct version" do
5
- ActivityFeed::VERSION.should == '2.0.0.rc1'
5
+ ActivityFeed::VERSION.should == '2.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activity_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
5
- prerelease: 6
4
+ version: 2.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Czarnecki
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-23 00:00:00.000000000 Z
12
+ date: 2012-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -215,16 +215,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  segments:
217
217
  - 0
218
- hash: 2514115119128722927
218
+ hash: 1134823681499475640
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  none: false
221
221
  requirements:
222
- - - ! '>'
222
+ - - ! '>='
223
223
  - !ruby/object:Gem::Version
224
- version: 1.3.1
224
+ version: '0'
225
+ segments:
226
+ - 0
227
+ hash: 1134823681499475640
225
228
  requirements: []
226
229
  rubyforge_project: activity_feed
227
- rubygems_version: 1.8.23
230
+ rubygems_version: 1.8.24
228
231
  signing_key:
229
232
  specification_version: 3
230
233
  summary: Activity feeds backed by Redis