socialization 0.4.0 → 0.5.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/.gitignore +5 -1
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +246 -0
  4. data/demo/{demo_app/.gitignore → .gitignore} +0 -0
  5. data/demo/{demo_app/Gemfile → Gemfile} +1 -1
  6. data/demo/{demo_app/README.rdoc → README.rdoc} +0 -0
  7. data/demo/{demo_app/Rakefile → Rakefile} +0 -0
  8. data/demo/{demo_app/app → app}/assets/images/rails.png +0 -0
  9. data/demo/{demo_app/app → app}/assets/javascripts/application.js +0 -0
  10. data/demo/{demo_app/app → app}/assets/stylesheets/application.css +0 -0
  11. data/demo/{demo_app/app → app}/controllers/application_controller.rb +0 -0
  12. data/demo/{demo_app/app → app}/helpers/application_helper.rb +0 -0
  13. data/demo/{demo_app/app → app}/mailers/.gitkeep +0 -0
  14. data/demo/{demo_app/app → app}/models/.gitkeep +0 -0
  15. data/demo/{demo_app/app → app}/models/celebrity.rb +0 -0
  16. data/demo/{demo_app/app → app}/models/comment.rb +0 -0
  17. data/demo/app/models/follow.rb +2 -0
  18. data/demo/app/models/like.rb +2 -0
  19. data/demo/app/models/mention.rb +2 -0
  20. data/demo/{demo_app/app → app}/models/movie.rb +0 -0
  21. data/demo/{demo_app/app → app}/models/user.rb +0 -0
  22. data/demo/{demo_app/app → app}/views/layouts/application.html.erb +0 -0
  23. data/demo/{demo_app/config.ru → config.ru} +0 -0
  24. data/demo/{demo_app/config → config}/application.rb +0 -0
  25. data/demo/{demo_app/config → config}/boot.rb +0 -0
  26. data/demo/{demo_app/config → config}/database.yml +0 -0
  27. data/demo/{demo_app/config → config}/environment.rb +0 -0
  28. data/demo/{demo_app/config → config}/environments/development.rb +0 -0
  29. data/demo/{demo_app/config → config}/environments/production.rb +0 -0
  30. data/demo/{demo_app/config → config}/environments/test.rb +0 -0
  31. data/demo/{demo_app/config → config}/initializers/backtrace_silencers.rb +0 -0
  32. data/demo/{demo_app/config → config}/initializers/inflections.rb +0 -0
  33. data/demo/{demo_app/config → config}/initializers/mime_types.rb +0 -0
  34. data/demo/{demo_app/config → config}/initializers/secret_token.rb +0 -0
  35. data/demo/{demo_app/config → config}/initializers/session_store.rb +1 -1
  36. data/demo/{demo_app/config → config}/initializers/wrap_parameters.rb +1 -1
  37. data/demo/{demo_app/config → config}/locales/en.yml +0 -0
  38. data/demo/{demo_app/config → config}/routes.rb +0 -0
  39. data/demo/{demo_app/db → db}/migrate/20120115051222_create_users.rb +0 -0
  40. data/demo/{demo_app/db → db}/migrate/20120115051234_create_movies.rb +0 -0
  41. data/demo/{demo_app/db → db}/migrate/20120115051255_create_celebrities.rb +0 -0
  42. data/demo/{demo_app/db → db}/migrate/20120115054646_create_follows.rb +0 -0
  43. data/demo/{demo_app/db → db}/migrate/20120115054647_create_likes.rb +0 -0
  44. data/demo/{demo_app/db → db}/migrate/20120221200644_create_mentions.rb +0 -0
  45. data/demo/{demo_app/db → db}/migrate/20120221202703_create_comments.rb +0 -0
  46. data/demo/{demo_app/db → db}/schema.rb +0 -1
  47. data/demo/{demo_app/db → db}/seeds.rb +0 -0
  48. data/demo/{demo_app/lib → lib}/assets/.gitkeep +0 -0
  49. data/demo/{demo_app/lib → lib}/tasks/.gitkeep +0 -0
  50. data/demo/{demo_app/public → public}/404.html +0 -0
  51. data/demo/{demo_app/public → public}/422.html +0 -0
  52. data/demo/{demo_app/public → public}/500.html +0 -0
  53. data/demo/{demo_app/public → public}/favicon.ico +0 -0
  54. data/demo/{demo_app/public → public}/index.html +0 -0
  55. data/demo/{demo_app/public → public}/robots.txt +0 -0
  56. data/demo/{demo_app/script → script}/rails +0 -0
  57. data/demo/{demo_app/test → test}/fixtures/.gitkeep +0 -0
  58. data/demo/{demo_app/test → test}/fixtures/celebrities.yml +0 -0
  59. data/demo/{demo_app/test → test}/fixtures/movies.yml +0 -0
  60. data/demo/{demo_app/test → test}/fixtures/users.yml +0 -0
  61. data/demo/{demo_app/test → test}/functional/.gitkeep +0 -0
  62. data/demo/{demo_app/test → test}/integration/.gitkeep +0 -0
  63. data/demo/{demo_app/test → test}/performance/browsing_test.rb +0 -0
  64. data/demo/{demo_app/test → test}/test_helper.rb +0 -0
  65. data/demo/{demo_app/test → test}/unit/.gitkeep +0 -0
  66. data/demo/{demo_app/test → test}/unit/celebrity_test.rb +0 -0
  67. data/demo/{demo_app/test → test}/unit/movie_test.rb +0 -0
  68. data/demo/{demo_app/test → test}/unit/user_test.rb +0 -0
  69. data/demo/{demo_app/vendor → vendor}/assets/javascripts/.gitkeep +0 -0
  70. data/demo/{demo_app/vendor → vendor}/assets/stylesheets/.gitkeep +0 -0
  71. data/demo/{demo_app/vendor → vendor}/plugins/.gitkeep +0 -0
  72. data/lib/generators/socialization/socialization_generator.rb +20 -9
  73. data/{generators/socialization/templates → lib/generators/socialization/templates/active_record}/migration_follows.rb +0 -0
  74. data/{generators/socialization/templates → lib/generators/socialization/templates/active_record}/migration_likes.rb +0 -0
  75. data/{generators/socialization/templates → lib/generators/socialization/templates/active_record}/migration_mentions.rb +0 -0
  76. data/lib/generators/socialization/templates/active_record/model_follow.rb +2 -0
  77. data/lib/generators/socialization/templates/active_record/model_like.rb +2 -0
  78. data/lib/generators/socialization/templates/active_record/model_mention.rb +2 -0
  79. data/lib/socialization.rb +3 -5
  80. data/lib/socialization/actors/follower.rb +74 -0
  81. data/lib/socialization/actors/liker.rb +74 -0
  82. data/lib/socialization/actors/mentioner.rb +74 -0
  83. data/lib/socialization/acts_as_helpers.rb +43 -0
  84. data/lib/socialization/config.rb +45 -0
  85. data/lib/socialization/helpers/string.rb +17 -0
  86. data/lib/socialization/stores/active_record/follow_store.rb +143 -0
  87. data/lib/socialization/stores/active_record/like_store.rb +143 -0
  88. data/lib/socialization/stores/active_record/mention_store.rb +143 -0
  89. data/lib/socialization/stores/redis/base.rb +8 -0
  90. data/lib/socialization/stores/redis/config.rb +11 -0
  91. data/lib/socialization/stores/redis/follow_store.rb +126 -0
  92. data/lib/socialization/stores/redis/like_store.rb +126 -0
  93. data/lib/socialization/stores/redis/mention_store.rb +126 -0
  94. data/lib/socialization/version.rb +1 -1
  95. data/lib/socialization/victims/followable.rb +38 -0
  96. data/lib/socialization/victims/likeable.rb +38 -0
  97. data/lib/socialization/victims/mentionable.rb +38 -0
  98. data/socialization.gemspec +3 -3
  99. data/test/actors/follower_test.rb +74 -0
  100. data/test/actors/liker_test.rb +74 -0
  101. data/test/actors/mentioner_test.rb +74 -0
  102. data/test/stores/active_record/follow_store_test.rb +121 -0
  103. data/test/stores/active_record/like_store_test.rb +121 -0
  104. data/test/stores/active_record/mention_store_test.rb +121 -0
  105. data/test/stores/redis/config_test.rb +30 -0
  106. data/test/stores/redis/follow_store_test.rb +153 -0
  107. data/test/stores/redis/like_store_test.rb +153 -0
  108. data/test/stores/redis/mention_store_test.rb +153 -0
  109. data/test/string_test.rb +13 -0
  110. data/test/test_helper.rb +70 -12
  111. data/test/victims/followable_test.rb +34 -0
  112. data/test/victims/likeable_test.rb +34 -0
  113. data/test/victims/mentionable_test.rb +34 -0
  114. data/test/world_test.rb +80 -69
  115. metadata +261 -176
  116. data/README.rdoc +0 -186
  117. data/demo/demo_app/app/models/follow.rb +0 -3
  118. data/demo/demo_app/app/models/like.rb +0 -3
  119. data/demo/demo_app/app/models/mention.rb +0 -3
  120. data/demo/demo_app/doc/README_FOR_APP +0 -2
  121. data/gemfiles/activerecord30.gemfile +0 -6
  122. data/gemfiles/activerecord30.gemfile.lock +0 -23
  123. data/gemfiles/activerecord31.gemfile +0 -6
  124. data/gemfiles/activerecord31.gemfile.lock +0 -25
  125. data/gemfiles/activerecord32.gemfile +0 -6
  126. data/gemfiles/activerecord32.gemfile.lock +0 -25
  127. data/generators/socialization/USAGE +0 -1
  128. data/generators/socialization/socialization_generator.rb +0 -15
  129. data/generators/socialization/templates/model_follow.rb +0 -3
  130. data/generators/socialization/templates/model_like.rb +0 -3
  131. data/generators/socialization/templates/model_mention.rb +0 -3
  132. data/lib/socialization/follow_store.rb +0 -14
  133. data/lib/socialization/followable.rb +0 -34
  134. data/lib/socialization/follower.rb +0 -50
  135. data/lib/socialization/hello.rb +0 -53
  136. data/lib/socialization/like_store.rb +0 -14
  137. data/lib/socialization/likeable.rb +0 -34
  138. data/lib/socialization/liker.rb +0 -54
  139. data/lib/socialization/mention_store.rb +0 -14
  140. data/lib/socialization/mentionable.rb +0 -36
  141. data/lib/socialization/mentioner.rb +0 -54
  142. data/test/follow_test.rb +0 -125
  143. data/test/like_test.rb +0 -125
  144. data/test/mention_test.rb +0 -116
