mongoid_followable 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,7 @@
30
30
  <orderEntry type="library" scope="PROVIDED" name="[gem] will_paginate (v3.0.pre2, /home/tomato/.rvm/gems/ruby-1.9.2-p136/gems/will_paginate-3.0.pre2)" level="application" />
31
31
  <orderEntry type="library" scope="PROVIDED" name="[gem] mongo (v1.3.1, /home/tomato/.rvm/gems/ruby-1.9.2-p136/gems/mongo-1.3.1)" level="application" />
32
32
  <orderEntry type="library" scope="PROVIDED" name="[gem] bundler (v1.0.13, /home/tomato/.gem/ruby/1.9.1/gems/bundler-1.0.13)" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="[gem] mongoid (v2.0.2, /home/tomato/.rvm/gems/ruby-1.9.2-p136/gems/mongoid-2.0.2)" level="application" />
33
34
  </component>
34
35
  </module>
35
36
 
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,16 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="90bdec60-890b-4083-b05d-2f665a1f4d70" name="Default" comment="" />
4
+ <list default="true" id="90bdec60-890b-4083-b05d-2f665a1f4d70" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/mongoid_followable.iml" afterPath="$PROJECT_DIR$/.idea/mongoid_followable.iml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.rdoc" afterPath="$PROJECT_DIR$/README.rdoc" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mongoid_followable/followable.rb" afterPath="$PROJECT_DIR$/lib/mongoid_followable/followable.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mongoid_followable/follower.rb" afterPath="$PROJECT_DIR$/lib/mongoid_followable/follower.rb" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mongoid_followable/version.rb" afterPath="$PROJECT_DIR$/lib/mongoid_followable/version.rb" />
11
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/mongoid_followable.gemspec" afterPath="$PROJECT_DIR$/mongoid_followable.gemspec" />
12
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/mongoid/followable_spec.rb" afterPath="$PROJECT_DIR$/spec/mongoid/followable_spec.rb" />
13
+ </list>
5
14
  <ignored path="mongoid_followable.iws" />
6
15
  <ignored path=".idea/workspace.xml" />
7
16
  <option name="TRACKING_ENABLED" value="true" />
@@ -23,17 +32,7 @@
23
32
  <favorites_list name="mongoid_followable" />
24
33
  </component>
25
34
  <component name="FileEditorManager">
26
- <leaf>
27
- <file leaf-file-name="README.rdoc" pinned="false" current="true" current-in-tab="true">
28
- <entry file="file://$PROJECT_DIR$/README.rdoc">
29
- <provider selected="true" editor-type-id="text-editor">
30
- <state line="26" column="50" selection-start="693" selection-end="693" vertical-scroll-proportion="0.53846157">
31
- <folding />
32
- </state>
33
- </provider>
34
- </entry>
35
- </file>
36
- </leaf>
35
+ <leaf />
37
36
  </component>
38
37
  <component name="FindManager">
39
38
  <FindUsagesManager>
@@ -56,11 +55,11 @@
56
55
  <option value="$PROJECT_DIR$/app/models/follow.rb" />
57
56
  <option value="$PROJECT_DIR$/lib/mongoid_followable.rb" />
58
57
  <option value="$PROJECT_DIR$/spec/models/user.rb" />
59
- <option value="$PROJECT_DIR$/spec/mongoid/followable_spec.rb" />
60
58
  <option value="$PROJECT_DIR$/lib/mongoid_followable/version.rb" />
61
59
  <option value="$PROJECT_DIR$/mongoid_followable.gemspec" />
62
- <option value="$PROJECT_DIR$/lib/mongoid_followable/followable.rb" />
60
+ <option value="$PROJECT_DIR$/spec/mongoid/followable_spec.rb" />
63
61
  <option value="$PROJECT_DIR$/lib/mongoid_followable/follower.rb" />
62
+ <option value="$PROJECT_DIR$/lib/mongoid_followable/followable.rb" />
64
63
  <option value="$PROJECT_DIR$/README.rdoc" />
65
64
  </list>
66
65
  </option>
@@ -191,24 +190,6 @@
191
190
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
192
191
  </PATH_ELEMENT>
193
192
  </PATH>
