community_engine 3.0.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +4 -1
  3. data/.travis.yml +5 -2
  4. data/CHANGELOG.markdown +270 -0
  5. data/Gemfile +3 -0
  6. data/README.markdown +20 -21
  7. data/Rakefile +8 -6
  8. data/TODO.markdown +3 -0
  9. data/UPGRADING.markdown +46 -36
  10. data/app/assets/javascripts/active_admin.js.coffee +19 -0
  11. data/app/assets/javascripts/ckeditor/configs/ads.js.coffee +175 -0
  12. data/app/assets/javascripts/ckeditor/configs/comments.js.coffee +2 -0
  13. data/app/assets/javascripts/ckeditor/configs/posts.js.coffee +248 -0
  14. data/app/assets/javascripts/ckeditor/rte/rte.ads.js.coffee +7 -0
  15. data/app/assets/javascripts/ckeditor/rte/rte.comments.js.coffee +8 -0
  16. data/app/assets/javascripts/ckeditor/rte/rte.js.coffee +20 -0
  17. data/app/assets/javascripts/ckeditor/rte/rte.posts.js.coffee +14 -0
  18. data/app/assets/javascripts/community_engine.js +114 -123
  19. data/{vendor → app}/assets/javascripts/jcrop/jquery.Jcrop.js +0 -0
  20. data/{vendor → app}/assets/javascripts/jcrop/jquery.color.js +0 -0
  21. data/{vendor → app}/assets/javascripts/tag-it/tag-it.js +0 -0
  22. data/app/assets/stylesheets/active_admin.css.scss +27 -0
  23. data/{vendor → app}/assets/stylesheets/jcrop/Jcrop.gif +0 -0
  24. data/{vendor → app}/assets/stylesheets/jcrop/jquery.Jcrop.min.css +0 -0
  25. data/{vendor → app}/assets/stylesheets/tag-it/tag-it.css +0 -0
  26. data/{vendor → app}/assets/stylesheets/tag-it/tagit.ui-zendesk.css +0 -0
  27. data/app/controllers/activities_controller.rb +4 -4
  28. data/app/controllers/albums_controller.rb +13 -18
  29. data/app/controllers/authorizations_controller.rb +1 -1
  30. data/app/controllers/base_controller.rb +9 -32
  31. data/app/controllers/categories_controller.rb +1 -78
  32. data/app/controllers/clippings_controller.rb +3 -7
  33. data/app/controllers/comments_controller.rb +4 -24
  34. data/app/controllers/events_controller.rb +3 -12
  35. data/app/controllers/favorites_controller.rb +2 -2
  36. data/app/controllers/forums_controller.rb +5 -9
  37. data/app/controllers/invitations_controller.rb +1 -1
  38. data/app/controllers/messages_controller.rb +4 -8
  39. data/app/controllers/moderators_controller.rb +1 -1
  40. data/app/controllers/monitorships_controller.rb +1 -1
  41. data/app/controllers/pages_controller.rb +0 -62
  42. data/app/controllers/password_resets_controller.rb +2 -2
  43. data/app/controllers/photo_manager_controller.rb +3 -3
  44. data/app/controllers/photos_controller.rb +43 -14
  45. data/app/controllers/posts_controller.rb +7 -14
  46. data/app/controllers/rsvps_controller.rb +3 -3
  47. data/app/controllers/sb_posts_controller.rb +20 -20
  48. data/app/controllers/sessions_controller.rb +1 -1
  49. data/app/controllers/tags_controller.rb +4 -52
  50. data/app/controllers/topics_controller.rb +15 -10
  51. data/app/controllers/users_controller.rb +9 -16
  52. data/app/controllers/votes_controller.rb +2 -2
  53. data/app/helpers/base_helper.rb +4 -14
  54. data/app/models/acts_as_taggable_on/tag.rb +9 -41
  55. data/app/models/clipping.rb +1 -1
  56. data/app/models/forum.rb +2 -2
  57. data/app/models/photo.rb +1 -1
  58. data/app/models/post.rb +1 -1
  59. data/app/models/sb_post.rb +19 -15
  60. data/app/models/topic.rb +10 -10
  61. data/app/models/user.rb +1 -1
  62. data/app/policies/active_admin/page_policy.rb +11 -0
  63. data/app/policies/application_policy.rb +59 -0
  64. data/app/policies/post_policy.rb +13 -0
  65. data/app/policies/sb_post_policy.rb +15 -0
  66. data/app/policies/topic_policy.rb +23 -0
  67. data/app/views/ckeditor/pictures/index.html.haml +15 -0
  68. data/app/views/ckeditor/shared/_asset.html.haml +9 -0
  69. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +14 -0
  70. data/app/views/comments/approve.js.haml +1 -1
  71. data/app/views/comments/create.js.erb +1 -1
  72. data/app/views/comments/edit.js.erb +2 -1
  73. data/app/views/events/_subscribe.html.haml +1 -1
  74. data/app/views/forums/show.html.haml +8 -4
  75. data/app/views/posts/show.html.haml +4 -0
  76. data/app/views/sb_posts/_edit_script.js.erb +2 -3
  77. data/app/views/sb_posts/_reply_script.js.erb +2 -4
  78. data/app/views/sb_posts/_sb_post.html.haml +7 -6
  79. data/app/views/sb_posts/create.js.erb +4 -4
  80. data/app/views/sb_posts/edit.js.erb +2 -1
  81. data/app/views/sessions/_menu_item.html.haml +4 -4
  82. data/app/views/shared/_end_javascript.html.haml +1 -2
  83. data/app/views/shared/_login_sidebar.html.haml +2 -2
  84. data/app/views/tags/show.html.haml +3 -3
  85. data/app/views/topics/show.html.haml +1 -1
  86. data/app/views/users/_profile_user_info_sidebar.html.haml +2 -2
  87. data/app/views/users/destroy.js.erb +3 -0
  88. data/app/views/users/new.html.haml +1 -1
  89. data/app/views/users/show.html.haml +1 -1
  90. data/app/views/users/signup_completed.html.haml +1 -1
  91. data/community_engine.gemspec +14 -11
  92. data/config/initializers/active_admin.rb +239 -0
  93. data/config/initializers/ckeditor.rb +8 -0
  94. data/config/initializers/ransack_bootstrap_fix.rb +25 -0
  95. data/config/locales/de-DE.yml +1 -0
  96. data/config/locales/en.yml +3 -0
  97. data/config/routes.rb +14 -19
  98. data/config/spring.rb +1 -0
  99. data/db/migrate/083_create_active_admin_comments.rb +19 -0
  100. data/lib/community_engine.rb +7 -3
  101. data/lib/community_engine/admin/ads.rb +3 -0
  102. data/lib/community_engine/admin/categories.rb +20 -0
  103. data/lib/community_engine/admin/comments.rb +4 -0
  104. data/lib/community_engine/admin/dashboard.rb +38 -0
  105. data/lib/community_engine/admin/events.rb +3 -0
  106. data/lib/community_engine/admin/forums.rb +3 -0
  107. data/lib/community_engine/admin/homepage_features.rb +25 -0
  108. data/lib/community_engine/admin/metro_areas.rb +4 -0
  109. data/lib/community_engine/admin/pages.rb +26 -0
  110. data/lib/community_engine/admin/posts.rb +92 -0
  111. data/lib/community_engine/admin/tags.rb +21 -0
  112. data/lib/community_engine/admin/users.rb +54 -0
  113. data/lib/community_engine/authenticated_system.rb +5 -20
  114. data/lib/community_engine/engine.rb +5 -0
  115. data/lib/community_engine/version.rb +1 -1
  116. data/lib/resource_feeder/atom.rb +2 -0
  117. data/lib/resource_feeder/rss.rb +2 -0
  118. data/lib/white_list.rb +6 -11
  119. data/test/fixtures/events.yml +10 -0
  120. data/test/fixtures/tags.yml +6 -5
  121. data/test/functional/activities_controller_test.rb +19 -19
  122. data/test/functional/admin/posts_controller_test.rb +16 -0
  123. data/test/functional/admin_controller_test.rb +82 -82
  124. data/test/functional/categories_controller_test.rb +0 -39
  125. data/test/functional/comments_controller_test.rb +14 -7
  126. data/test/functional/favorites_controller_test.rb +15 -16
  127. data/test/functional/pages_controller_test.rb +0 -71
  128. data/test/functional/posts_controller_test.rb +21 -2
  129. data/test/functional/sb_posts_controller_test.rb +3 -3
  130. data/test/functional/sessions_controller_test.rb +2 -2
  131. data/test/functional/tags_controller_test.rb +9 -20
  132. data/test/functional/users_controller_test.rb +0 -8
  133. data/test/functional/votes_controller_test.rb +1 -1
  134. data/test/testapp/config/spring.rb +1 -0
  135. data/test/testapp/db/schema.rb +16 -1
  136. data/test/unit/event_test.rb +1 -1
  137. metadata +204 -170
  138. data/CHANGELOG +0 -144
  139. data/app/controllers/admin_controller.rb +0 -80
  140. data/app/controllers/ads_controller.rb +0 -90
  141. data/app/controllers/homepage_features_controller.rb +0 -74
  142. data/app/controllers/metro_areas_controller.rb +0 -74
  143. data/app/controllers/statistics_controller.rb +0 -35
  144. data/app/views/admin/comments.html.haml +0 -53
  145. data/app/views/admin/events.html.haml +0 -26
  146. data/app/views/admin/messages.html.haml +0 -3
  147. data/app/views/admin/update.js.erb +0 -1
  148. data/app/views/admin/users.html.haml +0 -57
  149. data/app/views/ads/_form.html.haml +0 -21
  150. data/app/views/ads/edit.html.haml +0 -7
  151. data/app/views/ads/index.html.haml +0 -29
  152. data/app/views/ads/new.html.haml +0 -6
  153. data/app/views/ads/show.html.haml +0 -19
  154. data/app/views/categories/_form.html.haml +0 -8
  155. data/app/views/categories/edit.html.haml +0 -4
  156. data/app/views/categories/index.html.haml +0 -20
  157. data/app/views/categories/new.html.haml +0 -4
  158. data/app/views/homepage_features/_form.html.haml +0 -6
  159. data/app/views/homepage_features/edit.html.haml +0 -6
  160. data/app/views/homepage_features/index.html.haml +0 -24
  161. data/app/views/homepage_features/new.html.haml +0 -2
  162. data/app/views/homepage_features/show.html.haml +0 -27
  163. data/app/views/metro_areas/_form.html.haml +0 -6
  164. data/app/views/metro_areas/edit.html.haml +0 -8
  165. data/app/views/metro_areas/index.html.haml +0 -21
  166. data/app/views/metro_areas/new.html.haml +0 -6
  167. data/app/views/metro_areas/show.html.haml +0 -14
  168. data/app/views/pages/_form.html.haml +0 -18
  169. data/app/views/pages/edit.html.haml +0 -4
  170. data/app/views/pages/index.html.haml +0 -34
  171. data/app/views/pages/new.html.haml +0 -7
  172. data/app/views/shared/_admin_nav.html.haml +0 -17
  173. data/app/views/shared/_load_tinymce.js.erb +0 -15
  174. data/app/views/statistics/activities.xml.builder +0 -33
  175. data/app/views/statistics/index.html.haml +0 -48
  176. data/app/views/tags/edit.html.haml +0 -12
  177. data/app/views/tags/manage.html.haml +0 -30
  178. data/app/views/users/update.js.erb +0 -1
  179. data/test/functional/ads_controller_test.rb +0 -51
  180. data/test/functional/homepage_features_controller_test.rb +0 -69
  181. data/test/functional/metro_areas_controller_test.rb +0 -63
  182. data/test/functional/statistics_controller_test.rb +0 -18
  183. data/test/unit/acts_as_taggable_on/tag_test.rb +0 -22
  184. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/README +0 -3
  185. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/Rakefile +0 -22
  186. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/generators/publishing/publishing_generator.rb +0 -34
  187. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/generators/publishing/templates/migration.rb +0 -13
  188. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/install.rb +0 -3
  189. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/test/acts_as_publishable_test.rb +0 -8
  190. data/vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/uninstall.rb +0 -1
  191. data/vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/README +0 -4
  192. data/vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/Rakefile +0 -22
  193. data/vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/atom_feed_test.rb +0 -85
  194. data/vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/rss_feed_test.rb +0 -61
  195. data/vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/test_helper.rb +0 -60
  196. data/vendor/converted2.3plugins_to_lib_leftovers/white_list/README +0 -35
  197. data/vendor/converted2.3plugins_to_lib_leftovers/white_list/Rakefile +0 -22
  198. data/vendor/converted2.3plugins_to_lib_leftovers/white_list/test/white_list_test.rb +0 -120
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmIwMTFiZjVmN2I3MzMzNmJmMDBmZTkzYzRkMTY0YTMwYTMzZTdjNA==
5
- data.tar.gz: !binary |-
6
- NDJlMTkwMWRlZWU4ZjZiNmZjNDFhMjMxY2NkYzMxMDliODk3MzgyYg==
2
+ SHA1:
3
+ metadata.gz: 46df5c73ddb10e25446660370d5c2ac7c95c14b8
4
+ data.tar.gz: 9f81dc5da398387f6574c39f2f7a701293cbb53f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWIwOTM3MjhiNGY3YjVjODFlNzU4NTI3Yzg1ZjdjNTkwMDI5ZjMzOWI0Y2Y1
10
- NmJlMDNkYWQ4MGU0OTNmZTNlZjAzYWM2ODY2NTcwMWY4OTJhYmE4Nzk1Yjgy
11
- Y2JjNzNjMzk2Mzg3MDA1NDkwMDczNDA5MmZjMDYwZGExOTg5NTI=
12
- data.tar.gz: !binary |-
13
- NWRjMWNiMWFlYmY2MjM2YzA1ZDA4OTFlMTBiZmIxZTcwZDUwYTNjMjczYWQ0
14
- NjMxMWJiMGE3YzBiOWZkY2EzMWVjMWFhYjVmZjFkYjQ4MGMyMGYzZWMwNzgy
15
- M2ZiMTBkYTY5ZjVhOGI3YTZhOTgxYTUxOTliMDUxNDhhNzY2ZWY=
6
+ metadata.gz: cde695964a46e53246fb74fd95bf9188e6eff59a7c170e779a8cfebad0d9d0e0ad2f2c334129457dbc52c0ec76c7fd59b54368aaa4dfb0fc81580ec8254964ac
7
+ data.tar.gz: 6af537a9654a3c41b3dc960eaf74a4fa3c15a387887c90a89bcbb5a9a942be0c218c86f8dd679af138036b20aeb0f4f80d76a372a46ca74ae742b9f576f5d44c
data/.gitignore CHANGED
@@ -8,9 +8,12 @@ doc
8
8
  .DS_Store