metadata CHANGED
@@ -1,230 +1,315 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: socialization
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 2135628231
5
+ prerelease: 6
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 0
10
+ - beta
11
+ version: 0.5.0.beta
6
12
  platform: ruby
7
- authors:
13
+ authors:
8
14
  - Carl Mercier
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
- date: 2012-02-25 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2012-06-06 00:00:00 -04:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
15
23
  name: activerecord
16
- requirement: &70105380527140 !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
17
26
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
22
34
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70105380527140
25
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
26
37
  name: appraisal
27
- requirement: &70105380526160 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
33
48
  type: :development
34
- prerelease: false
35
- version_requirements: *70105380526160
36
- - !ruby/object:Gem::Dependency
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
37
51
  name: logger
38
- requirement: &70105380525500 !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
39
54
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
44
62
  type: :development
45
- prerelease: false
46
- version_requirements: *70105380525500
47
- - !ruby/object:Gem::Dependency
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
48
65
  name: mocha
49
- requirement: &70105380525080 !ruby/object:Gem::Requirement
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
50
68
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
55
76
  type: :development
56
- prerelease: false
57
- version_requirements: *70105380525080
58
- - !ruby/object:Gem::Dependency
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
59
79
  name: shoulda
60
- requirement: &70105380524440 !ruby/object:Gem::Requirement
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
61
82
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
66
90
  type: :development