194
- <PATH>
195
- <PATH_ELEMENT>
196
- <option name="myItemId" value="mongoid_followable" />
197
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
198
- </PATH_ELEMENT>
199
- <PATH_ELEMENT>
200
- <option name="myItemId" value="mongoid_followable" />
201
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
202
- </PATH_ELEMENT>
203
- <PATH_ELEMENT>
204
- <option name="myItemId" value="app" />
205
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
206
- </PATH_ELEMENT>
207
- <PATH_ELEMENT>
208
- <option name="myItemId" value="models" />
209
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
210
- </PATH_ELEMENT>
211
- </PATH>
212
193
  </subPane>
213
194
  </pane>
214
195
  <pane id="Scope" />
@@ -267,14 +248,14 @@
267
248
  <servers />
268
249
  </component>
269
250
  <component name="ToolWindowManager">
270
- <frame x="-1" y="24" width="1282" height="757" extended-state="6" />
271
- <editor active="true" />
251
+ <frame x="1" y="24" width="1598" height="851" extended-state="0" />
252
+ <editor active="false" />
272
253
  <layout>
273
254
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
274
255
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
275
256
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
276
257
  <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
277
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.17595541" sideWeight="0.67128986" order="0" side_tool="false" content_ui="tabs" />
258
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.17579618" sideWeight="0.67128986" order="0" side_tool="false" content_ui="tabs" />
278
259
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
279
260
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
280
261
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -340,70 +321,68 @@
340
321
  <state line="10" column="44" selection-start="315" selection-end="315" vertical-scroll-proportion="0.2173913" />
341
322
  </provider>
342
323
  </entry>
343
- <entry file="file://$PROJECT_DIR$/lib/mongoid_followable.rb">
344
- <provider selected="true" editor-type-id="text-editor">
345
- <state line="1" column="70" selection-start="145" selection-end="145" vertical-scroll-proportion="0.0">
346
- <folding />
347
- </state>
348
- </provider>
349
- </entry>
350
324
  <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
351
325
  <provider selected="true" editor-type-id="text-editor">
352
326
  <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
353
327
  </provider>
354
328
  </entry>
355
- <entry file="file://$PROJECT_DIR$/spec/models/group.rb">
329
+ <entry file="file://$PROJECT_DIR$/mongoid_followable.gemspec">
356
330
  <provider selected="true" editor-type-id="text-editor">
357
- <state line="2" column="29" selection-start="69" selection-end="69" vertical-scroll-proportion="0.050167225">
331
+ <state line="8" column="29" selection-start="292" selection-end="292" vertical-scroll-proportion="0.17391305">
358
332
  <folding />
359
333
  </state>
360
334
  </provider>
361
335
  </entry>
362
- <entry file="file://$PROJECT_DIR$/spec/models/user.rb">
336
+ <entry file="file://$PROJECT_DIR$/lib/mongoid_followable/version.rb">
363
337
  <provider selected="true" editor-type-id="text-editor">
364
- <state line="3" column="27" selection-start="96" selection-end="96" vertical-scroll-proportion="0.075250834">
338
+ <state line="2" column="20" selection-start="55" selection-end="55" vertical-scroll-proportion="0.04347826">
365
339
  <folding />
366
340
  </state>
367
341
  </provider>
368
342
  </entry>
369
- <entry file="file://$PROJECT_DIR$/spec/mongoid/followable_spec.rb">
343
+ <entry file="file://$PROJECT_DIR$/lib/mongoid_followable.rb">
344
+ <provider selected="true" editor-type-id="text-editor">
345
+ <state line="1" column="70" selection-start="145" selection-end="145" vertical-scroll-proportion="0.0" />
346
+ </provider>
347
+ </entry>
348
+ <entry file="file://$PROJECT_DIR$/spec/models/user.rb">
370
349
  <provider selected="true" editor-type-id="text-editor">
371
- <state line="81" column="39" selection-start="1933" selection-end="1933" vertical-scroll-proportion="0.0">
350
+ <state line="3" column="27" selection-start="96" selection-end="96" vertical-scroll-proportion="0.0">
372
351
  <folding />
373
352
  </state>
374
353
  </provider>
375
354
  </entry>
376
- <entry file="file://$PROJECT_DIR$/lib/mongoid_followable/version.rb">
355
+ <entry file="file://$PROJECT_DIR$/README.rdoc">
377
356
  <provider selected="true" editor-type-id="text-editor">
