community_engine 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -85,6 +85,13 @@ class CommentsControllerTest < ActionController::TestCase
85
85
  assert_response :success
86
86
  assert !assigns(:comments).empty?
87
87
  end
88
+
89
+ def test_should_show_comments_index_rss_on_user_profile
90
+ login_as :quentin
91
+ get :index, :commentable_type => 'users', :commentable_id => users(:aaron).login, :format => 'rss'
92
+ assert_response :success
93
+ assert !assigns(:comments).empty?
94
+ end
88
95
 
89
96
  def test_should_show_empty_comments_index
90
97
  login_as :aaron
@@ -143,25 +150,25 @@ class CommentsControllerTest < ActionController::TestCase
143
150
 
144
151
  def test_should_get_edit_js_as_admin
145
152
  login_as :admin
146
- get :edit, :id => comments(:quentins_comment_on_his_own_post), :format => 'js'
153
+ xhr :get, :edit, :id => comments(:quentins_comment_on_his_own_post), :format => :js
147
154
  assert_response :success
148
155
  end
149
156
 
150
157
  def test_should_update_as_admin
151
158
  login_as :admin
152
159
  edited_text = 'edited the comment body'
153
- patch :update, :id => comments(:quentins_comment_on_his_own_post), :comment => {:comment => edited_text}, :format => 'js'
154
-
160
+ xhr :patch, :update, :id => comments(:quentins_comment_on_his_own_post), :comment => {:comment => edited_text}, :format => :js
161
+
155
162
  assert assigns(:comment).comment.eql?(edited_text)
156
163
  assert_response :success
157
164
  end
158
165
 
159
166
  def test_should_not_update_if_not_admin_or_moderator
160
167
  login_as :quentin
161
-
162
- edited_text = 'edited the comment body'
163
- patch :update, :id => comments(:quentins_comment_on_his_own_post), :comment => {:comment => edited_text}, :format => "js"
164
-
168
+
169
+ edited_text = 'edited the comment body'
170
+ xhr :patch, :update, :id => comments(:quentins_comment_on_his_own_post), :comment => {:comment => edited_text}, :format => :js
171
+
165
172
  assert_response :success #js redirect
166
173
  assert_not_equal(comments(:quentins_comment_on_his_own_post).comment, edited_text)
167
174
  end
@@ -6,48 +6,47 @@ class FavoritesControllerTest < ActionController::TestCase
6
6
  def setup
7
7
  Favorite.destroy_all
8
8
  end
9
-
9
+
10
10
  def test_should_create_favorite_as_logged_in_user
11
11
  login_as :quentin
12
12
  assert_difference Favorite, :count, 1 do
13
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
13
+ xhr :post, :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id
14
14
  end
15
15
  assert_response :success
16
16
  end
17
-
17
+
18
18
  def test_should_create_favorite_anonymously
19
19
  assert_difference Favorite, :count, 1 do
20
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
20
+ xhr :post, :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id
21
21
  end
22
22
  assert_response :success
23
23
  end
24
24
 
25
25
  def test_should_receive_error_when_double_favoriting_as_logged_in_user
26
26
  login_as :quentin
27
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
28
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
27
+ xhr :post, :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id
28
+ xhr :post, :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id
29
29
  assert !assigns(:favorite).errors.empty?
30
30
  end
31
-
31
+
32
32
  def test_should_destroy_favorite
33
- login_as :quentin
34
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
35
-
33
+ login_as :quentin
34
+ xhr :post, :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id
35
+
36
36
  favorite = users(:quentin).favorites.last
37
37
 
38
38
  assert_difference Favorite, :count, -1 do
39
- delete :destroy, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :id => favorite.id, :format => 'js'
39
+ xhr :delete, :destroy, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :id => favorite.id
40
40
  assert_response :success
41
41
  end
42
42
  end
43
-
43
+
44
44
  def test_should_get_index
45
- login_as :quentin
46
- post :create, :favoritable_type => 'clipping', :favoritable_id => clippings(:google).id, :format => 'js'
47
-
45
+ Favorite.create!(:favoritable => clippings(:google), :ip_address => '127.0.0.1', :user => users(:quentin))
46
+
48
47
  login_as :quentin
49
48
  get :index, :user_id => users(:quentin).id
50
- assert_response :success
49
+ # assert_response :success
51
50
  end
52
51
 
53
52
  end
@@ -3,37 +3,6 @@ require 'test_helper'
3
3
  class PagesControllerTest < ActionController::TestCase
4
4
  fixtures :all
5
5
 
6
- def test_should_get_index
7
- login_as :admin
8
- get :index
9
- assert_response :success
10
- assert assigns(:pages)
11
- end
12
-
13
- def test_should_not_get_index_unless_moderator
14
- login_as :quentin
15
- get :index
16
- assert_response :redirect
17
- end
18
-
19
- def test_should_not_get_index_unless_logged_in
20
- get :index
21
- assert_response :redirect
22
- end
23
-
24
- def test_should_get_new
25
- login_as :admin
26
- get :new
27
- assert_response :success
28
- end
29
-
30
- def test_should_create_page
31
- login_as :admin
32
- assert_difference Page, :count, 1 do
33
- create_page
34
- assert_response :redirect
35
- end
36
- end
37
6
 
38
7
  def test_should_show_public_page_to_everyone
39
8
  get :show, :id => pages(:custom_page).id
@@ -52,44 +21,4 @@ class PagesControllerTest < ActionController::TestCase
52
21
  assert_response :redirect
53
22
  end
54
23
 
55
- def test_should_get_edit
56
- login_as :admin
57
- get :edit, :id => pages(:custom_page).id
58
- assert_response :success
59
- end
60
-
61
- def test_should_update_page
62
- login_as :admin
63
- patch :update, :id => pages(:custom_page).id, :page => { :title => "changed_name" }
64
- assert_redirected_to admin_pages_path
65
- assert_equal assigns(:page).title, "changed_name"
66
- end
67
-
68
- def test_should_fail_to_update_page
69
- login_as :admin
70
- patch :update, :id => pages(:custom_page).id, :page => { :title => nil }
71
- assert_response :success
72
- assert assigns(:page).errors[:title]
73
- end
74
-
75
- def test_should_destroy_page
76
- login_as :admin
77
- assert_difference Page, :count, -1 do
78
- delete :destroy, :id => pages(:custom_page)
79
- end
80
- assert_redirected_to admin_pages_path
81
- end
82
-
83
- def test_should_not_destroy_page
84
- login_as :aaron
85
- assert_difference Page, :count, 0 do
86
- delete :destroy, :id => pages(:custom_page)
87
- end
88
- assert_redirected_to login_path
89
- end
90
-
91
- def create_page(options = {})
92
- post :create, {:page => { :title => 'New Page', :body => '<p>My new page.</p>', :page_public => true, :published_as => 'live' }.merge(options[:page] || {}) }.merge(options || {})
93
- end
94
-
95
24
  end