67
- prerelease: false
68
- version_requirements: *70105380524440
69
- - !ruby/object:Gem::Dependency
91
+ version_requirements: *id005
92
+ - !ruby/object:Gem::Dependency
70
93
  name: sqlite3
71
- requirement: &70105380523500 !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id006 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
102
+ - 0
103
+ version: "0"
104
+ type: :development
105
+ version_requirements: *id006
106
+ - !ruby/object:Gem::Dependency
107
+ name: yard
108
+ prerelease: false
109
+ requirement: &id007 !ruby/object:Gem::Requirement
72
110
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ hash: 3
115
+ segments:
116
+ - 0
117
+ version: "0"
77
118
  type: :development
119
+ version_requirements: *id007
120
+ - !ruby/object:Gem::Dependency
121
+ name: mock_redis
78
122
  prerelease: false
79
- version_requirements: *70105380523500
80
- description: Socialization allows any model to Follow and/or Like any other model.
81
- This is accomplished through a double polymorphic relationship on the Follow and
82
- Like models. But you don't need to know that since all the complexity is hidden
83
- from you.
123
+ requirement: &id008 !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
131
+ version: "0"
132
+ type: :development
133
+ version_requirements: *id008
134
+ description: Socialization allows any model to Follow and/or Like any other model. This is accomplished through a double polymorphic relationship on the Follow and Like models. But you don't need to know that since all the complexity is hidden from you.
84
135
  email: carl@carlmercier.com