378
- <state line="2" column="20" selection-start="55" selection-end="55" vertical-scroll-proportion="0.0">
357
+ <state line="7" column="37" selection-start="136" selection-end="136" vertical-scroll-proportion="0.1521739">
379
358
  <folding />
380
359
  </state>
381
360
  </provider>
382
361
  </entry>
383
- <entry file="file://$PROJECT_DIR$/mongoid_followable.gemspec">
362
+ <entry file="file://$PROJECT_DIR$/lib/mongoid_followable/followable.rb">
384
363
  <provider selected="true" editor-type-id="text-editor">
385
- <state line="8" column="29" selection-start="292" selection-end="292" vertical-scroll-proportion="0.0">
364
+ <state line="37" column="19" selection-start="1000" selection-end="1000" vertical-scroll-proportion="0.41304347">
386
365
  <folding />
387
366
  </state>
388
367
  </provider>
389
368
  </entry>
390
369
  <entry file="file://$PROJECT_DIR$/lib/mongoid_followable/follower.rb">
391
370
  <provider selected="true" editor-type-id="text-editor">
392
- <state line="50" column="47" selection-start="1244" selection-end="1244" vertical-scroll-proportion="0.7948718">
371
+ <state line="37" column="22" selection-start="991" selection-end="991" vertical-scroll-proportion="0.37518463">
393
372
  <folding />
394
373
  </state>
395
374
  </provider>
396
375
  </entry>
397
- <entry file="file://$PROJECT_DIR$/lib/mongoid_followable/followable.rb">
376
+ <entry file="file://$PROJECT_DIR$/spec/mongoid/followable_spec.rb">
398
377
  <provider selected="true" editor-type-id="text-editor">
399
- <state line="50" column="15" selection-start="1230" selection-end="1230" vertical-scroll-proportion="0.9498328">
378
+ <state line="92" column="19" selection-start="2370" selection-end="2370" vertical-scroll-proportion="1.7826087">
400
379
  <folding />
401
380
  </state>
402
381
  </provider>
403
382
  </entry>
404
- <entry file="file://$PROJECT_DIR$/README.rdoc">
383
+ <entry file="file://$PROJECT_DIR$/spec/models/group.rb">
405
384
  <provider selected="true" editor-type-id="text-editor">
406
- <state line="26" column="50" selection-start="693" selection-end="693" vertical-scroll-proportion="0.53846157">
385
+ <state line="2" column="29" selection-start="69" selection-end="69" vertical-scroll-proportion="0.04347826">
407
386
  <folding />
408
387
  </state>
409
388
  </provider>
data/README.rdoc CHANGED
@@ -5,7 +5,7 @@
5
5
  In console:
6
6
  gem install mongoid_followable
7
7
  or in Gemfile:
8
- gem 'mongoid_followable', "~> 0.1.5"
8
+ gem 'mongoid_followable', "~> 0.1.6"
9
9
 
10
10
  == Usage
11
11
 
@@ -21,12 +21,11 @@ To make model followable you need to include Mongoid::Followable into your docum
21
21
  include Mongoid::Followable
22
22
  end
23
23
 
24
- You can set authorization:
25
- ...
24
+ Now you can set authorization:
26
25
  current_user.set_authorization('user', 'game') # now current_user cannot follow User and Game model
27
26
  current_user.unset_authorization('User', 'Game')
28
27
 
29
- You can follow a model:
28
+ And then you can follow a model:
30
29
 
31
30
  @group = Group.new
32
31
  @group.save
@@ -39,12 +38,12 @@ You can also judge whether a model is a follower of another model or a model is
39
38
  current_user.follower_of?(@group)
40
39
  current_user.followee_of?(@group)
41
40
 
42
- You can get a model's follower/followee count:
41
+ Moreover, it's easy to get a model's follower/followee count:
43
42
 
44
43
  current_user.followers_count
45
44
  current_user.followees_count
46
45
 
47
- You can get a model's followers/followees:
46
+ Of course, you can get a list of followers/followees:
48
47
 
49
48
  User.followers_of(@group)
50
49
  User.followees_of(@group)
@@ -52,7 +51,7 @@ You can get a model's followers/followees:
52
51
  @group.all_followers
53
52
  @user.all_followees