@@ -67,9 +67,28 @@ class PostsControllerTest < ActionController::TestCase
67
67
  get :edit, :id => posts(:funny_post).id, :user_id => users(:quentin)
68
68
  assert_response :success
69
69
  end
70
-
71
70
 
72
- test "shouldn't show draft to logged out or non owner/admin/moderator" do
71
+ test "should not show draft post to logged out or non owner/admin/moderator on show action" do
72
+ posts(:funny_post).save_as_draft
73
+
74
+ login_as :joe
75
+ get :show, :id => posts(:funny_post).id, :user_id => users(:quentin)
76
+ assert_response :redirect
77
+ end
78
+
79
+ test "should show draft to owner/admin/moderator on show action" do
80
+ posts(:funny_post).save_as_draft
81
+
82
+ login_as :admin
83
+ get :show, :id => posts(:funny_post).id, :user_id => users(:quentin)
84
+ assert_response :success
85
+
86
+ login_as :quentin
87
+ get :show, :id => posts(:funny_post).id, :user_id => users(:quentin)
88
+ assert_response :success
89
+ end
90
+
91
+ test "shouldn't show draft to logged out or non owner/admin/moderator on preview action" do
73
92
  posts(:funny_post).save_as_draft
74
93
  get :preview, :id => posts(:funny_post).id, :user_id => users(:quentin)
75
94
  assert_response :redirect
@@ -55,7 +55,7 @@ class SbPostsControllerTest < ActionController::TestCase
55
55
  login_as :admin
56
56
 
57
57
  assert_difference SbPost, :count, -1 do
58
- delete :destroy, :forum_id => forums(:rails).to_param, :topic_id => topics(:pdi).to_param, :id => sb_posts(:pdi_reply).to_param, :format => :js
58
+ xhr :delete, :destroy, :forum_id => forums(:rails).to_param, :topic_id => topics(:pdi).to_param, :id => sb_posts(:pdi_reply).to_param, :format => :js
59
59
  assert_response :success
60
60
  end
61
61
 
@@ -65,13 +65,13 @@ class SbPostsControllerTest < ActionController::TestCase
65
65
  def test_should_delete_reply_as_moderator
66
66
  assert_difference SbPost, :count, -1 do
67
67
  login_as :sam
68
- delete :destroy, :forum_id => forums(:rails).to_param, :topic_id => topics(:pdi).to_param, :id => sb_posts(:pdi_rebuttal).to_param
68
+ xhr :delete, :destroy, :forum_id => forums(:rails).to_param, :topic_id => topics(:pdi).to_param, :id => sb_posts(:pdi_rebuttal).to_param
69
69
  end
70
70
  end
71
71
 
72
72
  def test_edit_js
73
73
  login_as :sam
74
- get :edit, :forum_id => forums(:comics).to_param, :topic_id => topics(:galactus).to_param, :id => sb_posts(:silver_surfer).to_param, :format => 'js'
74
+ xhr :get, :edit, :forum_id => forums(:comics).to_param, :topic_id => topics(:galactus).to_param, :id => sb_posts(:silver_surfer).to_param, :format => :js
75
75
  assert_response :success
76
76
  end
77
77
 
@@ -29,12 +29,12 @@ class SessionsControllerTest < ActionController::TestCase
29
29
  end
30
30
 
31
31
  def test_should_login_with_cookie
32
- @request.cookies["user_credentials"] = {:value => {:value => users(:quentin).persistence_token}, :expires => nil}
32
+ @request.cookies["user_credentials"] = {:value => {:value => "#{users(:quentin).persistence_token}::#{users(:quentin).id}"}, :expires => nil}
33
33
  assert @controller.send(:logged_in?)
34
34
  end
35
35
 
36
36
  def test_should_fail_cookie_login
37
- @request.cookies["user_credentials"] = {:value => {:value => users(:quentin).persistence_token}, :expires => 5.minutes.ago.utc}
37
+ @request.cookies["user_credentials"] = {:value => {:value => "#{users(:quentin).persistence_token}::#{users(:quentin).id}"}, :expires => 5.minutes.ago.utc}
38
38
  assert !@controller.send(:logged_in?)
39
39
  end
40
40
 
@@ -10,27 +10,27 @@ class TagsControllerTest < ActionController::TestCase
10
10
 
11
11
 
12
12
  def test_should_show_tag
13
- get :show, :id => tags(:general).name
14
- assert_response :success
15
- assert assigns(:photos).include?(photos(:library_pic))
13
+ get :show, :id => tags(:general).name
14
+ assert_response :success
15
+ assert assigns(:photos).include?(photos(:library_pic))
16
16
  end
17
17
 
18
18
  def test_should_show_special_character_tag
19
19
  get :show, :id => tags(:special_characters).name
20
20
  assert_response :success
21
21
  end
22
-
22
+
23
23
  def test_should_show_tag_with_type
24
24
  %w(posts users clippings photos).each do |type|
25
25
  item = type.classify.constantize.first
26
26
  item.tag_list = "general"
27
27
  item.save!
28
-
28
+
29
29
  get :show, :id => tags(:general).name, :type => 'type'
30
30
  assert_response :success
31
31
  end
32
32
  end
33
-
33
+
34
34
 
35
35
  def test_should_fail_to_show_tag
36
36
  get :show, :id => 'tag_that_does_not_exist'
@@ -41,22 +41,9 @@ class TagsControllerTest < ActionController::TestCase
41
41
  get :index
42
42
  assert_response :success
43
43
  end
44
-
45
-
46
- test "should get manage as admin" do
47
- login_as :admin
48
- get :manage
49
- assert_response :success
50
- end
51
44
 
52
- test "should not get manage as user" do
53
- login_as :quentin
54
- get :manage
55
- assert_response :redirect
56
- end
57
45
 
58
-
59
-
46
+
60
47
  def test_should_show_matching_items_for_multiple_tags
61
48
  posts(:apt_post).tag_list = "#{tags(:general).name},#{tags(:extra).name}"
62
49
  posts(:apt_post).save
@@ -69,4 +56,6 @@ class TagsControllerTest < ActionController::TestCase
69
56
  assert assigns(:posts).include?(posts(:apt_post))
70
57
  assert assigns(:posts).include?(posts(:apt2_post))
71
58
  end
59
+
60
+
72
61
  end
@@ -373,14 +373,6 @@ class UsersControllerTest < ActionController::TestCase
373
373
  assert_nil session[:admin_id]
374
374
  end
375
375
 