85
136
  executables: []
137
+
86
138
  extensions: []
87
- extra_rdoc_files:
88
- - README.rdoc
89
- files:
139
+
140
+ extra_rdoc_files: []
141
+
142
+ files:
90
143
  - .gitignore
91
144
  - .travis.yml
92
145
  - Appraisals
146
+ - CHANGELOG.md
93
147
  - Gemfile
94
148
  - LICENSE
95
- - README.rdoc
149
+ - README.md
96
150
  - Rakefile
97
- - demo/demo_app/.gitignore
98
- - demo/demo_app/Gemfile
99
- - demo/demo_app/README.rdoc
100
- - demo/demo_app/Rakefile
101
- - demo/demo_app/app/assets/images/rails.png
102
- - demo/demo_app/app/assets/javascripts/application.js
103
- - demo/demo_app/app/assets/stylesheets/application.css
104
- - demo/demo_app/app/controllers/application_controller.rb
105
- - demo/demo_app/app/helpers/application_helper.rb
106
- - demo/demo_app/app/mailers/.gitkeep
107
- - demo/demo_app/app/models/.gitkeep
108
- - demo/demo_app/app/models/celebrity.rb
109
- - demo/demo_app/app/models/comment.rb
110
- - demo/demo_app/app/models/follow.rb
111
- - demo/demo_app/app/models/like.rb
112
- - demo/demo_app/app/models/mention.rb
113
- - demo/demo_app/app/models/movie.rb
114
- - demo/demo_app/app/models/user.rb
115
- - demo/demo_app/app/views/layouts/application.html.erb
116
- - demo/demo_app/config.ru
117
- - demo/demo_app/config/application.rb
118
- - demo/demo_app/config/boot.rb
119
- - demo/demo_app/config/database.yml
120
- - demo/demo_app/config/environment.rb
121
- - demo/demo_app/config/environments/development.rb
122
- - demo/demo_app/config/environments/production.rb
123
- - demo/demo_app/config/environments/test.rb
124
- - demo/demo_app/config/initializers/backtrace_silencers.rb
125
- - demo/demo_app/config/initializers/inflections.rb
126
- - demo/demo_app/config/initializers/mime_types.rb
127
- - demo/demo_app/config/initializers/secret_token.rb
128
- - demo/demo_app/config/initializers/session_store.rb
129
- - demo/demo_app/config/initializers/wrap_parameters.rb
130
- - demo/demo_app/config/locales/en.yml
131
- - demo/demo_app/config/routes.rb
132
- - demo/demo_app/db/migrate/20120115051222_create_users.rb
133
- - demo/demo_app/db/migrate/20120115051234_create_movies.rb
134
- - demo/demo_app/db/migrate/20120115051255_create_celebrities.rb
135
- - demo/demo_app/db/migrate/20120115054646_create_follows.rb
136
- - demo/demo_app/db/migrate/20120115054647_create_likes.rb
137
- - demo/demo_app/db/migrate/20120221200644_create_mentions.rb
138
- - demo/demo_app/db/migrate/20120221202703_create_comments.rb
139
- - demo/demo_app/db/schema.rb
140
- - demo/demo_app/db/seeds.rb
141
- - demo/demo_app/doc/README_FOR_APP
142
- - demo/demo_app/lib/assets/.gitkeep
143
- - demo/demo_app/lib/tasks/.gitkeep
144
- - demo/demo_app/public/404.html
145
- - demo/demo_app/public/422.html
146
- - demo/demo_app/public/500.html
147
- - demo/demo_app/public/favicon.ico
148
- - demo/demo_app/public/index.html
149
- - demo/demo_app/public/robots.txt
150
- - demo/demo_app/script/rails
151
- - demo/demo_app/test/fixtures/.gitkeep
152
- - demo/demo_app/test/fixtures/celebrities.yml
153
- - demo/demo_app/test/fixtures/movies.yml
154
- - demo/demo_app/test/fixtures/users.yml
155
- - demo/demo_app/test/functional/.gitkeep
156
- - demo/demo_app/test/integration/.gitkeep
157
- - demo/demo_app/test/performance/browsing_test.rb
158
- - demo/demo_app/test/test_helper.rb
159
- - demo/demo_app/test/unit/.gitkeep
160
- - demo/demo_app/test/unit/celebrity_test.rb
161
- - demo/demo_app/test/unit/movie_test.rb
162
- - demo/demo_app/test/unit/user_test.rb
163
- - demo/demo_app/vendor/assets/javascripts/.gitkeep
164
- - demo/demo_app/vendor/assets/stylesheets/.gitkeep
165
- - demo/demo_app/vendor/plugins/.gitkeep
166
- - gemfiles/activerecord30.gemfile
167
- - gemfiles/activerecord30.gemfile.lock
168
- - gemfiles/activerecord31.gemfile
169
- - gemfiles/activerecord31.gemfile.lock
170
- - gemfiles/activerecord32.gemfile
171
- - gemfiles/activerecord32.gemfile.lock
172
- - generators/socialization/USAGE
173
- - generators/socialization/socialization_generator.rb
174
- - generators/socialization/templates/migration_follows.rb
175
- - generators/socialization/templates/migration_likes.rb
176
- - generators/socialization/templates/migration_mentions.rb
177
- - generators/socialization/templates/model_follow.rb
178
- - generators/socialization/templates/model_like.rb
179
- - generators/socialization/templates/model_mention.rb
151
+ - demo/.gitignore
152
+ - demo/Gemfile
153
+ - demo/README.rdoc
154
+ - demo/Rakefile
155
+ - demo/app/assets/images/rails.png
156
+ - demo/app/assets/javascripts/application.js
157
+ - demo/app/assets/stylesheets/application.css
158
+ - demo/app/controllers/application_controller.rb
159
+ - demo/app/helpers/application_helper.rb
160
+ - demo/app/mailers/.gitkeep
161
+ - demo/app/models/.gitkeep
162
+ - demo/app/models/celebrity.rb
163
+ - demo/app/models/comment.rb
164
+ - demo/app/models/follow.rb
165
+ - demo/app/models/like.rb
166
+ - demo/app/models/mention.rb
167
+ - demo/app/models/movie.rb
168
+ - demo/app/models/user.rb
169
+ - demo/app/views/layouts/application.html.erb
170
+ - demo/config.ru
171
+ - demo/config/application.rb
172
+ - demo/config/boot.rb
173
+ - demo/config/database.yml
174
+ - demo/config/environment.rb
175
+ - demo/config/environments/development.rb
176
+ - demo/config/environments/production.rb
177
+ - demo/config/environments/test.rb
178
+ - demo/config/initializers/backtrace_silencers.rb
179
+ - demo/config/initializers/inflections.rb
180
+ - demo/config/initializers/mime_types.rb
181
+ - demo/config/initializers/secret_token.rb
182
+ - demo/config/initializers/session_store.rb
183
+ - demo/config/initializers/wrap_parameters.rb
184
+ - demo/config/locales/en.yml
185
+ - demo/config/routes.rb
186
+ - demo/db/migrate/20120115051222_create_users.rb
187
+ - demo/db/migrate/20120115051234_create_movies.rb
188
+ - demo/db/migrate/20120115051255_create_celebrities.rb
189
+ - demo/db/migrate/20120115054646_create_follows.rb
190
+ - demo/db/migrate/20120115054647_create_likes.rb
191
+ - demo/db/migrate/20120221200644_create_mentions.rb
192
+ - demo/db/migrate/20120221202703_create_comments.rb
193
+ - demo/db/schema.rb
194
+ - demo/db/seeds.rb
195
+ - demo/lib/assets/.gitkeep
196
+ - demo/lib/tasks/.gitkeep
197
+ - demo/public/404.html
198
+ - demo/public/422.html
199
+ - demo/public/500.html
200
+ - demo/public/favicon.ico
201
+ - demo/public/index.html
202
+ - demo/public/robots.txt
203
+ - demo/script/rails
204
+ - demo/test/fixtures/.gitkeep
205
+ - demo/test/fixtures/celebrities.yml
206
+ - demo/test/fixtures/movies.yml
207
+ - demo/test/fixtures/users.yml
208
+ - demo/test/functional/.gitkeep
209
+ - demo/test/integration/.gitkeep
210
+ - demo/test/performance/browsing_test.rb
211
+ - demo/test/test_helper.rb
212
+ - demo/test/unit/.gitkeep
213
+ - demo/test/unit/celebrity_test.rb
214
+ - demo/test/unit/movie_test.rb
215
+ - demo/test/unit/user_test.rb
216
+ - demo/vendor/assets/javascripts/.gitkeep
217
+ - demo/vendor/assets/stylesheets/.gitkeep
218
+ - demo/vendor/plugins/.gitkeep
180
219
  - init.rb
