mongoid_followable 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/misc.xml +1 -1
- data/.idea/workspace.xml +73 -40
- data/README.rdoc +6 -1
- data/lib/mongoid_followable/version.rb +1 -1
- data/mongoid_followable.gemspec +4 -4
- metadata +29 -7
data/.idea/misc.xml
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
<component name="DependencyValidationManager">
|
4
4
|
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
5
5
|
</component>
|
6
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.2-
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.2-p136" project-jdk-type="RUBY_SDK" />
|
7
7
|
</project>
|
8
8
|
|
data/.idea/workspace.xml
CHANGED
@@ -2,14 +2,8 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="90bdec60-890b-4083-b05d-2f665a1f4d70" name="Default" comment="">
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
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
5
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mongoid_followable/version.rb" afterPath="$PROJECT_DIR$/lib/mongoid_followable/version.rb" />
|
11
6
|
<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
7
|
</list>
|
14
8
|
<ignored path="mongoid_followable.iws" />
|
15
9
|
<ignored path=".idea/workspace.xml" />
|
@@ -32,7 +26,44 @@
|
|
32
26
|
<favorites_list name="mongoid_followable" />
|
33
27
|
</component>
|
34
28
|
<component name="FileEditorManager">
|
35
|
-
<leaf
|
29
|
+
<leaf>
|
30
|
+
<file leaf-file-name="followable_spec.rb" pinned="false" current="false" current-in-tab="false">
|
31
|
+
<entry file="file://$PROJECT_DIR$/spec/mongoid/followable_spec.rb">
|
32
|
+
<provider selected="true" editor-type-id="text-editor">
|
33
|
+
<state line="9" column="38" selection-start="127" selection-end="127" vertical-scroll-proportion="0.0">
|
34
|
+
<folding />
|
35
|
+
</state>
|
36
|
+
</provider>
|
37
|
+
</entry>
|
38
|
+
</file>
|
39
|
+
<file leaf-file-name="mongoid_followable.gemspec" pinned="false" current="true" current-in-tab="true">
|
40
|
+
<entry file="file://$PROJECT_DIR$/mongoid_followable.gemspec">
|
41
|
+
<provider selected="true" editor-type-id="text-editor">
|
42
|
+
<state line="8" column="29" selection-start="292" selection-end="292" vertical-scroll-proportion="0.17366137">
|
43
|
+
<folding />
|
44
|
+
</state>
|
45
|
+
</provider>
|
46
|
+
</entry>
|
47
|
+
</file>
|
48
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
49
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/version.rb">
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
51
|
+
<state line="2" column="20" selection-start="55" selection-end="55" vertical-scroll-proportion="0.0">
|
52
|
+
<folding />
|
53
|
+
</state>
|
54
|
+
</provider>
|
55
|
+
</entry>
|
56
|
+
</file>
|
57
|
+
<file leaf-file-name="followable.rb" pinned="false" current="false" current-in-tab="false">
|
58
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/followable.rb">
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
60
|
+
<state line="10" column="29" selection-start="358" selection-end="358" vertical-scroll-proportion="0.0">
|
61
|
+
<folding />
|
62
|
+
</state>
|
63
|
+
</provider>
|
64
|
+
</entry>
|
65
|
+
</file>
|
66
|
+
</leaf>
|
36
67
|
</component>
|
37
68
|
<component name="FindManager">
|
38
69
|
<FindUsagesManager>
|
@@ -54,13 +85,13 @@
|
|
54
85
|
<option value="$PROJECT_DIR$/app/models/follow.rb" />
|
55
86
|
<option value="$PROJECT_DIR$/lib/mongoid_followable.rb" />
|
56
87
|
<option value="$PROJECT_DIR$/spec/models/user.rb" />
|
57
|
-
<option value="$PROJECT_DIR$/lib/mongoid_followable/version.rb" />
|
58
|
-
<option value="$PROJECT_DIR$/mongoid_followable.gemspec" />
|
59
88
|
<option value="$PROJECT_DIR$/spec/models/group.rb" />
|
60
89
|
<option value="$PROJECT_DIR$/spec/mongoid/followable_spec.rb" />
|
61
90
|
<option value="$PROJECT_DIR$/lib/mongoid_followable/followable.rb" />
|
62
91
|
<option value="$PROJECT_DIR$/lib/mongoid_followable/follower.rb" />
|
63
92
|
<option value="$PROJECT_DIR$/README.rdoc" />
|
93
|
+
<option value="$PROJECT_DIR$/lib/mongoid_followable/version.rb" />
|
94
|
+
<option value="$PROJECT_DIR$/mongoid_followable.gemspec" />
|
64
95
|
</list>
|
65
96
|
</option>
|
66
97
|
</component>
|
@@ -91,6 +122,7 @@
|
|
91
122
|
</navigator>
|
92
123
|
<panes>
|
93
124
|
<pane id="Favorites" />
|
125
|
+
<pane id="Scope" />
|
94
126
|
<pane id="ProjectPane">
|
95
127
|
<subPane>
|
96
128
|
<PATH>
|
@@ -154,14 +186,9 @@
|
|
154
186
|
<option name="myItemId" value="app" />
|
155
187
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
156
188
|
</PATH_ELEMENT>
|
157
|
-
<PATH_ELEMENT>
|
158
|
-
<option name="myItemId" value="models" />
|
159
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
160
|
-
</PATH_ELEMENT>
|
161
189
|
</PATH>
|
162
190
|
</subPane>
|
163
191
|
</pane>
|
164
|
-
<pane id="Scope" />
|
165
192
|
</panes>
|
166
193
|
</component>
|
167
194
|
<component name="RecentsManager">
|
@@ -216,14 +243,14 @@
|
|
216
243
|
<servers />
|
217
244
|
</component>
|
218
245
|
<component name="ToolWindowManager">
|
219
|
-
<frame x="0" y="24" width="
|
220
|
-
<editor active="
|
246
|
+
<frame x="0" y="24" width="1600" height="852" extended-state="0" />
|
247
|
+
<editor active="true" />
|
221
248
|
<layout>
|
222
249
|
<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" />
|
223
250
|
<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" />
|
224
251
|
<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" />
|
225
252
|
<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" />
|
226
|
-
<window_info id="Project" active="
|
253
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.17493638" sideWeight="0.67128986" order="0" side_tool="false" content_ui="tabs" />
|
227
254
|
<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" />
|
228
255
|
<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" />
|
229
256
|
<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" />
|
@@ -279,78 +306,84 @@
|
|
279
306
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
280
307
|
</provider>
|
281
308
|
</entry>
|
282
|
-
<entry file="file://$PROJECT_DIR$/
|
309
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
283
310
|
<provider selected="true" editor-type-id="text-editor">
|
284
|
-
<state line="
|
311
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
285
312
|
</provider>
|
286
313
|
</entry>
|
287
|
-
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable.rb">
|
314
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/follower.rb">
|
288
315
|
<provider selected="true" editor-type-id="text-editor">
|
289
|
-
<state line="
|
316
|
+
<state line="9" column="29" selection-start="327" selection-end="327" vertical-scroll-proportion="0.19911504">
|
317
|
+
<folding />
|
318
|
+
</state>
|
290
319
|
</provider>
|
291
320
|
</entry>
|
292
|
-
<entry file="file://$PROJECT_DIR$/
|
321
|
+
<entry file="file://$PROJECT_DIR$/app/models/follow.rb">
|
293
322
|
<provider selected="true" editor-type-id="text-editor">
|
294
|
-
<state line="0" column="0" selection-start="0" selection-end="
|
323
|
+
<state line="0" column="0" selection-start="0" selection-end="368" vertical-scroll-proportion="0.0">
|
324
|
+
<folding />
|
325
|
+
</state>
|
295
326
|
</provider>
|
296
327
|
</entry>
|
297
|
-
<entry file="file://$PROJECT_DIR$/
|
328
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
298
329
|
<provider selected="true" editor-type-id="text-editor">
|
299
|
-
<state line="
|
330
|
+
<state line="13" column="25" selection-start="317" selection-end="317" vertical-scroll-proportion="0.2821997">
|
300
331
|
<folding />
|
301
332
|
</state>
|
302
333
|
</provider>
|
303
334
|
</entry>
|
304
|
-
<entry file="file://$PROJECT_DIR$/
|
335
|
+
<entry file="file://$PROJECT_DIR$/spec/models/group.rb">
|
305
336
|
<provider selected="true" editor-type-id="text-editor">
|
306
|
-
<state line="2" column="
|
337
|
+
<state line="2" column="29" selection-start="0" selection-end="73" vertical-scroll-proportion="0.04341534">
|
307
338
|
<folding />
|
308
339
|
</state>
|
309
340
|
</provider>
|
310
341
|
</entry>
|
311
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
342
|
+
<entry file="file://$PROJECT_DIR$/spec/models/user.rb">
|
312
343
|
<provider selected="true" editor-type-id="text-editor">
|
313
|
-
<state line="0" column="0" selection-start="0" selection-end="
|
344
|
+
<state line="0" column="0" selection-start="0" selection-end="100" vertical-scroll-proportion="0.0">
|
345
|
+
<folding />
|
346
|
+
</state>
|
314
347
|
</provider>
|
315
348
|
</entry>
|
316
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
349
|
+
<entry file="file://$PROJECT_DIR$/spec/mongoid/followable_spec.rb">
|
317
350
|
<provider selected="true" editor-type-id="text-editor">
|
318
|
-
<state line="
|
351
|
+
<state line="9" column="38" selection-start="127" selection-end="127" vertical-scroll-proportion="0.0">
|
319
352
|
<folding />
|
320
353
|
</state>
|
321
354
|
</provider>
|
322
355
|
</entry>
|
323
|
-
<entry file="file://$PROJECT_DIR$/
|
356
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable.rb">
|
324
357
|
<provider selected="true" editor-type-id="text-editor">
|
325
|
-
<state line="
|
358
|
+
<state line="1" column="65" selection-start="140" selection-end="140" vertical-scroll-proportion="0.02170767">
|
326
359
|
<folding />
|
327
360
|
</state>
|
328
361
|
</provider>
|
329
362
|
</entry>
|
330
363
|
<entry file="file://$PROJECT_DIR$/README.rdoc">
|
331
364
|
<provider selected="true" editor-type-id="text-editor">
|
332
|
-
<state line="
|
365
|
+
<state line="2" column="99" selection-start="121" selection-end="121" vertical-scroll-proportion="0.04341534">
|
333
366
|
<folding />
|
334
367
|
</state>
|
335
368
|
</provider>
|
336
369
|
</entry>
|
337
|
-
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/
|
370
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/followable.rb">
|
338
371
|
<provider selected="true" editor-type-id="text-editor">
|
339
|
-
<state line="
|
372
|
+
<state line="10" column="29" selection-start="358" selection-end="358" vertical-scroll-proportion="0.0">
|
340
373
|
<folding />
|
341
374
|
</state>
|
342
375
|
</provider>
|
343
376
|
</entry>
|
344
|
-
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/
|
377
|
+
<entry file="file://$PROJECT_DIR$/lib/mongoid_followable/version.rb">
|
345
378
|
<provider selected="true" editor-type-id="text-editor">
|
346
|
-
<state line="
|
379
|
+
<state line="2" column="20" selection-start="55" selection-end="55" vertical-scroll-proportion="0.0">
|
347
380
|
<folding />
|
348
381
|
</state>
|
349
382
|
</provider>
|
350
383
|
</entry>
|
351
|
-
<entry file="file://$PROJECT_DIR$/
|
384
|
+
<entry file="file://$PROJECT_DIR$/mongoid_followable.gemspec">
|
352
385
|
<provider selected="true" editor-type-id="text-editor">
|
353
|
-
<state line="
|
386
|
+
<state line="8" column="29" selection-start="292" selection-end="292" vertical-scroll-proportion="0.17366137">
|
354
387
|
<folding />
|
355
388
|
</state>
|
356
389
|
</provider>
|
data/README.rdoc
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
= mongoid_followable
|
2
2
|
|
3
|
+
Please refer to mongo_followable[https://github.com/lastomato/mongo_followable] for latest version.
|
4
|
+
|
3
5
|
== Installation
|
4
6
|
|
5
7
|
In console:
|
6
8
|
gem install mongoid_followable
|
7
9
|
or in Gemfile:
|
8
|
-
gem 'mongoid_followable', "~> 0.1.
|
10
|
+
gem 'mongoid_followable', "~> 0.1.8"
|
9
11
|
|
10
12
|
== Usage
|
11
13
|
|
@@ -99,6 +101,9 @@ And see what the common followers/followees are:
|
|
99
101
|
* most/least followed/following #FINISHED
|
100
102
|
* add authorization to followable models #FINISHED#
|
101
103
|
* common followers/followees #FINISHED#
|
104
|
+
* add support for mongo_mapper in next version
|
105
|
+
|
106
|
+
!!If you have any advice, plese do not hesitate to tell me!!
|
102
107
|
|
103
108
|
== Thanks
|
104
109
|
|
data/mongoid_followable.gemspec
CHANGED
@@ -6,17 +6,17 @@ 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-
|
9
|
+
s.date = "2011-11-06"
|
10
10
|
s.authors = ["Jie Fan"]
|
11
11
|
s.email = ["ustc.flyingfox@gmail.com"]
|
12
12
|
s.homepage = "https://github.com/lastomato/mongoid_followable"
|
13
13
|
s.summary = %q{ adds following feature to models }
|
14
|
-
s.description = %q{
|
14
|
+
s.description = %q{ Please refer to http://rubygems.org/gems/mongo_followable for latest versions }
|
15
15
|
|
16
16
|
s.rubyforge_project = "mongoid_followable"
|
17
17
|
|
18
|
-
s.
|
19
|
-
s.
|
18
|
+
s.add_development_dependency("mongoid", "~> 2.0.1")
|
19
|
+
s.add_development_dependency("bson_ext", "~> 1.3.0")
|
20
20
|
s.add_development_dependency("database_cleaner", "~> 0.6")
|
21
21
|
s.add_development_dependency("rspec", "~> 2.6")
|
22
22
|
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_followable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 9
|
9
|
+
version: 0.1.9
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Jie Fan
|
@@ -10,7 +14,7 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-
|
17
|
+
date: 2011-11-06 00:00:00 -04:00
|
14
18
|
default_executable:
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
@@ -21,8 +25,12 @@ dependencies:
|
|
21
25
|
requirements:
|
22
26
|
- - ~>
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 0
|
31
|
+
- 1
|
24
32
|
version: 2.0.1
|
25
|
-
type: :
|
33
|
+
type: :development
|
26
34
|
version_requirements: *id001
|
27
35
|
- !ruby/object:Gem::Dependency
|
28
36
|
name: bson_ext
|
@@ -32,8 +40,12 @@ dependencies:
|
|
32
40
|
requirements:
|
33
41
|
- - ~>
|
34
42
|
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 1
|
45
|
+
- 3
|
46
|
+
- 0
|
35
47
|
version: 1.3.0
|
36
|
-
type: :
|
48
|
+
type: :development
|
37
49
|
version_requirements: *id002
|
38
50
|
- !ruby/object:Gem::Dependency
|
39
51
|
name: database_cleaner
|
@@ -43,6 +55,9 @@ dependencies:
|
|
43
55
|
requirements:
|
44
56
|
- - ~>
|
45
57
|
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 6
|
46
61
|
version: "0.6"
|
47
62
|
type: :development
|
48
63
|
version_requirements: *id003
|
@@ -54,10 +69,13 @@ dependencies:
|
|
54
69
|
requirements:
|
55
70
|
- - ~>
|
56
71
|
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 2
|
74
|
+
- 6
|
57
75
|
version: "2.6"
|
58
76
|
type: :development
|
59
77
|
version_requirements: *id004
|
60
|
-
description: "
|
78
|
+
description: " Please refer to http://rubygems.org/gems/mongo_followable for latest versions "
|
61
79
|
email:
|
62
80
|
- ustc.flyingfox@gmail.com
|
63
81
|
executables: []
|
@@ -105,17 +123,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
123
|
requirements:
|
106
124
|
- - ">="
|
107
125
|
- !ruby/object:Gem::Version
|
126
|
+
segments:
|
127
|
+
- 0
|
108
128
|
version: "0"
|
109
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
130
|
none: false
|
111
131
|
requirements:
|
112
132
|
- - ">="
|
113
133
|
- !ruby/object:Gem::Version
|
134
|
+
segments:
|
135
|
+
- 0
|
114
136
|
version: "0"
|
115
137
|
requirements: []
|
116
138
|
|
117
139
|
rubyforge_project: mongoid_followable
|
118
|
-
rubygems_version: 1.
|
140
|
+
rubygems_version: 1.3.7
|
119
141
|
signing_key:
|
120
142
|
specification_version: 3
|
121
143
|
summary: adds following feature to models
|