376
- def test_only_admin_can_assume_id_js
377
- login_as :quentin
378
- post :assume, :id => users(:aaron).id, :format => 'js'
379
- assert_response :success
380
- assert_not_equal UserSession.find.record, users(:aaron)
381
- assert_nil session[:admin_id]
382
- end
383
-
384
376
  def test_return_admin_should_set_user_to_admin
385
377
  login_as :quentin
386
378
  @request.session[:admin_id] = users(:admin).id
@@ -17,7 +17,7 @@ class VotesControllerTest < ActionController::TestCase
17
17
 
18
18
  login_as :quentin
19
19
  assert_difference Vote, :count, 1 do
20
- post :create, :choice_id => Choice.first.id, :format => 'js'
20
+ xhr :post, :create, :choice_id => Choice.first.id, :format => :js
21
21
  end
22
22
  assert_response :success
23
23
 
@@ -0,0 +1 @@
1
+ Spring.application_root = ''
@@ -11,7 +11,22 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 82) do
14
+ ActiveRecord::Schema.define(version: 83) do
15
+
16
+ create_table "active_admin_comments", force: true do |t|
17
+ t.string "namespace"
18
+ t.text "body"
19
+ t.string "resource_id", null: false
20
+ t.string "resource_type", null: false
21
+ t.integer "author_id"
22
+ t.string "author_type"
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
28
+ add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace"
29
+ add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
15
30
 
16
31
  create_table "activities", force: true do |t|
17
32
  t.integer "user_id"
@@ -38,7 +38,7 @@ class EventTest < ActiveSupport::TestCase
38
38
 
39
39
  def test_upcoming_event_scope_should_only_find_future_events
40
40
  future_events = Event.upcoming.to_a
41
- assert_equal future_events.size, 3
41
+ assert_equal future_events.size, 4
42
42
  future_events.each {|e| assert e.end_time > Time.now}
43
43
  end
44
44
 
metadata CHANGED
@@ -1,533 +1,589 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: community_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Bornsztein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activeadmin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0.pre2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0.pre2
27
+ - !ruby/object:Gem::Dependency
28
+ name: pundit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.0
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: actionpack-action_caching
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
- - - ! '>='
45
+ - - ">="
18
46
  - !ruby/object:Gem::Version
19
47
  version: '0'
20
48
  type: :runtime
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
- - - ! '>='
52
+ - - ">="
25
53
  - !ruby/object:Gem::Version
26
54
  version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: actionpack-page_caching
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
- - - ! '>='
59
+ - - ">="
32
60
  - !ruby/object:Gem::Version
33
61
  version: '0'
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
- - - ! '>='
66
+ - - ">="
39
67
  - !ruby/object:Gem::Version
40
68
  version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: acts_as_commentable
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - ~>
73
+ - - "~>"
46
74
  - !ruby/object:Gem::Version
47
75
  version: 4.0.2
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - ~>
80
+ - - "~>"
53
81
  - !ruby/object:Gem::Version
54
82
  version: 4.0.2
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: acts_as_list
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - ! '>='
87
+ - - ">="
60
88
  - !ruby/object:Gem::Version
61
89
  version: 0.3.0
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - ! '>='
94
+ - - ">="
67
95
  - !ruby/object:Gem::Version
68
96
  version: 0.3.0
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: acts-as-taggable-on
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
- - - ~>
101
+ - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 2.4.1
103
+ version: 3.4.4
76
104
  type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
- - - ~>
108
+ - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: 2.4.1
110
+ version: 3.4.4
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: authlogic
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - ! '>='
115
+ - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: 3.3.0
117
+ version: 3.4.6
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - ! '>='
122
+ - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: 3.3.0
124
+ version: 3.4.6
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: aws-sdk
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
- - - ! '>='
129
+ - - "<"
102
130
  - !ruby/object:Gem::Version
103
- version: '0'
131
+ version: '2.0'
104
132
  type: :runtime
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - ! '>='
136
+ - - "<"
109
137
  - !ruby/object:Gem::Version
110
- version: '0'
138
+ version: '2.0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: bcrypt
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
- - - ! '>='
143
+ - - ">="
116
144
  - !ruby/object:Gem::Version
117
145
  version: '0'
118
146
  type: :runtime
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
- - - ! '>='
150
+ - - ">="
123
151
  - !ruby/object:Gem::Version
124
152
  version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: cocaine
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
- - - ~>
157
+ - - "~>"
130
158
  - !ruby/object:Gem::Version
131
159
  version: 0.5.1
132
160
  type: :runtime
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
- - - ~>
164
+ - - "~>"
137
165
  - !ruby/object:Gem::Version
138
166
  version: 0.5.1
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: configatron
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
- - - ~>
171
+ - - "~>"
144
172
  - !ruby/object:Gem::Version
145
173
  version: 4.2.0
146
174
  type: :runtime
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
- - - ~>
178
+ - - "~>"
151
179
  - !ruby/object:Gem::Version
152
180
  version: 4.2.0
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: dynamic_form
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
- - - ! '>='
185
+ - - ">="
158
186
  - !ruby/object:Gem::Version
159
187
  version: '0'
160
188
  type: :runtime
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
- - - ! '>='
192
+ - - ">="
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: friendly_id
169
197
  requirement: !ruby/object:Gem::Requirement
170
198
  requirements:
171
- - - ~>
199
+ - - "~>"
172
200
  - !ruby/object:Gem::Version
173
- version: 5.0.0.beta1
201
+ version: 5.1.0
174
202
  type: :runtime
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
178
- - - ~>
206
+ - - "~>"
179
207
  - !ruby/object:Gem::Version
180
- version: 5.0.0.beta1
208
+ version: 5.1.0
181
209
  - !ruby/object:Gem::Dependency
182
210
  name: haml
183
211
  requirement: !ruby/object:Gem::Requirement
184
212
  requirements:
185
- - - ! '>='
213
+ - - ">="
186
214
  - !ruby/object:Gem::Version
187
215
  version: '0'
188
216
  type: :runtime
189
217
  prerelease: false
190
218
  version_requirements: !ruby/object:Gem::Requirement
191
219
  requirements:
192
- - - ! '>='
220
+ - - ">="
193
221
  - !ruby/object:Gem::Version
194
222
  version: '0'
195
223
  - !ruby/object:Gem::Dependency
196
224
  name: hpricot
197
225
  requirement: !ruby/object:Gem::Requirement
198
226
  requirements:
199
- - - ! '>='
227
+ - - ">="
200
228
  - !ruby/object:Gem::Version
201
229
  version: '0'
202
230
  type: :runtime
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
205
233
  requirements:
206
- - - ! '>='
234
+ - - ">="
207
235
  - !ruby/object:Gem::Version
208
236
  version: '0'
209
237
  - !ruby/object:Gem::Dependency
210
238
  name: htmlentities
211
239
  requirement: !ruby/object:Gem::Requirement
212
240
  requirements:
213
- - - ! '>='
241
+ - - ">="
214
242
  - !ruby/object:Gem::Version
215
243
  version: '0'
216
244
  type: :runtime
217
245
  prerelease: false
218
246
  version_requirements: !ruby/object:Gem::Requirement
219
247
  requirements:
220
- - - ! '>='
248
+ - - ">="
221
249
  - !ruby/object:Gem::Version
222
250
  version: '0'
223
251
  - !ruby/object:Gem::Dependency
224
252
  name: kaminari
225
253
  requirement: !ruby/object:Gem::Requirement
226
254
  requirements:
227
- - - ! '>='
255
+ - - ">="
228
256
  - !ruby/object:Gem::Version
229
257
  version: '0'
230
258
  type: :runtime
231
259
  prerelease: false
232
260
  version_requirements: !ruby/object:Gem::Requirement
233
261
  requirements:
234
- - - ! '>='
262
+ - - ">="
235
263
  - !ruby/object:Gem::Version
236
264
  version: '0'
237
265
  - !ruby/object:Gem::Dependency
238
266
  name: koala
239
267
  requirement: !ruby/object:Gem::Requirement
240
268
  requirements:
241
- - - ~>
269
+ - - "~>"
242
270
  - !ruby/object:Gem::Version
243
271
  version: 1.6.0
244
272
  type: :runtime
245
273
  prerelease: false
246
274
  version_requirements: !ruby/object:Gem::Requirement
247
275
  requirements:
248
- - - ~>
276
+ - - "~>"
249
277
  - !ruby/object:Gem::Version
250
278
  version: 1.6.0
251
279
  - !ruby/object:Gem::Dependency
252
280
  name: omniauth
253
281
  requirement: !ruby/object:Gem::Requirement
254
282
  requirements:
255
- - - ~>
283
+ - - "~>"
256
284
  - !ruby/object:Gem::Version
257
285
  version: 1.1.4
258
286
  type: :runtime
259
287
  prerelease: false
260
288
  version_requirements: !ruby/object:Gem::Requirement
261
289
  requirements:
262
- - - ~>
290
+ - - "~>"
263
291
  - !ruby/object:Gem::Version
264
292
  version: 1.1.4
265
293
  - !ruby/object:Gem::Dependency
266
294
  name: rails_autolink
267
295
  requirement: !ruby/object:Gem::Requirement
268
296
  requirements:
269
- - - ! '>='
297
+ - - ">="
270
298
  - !ruby/object:Gem::Version
271
299
  version: '0'
272
300
  type: :runtime
273
301
  prerelease: false
274
302
  version_requirements: !ruby/object:Gem::Requirement
275
303
  requirements:
276
- - - ! '>='
304
+ - - ">="
277
305
  - !ruby/object:Gem::Version
278
306
  version: '0'
279
307
  - !ruby/object:Gem::Dependency
280
308
  name: paperclip
281
309
  requirement: !ruby/object:Gem::Requirement
282
310
  requirements:
283
- - - ~>
311
+ - - "~>"
284
312
  - !ruby/object:Gem::Version
285
- version: 3.5.1
313
+ version: 4.3.0
286
314
  type: :runtime
287
315
  prerelease: false
288
316
  version_requirements: !ruby/object:Gem::Requirement
289
317
  requirements:
290
- - - ~>
318
+ - - "~>"
291
319
  - !ruby/object:Gem::Version
292
- version: 3.5.1
320
+ version: 4.3.0
293
321
  - !ruby/object:Gem::Dependency
294
322
  name: power_enum
295
323
  requirement: !ruby/object:Gem::Requirement
296
324
  requirements:
297
- - - ~>
325
+ - - "~>"
298
326
  - !ruby/object:Gem::Version
299
- version: 2.0.1
327
+ version: '2.7'
300
328
  type: :runtime
301
329
  prerelease: false
302
330
  version_requirements: !ruby/object:Gem::Requirement
303
331
  requirements:
304
- - - ~>
332
+ - - "~>"
305
333
  - !ruby/object:Gem::Version
306
- version: 2.0.1
334
+ version: '2.7'
307
335
  - !ruby/object:Gem::Dependency
308
336
  name: rack
309
337
  requirement: !ruby/object:Gem::Requirement
310
338
  requirements:
311
- - - ! '>='
339
+ - - ">="
312
340
  - !ruby/object:Gem::Version
313
341
  version: 1.5.2
314
342
  type: :runtime
315
343
  prerelease: false
316
344
  version_requirements: !ruby/object:Gem::Requirement
317
345
  requirements:
318
- - - ! '>='
346
+ - - ">="
319
347
  - !ruby/object:Gem::Version
320
348
  version: 1.5.2
321
349
  - !ruby/object:Gem::Dependency
322
350
  name: rails
323
351
  requirement: !ruby/object:Gem::Requirement
324
352
  requirements:
325
- - - ~>
353
+ - - "~>"
326
354
  - !ruby/object:Gem::Version
327
- version: 4.0.0
355
+ version: 4.1.0
328
356
  type: :runtime
329
357
  prerelease: false
330
358
  version_requirements: !ruby/object:Gem::Requirement
331
359
  requirements:
332
- - - ~>
360
+ - - "~>"
333
361
  - !ruby/object:Gem::Version
334
- version: 4.0.0
362
+ version: 4.1.0
335
363
  - !ruby/object:Gem::Dependency
336
364
  name: rails-observers
337
365
  requirement: !ruby/object:Gem::Requirement
338
366
  requirements:
339
- - - ! '>='
367
+ - - ">="
340
368
  - !ruby/object:Gem::Version
341
369
  version: '0'
342
370
  type: :runtime
343
371
  prerelease: false
344
372
  version_requirements: !ruby/object:Gem::Requirement
345
373
  requirements:
346
- - - ! '>='
374
+ - - ">="
347
375
  - !ruby/object:Gem::Version
348
376
  version: '0'
349
377
  - !ruby/object:Gem::Dependency
350
378
  name: rakismet
351
379
  requirement: !ruby/object:Gem::Requirement
352
380
  requirements:
353
- - - ! '>='
381
+ - - ">="
354
382
  - !ruby/object:Gem::Version
355
383
  version: '0'
356
384
  type: :runtime
357
385
  prerelease: false
358
386
  version_requirements: !ruby/object:Gem::Requirement
359
387
  requirements:
360
- - - ! '>='
388
+ - - ">="
361
389
  - !ruby/object:Gem::Version
362
390
  version: '0'
363
391
  - !ruby/object:Gem::Dependency
364
392
  name: ransack
365
393
  requirement: !ruby/object:Gem::Requirement
366
394
  requirements:
367
- - - ~>
395
+ - - "~>"
368
396
  - !ruby/object:Gem::Version
369
- version: 1.0.0
397
+ version: 1.7.0
370
398
  type: :runtime