181
220
  - lib/generators/socialization/socialization_generator.rb
221
+ - lib/generators/socialization/templates/active_record/migration_follows.rb
222
+ - lib/generators/socialization/templates/active_record/migration_likes.rb
223
+ - lib/generators/socialization/templates/active_record/migration_mentions.rb
224
+ - lib/generators/socialization/templates/active_record/model_follow.rb
225
+ - lib/generators/socialization/templates/active_record/model_like.rb
226
+ - lib/generators/socialization/templates/active_record/model_mention.rb
182
227
  - lib/socialization.rb
183
- - lib/socialization/follow_store.rb
184
- - lib/socialization/followable.rb
185
- - lib/socialization/follower.rb
186
- - lib/socialization/hello.rb
187
- - lib/socialization/like_store.rb
188
- - lib/socialization/likeable.rb
189
- - lib/socialization/liker.rb
190
- - lib/socialization/mention_store.rb
191
- - lib/socialization/mentionable.rb
192
- - lib/socialization/mentioner.rb
228
+ - lib/socialization/actors/follower.rb
229
+ - lib/socialization/actors/liker.rb
230
+ - lib/socialization/actors/mentioner.rb
231
+ - lib/socialization/acts_as_helpers.rb
232
+ - lib/socialization/config.rb
233
+ - lib/socialization/helpers/string.rb
234
+ - lib/socialization/stores/active_record/follow_store.rb
235
+ - lib/socialization/stores/active_record/like_store.rb
236
+ - lib/socialization/stores/active_record/mention_store.rb
237
+ - lib/socialization/stores/redis/base.rb
238
+ - lib/socialization/stores/redis/config.rb
239
+ - lib/socialization/stores/redis/follow_store.rb
240
+ - lib/socialization/stores/redis/like_store.rb
241
+ - lib/socialization/stores/redis/mention_store.rb
193
242
  - lib/socialization/version.rb