54
53
 
55
- You can get a model's followers/followees by type
54
+ Getting a model's followers/followees by type is also possible:
56
55
 
57
56
  @group.followers_by_type("user")
58
57
  @user.followees_by_type("group")
@@ -68,7 +67,17 @@ You can also get a model's follow/followed history:
68
67
 
69
68
  @user.ever_follow
70
69
  @group.ever_followed
71
- ...
70
+
71
+ Another feature is to get a list of models which has the most followers/followees:
72
+
73
+ User.with_max_followees
74
+ User.with_min_followees
75
+ User.with_max_followees_by_type('group')
76
+ User.with_min_followees_by_type('group')
77
+ Group.with_max_followers
78
+ Group.with_min_followers
79
+ Group.with_max_followers_by_type('user')
80
+ Group.with_min_followers_by_type('user')
72
81
 
73
82
  * Any bug or issue, please send me an email: ustc.flyingfox@gmail.com
74
83
 
@@ -76,9 +85,9 @@ You can also get a model's follow/followed history:
76
85
 
77
86
  * inter-models followable #FINISHED#
78
87
  * divide into two parts: followable(being followed) and follower(following others) #FINISHED#
79
- * following history/followed history
80
- * most/least followed/following
81
- * add authorization to followable models
88
+ * following history/followed history #FINISHED#
89
+ * most/least followed/following #FINISHED
90
+ * add authorization to followable models #FINISHED#
82
91
  * follow part of model like only following tags updation of an article etc(is this necessary?)
83
92
 
84
93
  == Thanks
@@ -29,6 +29,38 @@ module Mongoid
29
29
  model.followees_by_type(self.name)
30
30
  end
31
31
 
32
+ # 4 methods in this function
33
+ #
34
+ # Example:
35
+ # >> Group.with_max_followers
36
+ # => [@ruby]
37
+ # >> Group.with_max_followers_by_type('user')
38
+ # => [@ruby]
39
+
40
+ def method_missing(name, *args)
41
+ if name.to_s =~ /^with_(max|min)_followers$/i
42
+ follow_array = self.all.to_a.sort! { |a, b| a.followers_count <=> b.followers_count }
43
+ if $1 == "max"
44
+ max = follow_array[-1].followers_count
45
+ follow_array.select { |c| c.followers_count == max }
46
+ elsif $1 == "min"
47
+ min = follow_array[0].followers_count
48
+ follow_array.select { |c| c.followers_count == min }
49
+ end
50
+ elsif name.to_s =~ /^with_(max|min)_followers_by_type$/i
51
+ follow_array = self.all.to_a.sort! { |a, b| a.followers_count_by_type(args[0]) <=> b.followers_count_by_type(args[0]) }
52
+ if $1 == "max"
53
+ max = follow_array[-1].followers_count_by_type(args[0])
54
+ follow_array.select { |c| c.followers_count_by_type(args[0]) == max }
55
+ elsif $1 == "min"
56
+ min = follow_array[0].followers_count
57
+ follow_array.select { |c| c.followers_count_by_type(args[0]) == min }
58
+ end
59
+ else
60
+ super
61
+ end
62
+ end
63
+
32
64
  end
33
65
 
34
66
  # set which models cannot follow self
@@ -29,6 +29,38 @@ module Mongoid
29
29
  model.followers_by_type(self.name)
30
30
  end
31
31
 
32
+ # 4 methods in this function
33
+ #
34
+ # Example:
35
+ # >> User.with_max_followees
36
+ # => [@jim]
37
+ # >> User.with_max_followees_by_type('group')
38
+ # => [@jim]
39
+
40
+ def method_missing(name, *args)
41
+ if name.to_s =~ /^with_(max|min)_followees$/i
42
+ follow_array = self.all.to_a.sort! { |a, b| a.followees_count <=> b.followees_count }
43
+ if $1 == "max"
44
+ max = follow_array[-1].followees_count
45
+ follow_array.select { |c| c.followees_count == max }
46
+ elsif $1 == "min"
47
+ min = follow_array[0].followees_count
48
+ follow_array.select { |c| c.followees_count == min }
49
+ end
50
+ elsif name.to_s =~ /^with_(max|min)_followees_by_type$/i
51
+ follow_array = self.all.to_a.sort! { |a, b| a.followees_count_by_type(args[0]) <=> b.followees_count_by_type(args[0]) }
52
+ if $1 == "max"
53
+ max = follow_array[-1].followees_count_by_type(args[0])
54
+ follow_array.select { |c| c.followees_count_by_type(args[0]) == max }
55
+ elsif $1 == "min"
56
+ min = follow_array[0].followees_count
57
+ follow_array.select { |c| c.followees_count_by_type(args[0]) == min }
58
+ end
59
+ else
60
+ super
61
+ end
62
+ end
63
+
32
64
  end