371
399
  prerelease: false
372
400
  version_requirements: !ruby/object:Gem::Requirement
373
401
  requirements:
374
- - - ~>
402
+ - - "~>"
375
403
  - !ruby/object:Gem::Version
376
- version: 1.0.0
404
+ version: 1.7.0
377
405
  - !ruby/object:Gem::Dependency
378
406
  name: recaptcha
379
407
  requirement: !ruby/object:Gem::Requirement
380
408
  requirements:
381
- - - ! '>='
409
+ - - ">="
382
410
  - !ruby/object:Gem::Version
383
411
  version: '0'
384
412
  type: :runtime
385
413
  prerelease: false
386
414
  version_requirements: !ruby/object:Gem::Requirement
387
415
  requirements:
388
- - - ! '>='
416
+ - - ">="
389
417
  - !ruby/object:Gem::Version
390
418
  version: '0'
391
419
  - !ruby/object:Gem::Dependency
392
420
  name: ri_cal
393
421
  requirement: !ruby/object:Gem::Requirement
394
422
  requirements:
395
- - - ! '>='
423
+ - - ">="
396
424
  - !ruby/object:Gem::Version
397
425
  version: '0'
398
426
  type: :runtime
399
427
  prerelease: false
400
428
  version_requirements: !ruby/object:Gem::Requirement
401
429
  requirements:
402
- - - ! '>='
430
+ - - ">="
403
431
  - !ruby/object:Gem::Version
404
432
  version: '0'
405
433
  - !ruby/object:Gem::Dependency
406
434
  name: sanitize
407
435
  requirement: !ruby/object:Gem::Requirement
408
436
  requirements:
409
- - - ! '>='
437
+ - - ">="
410
438
  - !ruby/object:Gem::Version
411
439
  version: 2.0.6
412
440
  type: :runtime
413
441
  prerelease: false
414
442
  version_requirements: !ruby/object:Gem::Requirement
415
443
  requirements:
416
- - - ! '>='
444
+ - - ">="
417
445
  - !ruby/object:Gem::Version
418
446
  version: 2.0.6
419
447
  - !ruby/object:Gem::Dependency
420
448
  name: bootstrap-sass
421
449
  requirement: !ruby/object:Gem::Requirement
422
450
  requirements:
423
- - - ~>
451
+ - - "~>"
424
452
  - !ruby/object:Gem::Version
425
453
  version: 3.2.0
426
454
  type: :runtime
427
455
  prerelease: false
428
456
  version_requirements: !ruby/object:Gem::Requirement
429
457
  requirements:
430
- - - ~>
458
+ - - "~>"
431
459
  - !ruby/object:Gem::Version
432
460
  version: 3.2.0
433
461
  - !ruby/object:Gem::Dependency
434
462
  name: bootstrap_form
435
463
  requirement: !ruby/object:Gem::Requirement
436
464
  requirements:
437
- - - ! '>='
465
+ - - ">="
438
466
  - !ruby/object:Gem::Version
439
467
  version: '0'
440
468
  type: :runtime
441
469
  prerelease: false
442
470
  version_requirements: !ruby/object:Gem::Requirement
443
471
  requirements:
444
- - - ! '>='
472
+ - - ">="
445
473
  - !ruby/object:Gem::Version
446
474
  version: '0'
447
475
  - !ruby/object:Gem::Dependency
448
476
  name: font-awesome-rails
449
477
  requirement: !ruby/object:Gem::Requirement
450
478
  requirements:
451
- - - ! '>='
479
+ - - ">="
452
480
  - !ruby/object:Gem::Version
453
481
  version: '0'
454
482
  type: :runtime
455
483
  prerelease: false
456
484
  version_requirements: !ruby/object:Gem::Requirement
457
485
  requirements:
458
- - - ! '>='
486
+ - - ">="
459
487
  - !ruby/object:Gem::Version
460
488
  version: '0'
461
489
  - !ruby/object:Gem::Dependency
462
490
  name: jquery-rails
463
491
  requirement: !ruby/object:Gem::Requirement
464
492
  requirements:
465
- - - ! '>='
493
+ - - ">="
466
494
  - !ruby/object:Gem::Version
467
495
  version: '0'
468
496
  type: :runtime
469
497
  prerelease: false
470
498
  version_requirements: !ruby/object:Gem::Requirement
471
499
  requirements:
472
- - - ! '>='
500
+ - - ">="
473
501
  - !ruby/object:Gem::Version
474
502
  version: '0'
475
503
  - !ruby/object:Gem::Dependency
476
504
  name: jquery-ui-rails
477
505
  requirement: !ruby/object:Gem::Requirement
478
506
  requirements:
479
- - - ~>
507
+ - - "~>"
480
508
  - !ruby/object:Gem::Version
481
509
  version: 5.0.0
482
510
  type: :runtime
483
511
  prerelease: false
484
512
  version_requirements: !ruby/object:Gem::Requirement
485
513
  requirements:
486
- - - ~>
514
+ - - "~>"
487
515
  - !ruby/object:Gem::Version
488
516
  version: 5.0.0
517
+ - !ruby/object:Gem::Dependency
518
+ name: jquery-turbolinks
519
+ requirement: !ruby/object:Gem::Requirement
520
+ requirements:
521
+ - - ">="
522
+ - !ruby/object:Gem::Version
523
+ version: '0'
524
+ type: :runtime
525
+ prerelease: false
526
+ version_requirements: !ruby/object:Gem::Requirement
527
+ requirements:
528
+ - - ">="
529
+ - !ruby/object:Gem::Version
530
+ version: '0'
531
+ - !ruby/object:Gem::Dependency
532
+ name: turbolinks
533
+ requirement: !ruby/object:Gem::Requirement
534
+ requirements:
535
+ - - ">="
536
+ - !ruby/object:Gem::Version
537
+ version: '0'
538
+ type: :runtime
539
+ prerelease: false
540
+ version_requirements: !ruby/object:Gem::Requirement
541
+ requirements:
542
+ - - ">="
543
+ - !ruby/object:Gem::Version
544
+ version: '0'
489
545
  - !ruby/object:Gem::Dependency
490
546
  name: sass-rails
491
547
  requirement: !ruby/object:Gem::Requirement
492
548
  requirements:
493
- - - ~>
549
+ - - "~>"
494
550
  - !ruby/object:Gem::Version
495
551
  version: 4.0.0
496
552
  type: :runtime
497
553
  prerelease: false
498
554
  version_requirements: !ruby/object:Gem::Requirement
499
555
  requirements:
500
- - - ~>
556
+ - - "~>"
501
557
  - !ruby/object:Gem::Version
502
558
  version: 4.0.0
503
559
  - !ruby/object:Gem::Dependency
504
560
  name: sprockets