9
9
  *~
10
10
  .rvmrc
11
+ .ruby-version
11
12
  test/testapp/public/system/
12
13
  coverage
13
14
  bin/
14
15
 
16
+ .idea/
17
+
15
18
  pkg
16
- *.gem
19
+ *.gem
@@ -2,10 +2,13 @@ language: ruby
2
2
 
3
3
  bundler_args: --binstubs
4
4
 
5
+ sudo: false
6
+ cache: bundler
7
+
5
8
  rvm:
6
9
  - 2.0.0
7
10
  - 2.1.1
8
- env: "RAILS_ENV='test' RAILS_VERSION=4.0.0"
9
- env: "RAILS_ENV='test' RAILS_VERSION=4.0.8"
11
+ - 2.2.0
12
+ env: "RAILS_ENV='test' RAILS_VERSION=4.1.0"
10
13
 
11
14
  script: "bundle exec rake db:drop db:create db:migrate test"
@@ -0,0 +1,270 @@
1
+ # Changelog
2
+
3
+ ## 3.2.0
4
+
5
+ * Rails 4.1 compatibility
6
+
7
+ ## 3.1.0
8
+
9
+ * Swapped TinyMCE for CKEditor
10
+
11
+ *bborn*
12
+
13
+ * Start implementing a decent admin backend using ActiveAdmin
14
+
15
+ *bborn*
16
+
17
+ ## 3.0.0
18
+
19
+ * Upgraded to Bootstrap 3
20
+
21
+ *t-bullock*
22
+
23
+ * Upgraded to Font Awesome 4
24
+
25
+ *t-bullock*
26
+
27
+ * Upgraded to Configatron 4
28
+
29
+ *t-bullock*
30
+
31
+ * Various bug fixes
32
+
33
+ ## 3.0.0.pre3
34
+
35
+ * Merged in the jquery-bootstrap branch
36
+
37
+ * Removed old prototype.js code
38
+
39
+ ## 3.0.0.pre2
40
+
41
+ * Upgraded to TinyMCE 4.0.2; made fix to mce_options to make it work.
42
+
43
+ *Polar Humenn*
44
+
45
+ * Removed curblyadvimage from tinymce plugins (not working)
46
+
47
+ *Polar Humenn*
48
+
49
+ * Made fix for Users params when nothing is modified.
50
+
51
+ *Polar Humenn*
52
+
53
+ ## 3.0.0.pre1
54
+
55
+ * Moved forms and links to unobtrusive javascript. Still using Prototype.
56
+
57
+ *Polar Humenn*
58
+
59
+ * Addressed almost all 4.0/4.1 deprecation issues
60
+
61
+ *Polar Humenn*
62
+
63
+ * Migrated to ActiveRecord Query syntax.
64
+
65
+ *Polar Humenn*
66
+
67
+ * Replaced `:method => :put` with `:method => :patch`
68
+
69
+ *Polar Humenn*
70
+
71
+ * Removed `attr_accessible` and `attr_protected` in favor of StrongParameters
72
+
73
+ *Polar Humenn*
74
+
75
+ * Replaced some 2.3 style plugins with bona fide gems, removed, or moved to lib
76
+ * activity_tracker ---> lib
77
+ * acts_as_list ---> gem acts_as_list
78
+ * acts_as_commentable ---> gem acts_as_commentable, `requires db:migrate`
79
+ * acts_as_publishable ---> lib
80
+ * auto_complete ---> lib
81
+ * bborn-acts-as-taggable-on ---> gem acts_as_taggable-on
82
+ * enumerations_mixin ---> gem power_num
83
+ * prototype_legacy_helper ---> lib (about to be removed)
84
+ * resource_feeder ---> lib
85
+ * responds_to_parent ---> removed
86
+ * white_list ---> lib
87
+
88
+ *Polar Humenn*
89
+
90
+ * Replaced or Upgraded gems
91
+ * `gem ransak` replaces `gem meta_search`
92
+ * `gem friendly_id` upgrade requires a `db:migrate` and syntactical changes
93
+
94
+ *Polar Humenn*
95
+
96
+ * Added gems as per directions supporting caching in Rails 4
97
+ * actionpack-action_caching
98
+ * actionpack-page_caching
99
+ * rails-observers
100
+
101
+ *Polar Humenn*
102
+
103
+ ## 2.3.1
104
+
105
+ * Remove automatic loading of omniauth middleware, in favor of letting users load it themselves as specified in the README
106
+ * This was causing bugs with duplicate inits of omniauth-facebook middleware
107
+
108
+ * Add spam comment moderation
109
+
110
+ * Comments identified as spam as held in 'pending status'
111
+
112
+ ## 2.3.0
113
+
114
+ * Upgrade omniauth to 1.1
115
+
116
+ ## 2.0.0.beta4
117
+
118
+ * Replace white_list plugin with Sanitize gem (white_list.rb initizlizer format has changed)
119
+
120
+ * Upgrade to Rails 3.2
121
+
122
+ * Use act_as_taggable_on
123
+
124
+ * Fix photo cropping
125
+
126
+ * Remove theme controller (no more theming functionality)
127
+
128
+ ## 2.0.0.pre
129
+
130
+ * Rails 3.1.0.beta1 compatibility
131
+
132
+ ## 1.9.9
133
+
134
+ * Rails 3.1 compatibility
135
+
136
+ * Ruby 1.9.2 compatibility
137
+
138
+ * Use Paperclip instead of attachment_fu
139
+
140
+ * Add Omniauth
141
+
142
+ * Remove lots of old, unused featured (contests, skills, offerings, etc.)
143
+
144
+ ## 1.2.1
145
+
146
+ * Anonymous forum replies
147
+
148
+ * Turn comment notifications on or off by post
149
+
150
+ * Allow admins/mods to edit comments (they can already delete them)
151
+
152
+ * Fix security vulnerability in AuthenticatedSystem
153
+
154
+ ## 1.2.0
155
+
156
+ * Threaded private messages
157
+
158
+ * Clear cache link in admin dashboard
159
+
160
+ * Add support for using rakismet gem to check comments for spam (see README for instructions)
161
+
162
+ ## 1.1.0
163
+
164
+ * Fixed time_ago formatting problem on user/index
165
+
166
+ * User Authlogic's perishable token for doing password resets (instead of sending them a password)
167
+
168
+ ## 1.0.4.2
169
+
170
+ * Rails 2.3.4 compatibility (all tests pass)
171
+
172
+ *Takk*
173
+
174
+ * Add searchlogic gem dependency
175
+ * searchlogic is awesome, will be using it more in the future, currently just using on `admin_controller#comments`
176
+
177
+ * Add searchlogic to manage tags page, add taggings_count to tags (new migration)
178
+
179
+ ## 1.0.4
180
+
181
+ * Changes to Japanese language translations
182
+
183
+ * Use authlogic instead of restful_authentication.
184
+ * Augthlogic gem now required, new migrations required
185
+
186
+ *jnimety*
187
+
188
+ * Big overhaul of i18n, more international-friendly translation tokens. `en` is now the default locale (instead of `en-US`)
189
+
190
+ *sdecleire*
191
+
192
+ ## 1.0.3
193
+
194
+ * Complete private messages integration, allow sending messages to multiple recipients
195
+
196
+ * Upgrades to Event functionality, including RSVPs
197
+
198
+ *eksatx*
199
+
200
+ * Photo albums, Static pages and messages controller tests
201
+
202
+ *juafrlo*, *eksatx*
203
+
204
+ * calendar_date_select, icalendar gems now required
205
+
206
+ * Added ability to unsubscribe from comment notifications for anonymous comments
207
+
208
+ * ical format output for Events to allow subscriptions
209
+
210
+ ## 1.0.2
211
+
212
+ * Rails 2.3 compatibility
213
+
214
+ * RedCloth no longer required
215
+
216
+ * Fixed swfupload to work with 2.3 and use Rack middleware
217
+
218
+ * Use Desert plugin for code mixing and plugin migrations instead of Engines
219
+
220
+ * Allow moderators/activity owners to delete activities
221
+
222
+ * Only track login activity once per day
223
+
224
+ * Allow anonymous commenters to choose whether they want to receive follow-up comment notices by e-mail
225
+
226
+ * Refactor views to use 'box' helper for logical content modules, allowing better flexibility when trying to customize layouts
227
+
228
+ ## 1.0.1
229
+
230
+ * Fixed error when cropping photos using file system storage
231
+
232
+ * Fixed error on `messages#delete`
233
+
234
+ ## 1.0.0
235
+
236
+ * Postgres compatibility
237
+
238
+ *Johannes*
239
+
240
+ * Some SEO improvements to page titles and urls for showing tags
241
+
242
+ * Fixed a security vulnerability
243
+
244
+ * Updated to newest attachment_fu plugin
245
+ * Note new cropping in geometry strings for photo in application.yml
246
+ * This attachment fu requires ImageMagick 6.4 or greater
247
+
248
+ * Updated swfupload to fix flash 10 compatibility
249
+
250
+ * Added ability to crop profile photo to better fit dimensions (/username/crop_profile_photo)
251
+
252
+ * Updated TinyMCE scripts
253
+
254
+ * Updated to newest Prototype and scriptaculous, and removed unused javascript files
255
+
256
+ ## 0.10.8
257
+
258
+ * Updating CE for Rails 2.2.2 compatibility
259
+
260
+ * Removed Globalite in favor of Rails' native I18n API. Ce localization should work without modification
261
+
262
+ * Renamed dozens of files to use Rails 2.0 conventions (ie. .html.haml)
263
+
264
+ * Updated truncate calls to use new options hash format
265
+
266
+ ## 0.10.7
267
+
268
+ * Updating CE to be compatible with Rails 2.1.2
269
+
270
+ * Lots of il8n refactoring, mainly using symbol tokens instead of string for localization in views.
data/Gemfile CHANGED
@@ -5,6 +5,9 @@ gem 'omniauth-facebook'
5
5
  group :test do