243
+ - lib/socialization/victims/followable.rb
244
+ - lib/socialization/victims/likeable.rb
245
+ - lib/socialization/victims/mentionable.rb
194
246
  - socialization.gemspec
195
- - test/follow_test.rb
196
- - test/like_test.rb
197
- - test/mention_test.rb
247
+ - test/actors/follower_test.rb
248
+ - test/actors/liker_test.rb
249
+ - test/actors/mentioner_test.rb
250
+ - test/stores/active_record/follow_store_test.rb
251
+ - test/stores/active_record/like_store_test.rb
252
+ - test/stores/active_record/mention_store_test.rb
253
+ - test/stores/redis/config_test.rb
254
+ - test/stores/redis/follow_store_test.rb
255
+ - test/stores/redis/like_store_test.rb
256
+ - test/stores/redis/mention_store_test.rb
257
+ - test/string_test.rb
198
258
  - test/test_helper.rb
259
+ - test/victims/followable_test.rb
260
+ - test/victims/likeable_test.rb
261
+ - test/victims/mentionable_test.rb
199
262
  - test/world_test.rb
263
+ has_rdoc: false
200
264
  homepage: https://github.com/cmer/socialization
201
265
  licenses: []
266
+
202
267
  post_install_message:
203
- rdoc_options:
204
- - --charset=UTF-8
205
- require_paths:
268
+ rdoc_options: []
269
+
270
+ require_paths:
206
271
  - lib