33
65
 
34
66
  # set which models user cannot follow
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Followable
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "mongoid_followable"
7
7
  s.version = Mongoid::Followable::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.date = "2011-06-27"
9
+ s.date = "2011-06-29"
10
10
  s.authors = ["Jie Fan"]
11
11
  s.email = ["ustc.flyingfox@gmail.com"]
12
12
  s.homepage = "https://github.com/lastomato/mongoid_followable"
@@ -38,6 +38,11 @@ describe Mongoid::Followable do
38
38
 
39
39
  u.ever_follow.should == [@v]
40
40
  @v.ever_followed.should == [u]
41
+
42
+ User.with_max_followees.should == [u]
43
+ User.with_max_followers.should == [@v]
44
+ User.with_max_followees_by_type('user').should == [u]
45
+ User.with_max_followers_by_type('user').should == [@v]
41
46
  end
42
47
 
43
48
  it "unfollowing a user" do
@@ -81,6 +86,11 @@ describe Mongoid::Followable do
81
86
 
82
87
  u.ever_follow.should == [@g, @v]
83
88
  @g.ever_followed.should == [u]
89
+
90
+ User.with_max_followees.should == [u]
91
+ Group.with_max_followers.should == [@g]
92
+ User.with_max_followees_by_type('group').should == [u]
93
+ Group.with_max_followers_by_type('user').should == [@g]
84
94
  end
85
95
 
86
96
  it "unfollowing a group" do
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_followable
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease:
5
- version: 0.1.5
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 6
10
+ version: 0.1.6
6
11
  platform: ruby
7
12
  authors:
8
13
  - Jie Fan
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-27 00:00:00 -04:00
18
+ date: 2011-06-29 00:00:00 -04:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,11 @@ dependencies:
21
26
  requirements:
22
27
  - - ~>
23
28
  - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 2
32
+ - 0
33
+ - 1
24
34
  version: 2.0.1
25
35
  type: :runtime
26
36
  version_requirements: *id001
@@ -32,6 +42,11 @@ dependencies:
32
42
  requirements:
33
43
  - - ~>
34
44
  - !ruby/object:Gem::Version
45
+ hash: 27
46
+ segments:
47
+ - 1
48
+ - 3
49
+ - 0
35
50
  version: 1.3.0
36
51
  type: :runtime
37
52
  version_requirements: *id002
@@ -43,6 +58,10 @@ dependencies:
43
58
  requirements:
44
59
  - - ~>
45
60
  - !ruby/object:Gem::Version
61
+ hash: 7
62
+ segments:
63
+ - 0
64
+ - 6
46
65
  version: "0.6"
47
66
  type: :development
48
67
  version_requirements: *id003
@@ -54,6 +73,10 @@ dependencies:
54
73
  requirements:
55
74
  - - ~>
56
75
  - !ruby/object:Gem::Version
76
+ hash: 15
77
+ segments:
78
+ - 2
79
+ - 6
57
80
  version: "2.6"
58
81
  type: :development
59
82
  version_requirements: *id004
@@ -105,17 +128,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
128
  requirements:
106
129
  - - ">="
107
130
  - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
108
134
  version: "0"
109
135
  required_rubygems_version: !ruby/object:Gem::Requirement
110
136
  none: false
111
137
  requirements:
112
138
  - - ">="
113
139
  - !ruby/object:Gem::Version
140
+ hash: 3
141
+ segments:
142
+ - 0
114
143
  version: "0"
115
144
  requirements: []
116
145
 
117
146
  rubyforge_project: mongoid_followable
118
- rubygems_version: 1.6.2
147
+ rubygems_version: 1.4.1
119
148
  signing_key:
120
149
  specification_version: 3
121
150
  summary: adds following feature to models