505
561
  requirement: !ruby/object:Gem::Requirement
506
562
  requirements:
507
- - - ~>
563
+ - - "~>"
508
564
  - !ruby/object:Gem::Version
509
565
  version: 2.10.0
510
566
  type: :runtime
511
567
  prerelease: false
512
568
  version_requirements: !ruby/object:Gem::Requirement
513
569
  requirements:
514
- - - ~>
570
+ - - "~>"
515
571
  - !ruby/object:Gem::Version
516
572
  version: 2.10.0
517
573
  - !ruby/object:Gem::Dependency
518
- name: tinymce-rails
574
+ name: ckeditor
519
575
  requirement: !ruby/object:Gem::Requirement
520
576
  requirements:
521
- - - ~>
577
+ - - "~>"
522
578
  - !ruby/object:Gem::Version
523
- version: 4.0.2
579
+ version: 4.1.1
524
580
  type: :runtime
525
581
  prerelease: false
526
582
  version_requirements: !ruby/object:Gem::Requirement
527
583
  requirements:
528
- - - ~>
584
+ - - "~>"
529
585
  - !ruby/object:Gem::Version
530
- version: 4.0.2
586
+ version: 4.1.1
531
587
  description: CommunityEngine is a free, open-source social network platform for Ruby
532
588
  on Rails applications. Drop it into your new or existing application, and you’ll
533
589
  instantly have all the features of a basic community site.
@@ -538,14 +594,15 @@ extra_rdoc_files:
538
594
  - LICENSE
539
595
  - README.markdown
540
596
  files:
541
- - .gitignore
542
- - .gitmodules
543
- - .travis.yml
544
- - CHANGELOG
597
+ - ".gitignore"
598
+ - ".gitmodules"
599
+ - ".travis.yml"
600
+ - CHANGELOG.markdown
545
601
  - Gemfile
546
602
  - LICENSE
547
603
  - README.markdown
548
604
  - Rakefile
605
+ - TODO.markdown
549
606
  - UPGRADING.markdown
550
607
  - about.yml
551
608
  - app/assets/images/auth/facebook_32.png
@@ -567,10 +624,21 @@ files:
567
624
  - app/assets/images/swf/choose.png
568
625
  - app/assets/images/swf/line_grapher.swf
569
626
  - app/assets/images/swf/swfupload.swf
627
+ - app/assets/javascripts/active_admin.js.coffee
628
+ - app/assets/javascripts/ckeditor/configs/ads.js.coffee
629
+ - app/assets/javascripts/ckeditor/configs/comments.js.coffee
630
+ - app/assets/javascripts/ckeditor/configs/posts.js.coffee
631
+ - app/assets/javascripts/ckeditor/rte/rte.ads.js.coffee
632
+ - app/assets/javascripts/ckeditor/rte/rte.comments.js.coffee
633
+ - app/assets/javascripts/ckeditor/rte/rte.js.coffee
634
+ - app/assets/javascripts/ckeditor/rte/rte.posts.js.coffee
570
635
  - app/assets/javascripts/community_engine.js
571
636
  - app/assets/javascripts/cropper.js
572
637
  - app/assets/javascripts/forum.js
638
+ - app/assets/javascripts/jcrop/jquery.Jcrop.js
639
+ - app/assets/javascripts/jcrop/jquery.color.js
573
640
  - app/assets/javascripts/jquery.migrate.js
641
+ - app/assets/javascripts/tag-it/tag-it.js
574
642
  - app/assets/stylesheets/_colors.css.scss
575
643
  - app/assets/stylesheets/_font.css.scss
576
644
  - app/assets/stylesheets/_forms.css.scss
@@ -578,12 +646,15 @@ files:
578
646
  - app/assets/stylesheets/_grid.css.scss
579
647
  - app/assets/stylesheets/_layers.css.scss
580
648
  - app/assets/stylesheets/_layout.css.scss
649
+ - app/assets/stylesheets/active_admin.css.scss
581
650
  - app/assets/stylesheets/community_engine.css.scss
582
651
  - app/assets/stylesheets/cropper.css
652
+ - app/assets/stylesheets/jcrop/Jcrop.gif
653
+ - app/assets/stylesheets/jcrop/jquery.Jcrop.min.css
583
654
  - app/assets/stylesheets/lightbox.css
655
+ - app/assets/stylesheets/tag-it/tag-it.css
656
+ - app/assets/stylesheets/tag-it/tagit.ui-zendesk.css
584
657
  - app/controllers/activities_controller.rb
585
- - app/controllers/admin_controller.rb
586
- - app/controllers/ads_controller.rb
587
658
  - app/controllers/albums_controller.rb
588
659
  - app/controllers/authorizations_controller.rb
589
660
  - app/controllers/base_controller.rb
@@ -598,10 +669,8 @@ files:
598
669
  - app/controllers/favorites_controller.rb
599
670
  - app/controllers/forums_controller.rb
600
671
  - app/controllers/friendships_controller.rb
601
- - app/controllers/homepage_features_controller.rb
602
672
  - app/controllers/invitations_controller.rb
603
673
  - app/controllers/messages_controller.rb
604
- - app/controllers/metro_areas_controller.rb
605
674
  - app/controllers/moderators_controller.rb
606
675
  - app/controllers/monitorships_controller.rb
607
676
  - app/controllers/page_sweeper.rb
@@ -615,7 +684,6 @@ files:
615
684
  - app/controllers/sb_posts_controller.rb
616
685
  - app/controllers/sessions_controller.rb
617
686
  - app/controllers/sitemap_controller.rb
618
- - app/controllers/statistics_controller.rb
619
687
  - app/controllers/taggable_sweeper.rb
620
688
  - app/controllers/tags_controller.rb
621
689
  - app/controllers/topics_controller.rb
@@ -667,21 +735,16 @@ files:
667
735
  - app/models/user_notifier.rb
668
736
  - app/models/user_session.rb
669
737
  - app/models/vote.rb
738
+ - app/policies/active_admin/page_policy.rb
739
+ - app/policies/application_policy.rb
740
+ - app/policies/post_policy.rb
741
+ - app/policies/sb_post_policy.rb
742
+ - app/policies/topic_policy.rb
670
743
  - app/views/activities/_activity.html.haml
671
744
  - app/views/activities/_unhandled_item.html.haml
672
745
  - app/views/activities/destroy.js.erb
673
746
  - app/views/activities/index.html.haml
674
747
  - app/views/activities/network.html.haml
675
- - app/views/admin/comments.html.haml
676
- - app/views/admin/events.html.haml
677
- - app/views/admin/messages.html.haml
678
- - app/views/admin/update.js.erb
679
- - app/views/admin/users.html.haml
680
- - app/views/ads/_form.html.haml
681
- - app/views/ads/edit.html.haml
682
- - app/views/ads/index.html.haml
683
- - app/views/ads/new.html.haml
684
- - app/views/ads/show.html.haml
685
748
  - app/views/albums/_form.html.haml
