Skip to content

Commit

Permalink
used gem magic_encoding to add UTF-8 header to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
oma committed Aug 11, 2011
1 parent 982e0e6 commit dd56f69
Show file tree
Hide file tree
Showing 164 changed files with 175 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/controllers/acceptances_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class AcceptancesController < ApplicationController

Expand Down
1 change: 1 addition & 0 deletions app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
class AdminController < ApplicationController
end
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
Expand Down
1 change: 1 addition & 0 deletions app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CommentsController < ApplicationController
before_filter :require_user, :only => [ :new, :create, :edit ]

Expand Down
1 change: 1 addition & 0 deletions app/controllers/feedback_votes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class FeedbackVotesController < ApplicationController
# GET /feedback_votes
# GET /feedback_votes.xml
Expand Down
1 change: 1 addition & 0 deletions app/controllers/feedbacks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class FeedbacksController < ApplicationController
# GET /feedbacks
# GET /feedbacks.xml
Expand Down
1 change: 1 addition & 0 deletions app/controllers/info_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Controller for displaying static html pages
# See http://railscasts.com/episodes/117-semi-static-pages for details
class InfoController < ApplicationController
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/nametags_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NametagsController < ApplicationController

before_filter :require_admin
Expand All @@ -20,4 +21,4 @@ def show
:margin => 0 }
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/password_resets_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class PasswordResetsController < ApplicationController

Expand Down
1 change: 1 addition & 0 deletions app/controllers/payment_notifications_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PaymentNotificationsController < ApplicationController
protect_from_forgery :except => [:create]
def create
Expand Down
1 change: 1 addition & 0 deletions app/controllers/periods_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PeriodsController < ApplicationController
before_filter :require_admin, :except => [ :index, :show ]

Expand Down
1 change: 1 addition & 0 deletions app/controllers/program_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class ProgramController < ApplicationController

before_filter :require_admin, :only => [ :phone_list ]
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class RegistrationsController < ApplicationController
before_filter :require_user
Expand Down
1 change: 1 addition & 0 deletions app/controllers/statistics/users_by_company_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Statistics::UsersByCompanyController < ApplicationController

before_filter :require_admin
Expand Down
1 change: 1 addition & 0 deletions app/controllers/statistics_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
class StatisticsController < ApplicationController
end
1 change: 1 addition & 0 deletions app/controllers/tags_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TagsController < ApplicationController
before_filter :require_user, :only => [:new, :create]
before_filter :require_admin, :only => [:index, :edit, :update, :destroy]
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/talks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class TalksController < ApplicationController
before_filter :require_user, :except => [ :index, :show, :new, :article_tags ]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/topics_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TopicsController < ApplicationController
before_filter :require_user, :only => [ :new, :create ]
before_filter :require_admin, :only => [ :edit, :update, :destroy ]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/user_sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class UserSessionsController < ApplicationController
before_filter :require_user, :only => [:restricted, :destroy, :logout]

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class UsersController < ApplicationController
before_filter :require_user, :except => [ :new, :create ]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/votes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class VotesController < ApplicationController
before_filter :require_user, :except => [:index]