207
- required_ruby_version: !ruby/object:Gem::Requirement
272
+ required_ruby_version: !ruby/object:Gem::Requirement
208
273
  none: false
209
- requirements:
210
- - - ! '>='
211
- - !ruby/object:Gem::Version
212
- version: '0'
213
- required_rubygems_version: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - ">="
276
+ - !ruby/object:Gem::Version
277
+ hash: 3
278
+ segments:
279
+ - 0
280
+ version: "0"
281
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
282
  none: false
215
- requirements:
216
- - - ! '>='
217
- - !ruby/object:Gem::Version
218
- version: '0'
283
+ requirements:
284
+ - - ">"
285
+ - !ruby/object:Gem::Version
286
+ hash: 25
287
+ segments:
288
+ - 1
289
+ - 3
290
+ - 1
291
+ version: 1.3.1
219
292
  requirements: []
293
+
220
294
  rubyforge_project:
221
- rubygems_version: 1.8.11
295
+ rubygems_version: 1.6.2
222
296
  signing_key:
223
297
  specification_version: 3
224
298
  summary: Easily socialize your app with Likes and Follows
225
- test_files:
226
- - test/follow_test.rb
227
- - test/like_test.rb
228
- - test/mention_test.rb
299
+ test_files:
300
+ - test/actors/follower_test.rb
301
+ - test/actors/liker_test.rb
302
+ - test/actors/mentioner_test.rb
303
+ - test/stores/active_record/follow_store_test.rb
304
+ - test/stores/active_record/like_store_test.rb
305
+ - test/stores/active_record/mention_store_test.rb
306
+ - test/stores/redis/config_test.rb
307
+ - test/stores/redis/follow_store_test.rb
308
+ - test/stores/redis/like_store_test.rb
309
+ - test/stores/redis/mention_store_test.rb
310
+ - test/string_test.rb
229
311
  - test/test_helper.rb
312
+ - test/victims/followable_test.rb
313
+ - test/victims/likeable_test.rb
314
+ - test/victims/mentionable_test.rb
230
315
  - test/world_test.rb