686
749
  - app/views/albums/edit.html.haml
687
750
  - app/views/albums/new.html.haml
@@ -690,13 +753,12 @@ files:
690
753
  - app/views/base/advertise.html.haml
691
754
  - app/views/base/plaxo.html.haml
692
755
  - app/views/base/site_index.html.haml
693
- - app/views/categories/_form.html.haml
694
756
  - app/views/categories/_menu_item.html.haml
695
757
  - app/views/categories/_tips.html.haml
696
- - app/views/categories/edit.html.haml
697
- - app/views/categories/index.html.haml
698
- - app/views/categories/new.html.haml
699
758
  - app/views/categories/show.html.haml
759
+ - app/views/ckeditor/pictures/index.html.haml
760
+ - app/views/ckeditor/shared/_asset.html.haml
761
+ - app/views/ckeditor/shared/_asset_tmpl.html.erb
700
762
  - app/views/clippings/_clipping.html.haml
701
763
  - app/views/clippings/_favorite.html.haml
702
764
  - app/views/clippings/_form.html.haml
@@ -743,11 +805,6 @@ files:
743
805
  - app/views/friendships/denied.html.haml
744
806
  - app/views/friendships/pending.html.haml
745
807
  - app/views/friendships/show.html.haml
746
- - app/views/homepage_features/_form.html.haml
747
- - app/views/homepage_features/edit.html.haml
748
- - app/views/homepage_features/index.html.haml
749
- - app/views/homepage_features/new.html.haml
750
- - app/views/homepage_features/show.html.haml
751
808
  - app/views/invitations/index.html.haml
752
809
  - app/views/invitations/new.html.haml
753
810
  - app/views/kaminari/bootstrap/_first_page.html.erb
@@ -766,20 +823,11 @@ files:
766
823
  - app/views/messages/index.html.haml
767
824
  - app/views/messages/new.html.haml
768
825
  - app/views/messages/show.html.haml
769
- - app/views/metro_areas/_form.html.haml
770
- - app/views/metro_areas/edit.html.haml
771
- - app/views/metro_areas/index.html.haml
772
- - app/views/metro_areas/new.html.haml
773
- - app/views/metro_areas/show.html.haml
774
826
  - app/views/moderators/_toggle.html.haml
775
827
  - app/views/moderators/create.js.erb
776
828
  - app/views/moderators/destroy.js.erb
777
829
  - app/views/monitorships/create.js.erb
778
830
  - app/views/monitorships/destroy.js.erb
779
- - app/views/pages/_form.html.haml
780
- - app/views/pages/edit.html.haml
781
- - app/views/pages/index.html.haml
782
- - app/views/pages/new.html.haml
783
831
  - app/views/pages/show.html.haml
784
832
  - app/views/password_resets/edit.html.haml
785
833
  - app/views/password_resets/new.html.haml
@@ -837,7 +885,6 @@ files:
837
885
  - app/views/sessions/_menu_item.html.haml
838
886
  - app/views/sessions/new.html.haml
839
887
  - app/views/shared/_add_friend_link.html.haml
840
- - app/views/shared/_admin_nav.html.haml
841
888
  - app/views/shared/_bio_help.html.haml
842
889
  - app/views/shared/_box.html.haml
843
890
  - app/views/shared/_contact.html.haml
@@ -848,7 +895,6 @@ files:
848
895
  - app/views/shared/_friend_link.html.haml
849
896
  - app/views/shared/_header.html.haml
850
897
  - app/views/shared/_jumbotron.html.haml
851
- - app/views/shared/_load_tinymce.js.erb
852
898
  - app/views/shared/_location_chooser.html.haml
853
899
  - app/views/shared/_login_sidebar.html.haml
854
900
  - app/views/shared/_messages.html.haml
@@ -858,11 +904,7 @@ files:
858
904
  - app/views/shared/_widget.html.haml
859
905
  - app/views/sitemap/index.html.haml
860
906
  - app/views/sitemap/index.xml.builder
861
- - app/views/statistics/activities.xml.builder
862
- - app/views/statistics/index.html.haml
863
- - app/views/tags/edit.html.haml
864
907
  - app/views/tags/index.html.haml
865
- - app/views/tags/manage.html.haml
866
908
  - app/views/tags/show.html.haml
867
909
  - app/views/topics/_form.html.haml
868
910
  - app/views/topics/_recent_topics_sidebar.haml
@@ -893,6 +935,7 @@ files:
893
935
  - app/views/users/_user.html.haml
894
936
  - app/views/users/crop_profile_photo.html.haml
895
937
  - app/views/users/dashboard.html.haml
938
+ - app/views/users/destroy.js.erb
896
939
  - app/views/users/edit.html.haml
897
940
  - app/views/users/edit_account.html.haml
898
941
  - app/views/users/forgot_username.html.haml
@@ -903,7 +946,6 @@ files:
903
946
  - app/views/users/show.html.haml
904
947
  - app/views/users/signup_completed.html.haml
905
948
  - app/views/users/statistics.html.haml
906
- - app/views/users/update.js.erb
907
949
  - app/views/users/upload_profile_photo.html.haml
908
950
  - app/views/users/welcome_about.html.haml
909
951
  - app/views/users/welcome_invite.html.haml
@@ -911,7 +953,10 @@ files:
911
953
  - app/views/votes/create.js.erb
912
954
  - community_engine.gemspec
913
955
  - config/application_config.rb
956
+ - config/initializers/active_admin.rb
957
+ - config/initializers/ckeditor.rb
914
958
  - config/initializers/mce_options.rb
959
+ - config/initializers/ransack_bootstrap_fix.rb
915
960
  - config/initializers/recaptcha_constants.rb
916
961
  - config/initializers/white_list.rb
917
962
  - config/locales/de-DE.yml
@@ -925,6 +970,7 @@ files:
925
970
  - config/locales/sr-CP.yml
926
971
  - config/locales/sv-SE.yml
927
972
  - config/routes.rb
973
+ - config/spring.rb
928
974
  - db/migrate/001_create_users.rb
929
975
  - db/migrate/002_add_activation_code_to_user.rb
930
976
  - db/migrate/003_create_photos.rb
@@ -1004,6 +1050,7 @@ files:
1004
1050
  - db/migrate/080_migrate_to_acts_as_taggable_on.rb
1005
1051
  - db/migrate/081_upgrade_to_friendly_id_5x.rb
1006
1052
  - db/migrate/082_upgrade_to_acts_as_commentable_4x.rb
1053
+ - db/migrate/083_create_active_admin_comments.rb
1007
1054
  - db/sample/users.rb
1008
1055
  - generators/ce_plugin/USAGE
