Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

paperclip uploading for photos and user avatar

  • Loading branch information...
commit 95284e7f437ff9b328f17caff668467ab671b6cf 1 parent 513ebe3
@bborn authored
Showing with 781 additions and 552 deletions.
  1. +1 −1  LICENSE
  2. +0 −1  Rakefile
  3. +10 −31 app/controllers/photos_controller.rb
  4. +5 −4 app/controllers/users_controller.rb
  5. +1 −1  app/models/clipping.rb
  6. +4 −7 app/models/clipping_image.rb
  7. +3 −3 app/models/photo.rb
  8. +1 −1  app/models/user.rb
  9. +17 −26 app/views/photos/index.html.haml
  10. +10 −126 app/views/photos/new.html.haml
  11. +13 −8 app/views/photos/show.html.haml
  12. +0 −34 app/views/photos/slideshow.html.erb
  13. +1 −1  app/views/posts/_author_profile.html.haml
  14. +4 −4 app/views/users/edit.html.haml
  15. +2 −2 app/views/users/show.html.haml
  16. +625 −98 community_engine.gemspec
  17. +9 −7 config/application.yml
  18. +0 −20 config/boot.rb
  19. +1 −6 config/routes.rb
  20. +25 −0 db/migrate/077_paperclip_changes.rb
  21. +0 −51 init.rb
  22. +0 −1  install.rb
  23. +8 −55 lib/community_engine.rb
  24. 0  lib/{ → community_engine}/authenticated_system.rb
  25. 0  lib/{ → community_engine}/authenticated_test_helper.rb
  26. 0  lib/{ → community_engine}/community_engine_sha1_crypto_method.rb
  27. +17 −0 lib/community_engine/engine.rb
  28. 0  lib/{ → community_engine}/i18n_extensions.rb
  29. 0  lib/{ → community_engine}/localized_application.rb
  30. 0  lib/{ → community_engine}/rails_asset_extensions.rb
  31. 0  lib/{ → community_engine}/url_upload.rb
  32. 0  lib/{ → community_engine}/viewable.rb
  33. +0 −40 lib/engine.rb
  34. +19 −0 lib/paperclip_processors/cropper.rb
  35. +0 −20 test/functional/photos_controller_test.rb
  36. +5 −3 test/testapp/db/migrate/20110205191778_add_pages.rb
  37. +0 −1  uninstall.rb
