<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,7 @@ config/accelerator_tasks.rb
 config/deploy.rb
 config/deploy/*
 config/alonetone.yml
+config/config.yml
 config/database.yml
 config/amazon_s3.yml
 config/defensio.yml</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class ApplicationController &lt; ActionController::Base  
-  helper :all # include all helpers, all the time
+  helper :all # all helpers, all the time
 
-  protect_from_forgery  :secret =&gt; YAML.load_file(File.join(RAILS_ROOT,'config','alonetone.yml'))['alonetone']['secret']
+  protect_from_forgery  :secret =&gt; ALONETONE.secret
     
   include AuthenticatedSystem
   include ExceptionLoggable
@@ -82,12 +82,12 @@ class ApplicationController &lt; ActionController::Base
     @user = User.find_by_login(login) || current_user
   end
 
-  def current_use_is_admin_or_user?(user)
+  def current_user_is_admin_or_owner?(user)
     logged_in? &amp;&amp; (current_user.id.to_s == user.id.to_s || current_user.admin?)
   end
 
-  def current_use_is_admin_or_moderator_or_user?(user)
-    current_use_is_admin_or_user? || moderator?
+  def current_user_is_admin_or_moderator_or_owner?(user)
+    current_user_is_admin_or_owner? || moderator?
   end
 
   def find_asset</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -245,7 +245,7 @@ class AssetsController &lt; ApplicationController
   
   def authorized?
     # admin or the owner of the asset can edit/update/delete
-    params[:permalink].nil? || current_use_is_admin_or_user?(@asset.user)
+    params[:permalink].nil? || current_user_is_admin_or_owner?(@asset.user)
   end
   
   def register_listen</diff>
      <filename>app/controllers/assets_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ class PlaylistsController &lt; ApplicationController
   # GET /playlists
   # GET /playlists.xml
   def index
-    @all_playlists =  current_use_is_admin_or_user?(@user) ?
+    @all_playlists =  current_user_is_admin_or_owner?(@user) ?
                       @user.playlists.include_private :
                       @user.playlists.public
 
@@ -36,7 +36,7 @@ class PlaylistsController &lt; ApplicationController
 
   def sort
     redirect_to user_home_url(@user) \
-    unless current_use_is_admin_or_user?(@user)
+    unless current_user_is_admin_or_owner?(@user)
 
     respond_to do |format| 
       format.html { @playlists = @user.playlists.include_private.find(:all) }
@@ -193,7 +193,7 @@ class PlaylistsController &lt; ApplicationController
   end
     
   def authorized?
-    current_use_is_admin_or_user?(@playlist.user) ||
+    current_user_is_admin_or_owner?(@playlist.user) ||
     %w[ destroy admin edit update remove_track attach_pic sort_tracks 
         add_track set_playlist_description set_playlist_title ].include?(action_name) == false
   end</diff>
      <filename>app/controllers/playlists_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -82,7 +82,7 @@ class TopicsController &lt; ApplicationController
 protected
   def authorized?
     not %w(destroy edit update).include?(action_name) || 
-    current_use_is_admin_or_moderator_or_user?(@topic.user)
+    current_user_is_admin_or_moderator_or_owner?(@topic.user)
   end
   
   def find_forum</diff>
      <filename>app/controllers/topics_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,11 +35,11 @@ class Asset
 
   cattr_reader *%w(movie audio image other).collect! { |t| &quot;#{t}_condition&quot;.to_sym }
   
-  has_attachment  :storage =&gt; APP_CONFIG.storage, 
+  has_attachment  :storage =&gt; ALONETONE.storage, 
                   :processor =&gt; :mp3info,
                   # :content_type =&gt; ['audio/mpeg','application/zip'],
                   :max_size =&gt; 40.megabytes,
-                  :path_prefix =&gt; &quot;#{APP_CONFIG.path_prefix}mp3&quot;
+                  :path_prefix =&gt; &quot;#{ALONETONE.path_prefix}mp3&quot;
                     
   validates_as_attachment
 </diff>
      <filename>app/models/asset/uploading.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,8 +6,8 @@ class Pic &lt; ActiveRecord::Base
                  :max_size      =&gt; 2048.kilobytes,
                  :resize_to     =&gt; 'x400',
                  :content_type  =&gt; :image,
-                 :storage       =&gt; APP_CONFIG.storage,
-                 :path_prefix   =&gt; &quot;#{APP_CONFIG.path_prefix}pics&quot;,
+                 :storage       =&gt; ALONETONE.storage,
+                 :path_prefix   =&gt; &quot;#{ALONETONE.path_prefix}pics&quot;,
                  :processor     =&gt; :Rmagick,
                  :thumbnails    =&gt; { 
                                       :tiny   =&gt; [ 25,  25], </diff>
      <filename>app/models/pic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
 class SourceFile &lt; ActiveRecord::Base
   
   belongs_to      :user
-  has_attachment  :storage      =&gt; APP_CONFIG.storage, 
+  has_attachment  :storage      =&gt; ALONETONE.storage, 
                   :content_type =&gt; ['audio/x-aiff','audio/x-wav'],
                   :max_size     =&gt; 100.megabytes,
-                  :path_prefix  =&gt; &quot;#{APP_CONFIG.path_prefix}source_files&quot;,
+                  :path_prefix  =&gt; &quot;#{ALONETONE.path_prefix}source_files&quot;,
                   :s3_access    =&gt; :authenticated_read
                   
   validates_as_attachment</diff>
      <filename>app/models/source_file.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ class User
   end
   
   def site
-    &quot;#{APP_CONFIG.site_url}/#{login}&quot;
+    &quot;#{ALONETONE.url}/#{login}&quot;
   end
   
   def printable_bio</diff>
      <filename>app/models/user/profile.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,25 +6,25 @@ class UserMailer &lt; ActionMailer::Base
   def forgot_password(user)
     setup_email(user)
     @subject += 'Change your alonetone password'
-    @body[:url] = &quot;http://#{APP_CONFIG.site_url}/activate/#{user.activation_code}&quot;
+    @body[:url] = &quot;http://#{ALONETONE.url}/activate/#{user.activation_code}&quot;
   end
   
   def signup(user)
     setup_email(user)
-    @body[:url] = &quot;http://#{APP_CONFIG.site_url}/activate/#{user.activation_code}&quot;
+    @body[:url] = &quot;http://#{ALONETONE.url}/activate/#{user.activation_code}&quot;
   end
   
   def activation(user)
     setup_email(user)
     @subject    += 'Your alonetone account has been activated!'
-    @body[:url]  = &quot;http://#{APP_CONFIG.site_url}/#{user.login}&quot;
+    @body[:url]  = &quot;http://#{ALONETONE.url}/#{user.login}&quot;
   end    
 
   protected
     def setup_email(user)
       @recipients  = &quot;#{user.email}&quot;
-      @from        = &quot;#{@@mail_from}&quot;
-      @subject     = &quot;[#{APP_CONFIG.site_url}] &quot;
+      @from        = &quot;#{ALONETONE.email}&quot;
+      @subject     = &quot;[#{ALONETONE.url}] &quot;
       @sent_on     = Time.now
       @body[:user] = user
     end</diff>
      <filename>app/models/user_mailer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,16 @@
 xml.instruct! :xml, :version=&gt;&quot;1.0&quot;, :encoding=&gt;&quot;UTF-8&quot;
 xml.rss &quot;xmlns:itunes&quot;=&gt; &quot;http://www.itunes.com/dtds/podcast-1.0.dtd&quot;, &quot;version&quot;=&gt;&quot;2.0&quot; do
   xml.channel do 
-    xml.title  &quot;Latest uploaded mp3s from artists at #{APP_CONFIG.site_url}&quot;
+    xml.title  &quot;Latest uploaded mp3s from artists at #{ALONETONE.url}&quot;
     
-    xml.link  &quot;http://#{APP_CONFIG.site_url}/&quot;
-    xml.description  &quot;The artists on #{APP_CONFIG.site_url} give away their music. Listen to the lastest by subscribing&quot;
+    xml.link  &quot;http://#{ALONETONE.url}/&quot;
+    xml.description  &quot;The artists on #{ALONETONE.url} give away their music. Listen to the lastest by subscribing&quot;
     xml.language  &quot;en-us&quot;
     xml.lastBuildDate  rss_date @assets.first.created_at
     
     xml.image do
-      xml.url  &quot;http://www.#{APP_CONFIG.site_url}/images/no-cover-200.jpg&quot;
-      xml.title  &quot;Latest uploaded mp3s from artists at #{APP_CONFIG.site_url}&quot;
+      xml.url  &quot;http://#{ALONETONE.url}/images/no-cover-200.jpg&quot;
+      xml.title  &quot;Latest uploaded mp3s from artists at #{ALONETONE.url}&quot;
       xml.width 200
       xml.height 200
     end</diff>
      <filename>app/views/assets/latest.rss.builder</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@
      
      &lt;% if @asset.youtube_embed &amp;&amp; !@asset.youtube_embed.empty? %&gt;
       &lt;div class='static_content'&gt;
-        &lt;object &lt;%= APP_CONFIG.video_size %&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/&lt;%=@asset.youtube_embed%&gt;&amp;rel=0&amp;color1=0xd6d6d6&amp;color2=0xf0f0f0&amp;border=0&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/&lt;%=@asset.youtube_embed%&gt;&amp;rel=0&amp;color1=0xd6d6d6&amp;color2=0xf0f0f0&amp;border=0&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; &lt;%= APP_CONFIG.video_size %&gt;&gt;&lt;/embed&gt;&lt;/object&gt;
+        &lt;object &lt;%= ALONETONE.video_size %&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/&lt;%=@asset.youtube_embed%&gt;&amp;rel=0&amp;color1=0xd6d6d6&amp;color2=0xf0f0f0&amp;border=0&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/&lt;%=@asset.youtube_embed%&gt;&amp;rel=0&amp;color1=0xd6d6d6&amp;color2=0xf0f0f0&amp;border=0&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; &lt;%= ALONETONE.video_size %&gt;&gt;&lt;/embed&gt;&lt;/object&gt;
       &lt;/div&gt;
     &lt;% end %&gt;
     </diff>
      <filename>app/views/assets/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@
 				&lt;div class=&quot;clear&quot;&gt; &lt;/div&gt;
 				&lt;%= yield :bottom %&gt;
 	  &lt;/div&gt; &lt;!-- end columns --&gt;
-            &lt;% if APP_CONFIG.show_debug_info %&gt;
+            &lt;% if ALONETONE.show_debug_info %&gt;
                 &lt;div style=&quot;width:100%;min-height:200px;color:#fff&quot;&gt;
                     &lt;% if current_user %&gt;
                         last seen at &lt;%= current_user.last_seen_at %&gt;&lt;br/&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,23 @@
-# use rake secret to generate a hash for this
-alonetone:
-  secret: (big long secret string)
\ No newline at end of file
+---
+development: &amp;defaults
+  show_debug_info: true
+  app_name: Your Name Here
+  url: example.com
+  email: yourname@example.com
+  secret: adba8d02b662d7a087f2da7e572deac650bc9dafa31043e814a93547c87ac007bbcf3d79960d0be5f9316d2f9b8eb88c87b58b4569252220b42f27e4797ea091
+  storage: file_system
+  path_prefix: public/
+  video_size: width=&quot;370&quot; height=&quot;308&quot;
+  enable_facebook: false
+  enable_defensio: false
+
+test:
+  &lt;&lt;: *defaults
+  show_debug_info: false
+
+production:
+  &lt;&lt;: *defaults
+  storage: s3
+  path_prefix: &quot;&quot;
+  site_url: yourwebsite.com
+  show_debug_info: false</diff>
      <filename>config/alonetone.example.yml</filename>
    </modified>
    <modified>
      <diff>@@ -33,7 +33,7 @@ Rails::Initializer.run do |config|
   config.gem 'ruby-mp3info',  :lib =&gt; 'mp3info'
   config.gem 'rubyzip',       :lib =&gt; 'zip/zip'
   config.gem 'googlecharts',  :lib =&gt; 'gchart'
-  config.gem 'rmagick'
+  # config.gem 'rmagick'
 
   # Force all environments to use the same logger level
   # (by default production uses :info, the others :debug)</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,8 @@
-APP_CONFIG = YAML.load_file(&quot;#{RAILS_ROOT}/config/config.yml&quot;)[RAILS_ENV]
+ALONETONE = YAML.load_file(&quot;#{RAILS_ROOT}/config/alonetone.yml&quot;)[RAILS_ENV]
 
-class &lt;&lt; APP_CONFIG
-  APP_CONFIG.keys.each do |key|
-    class_eval &quot;def #{key}; APP_CONFIG['#{key}']; end&quot;
+class &lt;&lt; ALONETONE
+  ALONETONE.keys.each do |key|
+    class_eval &quot;def #{key}; ALONETONE['#{key}']; end&quot;
   end  
 end
+  
\ No newline at end of file</diff>
      <filename>config/initializers/load_config.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,3 @@
-
-# you are working with git
-SVN_COMMAND = 'svn info'
-BRIGHTNESS = ''
-LASTCHANGED = Date.today
-
 # MAKE FACEBOOKER HAPPY
 ActionController::Base.asset_host = ''
 
@@ -12,8 +6,8 @@ FLASH_PLAYER = 'http://alonetone.com/flash/alonetone_player.swf'
 
 # MAILER STUFF
 
-UserMailer.default_url_options[:host] = 'alonetone.com'
-UserMailer.mail_from = 'music@alonetone.com'
+UserMailer.default_url_options[:host] = ALONETONE.url
+UserMailer.mail_from = ALONETONE.email
 
 # GENERATE THE NEEDED CSS STYLESHEETS
 Sass::Plugin.options[:always_check] = true </diff>
      <filename>config/initializers/setup.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>config/basecamp.example.yml</filename>
    </removed>
    <removed>
      <filename>config/config.yml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>510cad1435e9463934a22a42d42a51117429b507</id>
    </parent>
  </parents>
  <author>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </author>
  <url>http://github.com/sudara/alonetone/commit/78d3aab8be9552c5c92de9ad44f71e8a09d0bb4b</url>
  <id>78d3aab8be9552c5c92de9ad44f71e8a09d0bb4b</id>
  <committed-date>2008-10-11T04:56:40-07:00</committed-date>
  <authored-date>2008-10-11T04:56:40-07:00</authored-date>
  <message>Lets use alonetone.yml and make it alonetone.example.yml so people know to change it. Tweak the configuration naming and options</message>
  <tree>c1126c3b40481f845b54c9543663f98c1b6a6c0c</tree>
  <committer>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </committer>
</commit>