1009
1056
  - generators/ce_plugin/ce_plugin_generator.rb
@@ -1020,6 +1067,18 @@ files:
1020
1067
  - lib/acts_as_publishable.rb
1021
1068
  - lib/acts_as_publishable/acts_as_publishable.rb
1022
1069
  - lib/community_engine.rb
1070
+ - lib/community_engine/admin/ads.rb
1071
+ - lib/community_engine/admin/categories.rb
1072
+ - lib/community_engine/admin/comments.rb
1073
+ - lib/community_engine/admin/dashboard.rb
1074
+ - lib/community_engine/admin/events.rb
1075
+ - lib/community_engine/admin/forums.rb
1076
+ - lib/community_engine/admin/homepage_features.rb
1077
+ - lib/community_engine/admin/metro_areas.rb
1078
+ - lib/community_engine/admin/pages.rb
1079
+ - lib/community_engine/admin/posts.rb
1080
+ - lib/community_engine/admin/tags.rb
1081
+ - lib/community_engine/admin/users.rb
1023
1082
  - lib/community_engine/authenticated_system.rb
1024
1083
  - lib/community_engine/authenticated_test_helper.rb
1025
1084
  - lib/community_engine/community_engine_sha1_crypto_method.rb
@@ -1069,8 +1128,8 @@ files:
1069
1128
  - test/fixtures/topics.yml
1070
1129
  - test/fixtures/users.yml
1071
1130
  - test/functional/activities_controller_test.rb
1131
+ - test/functional/admin/posts_controller_test.rb
1072
1132
  - test/functional/admin_controller_test.rb
1073
- - test/functional/ads_controller_test.rb
1074
1133
  - test/functional/albums_controller_test.rb
1075
1134
  - test/functional/authorizations_controller_test.rb
1076
1135
  - test/functional/base_controller_test.rb
@@ -1081,10 +1140,8 @@ files:
1081
1140
  - test/functional/favorites_controller_test.rb
1082
1141
  - test/functional/forums_controller_test.rb
1083
1142
  - test/functional/friendships_controller_test.rb
1084
- - test/functional/homepage_features_controller_test.rb
1085
1143
  - test/functional/invitations_controller_test.rb
1086
1144
  - test/functional/messages_controller_test.rb
1087
- - test/functional/metro_areas_controller_test.rb
1088
1145
  - test/functional/moderators_controller_test.rb
1089
1146
  - test/functional/monitorships_controller_test.rb
1090
1147
  - test/functional/pages_controller_test.rb
@@ -1096,7 +1153,6 @@ files:
1096
1153
  - test/functional/sb_posts_controller_test.rb
1097
1154
  - test/functional/sessions_controller_test.rb
1098
1155
  - test/functional/sitemap_controller_test.rb
1099
- - test/functional/statistics_controller_test.rb
1100
1156
  - test/functional/tags_controller_test.rb
1101
1157
  - test/functional/topics_controller_test.rb
1102
1158
  - test/functional/users_controller_test.rb
@@ -1124,6 +1180,7 @@ files:
1124
1180
  - test/testapp/config/initializers/session_store.rb
1125
1181
  - test/testapp/config/locales/en.yml
1126
1182
  - test/testapp/config/routes.rb
1183
+ - test/testapp/config/spring.rb
1127
1184
  - test/testapp/db/schema.rb
1128
1185
  - test/testapp/db/seeds.rb
1129
1186
  - test/testapp/doc/README_FOR_APP
@@ -1138,7 +1195,6 @@ files:
1138
1195
  - test/testapp/test/performance/browsing_test.rb
1139
1196
  - test/testapp/test/test_helper.rb
1140
1197
  - test/testapp/vendor/plugins/.gitkeep
1141
- - test/unit/acts_as_taggable_on/tag_test.rb
1142
1198
  - test/unit/ad_test.rb
1143
1199
  - test/unit/asset_test.rb
1144
1200
  - test/unit/authorization_test.rb
@@ -1172,29 +1228,7 @@ files:
1172
1228
  - test/unit/user_test.rb
1173
1229
  - test/unit/vote_test.rb
1174
1230
  - vendor/assets/javascripts/.gitkeep
1175
- - vendor/assets/javascripts/jcrop/jquery.Jcrop.js
1176
- - vendor/assets/javascripts/jcrop/jquery.color.js
1177
- - vendor/assets/javascripts/tag-it/tag-it.js
1178
1231
  - vendor/assets/stylesheets/.gitkeep
1179
- - vendor/assets/stylesheets/jcrop/Jcrop.gif
1180
- - vendor/assets/stylesheets/jcrop/jquery.Jcrop.min.css
1181
- - vendor/assets/stylesheets/tag-it/tag-it.css
1182
- - vendor/assets/stylesheets/tag-it/tagit.ui-zendesk.css
1183
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/README
1184
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/Rakefile
1185
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/generators/publishing/publishing_generator.rb
1186
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/generators/publishing/templates/migration.rb
1187
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/install.rb
1188
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/test/acts_as_publishable_test.rb
1189
- - vendor/converted2.3plugins_to_lib_leftovers/acts_as_publishable/uninstall.rb
1190
- - vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/README
1191
- - vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/Rakefile
1192
- - vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/atom_feed_test.rb
1193
- - vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/rss_feed_test.rb
1194
- - vendor/converted2.3plugins_to_lib_leftovers/resource_feeder/test/test_helper.rb
1195
- - vendor/converted2.3plugins_to_lib_leftovers/white_list/README
1196
- - vendor/converted2.3plugins_to_lib_leftovers/white_list/Rakefile
1197
- - vendor/converted2.3plugins_to_lib_leftovers/white_list/test/white_list_test.rb
1198
1232
  homepage: http://www.communityengine.org
1199
1233
  licenses:
1200
1234
  - MIT
@@ -1206,18 +1240,18 @@ require_paths:
1206
1240
  - lib
1207
1241
  required_ruby_version: !ruby/object:Gem::Requirement
1208
1242
  requirements:
1209
- - - ! '>='
1243
+ - - ">="
1210
1244
  - !ruby/object:Gem::Version
1211
1245
  version: '0'
1212
1246
  required_rubygems_version: !ruby/object:Gem::Requirement
1213
1247
  requirements:
1214
- - - ! '>'
1248
+ - - ">"
1215
1249
  - !ruby/object:Gem::Version
1216
1250
  version: 1.3.1
1217
1251
  requirements: []
1218
1252
  rubyforge_project:
1219
- rubygems_version: 2.4.2
1253
+ rubygems_version: 2.5.1
1220
1254
  signing_key:
1221
1255
  specification_version: 4
1222
- summary: CommunityEngine for Rails 4
1256
+ summary: CommunityEngine for Rails 4.1
1223
1257
  test_files: []