6
6
  gem 'sqlite3'
7
7
  gem 'mocha', :require => false
8
+ gem "spring-commands-testunit"
8
9
  end
9
10
 
11
+ gem "spring", groups: [:development, :test]
12
+
10
13
  gemspec
@@ -2,20 +2,22 @@ CommunityEngine
2
2
  ===============
3
3
 
4
4
  [![Build Status](https://travis-ci.org/bborn/communityengine.svg?branch=master)](https://travis-ci.org/bborn/communityengine)
5
- [![Gem Version](https://badge.fury.io/rb/community_engine.svg)](https://badge.fury.io/rb/community_engine)
5
+ [![Dependency Status](https://img.shields.io/gemnasium/bborn/communityengine.svg?style=flat)](https://gemnasium.com/bborn/communityengine)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/bborn/communityengine.svg?style=flat)](https://codeclimate.com/github/bborn/communityengine)
7
+ [![Gem Version](https://img.shields.io/gem/v/community_engine.svg?style=flat)](https://rubygems.org/gems/community_engine)
6
8
 
7
9
 
8
10
  Information at: [http://www.communityengine.org](http://www.communityengine.org)
9
11
 
10
12
  **Requirements:**
11
13
 
12
- - RAILS VERSION 4.0.0
13
- - RUBY 2.0.0
14
-
15
- For Rails 2.x use the [rails2.x branch](https://github.com/bborn/communityengine/tree/rails2.x)
14
+ - RAILS VERSION 4.1.x
15
+ - RUBY 2.0.x
16
16
 
17
17
  For Rails 3.x use the [rails3.x branch](https://github.com/bborn/communityengine/tree/rails3.x)
18
18
 
19
+ For Rails 4.0 use the [rails4.0 branch](https://github.com/bborn/communityengine/tree/rails4.0)
20
+
19
21
 
20
22
  Getting CommunityEngine Running
21
23
  --------------------------------
@@ -23,7 +25,7 @@ Getting CommunityEngine Running
23
25
  1. Copy the following into your `Gemfile`:
24
26
 
25
27
  ```ruby
26
- gem 'community_engine', '~> 3.0.0'
28
+ gem 'community_engine', '~> 3.2.0'
27
29
  ```
28
30
 
29
31
  2. Add a file called `application_config.rb` to your `config` directory. In it put (at least):
@@ -91,7 +93,7 @@ Photo Uploading
91
93
 
92
94
  By default CommunityEngine uses the filesystem to store photos.
93
95
 
94
- To use Amazon S3 as the backend for your file uploads,you'll need to add a file called `s3.yml` to the application's root config directory (examples are in `/community_engine/sample_files`).
96
+ To use Amazon S3 as the backend for your file uploads, you'll need to add a file called `s3.yml` to the application's root config directory (examples are in `/community_engine/sample_files`).
95
97
 
96
98
  You'll need to change your configuration in your `application_config.rb` to tell CommunityEngine to use s3 as the photo backend. For more, see the Paperclip documentation on S3 storage for uploads: https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/storage/s3.rb.
97
99
 
@@ -103,7 +105,7 @@ Roles
103
105
 
104
106
  CommunityEngine Users have a Role (by default, it's admin, moderator, or member).
105
107
 
106
- Once logged in as an admin, you'll be able to toggle other users between moderator and member (just go to their profile page and look on the sidebar.)
108
+ Once logged in as an admin, you'll be able to toggle other users between moderator and member (just go to their profile page and look on the sidebar).
107
109
 
108
110
  Admins and moderators can edit and delete other users posts.
109
111
 
@@ -188,28 +190,24 @@ class RecipesController < BaseController
188
190
 
189
191
  before_action :login_required
190
192
 
191
- uses_tiny_mce do
192
- {:only => [:show], :options => configatron.default_mce_options}
193
- end
194
-
195
193
  end
196
194
  ```
197
195
 
198
196
  To override or modify a controller, helper, or model from CE, you can use the `require_from_ce` helper method. For example, to override a method in CE's `User` model, create `app/models/user.rb`:
199
197
 
200
198
  ```ruby
201
- class User < ActiveRecord::Base
202
- require_from_ce('models/user')
199
+ class User < ActiveRecord::Base
200
+ require_from_ce('models/user')
203
201
 
204
- #add a new association
205
- has_many :recipes
206
-
207
- #override an existing method
208
- def display_name
209
- login.capitalize
210
- end
202
+ #add a new association
203
+ has_many :recipes
211
204
 
205
+ #override an existing method
206
+ def display_name
207
+ login.capitalize
212
208
  end
209
+
210
+ end
213
211
  ```
214
212
 
215
213
 
@@ -223,6 +221,7 @@ Any views you create in your app directory will override those in CommunityEngin
223
221
  Contributors - Thanks! :)
224
222
  -------------------------
225
223
 
224
+ - [Trevor Bullock](http://github.com/t-bullock) - maintenance, Rails 4 compatibility and more
226
225
  - Bryan Kearney - localization
227
226
  - Alex Nesbitt - forgot password bugs
228
227
  - Alejandro Raiczyk - Spanish localization
data/Rakefile CHANGED
@@ -32,23 +32,25 @@ namespace :test do
32
32
  t.libs << "lib"
33
33
  t.libs << "test"
34
34
  t.pattern = 'test/functional/**/*_test.rb'
35
- t.verbose = true
35
+ t.verbose = false
36
+ t.warning = false
36
37
  end
37
-
38
+
38
39
  Rake::TestTask.new(:units) do |t|
39
40
  t.libs << "lib"
40
41
  t.libs << "test"
41
42
  t.pattern = 'test/unit/**/*_test.rb'
42
- t.verbose = true
43
- end
44
-
43
+ t.verbose = false
44
+ t.warning = false
45
+ end
46
+
45
47
  end
46
48
 
47
49
 
48
50
  task :build do
49
51
  system "gem build community_engine.gemspec"
50
52
  end
51
-
53
+
52
54
  task :release => :build do
53
55
  system "gem push community_engine-#{CommunityEngine::Version::STRING}.gem"
54
56
  end