View
2  LICENSE
@@ -9,7 +9,7 @@ plugin's website.
The MIT license:
-Copyright (c) 2008 Curbly, LLC
+Copyright (c) 2011 Curbly, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
1  Rakefile
@@ -35,7 +35,6 @@ begin
gem.add_dependency 'rack', '1.2.1'
gem.add_dependency 'configatron'
gem.add_dependency 'hpricot'
- gem.add_dependency 'rmagick'
gem.add_dependency 'htmlentities'
gem.add_dependency 'haml'
gem.add_dependency 'calendar_date_select'
View
41 app/controllers/photos_controller.rb
@@ -1,10 +1,10 @@
-require 'pp'
+ require 'pp'
class PhotosController < BaseController
include Viewable
before_filter :login_required, :only => [:new, :edit, :update, :destroy, :create, :swfupload]
- before_filter :find_user, :only => [:new, :edit, :index, :show, :slideshow, :swfupload]
- before_filter :require_current_user, :only => [:new, :edit, :update, :destroy, :swfupload]
+ before_filter :find_user, :only => [:new, :edit, :index, :show]
+ before_filter :require_current_user, :only => [:new, :edit, :update, :destroy]
skip_before_filter :verify_authenticity_token, :only => [:create] #because the TinyMCE image uploader can't provide the auth token
@@ -23,14 +23,13 @@ def recent
def index
@user = User.find(params[:user_id])
- cond = Caboose::EZ::Condition.new
- cond.user_id == @user.id
+ @photos = Photo.where :user_id => @user.id
if params[:tag_name]
- cond.append ['tags.name = ?', params[:tag_name]]
+ @photos = @photos.where('tags.name = ?', params[:tag_name])
end
-
- @photos = Photo.recent.find(:all, :conditions => cond.to_sql, :include => :tags, :page => {:current => params[:page], :size => 30})
-
+
+ @photos = @photos.includes(:tags).recent.paginate(:page => params[:page])
+
@tags = Photo.tag_counts :conditions => { :user_id => @user.id }, :limit => 20
@rss_title = "#{configatron.community_name}: #{@user.login}'s photos"
@@ -54,10 +53,9 @@ def index
def manage_photos
if logged_in?
@user = current_user
- cond = Caboose::EZ::Condition.new
- cond.user_id == @user.id
+ @photos = Photo.where :user_id => @user.id
if params[:tag_name]
- cond.append ['tags.name = ?', params[:tag_name]]
+ @photos = @photos.where('tags.name = ?', params[:tag_name])
end
@selected = params[:photo_id]
@@ -117,8 +115,6 @@ def create
respond_to do |format|
if @photo.save
- #start the garbage collector
- GC.start
flash[:notice] = :photo_was_successfully_created.l
format.html {
@@ -152,19 +148,6 @@ def create
end
end
- def swfupload
- # swfupload action set in routes.rb
- @photo = Photo.new :uploaded_data => params[:Filedata]
- @photo.user = current_user
- @photo.album_id = params[:album_id] if params[:album_id]
- @photo.album_id = params[:album_selected] unless params[:album_selected].blank?
- @photo.save!
-
- # This returns the thumbnail url for handlers.js to use to display the thumbnail
- render :text => @photo.photo.url(:thumb)
- rescue
- render :text => "Error: #{$!}", :status => 500
- end
# PUT /photos/1
# PUT /photos/1.xml
@@ -200,10 +183,6 @@ def destroy
end
end
- def slideshow
- @xml_file = user_photos_url( {:user_id => @user, :format => :xml}.merge(:tag_name => params[:tag_name]) )
- render :action => 'slideshow'
- end
protected
View
9 app/controllers/users_controller.rb
@@ -1,4 +1,3 @@
-
class UsersController < BaseController
include Viewable
cache_sweeper :taggable_sweeper, :only => [:activate, :update, :destroy]
@@ -114,9 +113,9 @@ def create
def edit
@metro_areas, @states = setup_locations_for(@user)
- @skills = Skill.find(:all)
- @offering = Offering.new
- @avatar = Photo.new
+ @skills = Skill.find(:all)
+ @offering = Offering.new
+ @avatar = (@user.avatar || @user.build_avatar)
end
def update
@@ -132,6 +131,8 @@ def update
@user.tag_list = params[:tag_list] || ''
+ params[:user][:avatar_attributes].merge!(:user_id => @user.id) if params[:user] && params[:user][:avatar_attributes]
+
if @user.update_attributes(params[:user])
@user.track_activity(:updated_profile)
View
2  app/models/clipping.rb
@@ -48,7 +48,7 @@ def owner
end
def image_uri(size = '')
- image && image.clipping_image_file.url(size) || image_url
+ image && image.asset.url(size) || image_url
end
def title_for_rss
View
11 app/models/clipping_image.rb
@@ -1,10 +1,7 @@
class ClippingImage < Asset
include UrlUpload
- has_attached_file :clipping_image_file, default_s3_options.merge(
- :storage => :s3,
- :styles => { :original => '465>', :thumb => "100x100#", :medium_square => "200x200#", :medium => "200>" },
- :path => "/:attachment/:id/:basename:maybe_style.:extension")
- validates_attachment_presence :clipping_image_file
- validates_attachment_content_type :clipping_image_file, :content_type => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
- validates_attachment_size :clipping_image_file, :less_than => 3.megabytes
+ has_attached_file :asset, configatron.clipping.paperclip_options
+ validates_attachment_presence :asset
+ validates_attachment_content_type :photo, :content_type => configatron.clipping.validation_options.content_type
+ validates_attachment_size :photo, :less_than => configatron.clipping.validation_options.max_size.to_i.megabytes
end
View
6 app/models/photo.rb
@@ -2,7 +2,7 @@ class Photo < ActiveRecord::Base
acts_as_commentable
belongs_to :album
- has_attached_file :photo, configatron.photo.paperclip_options
+ has_attached_file :photo, configatron.photo.paperclip_options.to_hash
validates_attachment_presence :photo
validates_attachment_content_type :photo, :content_type => configatron.photo.validation_options.content_type
validates_attachment_size :photo, :less_than => configatron.photo.validation_options.max_size.to_i.megabytes
@@ -17,7 +17,7 @@ class Photo < ActiveRecord::Base
validates_presence_of :user
belongs_to :user
- has_one :user_as_avatar, :class_name => "User", :foreign_key => "avatar_id"
+ has_one :user_as_avatar, :class_name => "User", :foreign_key => "avatar_id", :inverse_of => :avatar
#Named scopes
scope :recent, :order => "photos.created_at DESC"
@@ -25,7 +25,7 @@ class Photo < ActiveRecord::Base
scope :tagged_with, lambda {|tag_name|
{:conditions => ["tags.name = ?", tag_name], :include => :tags}
}
- attr_accessible :name, :description, :photo, :crop_x, :crop_y, :crop_w, :crop_h
+ attr_accessible :name, :description, :photo, :crop_x, :crop_y, :crop_w, :crop_h, :user_id
def display_name
(self.name && self.name.length>0) ? self.name : "#{:created_at.l.downcase}: #{I18n.l(self.created_at, :format => :published_date)}"
View
2  app/models/user.rb
@@ -68,7 +68,7 @@ class User < ActiveRecord::Base
has_many :monitorships, :dependent => :destroy
has_many :monitored_topics, :through => :monitorships, :conditions => ['monitorships.active = ?', true], :order => 'topics.replied_at desc', :source => :topic
- belongs_to :avatar, :class_name => "Photo", :foreign_key => "avatar_id"
+ belongs_to :avatar, :class_name => "Photo", :foreign_key => "avatar_id", :inverse_of => :user_as_avatar
belongs_to :metro_area
belongs_to :state
belongs_to :country
View
43 app/views/photos/index.html.haml
@@ -1,37 +1,28 @@
.yui-b
= render :partial => 'posts/author_profile', :locals => {:user => @user}
+
-box :id => 'tag_list', :class => 'yui-u first' do
%h3=:tags.l
%ul.tags
- - @tags.each do |tag|
- %li
- - if (tag.name.eql?(params[:tag_name]) )
- = link_to tag.name, user_photos_path(@user), :class => "selected"
- - else
- = link_to tag.name, user_photos_path(:user_id => @user, :tag_name => tag.name)
+ - @tags.each do |tag|
+ %li
+ - if (tag.name.eql?(params[:tag_name]) )
+ = link_to tag.name, user_photos_path(@user), :class => "selected"
+ - else
+ = link_to tag.name, user_photos_path(:user_id => @user, :tag_name => tag.name)
#yui-main
.yui-b
- .yui-gd
- =box :id => 'tag_list', :class => 'yui-u first' do
- %h3=:tags.l
- %ul.tags
- - @tags.each do |tag|
- %li
- - if (tag.name.eql?(params[:tag_name]) )
- = link_to tag.name, user_photos_path(@user), :class => "selected"
- - else
- = link_to tag.name, user_photos_path(:user_id => @user, :tag_name => tag.name)
-
- =box :id => "photos", :class => "yui-u" do
- %h3= link_to :users_photos.l(:user=>@user.login), user_photos_path(@user)
- = link_to( :new_photo.l, new_user_photo_path(@user), {:class => 'right'}) if @is_current_user
-
- .clear
- - @photos.each do |photo|
- = link_to image_tag( photo.photo.url(:thumb), :class => "polaroid"), user_photo_path(@user, photo)
-
- .pagination=paginating_links @photos if @photos.total_pages > 1
+
+ -box :id => "photos" do
+ %h3= link_to :users_photos.l(:user=>@user.login), user_photos_path(@user)
+ = link_to( :new_photo.l, new_user_photo_path(@user), {:class => 'right'}) if @is_current_user
+ .clear
+ - @photos.each do |photo|
+ = link_to tag('img', :src => photo.photo.url(:thumb), :class => "polaroid"), user_photo_path(@user, photo)
+ .pagination=paginating_links @photos if @photos.total_pages > 1
+
+
View
136 app/views/photos/new.html.haml
@@ -8,7 +8,7 @@
=:photo_tip_2.l
-box :class => 'alt' do
- = link_to "&raquo; " + :back_to_my_photos.l, user_photos_path(@user)
+ = link_to "&raquo; ".html_safe + :back_to_my_photos.l, user_photos_path(@user)
#yui-main
.yui-b
@@ -17,151 +17,35 @@
=:new_photo.l
= error_messages_for :photo
- %p
- %a{"href"=>"#", "onclick"=>"$('single_upload').toggle(); $('multiple_upload').toggle(); return false"}
- = :want_to_upload_multiple_files_at_once.l
- -box :id => "single_upload", :class => "yui-b" do
- %h3
- =:new_photo.l
= form_for(:photo, :url => user_photos_path(:user_id => current_user.id, :album_id => params[:album_id]), :html => {:multipart =>true, :class => "MainForm"} ) do |f|
- = f.file_field :uploaded_data
- = error_messages_for :photo
- %p
- %a{"href"=>"#", "onclick"=>"$('single_upload').toggle(); $('multiple_upload').toggle(); return false"}
- = :want_to_upload_multiple_files_at_once.l
-
+
+ = f.file_field :photo
+
%label
- %em
- = " " + :megabyte_upload_limit.l(:count => configatron.photo['attachment_fu_options']['max_size'])
- %label
- =:title.l + ":"
+ %em= " " + :megabyte_upload_limit.l(:count => configatron.photo.validation_options.max_size)
+
+ %label=:title.l + ":"
= f.text_field :name, :size => 35
- = form_for(:photo, :url => user_photos_path(:user_id => current_user.id, :album_id => params[:album_id]), :html => {:multipart =>true, :class => "MainForm"} ) do |f|
- = f.file_field :uploaded_data
%label
= :tags.l
%em="(#{:optional_keywords_describing_this_photo_separated_by_commas.l})"
= text_field_tag 'tag_list', @photo.tag_list, {:autocomplete => "off", :size => 35}
- %label
- %em
- = " " + :megabyte_upload_limit.l(:count => configatron.photo['attachment_fu_options']['max_size'])
- %label
- =:title.l + ":"
- = f.text_field :name, :size => 35
#tag_list_auto_complete.auto_complete
= auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
- %label
- = :tags.l
- %em="(#{:optional_keywords_describing_this_photo_separated_by_commas.l})"
- = text_field_tag 'tag_list', @photo.tag_list, {:autocomplete => "off", :size => 35}
- %label
- =:description.l + ":"
+ %label=:description.l + ":"
= f.text_area :description, :size => "58x5"
- #tag_list_auto_complete.auto_complete
- = auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
- unless params[:album_id] || current_user.albums.empty?
- %label
- =:assign_album.l + ":"
+ %label=:assign_album.l + ":"
= select_tag 'album_selected', options_for_select([''] +current_user.albums.collect{ |album| [album.title, album.id] })
- %label
- =:description.l + ":"
- = f.text_area :description, :size => "58x5"
+
%p
= submit_tag :create.l
= :or.l
= link_to :cancel_and_go_back_to_photo_manager.l, user_photo_manager_index_path(current_user)
-
- .yui-b
- -box :id => 'multiple_upload', :style => "display:none;" do
- %h3
- =:new_photos_multiple_uploader.l
- - unless params[:album_id] || current_user.albums.empty?
- %label
- =:assign_album.l + ":"
- = select_tag 'album_selected', options_for_select([''] +current_user.albums.collect{ |album| [album.title, album.id] })
-
- %p
- %a{"href"=>"#", "onclick"=>"$('single_upload').toggle(); $('multiple_upload').toggle(); return false"}
- =:just_uploading_one_photo.l
- = submit_tag :create.l
- = :or.l
- = link_to :cancel_and_go_back_to_photo_manager.l, user_photo_manager_index_path(current_user)
-
- -box :class => 'yui-b', :id => 'multiple_upload', :style => "display:none;" do
- %h3
- =:new_photos_multiple_uploader.l
-
- %p
- %a{"href"=>"#", "onclick"=>"$('single_upload').toggle(); $('multiple_upload').toggle(); return false"}
- =:just_uploading_one_photo.l
-
- %p.centered
- %p.centered
-
- %script{:type=>'text/javascript'}
- var uploader;
- window.onload = function (){
- - session_key = ActionController::Base.session_options[:key]
- - if params[:album_id]
- ="uploader = new CommunityEngine.SwfUpload('#{swfupload_user_photos_path(:user_id => current_user.id, :album_id => params[:album_id], |
- session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)}');" |
- - else
- ="uploader = new CommunityEngine.SwfUpload('#{swfupload_user_photos_path(:user_id => current_user.id, |
- session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)}');" |
- };
- %script{:type=>'text/javascript'}
- var uploader;
- window.onload = function (){
- - session_key = ActionController::Base.session_options[:key]
- - if params[:album_id]
- ="uploader = new CommunityEngine.SwfUpload('#{swfupload_user_photos_path(:user_id => current_user.id, :album_id => params[:album_id], |
- session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)}');" |
- - else
- ="uploader = new CommunityEngine.SwfUpload('#{swfupload_user_photos_path(:user_id => current_user.id, |
- session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)}');" |
- };
-
- %div
- %div
- %div
- %form.MainForm
- %div{:style=>"display: inline; border: solid 1px #7FAAFF; background: #C5D9FF; padding: 10px 0 0 0;"}
- %span{:id=>"SWFUploadButton"}
- %label
- %em
- =:you_can_select_up_to_5_files_at_a_time.l
- %br
- = :megabyte_upload_limit_per_file.l(:count => configatron.photo['attachment_fu_options']['max_size'])
- #divFileProgressContainer{:style=>"height: 75px;"}
- #thumbnails
- %p
- - if params[:album_id]
- = link_to :view_my_album.l, user_album_path(current_user,params[:album_id])
- - else
- = link_to :back_to_my_photos.l, user_photos_path(current_user)
- = :or.l
- = link_to :back_to_photo_manager.l, user_photo_manager_index_path(current_user)
- %form.MainForm
- %div{:style=>"display: inline; border: solid 1px #7FAAFF; background: #C5D9FF; padding: 10px 0 0 0;"}
- %span{:id=>"SWFUploadButton"}
- %label
- %em
- =:you_can_select_up_to_5_files_at_a_time.l
- %br
- = :megabyte_upload_limit_per_file.l(:count => configatron.photo['attachment_fu_options']['max_size'])
- #divFileProgressContainer{:style=>"height: 75px;"}
- #thumbnails
- %p
- - if params[:album_id]
- = link_to :view_my_album.l, user_album_path(current_user,params[:album_id])
- - else
- = link_to :back_to_my_photos.l, user_photos_path(current_user)
- = :or.l
- = link_to :back_to_photo_manager.l, user_photo_manager_index_path(current_user)
View
21 app/views/photos/show.html.haml
@@ -3,17 +3,21 @@
= render :partial => 'posts/author_profile', :locals => {:user => @user}
- if @photo.album
- =box :class => "photo_nav alt" do
+ -box :class => "photo_nav alt" do
%h3= "#{:album.l}: #{link_to @photo.album.title, user_album_path(@user, @photo.album)}"
+
= link_to "<img src='#{@photo.previous_in_album.photo.url(:thumb)}' /><br />&laquo; ".html_safe + :previous.l, user_photo_path(@user, @photo.previous_in_album), :class => 'left' if @photo.previous_in_album
+
= link_to "<img src='#{@photo.next_in_album.photo.url(:thumb)}' /><br />".html_safe + :next.l + "&raquo;".html_safe, user_photo_path(@user, @photo.next_in_album), :class => 'right' if @photo.next_in_album
+
- elsif @previous || @next
- =box :class => "photo_nav alt" do
+ -box :class => "photo_nav alt" do
= link_to "<img src='#{@previous.photo.url(:thumb)}' /><br />&laquo; ".html_safe + :previous.l, user_photo_path(@user, @previous), :class => 'left' if @previous
+
= link_to "<img src='#{@next.photo.url(:thumb)}' /><br />" + :next.l + "&raquo;".html_safe, user_photo_path(@user, @next), :class => 'right' if @next
- if @related.any?
- =box :class => "alt" do
+ -box :class => "alt" do
%h3=:related_photos_all_members.l
.centered
- @related.each do |photo|
@@ -21,24 +25,25 @@
#yui-main
.yui-b
- =box :class => "hfeed" do
+ -box :class => "hfeed" do
%h3
= link_to :users_photos.l_with_args(:user => @user.login), user_photos_path(@user)
\:
= link_to h(@photo.display_name), user_photo_path(@user, @photo)
+
- if @is_current_user
- =box :class => "alt" do
+ -box :class => "alt" do
= link_to :make_this_my_profile_photo.l, change_profile_photo_user_path({:id => @user, :photo_id => @photo}), :method => :put
|
= link_to :edit_this_photo_details.l, edit_user_photo_path(@user, @photo) if @is_current_user
|
- = link_to(:delete_this_photo.l, user_photo_path(@user, @photo), :method => :delete) + "<br class='clear' />"
+ = link_to(:delete_this_photo.l, user_photo_path(@user, @photo), :method => :delete) + "<br class='clear' />".html_safe
- %p.centered= image_tag( @photo.photo.url, :class => "polaroid" )
+ %p.centered= tag(:img, :src => @photo.photo(:large), :class => "polaroid" )
%p= h @photo.description
%p= @photo.tags.collect{|t| link_to( h(t.name), tag_url(t), :class => 'tag') }.join(" ")
- =box :class => "hfeed comments", :id => 'comments' do
+ -box :class => "hfeed comments", :id => 'comments' do
%h3=:photo_comments.l
%h2=:add_your_comment.l
%p= render :partial => 'comments/comment_form', :locals => {:commentable => @photo}
View
34 app/views/photos/slideshow.html.erb
@@ -1,34 +0,0 @@
-<style type="text/css" media="screen">
- body {
- }
-
- #header-wrapper {
- height:51px;
- }
-
- #header ul#global_navigation li {
- background: none;
- }
- #header .span-5 {
- background: none;
- }
- #bd-wrapper {
- background:none;
- }
- #bd-wrapper #bd {
- background:none;
- }
- #bd-bottom {
- background:none;
- }
- #ft-wrapper {
- background:none;
- border: none;
- }
-
-</style>
-
-<div class="centered">
- <%= :the_slideshow_is_disabled.l %>
- <!-- Here's where you'd put a slideshow component -->
-</div>
View
2  app/views/posts/_author_profile.html.haml
@@ -2,7 +2,7 @@
%h3=:author.l
%dl.vcard
%dt.photo
- = link_to image_tag( user.avatar_photo_url(:thumb), "height"=>"50", "alt"=>"#{user.login}", "width"=>"50" ), user_path(user), :title => "#{user.login}'s"+ :profile.l
+ = link_to tag(:img, :src => user.avatar_photo_url(:thumb), "height"=>"50", "alt"=>"#{user.login}", "width"=>"50" ), user_path(user), :title => "#{user.login}'s"+ :profile.l
%dd.fn
= link_to user.login, user_path(user), :class => 'url'
= " <small>(" + :featured_writer.l + ")</small>" if user.featured_writer?
View
8 app/views/users/edit.html.haml
@@ -1,4 +1,4 @@
-= form_tag user_url(@user), :method => 'put', :multipart =>true, :class => 'MainForm' do
+= form_for @user, :html => {:class => 'MainForm', :multipart =>true} do |f|
-box :class => "alt first_alt" do
%h3=:you_are_editing_your_profile.l
= link_to "&raquo; ".html_safe + :edit_your_account_settings_instead.l, edit_account_user_path(@user)
@@ -11,9 +11,9 @@
%h3=:profile_photo.l
= @user.vendor ? "<div class='right_corner'><div class='community_pro'></div></div>" : ''
= image_tag( @user.avatar_photo_url(:medium), :class => "polaroid" )
- %label
- =:choose_a_photo_for_your_profile.l
- = file_field :avatar, :uploaded_data, :size => "20"
+ = f.fields_for :avatar, @avatar do |avatar_form|
+ %label=:choose_a_photo_for_your_profile.l
+ = avatar_form.file_field :photo, :size => '15'
%h3= :location.l
= render :partial => 'shared/location_chooser', :locals => {:selected_country => @user.country_id, :selected_state => @user.state_id, :selected_metro_area => @user.metro_area_id, :states => @states, :metro_areas => @metro_areas}
View
4 app/views/users/show.html.haml
@@ -75,10 +75,10 @@
-box :id => "photos" do
%h3=:my_photos.l
- @photos.each do |photo|
- = link_to image_tag( photo.public_filename(:thumb), :class => "polaroid"), user_photo_path(@user, photo)
+ = link_to image_tag( photo.photo.url(:thumb), :class => "polaroid"), user_photo_path(@user, photo)
%h6.all.right= link_to :view_all_my_photos.l, user_photos_path(@user)
- = "#{link_to(:add_a_photo.l, new_user_photo_path(@user))}" if @is_current_user
+ =link_to(:add_a_photo.l, new_user_photo_path(@user)) if @is_current_user
- unless @recent_posts.empty?
-box :id => "posts" do
View
723 community_engine.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Bruno Bornsztein"]
- s.date = %q{2011-02-03}
+ s.date = %q{2011-02-08}
s.email = %q{admin@curbly.com}
s.extra_rdoc_files = [
"LICENSE",
@@ -369,6 +369,16 @@ Gem::Specification.new do |s|
"config/initializers/rakismet.rb",
"config/initializers/recaptcha_constants.rb",
"config/initializers/white_list.rb",
+ "config/locales/de-DE.yml",
+ "config/locales/en.yml",
+ "config/locales/es-AR.yml",
+ "config/locales/es-ES.yml",
+ "config/locales/es-MX.yml",
+ "config/locales/fr-FR.yml",
+ "config/locales/ja-JP.yml",
+ "config/locales/ru-RU.yml",
+ "config/locales/sr-CP.yml",
+ "config/locales/sv-SE.yml",
"config/routes.rb",
"db/migrate/001_create_users.rb",
"db/migrate/002_add_activation_code_to_user.rb",
@@ -462,12 +472,10 @@ Gem::Specification.new do |s|
"lib/community_engine.rb",
"lib/community_engine_sha1_crypto_method.rb",
"lib/engine.rb",
+ "lib/i18n_extensions.rb",
"lib/localized_application.rb",
"lib/rails_asset_extensions.rb",
- "lib/s3-driver.rb",
- "lib/s3-test.rb",
- "lib/s3.rb",
- "lib/s3_cache_control.rb",
+ "lib/tasks/community_engine_tasks.rake",
"lib/url_upload.rb",
"lib/viewable.rb",
"public/charts/charts.swf",
@@ -865,22 +873,7 @@ Gem::Specification.new do |s|
"public/stylesheets/reset.css",
"public/stylesheets/screen.css",
"sample_files/amazon_s3.yml",
- "sample_files/deployment_templates/database.erb",
- "sample_files/deployment_templates/deploy.erb",
- "sample_files/deployment_templates/god.erb",
- "sample_files/deployment_templates/mongrel.erb",
- "sample_files/deployment_templates/mysql.erb",
- "sample_files/deployment_templates/nginx.erb",
"sample_files/s3.yml",
- "sample_files/sample_themes/dappled/images/bg_body.png",
- "sample_files/sample_themes/dappled/images/header.jpg",
- "sample_files/sample_themes/dappled/stylesheets/screen.css",
- "sample_files/sample_themes/dappled/views/base/_homepage_banner_message.html.haml",
- "sample_files/sample_themes/dappled/views/shared/_header.html.haml",
- "sample_files/sample_themes/dappled/views/shared/_scripts_and_styles.html.haml",
- "tasks/community_engine_tasks.rake",
- "tasks/deployment.rake",
- "tasks/s3.rake",
"test/all_tests.rb",
"test/fixtures/ads.yml",
"test/fixtures/albums.yml",
@@ -951,6 +944,521 @@ Gem::Specification.new do |s|
"test/functional/users_controller_test.rb",
"test/functional/votes_controller_test.rb",
"test/test_helper.rb",
+ "test/testapp/.gitignore",
+ "test/testapp/Gemfile",
+ "test/testapp/Gemfile.lock",
+ "test/testapp/README",
+ "test/testapp/Rakefile",
+ "test/testapp/app/controllers/application_controller.rb",
+ "test/testapp/app/helpers/application_helper.rb",
+ "test/testapp/app/views/layouts/application.html.erb",
+ "test/testapp/config.ru",
+ "test/testapp/config/application.rb",
+ "test/testapp/config/application.yml",
+ "test/testapp/config/boot.rb",
+ "test/testapp/config/database.yml",
+ "test/testapp/config/environment.rb",
+ "test/testapp/config/environments/development.rb",
+ "test/testapp/config/environments/production.rb",
+ "test/testapp/config/environments/test.rb",
+ "test/testapp/config/initializers/backtrace_silencers.rb",
+ "test/testapp/config/initializers/inflections.rb",
+ "test/testapp/config/initializers/mime_types.rb",
+ "test/testapp/config/initializers/secret_token.rb",
+ "test/testapp/config/initializers/session_store.rb",
+ "test/testapp/config/locales/en.yml",
+ "test/testapp/config/routes.rb",
+ "test/testapp/db/migrate/20110205191710_create_users.rb",
+ "test/testapp/db/migrate/20110205191711_add_activation_code_to_user.rb",
+ "test/testapp/db/migrate/20110205191712_create_photos.rb",
+ "test/testapp/db/migrate/20110205191713_add_tag_support.rb",
+ "test/testapp/db/migrate/20110205191714_create_friendships.rb",
+ "test/testapp/db/migrate/20110205191715_add_comments_tables.rb",
+ "test/testapp/db/migrate/20110205191716_create_friendship_statuses.rb",
+ "test/testapp/db/migrate/20110205191717_add_friendship_statuses.rb",
+ "test/testapp/db/migrate/20110205191718_create_clippings.rb",
+ "test/testapp/db/migrate/20110205191719_create_invitations.rb",
+ "test/testapp/db/migrate/20110205191720_create_homepage_features.rb",
+ "test/testapp/db/migrate/20110205191721_create_posts.rb",
+ "test/testapp/db/migrate/20110205191722_create_states.rb",
+ "test/testapp/db/migrate/20110205191723_add_states.rb",
+ "test/testapp/db/migrate/20110205191724_create_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191725_add_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191726_add_sessions_table.rb",
+ "test/testapp/db/migrate/20110205191727_create_categories.rb",
+ "test/testapp/db/migrate/20110205191728_change_comment_to_text_field.rb",
+ "test/testapp/db/migrate/20110205191729_create_login_slug.rb",
+ "test/testapp/db/migrate/20110205191730_add_category_names.rb",
+ "test/testapp/db/migrate/20110205191731_create_contests.rb",
+ "test/testapp/db/migrate/20110205191732_add_denied_friendship_status.rb",
+ "test/testapp/db/migrate/20110205191733_add_notification_preferences.rb",
+ "test/testapp/db/migrate/20110205191734_create_countries.rb",
+ "test/testapp/db/migrate/20110205191735_add_countries.rb",
+ "test/testapp/db/migrate/20110205191736_add_us_to_existing_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191737_add_country_id_to_users.rb",
+ "test/testapp/db/migrate/20110205191738_add_us_to_users_with_states.rb",
+ "test/testapp/db/migrate/20110205191739_add_users_counter_cache.rb",
+ "test/testapp/db/migrate/20110205191740_news_to_talk.rb",
+ "test/testapp/db/migrate/20110205191741_add_contest_fields.rb",
+ "test/testapp/db/migrate/20110205191742_featured_users.rb",
+ "test/testapp/db/migrate/20110205191743_add_last_login.rb",
+ "test/testapp/db/migrate/20110205191744_track_emailed.rb",
+ "test/testapp/db/migrate/20110205191745_create_skills.rb",
+ "test/testapp/db/migrate/20110205191746_create_offerings.rb",
+ "test/testapp/db/migrate/20110205191747_add_zag_to_users.rb",
+ "test/testapp/db/migrate/20110205191748_create_activities_table.rb",
+ "test/testapp/db/migrate/20110205191749_add_category_tips.rb",
+ "test/testapp/db/migrate/20110205191750_create_events_table.rb",
+ "test/testapp/db/migrate/20110205191751_add_privacy_to_users.rb",
+ "test/testapp/db/migrate/20110205191752_sql_session_store_setup.rb",
+ "test/testapp/db/migrate/20110205191753_category_improvements.rb",
+ "test/testapp/db/migrate/20110205191754_adding_indexes.rb",
+ "test/testapp/db/migrate/20110205191755_adding_ads.rb",
+ "test/testapp/db/migrate/20110205191756_add_polls.rb",
+ "test/testapp/db/migrate/20110205191757_add_activities_count.rb",
+ "test/testapp/db/migrate/20110205191758_create_initial_schema.rb",
+ "test/testapp/db/migrate/20110205191759_add_audience_limitation_to_ads.rb",
+ "test/testapp/db/migrate/20110205191760_create_assets.rb",
+ "test/testapp/db/migrate/20110205191761_create_favoritables.rb",
+ "test/testapp/db/migrate/20110205191762_add_published_as_to_posts.rb",
+ "test/testapp/db/migrate/20110205191763_add_published_at_to_posts.rb",
+ "test/testapp/db/migrate/20110205191764_create_roles.rb",
+ "test/testapp/db/migrate/20110205191765_add_more_indexes.rb",
+ "test/testapp/db/migrate/20110205191766_add_anonymous_commenting_fields.rb",
+ "test/testapp/db/migrate/20110205191767_create_messages.rb",
+ "test/testapp/db/migrate/20110205191768_still_more_indexes.rb",
+ "test/testapp/db/migrate/20110205191769_postgres_compatibility_changes.rb",
+ "test/testapp/db/migrate/20110205191770_add_notify_to_comments.rb",
+ "test/testapp/db/migrate/20110205191771_create_albums.rb",
+ "test/testapp/db/migrate/20110205191772_add_album_id_to_photos.rb",
+ "test/testapp/db/migrate/20110205191773_add_view_count_to_albums.rb",
+ "test/testapp/db/migrate/20110205191774_add_view_count_to_photos.rb",
+ "test/testapp/db/migrate/20110205191775_create_static_pages.rb",
+ "test/testapp/db/migrate/20110205191776_create_rsvps.rb",
+ "test/testapp/db/migrate/20110205191777_create_pages.rb",
+ "test/testapp/db/migrate/20110205191778_add_pages.rb",
+ "test/testapp/db/migrate/20110205191779_authlogic_compatibility_changes.rb",
+ "test/testapp/db/migrate/20110205191780_add_allow_rsvp_to_events.rb",
+ "test/testapp/db/migrate/20110205191781_add_taggings_count_to_tags.rb",
+ "test/testapp/db/migrate/20110205191782_add_threading_to_messages.rb",
+ "test/testapp/db/migrate/20110205191783_add_anonymous_forum_posting.rb",
+ "test/testapp/db/migrate/20110205191784_add_comment_notification_toggle.rb",
+ "test/testapp/db/schema.rb",
+ "test/testapp/db/seeds.rb",
+ "test/testapp/doc/README_FOR_APP",
+ "test/testapp/lib/tasks/.gitkeep",
+ "test/testapp/public/404.html",
+ "test/testapp/public/422.html",
+ "test/testapp/public/500.html",
+ "test/testapp/public/community_engine/charts/charts.swf",
+ "test/testapp/public/community_engine/charts/charts_library/arno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/arst.swf",
+ "test/testapp/public/community_engine/charts/charts_library/brfl.swf",
+ "test/testapp/public/community_engine/charts/charts_library/brno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/brst.swf",
+ "test/testapp/public/community_engine/charts/charts_library/cl3d.swf",
+ "test/testapp/public/community_engine/charts/charts_library/clfl.swf",
+ "test/testapp/public/community_engine/charts/charts_library/clno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/clp3.swf",
+ "test/testapp/public/community_engine/charts/charts_library/cls3.swf",
+ "test/testapp/public/community_engine/charts/charts_library/clst.swf",
+ "test/testapp/public/community_engine/charts/charts_library/cnno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/lnno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/mxno.swf",
+ "test/testapp/public/community_engine/charts/charts_library/pi3d.swf",
+ "test/testapp/public/community_engine/charts/charts_library/pino.swf",
+ "test/testapp/public/community_engine/charts/charts_library/pono.swf",
+ "test/testapp/public/community_engine/charts/charts_library/scno.swf",
+ "test/testapp/public/community_engine/charts/themes/commando/bar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/base_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/column_threed_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/parallel_threed_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/pie_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/pie_threed_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/polar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/stacked_bar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/stacked_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/commando/stacked_threed_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/bar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/base_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/column_threed_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/parallel_threed_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/pie_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/pie_threed_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/polar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/stacked_bar_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/stacked_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/stacked_threed_column_chart.yml",
+ "test/testapp/public/community_engine/charts/themes/default/test.yml",
+ "test/testapp/public/community_engine/contest_enter.png",
+ "test/testapp/public/community_engine/favicon.ico",
+ "test/testapp/public/community_engine/images/bg_h6btn.gif",
+ "test/testapp/public/community_engine/images/bg_navbar.gif",
+ "test/testapp/public/community_engine/images/clearbits/bg_rounded.gif",
+ "test/testapp/public/community_engine/images/clearbits/comment.gif",
+ "test/testapp/public/community_engine/images/clearbits/lock.gif",
+ "test/testapp/public/community_engine/images/clearbits/smile.gif",
+ "test/testapp/public/community_engine/images/close.gif",
+ "test/testapp/public/community_engine/images/cropper/marqueeHoriz.gif",
+ "test/testapp/public/community_engine/images/cropper/marqueeVert.gif",
+ "test/testapp/public/community_engine/images/feed.png",
+ "test/testapp/public/community_engine/images/icon_missing_medium.gif",
+ "test/testapp/public/community_engine/images/icon_missing_thumb.gif",
+ "test/testapp/public/community_engine/images/icons/31.png",
+ "test/testapp/public/community_engine/images/icons/52.png",
+ "test/testapp/public/community_engine/images/icons/accept.png",
+ "test/testapp/public/community_engine/images/icons/activity_default.png",
+ "test/testapp/public/community_engine/images/icons/add.png",
+ "test/testapp/public/community_engine/images/icons/book.png",
+ "test/testapp/public/community_engine/images/icons/bullet_arrow_down.png",
+ "test/testapp/public/community_engine/images/icons/bullet_arrow_down_50.png",
+ "test/testapp/public/community_engine/images/icons/clipping.png",
+ "test/testapp/public/community_engine/images/icons/comment.png",
+ "test/testapp/public/community_engine/images/icons/comments.png",
+ "test/testapp/public/community_engine/images/icons/date.png",
+ "test/testapp/public/community_engine/images/icons/delete.png",
+ "test/testapp/public/community_engine/images/icons/email.png",
+ "test/testapp/public/community_engine/images/icons/email_edit.png",
+ "test/testapp/public/community_engine/images/icons/email_go.png",
+ "test/testapp/public/community_engine/images/icons/email_open.png",
+ "test/testapp/public/community_engine/images/icons/group_go.png",
+ "test/testapp/public/community_engine/images/icons/heart.png",
+ "test/testapp/public/community_engine/images/icons/heart_add.png",
+ "test/testapp/public/community_engine/images/icons/heart_off.png",
+ "test/testapp/public/community_engine/images/icons/ical.gif",
+ "test/testapp/public/community_engine/images/icons/page_white.png",
+ "test/testapp/public/community_engine/images/icons/page_white_magnify.png",
+ "test/testapp/public/community_engine/images/icons/picture.png",
+ "test/testapp/public/community_engine/images/icons/poll.png",
+ "test/testapp/public/community_engine/images/icons/post.png",
+ "test/testapp/public/community_engine/images/icons/printer.png",
+ "test/testapp/public/community_engine/images/icons/rss.png",
+ "test/testapp/public/community_engine/images/icons/slides.png",
+ "test/testapp/public/community_engine/images/icons/tag_blue.png",
+ "test/testapp/public/community_engine/images/icons/user.png",
+ "test/testapp/public/community_engine/images/icons/user_add.png",
+ "test/testapp/public/community_engine/images/icons/user_edit.png",
+ "test/testapp/public/community_engine/images/icons/user_go.png",
+ "test/testapp/public/community_engine/images/icons/vote.png",
+ "test/testapp/public/community_engine/images/icons/world.png",
+ "test/testapp/public/community_engine/images/icons/wrench.png",
+ "test/testapp/public/community_engine/images/logo.gif",
+ "test/testapp/public/community_engine/images/reply_background.png",
+ "test/testapp/public/community_engine/images/search.gif",
+ "test/testapp/public/community_engine/images/spinner.gif",
+ "test/testapp/public/community_engine/images/spinner_black.gif",
+ "test/testapp/public/community_engine/images/spinner_bounce.gif",
+ "test/testapp/public/community_engine/images/swf/choose.png",
+ "test/testapp/public/community_engine/images/swf/line_grapher.swf",
+ "test/testapp/public/community_engine/images/swf/swfupload.swf",
+ "test/testapp/public/community_engine/images/thumb.gif",
+ "test/testapp/public/community_engine/javascripts/AC_RunActiveContent.js",
+ "test/testapp/public/community_engine/javascripts/application.js",
+ "test/testapp/public/community_engine/javascripts/builder.js",
+ "test/testapp/public/community_engine/javascripts/calendarview.js",
+ "test/testapp/public/community_engine/javascripts/controls.js",
+ "test/testapp/public/community_engine/javascripts/cropper.css",
+ "test/testapp/public/community_engine/javascripts/cropper.js",
+ "test/testapp/public/community_engine/javascripts/dragdrop.js",
+ "test/testapp/public/community_engine/javascripts/effects.js",
+ "test/testapp/public/community_engine/javascripts/event-selectors.js",
+ "test/testapp/public/community_engine/javascripts/forum.js",
+ "test/testapp/public/community_engine/javascripts/lightbox.js",
+ "test/testapp/public/community_engine/javascripts/lowpro.js",
+ "test/testapp/public/community_engine/javascripts/prototip-min.js",
+ "test/testapp/public/community_engine/javascripts/prototype.js",
+ "test/testapp/public/community_engine/javascripts/rounder.js",
+ "test/testapp/public/community_engine/javascripts/scrapbooker.js",
+ "test/testapp/public/community_engine/javascripts/scriptaculous.js",
+ "test/testapp/public/community_engine/javascripts/slider.js",
+ "test/testapp/public/community_engine/javascripts/slideshow/blank.gif",
+ "test/testapp/public/community_engine/javascripts/slideshow/info.gif",
+ "test/testapp/public/community_engine/javascripts/slideshow/loading.gif",
+ "test/testapp/public/community_engine/javascripts/slideshow/next.gif",
+ "test/testapp/public/community_engine/javascripts/slideshow/prev.gif",
+ "test/testapp/public/community_engine/javascripts/slideshow/slideshow.css",
+ "test/testapp/public/community_engine/javascripts/slideshow/slideshow.js",
+ "test/testapp/public/community_engine/javascripts/sound.js",
+ "test/testapp/public/community_engine/javascripts/swfupload.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/langs/en.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/license.txt",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/css/advhr.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/js/rule.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advhr/rule.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/css/advimage.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/image.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/img/sample.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/js/image.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/css/advlink.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/js/advlink.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/advlink/link.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/autosave/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/compat2x/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/compat2x/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/css/advimage.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/image.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/img/sample.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/js/functions.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/langs/en.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/curblyadvimage/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/directionality/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/emotions.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/js/emotions.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/dialog.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/img/example.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/js/dialog.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/langs/en.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/example/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/fullpage.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/iespell/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/inlinepopups/template.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/layer/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/css/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/css/media.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/flash.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/flv_player.swf",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/quicktime.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/realmedia.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/shockwave.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/trans.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/js/embed.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/js/media.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/media/media.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/pagebreak/css/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/blank.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/css/blank.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/css/pasteword.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/js/pastetext.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/js/pasteword.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/pastetext.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/paste/pasteword.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/preview/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/preview/example.html",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/preview/jscripts/embed.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/preview/preview.html",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/print/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/print/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/safari/blank.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/safari/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/save/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/save/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/spellchecker/css/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/css/props.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/js/props.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/style/props.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/cell.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/css/cell.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/css/row.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/css/table.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/js/cell.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/js/merge_cells.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/js/row.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/js/table.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/merge_cells.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/row.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/table/table.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/blank.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/css/template.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/js/template.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/template/template.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/about.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/anchor.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/charmap.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/color_picker.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/editor_template.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/editor_template_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/image.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/img/icons.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/about.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/anchor.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/charmap.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/color_picker.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/image.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/link.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/js/source_editor.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/langs/en.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/link.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/default/ui.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/advanced/source_editor.htm",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/editor_template.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/editor_template_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/img/icons.gif",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/langs/en.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/skins/default/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/skins/default/ui.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/tiny_mce.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/tiny_mce_popup.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/tiny_mce_src.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/utils/editable_selects.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/utils/form_utils.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/utils/mctabs.js",
+ "test/testapp/public/community_engine/javascripts/tiny_mce/utils/validate.js",
+ "test/testapp/public/community_engine/javascripts/uploader.js",
+ "test/testapp/public/community_engine/open_search.xml",
+ "test/testapp/public/community_engine/stylesheets/fonts.css",
+ "test/testapp/public/community_engine/stylesheets/forum.css",
+ "test/testapp/public/community_engine/stylesheets/grids.css",
+ "test/testapp/public/community_engine/stylesheets/lightbox.css",
+ "test/testapp/public/community_engine/stylesheets/print.css",
+ "test/testapp/public/community_engine/stylesheets/prototip.css",
+ "test/testapp/public/community_engine/stylesheets/reset-fonts-grids.css",
+ "test/testapp/public/community_engine/stylesheets/reset.css",
+ "test/testapp/public/community_engine/stylesheets/screen.css",
+ "test/testapp/public/favicon.ico",
+ "test/testapp/public/images/rails.png",
+ "test/testapp/public/index.html",
+ "test/testapp/public/javascripts/application.js",
+ "test/testapp/public/javascripts/controls.js",
+ "test/testapp/public/javascripts/dragdrop.js",
+ "test/testapp/public/javascripts/effects.js",
+ "test/testapp/public/javascripts/prototype.js",
+ "test/testapp/public/javascripts/rails.js",
+ "test/testapp/public/robots.txt",
+ "test/testapp/public/stylesheets/.gitkeep",
+ "test/testapp/script/rails",
+ "test/testapp/test/performance/browsing_test.rb",
+ "test/testapp/test/test_helper.rb",
+ "test/testapp/vendor/plugins/.gitkeep",
"test/unit/ad_test.rb",
"test/unit/asset_test.rb",
"test/unit/category_test.rb",
@@ -1059,54 +1567,6 @@ Gem::Specification.new do |s|
"vendor/plugins/acts_as_taggable_on_steroids/test/tag_test.rb",
"vendor/plugins/acts_as_taggable_on_steroids/test/tagging_test.rb",
"vendor/plugins/acts_as_taggable_on_steroids/test/tags_helper_test.rb",
- "vendor/plugins/attachment_fu/.gitignore",
- "vendor/plugins/attachment_fu/CHANGELOG",
- "vendor/plugins/attachment_fu/LICENSE",
- "vendor/plugins/attachment_fu/README",
- "vendor/plugins/attachment_fu/Rakefile",
- "vendor/plugins/attachment_fu/amazon_s3.yml.tpl",
- "vendor/plugins/attachment_fu/init.rb",
- "vendor/plugins/attachment_fu/install.rb",
- "vendor/plugins/attachment_fu/lib/geometry.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/cloud_file_backend.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/core_image_processor.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/gd2_processor.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb",
- "vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb",
- "vendor/plugins/attachment_fu/rackspace_cloudfiles.yml.tpl",
- "vendor/plugins/attachment_fu/test/backends/db_file_test.rb",
- "vendor/plugins/attachment_fu/test/backends/file_system_test.rb",
- "vendor/plugins/attachment_fu/test/backends/remote/cloudfiles_test.rb",
- "vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb",
- "vendor/plugins/attachment_fu/test/base_attachment_tests.rb",
- "vendor/plugins/attachment_fu/test/basic_test.rb",
- "vendor/plugins/attachment_fu/test/database.yml",
- "vendor/plugins/attachment_fu/test/extra_attachment_test.rb",
- "vendor/plugins/attachment_fu/test/fixtures/attachment.rb",
- "vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png",
- "vendor/plugins/attachment_fu/test/fixtures/files/foo.txt",
- "vendor/plugins/attachment_fu/test/fixtures/files/rails.png",
- "vendor/plugins/attachment_fu/test/geometry_test.rb",
- "vendor/plugins/attachment_fu/test/processors/core_image_test.rb",
- "vendor/plugins/attachment_fu/test/processors/gd2_test.rb",
- "vendor/plugins/attachment_fu/test/processors/image_science_test.rb",
- "vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb",
- "vendor/plugins/attachment_fu/test/processors/rmagick_test.rb",
- "vendor/plugins/attachment_fu/test/schema.rb",
- "vendor/plugins/attachment_fu/test/test_helper.rb",
- "vendor/plugins/attachment_fu/test/validation_test.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/color.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/effects.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/perspective.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/scale.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/watermark.rb",
- "vendor/plugins/attachment_fu/vendor/red_artisan/core_image/processor.rb",
"vendor/plugins/auto_complete/README",
"vendor/plugins/auto_complete/Rakefile",
"vendor/plugins/auto_complete/init.rb",
@@ -1125,23 +1585,10 @@ Gem::Specification.new do |s|
"vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb",
"vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb",
"vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb",
- "vendor/plugins/haml/init.rb",
- "vendor/plugins/mimetype-fu/MIT-LICENSE",
- "vendor/plugins/mimetype-fu/README",
- "vendor/plugins/mimetype-fu/Rakefile",
- "vendor/plugins/mimetype-fu/init.rb",
- "vendor/plugins/mimetype-fu/install.rb",
- "vendor/plugins/mimetype-fu/lib/extensions_const.rb",
- "vendor/plugins/mimetype-fu/lib/mime_types.yml",
- "vendor/plugins/mimetype-fu/lib/mimetype_fu.rb",
- "vendor/plugins/mimetype-fu/spec/fixtures/file.jpg",
- "vendor/plugins/mimetype-fu/spec/fixtures/file.rb",
- "vendor/plugins/mimetype-fu/spec/fixtures/file.unknown",
- "vendor/plugins/mimetype-fu/spec/mime_type_spec.rb",
- "vendor/plugins/mimetype-fu/spec/spec_helper.rb",
- "vendor/plugins/mimetype-fu/tasks/mimetype_fu_tasks.rake",
- "vendor/plugins/mimetype-fu/test/mimetype_fu_test.rb",
- "vendor/plugins/mimetype-fu/uninstall.rb",
+ "vendor/plugins/prototype_legacy_helper/README.markdown",
+ "vendor/plugins/prototype_legacy_helper/init.rb",
+ "vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb",
+ "vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb",
"vendor/plugins/recaptcha/.gitignore",
"vendor/plugins/recaptcha/LICENSE",
"vendor/plugins/recaptcha/README.rdoc",
@@ -1162,16 +1609,6 @@ Gem::Specification.new do |s|
"vendor/plugins/resource_feeder/test/atom_feed_test.rb",
"vendor/plugins/resource_feeder/test/rss_feed_test.rb",
"vendor/plugins/resource_feeder/test/test_helper.rb",
- "vendor/plugins/resource_hacks/MIT-LICENSE",
- "vendor/plugins/resource_hacks/README",
- "vendor/plugins/resource_hacks/Rakefile",
- "vendor/plugins/resource_hacks/init.rb",
- "vendor/plugins/resource_hacks/install.rb",
- "vendor/plugins/resource_hacks/lib/resource_hacks.rb",
- "vendor/plugins/resource_hacks/tasks/resource_hacks_tasks.rake",
- "vendor/plugins/resource_hacks/test/resource_hacks_test.rb",
- "vendor/plugins/resource_hacks/test/test_helper.rb",
- "vendor/plugins/resource_hacks/uninstall.rb",
"vendor/plugins/responds_to_parent/MIT-LICENSE",
"vendor/plugins/responds_to_parent/README",
"vendor/plugins/responds_to_parent/Rakefile",
@@ -1738,6 +2175,99 @@ Gem::Specification.new do |s|
"test/functional/users_controller_test.rb",
"test/functional/votes_controller_test.rb",
"test/test_helper.rb",
+ "test/testapp/app/controllers/application_controller.rb",
+ "test/testapp/app/helpers/application_helper.rb",
+ "test/testapp/config/application.rb",
+ "test/testapp/config/boot.rb",
+ "test/testapp/config/environment.rb",
+ "test/testapp/config/environments/development.rb",
+ "test/testapp/config/environments/production.rb",
+ "test/testapp/config/environments/test.rb",
+ "test/testapp/config/initializers/backtrace_silencers.rb",
+ "test/testapp/config/initializers/inflections.rb",
+ "test/testapp/config/initializers/mime_types.rb",
+ "test/testapp/config/initializers/secret_token.rb",
+ "test/testapp/config/initializers/session_store.rb",
+ "test/testapp/config/routes.rb",
+ "test/testapp/db/migrate/20110205191710_create_users.rb",
+ "test/testapp/db/migrate/20110205191711_add_activation_code_to_user.rb",
+ "test/testapp/db/migrate/20110205191712_create_photos.rb",
+ "test/testapp/db/migrate/20110205191713_add_tag_support.rb",
+ "test/testapp/db/migrate/20110205191714_create_friendships.rb",
+ "test/testapp/db/migrate/20110205191715_add_comments_tables.rb",
+ "test/testapp/db/migrate/20110205191716_create_friendship_statuses.rb",
+ "test/testapp/db/migrate/20110205191717_add_friendship_statuses.rb",
+ "test/testapp/db/migrate/20110205191718_create_clippings.rb",
+ "test/testapp/db/migrate/20110205191719_create_invitations.rb",
+ "test/testapp/db/migrate/20110205191720_create_homepage_features.rb",
+ "test/testapp/db/migrate/20110205191721_create_posts.rb",
+ "test/testapp/db/migrate/20110205191722_create_states.rb",
+ "test/testapp/db/migrate/20110205191723_add_states.rb",
+ "test/testapp/db/migrate/20110205191724_create_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191725_add_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191726_add_sessions_table.rb",
+ "test/testapp/db/migrate/20110205191727_create_categories.rb",
+ "test/testapp/db/migrate/20110205191728_change_comment_to_text_field.rb",
+ "test/testapp/db/migrate/20110205191729_create_login_slug.rb",
+ "test/testapp/db/migrate/20110205191730_add_category_names.rb",
+ "test/testapp/db/migrate/20110205191731_create_contests.rb",
+ "test/testapp/db/migrate/20110205191732_add_denied_friendship_status.rb",
+ "test/testapp/db/migrate/20110205191733_add_notification_preferences.rb",
+ "test/testapp/db/migrate/20110205191734_create_countries.rb",
+ "test/testapp/db/migrate/20110205191735_add_countries.rb",
+ "test/testapp/db/migrate/20110205191736_add_us_to_existing_metro_areas.rb",
+ "test/testapp/db/migrate/20110205191737_add_country_id_to_users.rb",
+ "test/testapp/db/migrate/20110205191738_add_us_to_users_with_states.rb",
+ "test/testapp/db/migrate/20110205191739_add_users_counter_cache.rb",
+ "test/testapp/db/migrate/20110205191740_news_to_talk.rb",
+ "test/testapp/db/migrate/20110205191741_add_contest_fields.rb",
+ "test/testapp/db/migrate/20110205191742_featured_users.rb",
+ "test/testapp/db/migrate/20110205191743_add_last_login.rb",
+ "test/testapp/db/migrate/20110205191744_track_emailed.rb",
+ "test/testapp/db/migrate/20110205191745_create_skills.rb",
+ "test/testapp/db/migrate/20110205191746_create_offerings.rb",
+ "test/testapp/db/migrate/20110205191747_add_zag_to_users.rb",
+ "test/testapp/db/migrate/20110205191748_create_activities_table.rb",
+ "test/testapp/db/migrate/20110205191749_add_category_tips.rb",
+ "test/testapp/db/migrate/20110205191750_create_events_table.rb",
+ "test/testapp/db/migrate/20110205191751_add_privacy_to_users.rb",
+ "test/testapp/db/migrate/20110205191752_sql_session_store_setup.rb",
+ "test/testapp/db/migrate/20110205191753_category_improvements.rb",
+ "test/testapp/db/migrate/20110205191754_adding_indexes.rb",
+ "test/testapp/db/migrate/20110205191755_adding_ads.rb",
+ "test/testapp/db/migrate/20110205191756_add_polls.rb",
+ "test/testapp/db/migrate/20110205191757_add_activities_count.rb",
+ "test/testapp/db/migrate/20110205191758_create_initial_schema.rb",
+ "test/testapp/db/migrate/20110205191759_add_audience_limitation_to_ads.rb",
+ "test/testapp/db/migrate/20110205191760_create_assets.rb",
+ "test/testapp/db/migrate/20110205191761_create_favoritables.rb",
+ "test/testapp/db/migrate/20110205191762_add_published_as_to_posts.rb",
+ "test/testapp/db/migrate/20110205191763_add_published_at_to_posts.rb",
+ "test/testapp/db/migrate/20110205191764_create_roles.rb",
+ "test/testapp/db/migrate/20110205191765_add_more_indexes.rb",
+ "test/testapp/db/migrate/20110205191766_add_anonymous_commenting_fields.rb",
+ "test/testapp/db/migrate/20110205191767_create_messages.rb",
+ "test/testapp/db/migrate/20110205191768_still_more_indexes.rb",
+ "test/testapp/db/migrate/20110205191769_postgres_compatibility_changes.rb",
+ "test/testapp/db/migrate/20110205191770_add_notify_to_comments.rb",
+ "test/testapp/db/migrate/20110205191771_create_albums.rb",
+ "test/testapp/db/migrate/20110205191772_add_album_id_to_photos.rb",
+ "test/testapp/db/migrate/20110205191773_add_view_count_to_albums.rb",
+ "test/testapp/db/migrate/20110205191774_add_view_count_to_photos.rb",
+ "test/testapp/db/migrate/20110205191775_create_static_pages.rb",
+ "test/testapp/db/migrate/20110205191776_create_rsvps.rb",
+ "test/testapp/db/migrate/20110205191777_create_pages.rb",
+ "test/testapp/db/migrate/20110205191778_add_pages.rb",
+ "test/testapp/db/migrate/20110205191779_authlogic_compatibility_changes.rb",
+ "test/testapp/db/migrate/20110205191780_add_allow_rsvp_to_events.rb",
+ "test/testapp/db/migrate/20110205191781_add_taggings_count_to_tags.rb",
+ "test/testapp/db/migrate/20110205191782_add_threading_to_messages.rb",
+ "test/testapp/db/migrate/20110205191783_add_anonymous_forum_posting.rb",
+ "test/testapp/db/migrate/20110205191784_add_comment_notification_toggle.rb",
+ "test/testapp/db/schema.rb",
+ "test/testapp/db/seeds.rb",
+ "test/testapp/test/performance/browsing_test.rb",
+ "test/testapp/test/test_helper.rb",
"test/unit/ad_test.rb",
"test/unit/asset_test.rb",
"test/unit/category_test.rb",
@@ -1782,7 +2312,6 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<rack>, ["= 1.2.1"])
s.add_runtime_dependency(%q<configatron>, [">= 0"])
s.add_runtime_dependency(%q<hpricot>, [">= 0"])
- s.add_runtime_dependency(%q<rmagick>, [">= 0"])
s.add_runtime_dependency(%q<htmlentities>, [">= 0"])
s.add_runtime_dependency(%q<haml>, [">= 0"])
s.add_runtime_dependency(%q<calendar_date_select>, [">= 0"])
@@ -1798,7 +2327,6 @@ Gem::Specification.new do |s|
s.add_dependency(%q<rack>, ["= 1.2.1"])
s.add_dependency(%q<configatron>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0"])
- s.add_dependency(%q<rmagick>, [">= 0"])
s.add_dependency(%q<htmlentities>, [">= 0"])
s.add_dependency(%q<haml>, [">= 0"])
s.add_dependency(%q<calendar_date_select>, [">= 0"])
@@ -1815,7 +2343,6 @@ Gem::Specification.new do |s|
s.add_dependency(%q<rack>, ["= 1.2.1"])
s.add_dependency(%q<configatron>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0"])
- s.add_dependency(%q<rmagick>, [">= 0"])
s.add_dependency(%q<htmlentities>, [">= 0"])
s.add_dependency(%q<haml>, [">= 0"])
s.add_dependency(%q<calendar_date_select>, [">= 0"])
View
16 config/application.yml
@@ -43,11 +43,10 @@ photo:
paperclip_options:
styles:
thumb:
- geometry:"100x100!"
+ geometry: "100x100!"
processors: [:cropper]
medium: "290x320#"
large: "465>"
- path: "/:attachment/:id/:basename:maybe_style.:extension"
validation_options:
max_size: 3
content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
@@ -64,12 +63,15 @@ feature:
content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
clipping:
- attachment_fu_options:
- resize_to: "465>"
- min_size: 1
+ paperclip_options:
+ styles:
+ thumb:
+ geometry:"100x100!"
+ processors: [:cropper]
+ medium: "290x320#"
+ large: "465>"
+ validation_options:
max_size: 3
- thumbnails: {thumb: "c100x100!", medium_square: "c200x200!", medium: "200>"}
- storage: 'file_system'
content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
reserved_logins: [
View
20 config/boot.rb
@@ -1,20 +0,0 @@
-# #load everything in /engine_config/initializers
-# # initializers in your root 'initializers' directory will take precedence if they have the same file name
-#
-# Dir["#{Rails.root}/vendor/plugins/community_engine/config/initializers/**/*.rb"].each do |initializer|
-# load(initializer) unless File.exists?("#{Rails.root}/config/initializers/#{File.basename(initializer)}")
-# end
-#
-# CommunityEngine.check_for_pending_migrations
-#
-# if configatron.theme
-# theme_view_path = "#{Rails.root}/themes/#{configatron.theme}/views"
-# ActionController::Base.view_paths = ActionController::Base.view_paths.dup.unshift(theme_view_path)
-# end
-#
-#
-# EnginesHelper::Assets.propagate if EnginesHelper.autoload_assets
-#
-# # # If the app is using Haml/Sass, propagate sass directories too
-# # EnginesHelper::Assets.update_sass_directories
-#
View
7 config/routes.rb
@@ -157,12 +157,7 @@
end
end
- resources :photos do
- collection do
- post :swfupload
- get :slideshow
- end
- end
+ resources :photos
resources :posts do
collection do
View
25 db/migrate/077_paperclip_changes.rb
@@ -0,0 +1,25 @@
+class PaperclipChanges < ActiveRecord::Migration
+ def up
+ rename_column :photos, :filename, :photo_file_name
+ rename_column :photos, :content_type, :photo_content_type
+ rename_column :photos, :size, :photo_file_size
+ add_column :photos, :photo_updated_at, :datetime
+
+ rename_column :assets, :filename, :asset_file_name
+ rename_column :assets, :content_type, :asset_content_type
+ rename_column :assets, :size, :asset_file_size
+ add_column :assets, :asset_updated_at, :datetime
+ end
+
+ def down
+ rename_column :photos, :photo_file_name, :filename
+ rename_column :photos, :photo_content_type, :content_type
+ rename_column :photos, :photo_file_size, :size
+ remove_column :photos, :photo_updated_at
+
+ rename_column :assets, :asset_file_name, :filename
+ rename_column :assets, :asset_content_type, :content_type
+ rename_column :assets, :asset_file_size, :size
+ remove_column :assets, :asset_updated_at
+ end
+end
View
51 init.rb
@@ -1,51 +0,0 @@
-
-# #reload CE in development
-# config.after_initialize do
-# if Rails.env == 'development'
-# config.autoload_paths += %W(#{config.root}/lib/community_engine)
-# end
-# end
-#
-# require 'community_engine'
-# require 's3_cache_control'
-#
-# Module.class_eval do
-# def expiring_attr_reader(method_name, value)
-# class_eval(<<-EOS, __FILE__, __LINE__)
-# def #{method_name}
-# class << self; attr_reader :#{method_name}; end
-# @#{method_name} = eval(%(#{value}))
-# end
-# EOS
-# end
-# end
-#
-# class ActionView::Base
-# def _(s)
-# # just call the globalite localize method on the string
-# s.localize
-# end
-# end
-#
-# module ApplicationConfiguration
-# require 'ostruct'
-# require 'yaml'
-# if File.exists?( Rails.root.join('application.yml') )
-# file = Rails.root.join('application.yml')
-# users_app_config = YAML.load_file file
-# end
-# default_app_config = YAML.load_file(File.join(Rails.root, 'vendor', 'plugins', 'community_engine', 'config', 'application.yml'))
-#
-# config_hash = (users_app_config||{}).reverse_merge!(default_app_config)
-#
-# unless defined?(configatron)
-# ::configatron = OpenStruct.new config_hash
-# else
-# orig_hash = configatron.marshal_dump
-# merged_hash = config_hash.merge(orig_hash)
-#
-# configatron = OpenStruct.new merged_hash
-# end
-# end
-#
-#
View
1  install.rb
@@ -1 +0,0 @@
-# Install hook code here
View
63 lib/community_engine.rb
@@ -1,57 +1,10 @@
+require 'community_engine/engine'
-module CommunityEngine
- require 'engine'
- require 'authenticated_system'
- require 'localized_application'
- require 'configatron'
- require 'community_engine_sha1_crypto_method'
- require 'i18n_extensions'
- require 'viewable'
- require 'url_upload'
-
- module ActiveRecordExtensions
- def prepare_options_for_attachment_fu(options)
- attachment_fu_options = options.symbolize_keys.merge(
- {:storage => options[:storage].to_sym,
- :max_size => options[:max_size].to_i.megabytes,
- :processor => (options[:processor] && options[:processor].to_sym)
- })
- end
- end
+require 'community_engine/authenticated_system'
+require 'community_engine/localized_application'
+require 'community_engine/community_engine_sha1_crypto_method'
+require 'community_engine/i18n_extensions'
+require 'community_engine/viewable'
+require 'community_engine/url_upload'
-
- #
- #
- # class << self
- #
- # def check_for_pending_migrations
- # newest_ce_migration = Desert::Manager.find_plugin('community_engine').latest_migration
- # current_ce_version = guess_current_ce_version
- #
- # pending = newest_ce_migration - current_ce_version
- # if pending > 0
- # puts "---"
- # puts "[COMMUNITY ENGINE] You have #{pending} pending CommunityEngine migrations:"
- # puts "CE is at #{newest_ce_migration}, but you have only migrated it to #{current_ce_version}"
- # puts "Please run 'script/generate plugin_migration' AND 'rake db:migrate' before continuing, or you will experience errors."
- # puts "---"
- # end
- # end
- #
- # def guess_current_ce_version
- # # DUMB: checks your db/migrate and parses out the last CE migration to find out which version you're at
- # last_version = Dir["#{Rails.root}/db/migrate/[0-9]*_community_engine_to*.rb"].sort.last
- # if last_version
- # last_version[/.*_community_engine_to_version_(\d+)/, 1].to_i
- # else
- # 0
- # end
- # end
- #
- # end
- #
-
- ActiveRecord::Base.send(:extend, CommunityEngine::ActiveRecordExtensions)
-end
-
-# require 'rails_asset_extensions'
+require 'configatron'
View
0  lib/authenticated_system.rb → lib/community_engine/authenticated_system.rb
File renamed without changes
View
0  lib/authenticated_test_helper.rb → lib/community_engine/authenticated_test_helper.rb
File renamed without changes
View
0  lib/community_engine_sha1_crypto_method.rb → ...ity_engine/community_engine_sha1_crypto_method.rb
File renamed without changes
View
17 lib/community_engine/engine.rb
@@ -0,0 +1,17 @@
+require 'rails/all'
+
+module CommunityEngine
+ class Engine < Rails::Engine
+ engine_name "community_engine"
+
+ initializer engine_name do |app|
+ configatron.configure_from_yaml(root.join('config','application.yml'))
+ configatron.configure_from_yaml(app.root.join('config','application.yml'))
+ end
+
+ ActiveSupport.on_load(:after_initialize) do
+ require 'paperclip_processors/cropper'
+ end
+
+ end
+end
View
0  lib/i18n_extensions.rb → lib/community_engine/i18n_extensions.rb
File renamed without changes
View
0  lib/localized_application.rb → lib/community_engine/localized_application.rb
File renamed without changes
View
0  lib/rails_asset_extensions.rb → lib/community_engine/rails_asset_extensions.rb
File renamed without changes
View
0  lib/url_upload.rb → lib/community_engine/url_upload.rb
File renamed without changes
View
0  lib/viewable.rb → lib/community_engine/viewable.rb
File renamed without changes
View
40 lib/engine.rb
@@ -1,40 +0,0 @@
-
-require 'rails/all'
-require "community_engine"
-
-module CommunityEngine
- class Engine < Rails::Engine
- engine_name "community_engine"
- config.asset_path = "/community_engine%s"
-
- initializer 'community_engine' do |app|
- configatron.configure_from_yaml(root.join('config','application.yml'))
- configatron.configure_from_yaml(app.root.join('config','application.yml'))
-
-
- end
-
-
- # require 's3_cache_control'
- #
- # Module.class_eval do
- # def expiring_attr_reader(method_name, value)
- # class_eval(<<-EOS, __FILE__, __LINE__)
- # def #{method_name}
- # class << self; attr_reader :#{method_name}; end
- # @#{method_name} = eval(%(#{value}))
- # end
- # EOS
- # end
- # end
- #
- # class ActionView::Base
- # def _(s)
- # # just call the globalite localize method on the string
- # s.localize
- # end
- # end
- #
-
- end
-end
View
19 lib/paperclip_processors/cropper.rb
@@ -0,0 +1,19 @@
+# lib/paperclip_processors/cropper.rb
+module Paperclip
+ class Cropper < Thumbnail
+ def transformation_command
+ if crop_command
+ crop_command + super.sub(/ -crop \S+/, '')
+ else
+ super
+ end
+ end
+
+ def crop_command
+ target = @attachment.instance
+ if target.cropping?
+ " -crop '#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"
+ end
+ end
+ end
+end
View
20 test/functional/photos_controller_test.rb
@@ -17,20 +17,6 @@ def test_should_create_photo
assert_equal albums(:one).photos.count, 2
end
end
-
- def test_should_create_photo_with_swf
- login_as :quentin
- assert_difference Photo, :count, 4 do
- post :swfupload,
- :Filedata => fixture_file_upload('files/library.jpg', 'image/jpg'),
- :user_id => users(:quentin).id,
- :album_id => '1'
- photo = Photo.find(assigns(:photo).id)
- assert_equal users(:quentin), photo.user
-
- assert_equal albums(:one).photos.count, 2
- end
- end
def test_should_not_be_an_activity
login_as :quentin
@@ -218,10 +204,4 @@ def test_should_remove_avatar_when_photo_is_destroyed
assert users(:quentin).reload.avatar.nil?
end
- def test_should_get_slideshow
- get :slideshow, :user_id => users(:quentin)
- assert_response :success
- end
-
-
end
View
8 test/testapp/db/migrate/20110205191778_add_pages.rb
@@ -1,10 +1,12 @@
class AddPages < ActiveRecord::Migration
def self.up
- Page.create(:title=>:about.l, :body=>"<p>#{:your_about_text_goes_here.l}</p>", :published_as=>"live", :page_public=>true)
- Page.create(:title=>:faq.l, :body=>"<p>#{:your_faq_text_goes_here.l}</p>", :published_as=>"live", :page_public=>true)
+ # Page.create(:title=> t(:about), :body=>"<p>#{:your_about_text_goes_here.l}</p>", :published_as=>"live", :page_public=>true)
+ # Page.create(:title=>:faq.l, :body=>"<p>#{:your_faq_text_goes_here.l}</p>", :published_as=>"live", :page_public=>true)
+
+ #this shouldn't happen in a migration
end
def self.down
- Page.destroy_all
+ # Page.destroy_all
end
end
View
1  uninstall.rb
@@ -1 +0,0 @@
-# Uninstall hook code here
Please sign in to comment.
Something went wrong with that request. Please try again.