Expand Down
1 change: 1 addition & 0 deletions app/helpers/admin_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module AdminHelper
end
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
Expand Down
1 change: 1 addition & 0 deletions app/helpers/comments_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module CommentsHelper
end
1 change: 1 addition & 0 deletions app/helpers/feedback_votes_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module FeedbackVotesHelper
end
1 change: 1 addition & 0 deletions app/helpers/feedbacks_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module FeedbacksHelper
end
1 change: 1 addition & 0 deletions app/helpers/password_resets_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module PasswordResetsHelper
end
1 change: 1 addition & 0 deletions app/helpers/payment_notifications_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module PaymentNotificationsHelper
end
1 change: 1 addition & 0 deletions app/helpers/periods_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module PeriodsHelper
end
1 change: 1 addition & 0 deletions app/helpers/program_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module ProgramHelper
def timeslot_with_location_tr(timeslot, periods)
"""
Expand Down
1 change: 1 addition & 0 deletions app/helpers/registrations_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module RegistrationsHelper
end
3 changes: 2 additions & 1 deletion app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module SessionsHelper
end
end
1 change: 1 addition & 0 deletions app/helpers/statistics/users_by_company_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module Statistics::UsersByCompanyHelper
end
1 change: 1 addition & 0 deletions app/helpers/statistics_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module StatisticsHelper
end
1 change: 1 addition & 0 deletions app/helpers/talks_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module TalksHelper
def antall_stemmer(antall)
case antall
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/topics_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

module TopicsHelper
def show_program_for_topic(topic, topic_offset)
Expand Down
1 change: 1 addition & 0 deletions app/helpers/user_sessions_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module UserSessionsHelper
end
1 change: 1 addition & 0 deletions app/helpers/users_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module UsersHelper
end
1 change: 1 addition & 0 deletions app/helpers/votes_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module VotesHelper
end
3 changes: 2 additions & 1 deletion app/models/app.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- encoding : utf-8 -*-
class App
def self.early_bird_end_date
Time.zone.parse("2011-09-16 23:59:59")
end
end
end
1 change: 1 addition & 0 deletions app/models/comment.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :talk, :counter_cache => true
Expand Down
1 change: 1 addition & 0 deletions app/models/feedback.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Feedback < ActiveRecord::Base
has_many :feedback_votes

Expand Down
3 changes: 2 additions & 1 deletion app/models/feedback_comment.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class FeedbackComment < ActiveRecord::Base
belongs_to :talk
end
end
1 change: 1 addition & 0 deletions app/models/feedback_vote.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class FeedbackVote < ActiveRecord::Base

attr_accessor :alternatives
Expand Down
1 change: 1 addition & 0 deletions app/models/payment_notification.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PaymentNotification < ActiveRecord::Base
belongs_to :registration
serialize :params
Expand Down
3 changes: 2 additions & 1 deletion app/models/percentile_calculator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PercentileCalculator

def initialize(values)
Expand Down Expand Up @@ -26,4 +27,4 @@ def calculate(percentile)
@values[rank - 1]
end

end
end
1 change: 1 addition & 0 deletions app/models/period.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Period < ActiveRecord::Base
has_many :talks, :order => 'position'

Expand Down
2 changes: 1 addition & 1 deletion app/models/registration.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class Registration < ActiveRecord::Base
TICKET_TEXTS = {
Expand Down
2 changes: 1 addition & 1 deletion app/models/smidig_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class SmidigMailer < ActionMailer::Base

Expand Down
1 change: 1 addition & 0 deletions app/models/speaker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Speaker < ActiveRecord::Base
belongs_to :talk
belongs_to :user
Expand Down
1 change: 1 addition & 0 deletions app/models/tag.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Tag < ActiveRecord::Base
has_and_belongs_to_many :talks
validates_presence_of :title
Expand Down
2 changes: 1 addition & 1 deletion app/models/talk.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class Talk < ActiveRecord::Base
default_scope :order => 'created_at desc'
Expand Down
1 change: 1 addition & 0 deletions app/models/talk_observer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TalkObserver < ActiveRecord::Observer
def after_create(talk)
# Twitter
Expand Down
1 change: 1 addition & 0 deletions app/models/talk_type.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TalkType < ActiveRecord::Base
has_many :talks

Expand Down
1 change: 1 addition & 0 deletions app/models/topic.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Topic < ActiveRecord::Base
# has_many :talks, :order => "position", :include => :users
validates_presence_of :title, :description
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

class User < ActiveRecord::Base
default_scope :order => 'created_at desc'
Expand Down
1 change: 1 addition & 0 deletions app/models/user_session.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class UserSession < Authlogic::Session::Base
def self.login(username, password)
user_session = UserSession.new
Expand Down
1 change: 1 addition & 0 deletions app/models/vote.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Vote < ActiveRecord::Base
belongs_to :user
belongs_to :talk, :counter_cache => true
Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require File.expand_path('../boot', __FILE__)

require 'rails/all'
Expand Down
1 change: 1 addition & 0 deletions config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'rubygems'

# Set up gems listed in the Gemfile.
Expand Down
1 change: 1 addition & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Load the rails application
require File.expand_path('../application', __FILE__)

Expand Down
1 change: 1 addition & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
SmidigConference::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

Expand Down
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
SmidigConference::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

Expand Down
1 change: 1 addition & 0 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
SmidigConference::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

Expand Down
1 change: 1 addition & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
SmidigConference::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

Expand Down
1 change: 1 addition & 0 deletions config/initializers/backtrace_silencers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.

# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/gchart.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
require 'google_chart'
# -*- encoding : utf-8 -*-
require 'google_chart'
1 change: 1 addition & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.

# Add new inflection rules using the following format
Expand Down
1 change: 1 addition & 0 deletions config/initializers/jquery.shuffle.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
ActionView::Helpers::AssetTagHelper.javascript_expansions[:defaults] << "jquery-1.4.2.min"
ActionView::Helpers::AssetTagHelper.javascript_expansions[:defaults] << "jquery.shuffle"

1 change: 1 addition & 0 deletions config/initializers/load_paperclip_config.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- encoding : utf-8 -*-
PAPERCLIP_CONFIG = YAML.load(ERB.new(File.read("#{Rails.root}/config/paperclip_config.yml")).result)[Rails.env].symbolize_keys
1 change: 1 addition & 0 deletions config/initializers/load_payment_config.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
PAYMENT_CONFIG = YAML.load(ERB.new(File.read("#{Rails.root}/config/payment_config.yml")).result)[Rails.env].symbolize_keys

1 change: 1 addition & 0 deletions config/initializers/mime_types.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.

# Add new mime types for use in respond_to blocks:
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/new_rails_defaults.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# These settings change the behavior of Rails 2 apps and will be defaults
# for Rails 3. You can remove this initializer when Rails 3 is released.

Expand All @@ -14,4 +15,4 @@

# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
# if you're including raw json in an HTML page.
ActiveSupport.escape_html_entities_in_json = false
ActiveSupport.escape_html_entities_in_json = false
1 change: 1 addition & 0 deletions config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.

# Your secret key for verifying the integrity of signed cookies.
Expand Down
1 change: 1 addition & 0 deletions config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.

SmidigConference::Application.config.session_store :cookie_store, :key => '_smidig-conference_session'
Expand Down
Loading

0 comments on commit dd56f69

Please sign in to comment.