aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@garethrees.co.uk>2017-01-19 11:37:48 +0000
committerGareth Rees <gareth@garethrees.co.uk>2017-01-19 11:37:48 +0000
commit64f2f360ec9c27aa9c7545d8ab4678c0af3eaa6c (patch)
tree301c5bf19b6063de21163a572ea4f949c09c67dc
parentb90f36f350f59b93e5bb59aeb4868205579b0ab9 (diff)
Add encoding line to Ruby files
Fixes https://github.com/mysociety/alavetelitheme/issues/69.
-rw-r--r--init.rb1
-rw-r--r--install.rb1
-rw-r--r--lib/alavetelitheme.rb1
-rw-r--r--lib/config/custom-routes.rb1
-rw-r--r--lib/controller_patches.rb1
-rw-r--r--lib/customstates.rb1
-rw-r--r--lib/model_patches.rb1
-rw-r--r--lib/patch_mailer_paths.rb1
-rw-r--r--lib/tasks/alavetelitheme_tasks.rake1
-rw-r--r--post_install.rb1
-rw-r--r--spec/alavetelitheme_spec.rb1
-rw-r--r--uninstall.rb1
12 files changed, 12 insertions, 0 deletions
diff --git a/init.rb b/init.rb
index e69de29..197c7c2 100644
--- a/init.rb
+++ b/init.rb
@@ -0,0 +1 @@
+# -*- encoding : utf-8 -*-
diff --git a/install.rb b/install.rb
index f7732d3..c447292 100644
--- a/install.rb
+++ b/install.rb
@@ -1 +1,2 @@
+# -*- encoding : utf-8 -*-
# Install hook code here
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb
index c245617..668d92a 100644
--- a/lib/alavetelitheme.rb
+++ b/lib/alavetelitheme.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
theme_name = File.split(File.expand_path("../..", __FILE__))[1]
theme_name.gsub!('-', '_')
THEME_NAME = theme_name
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index 6d4cda4..98fccf7 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Here you can override or add to the pages in the core website
Rails.application.routes.draw do
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb
index 5c48e70..6d796b0 100644
--- a/lib/controller_patches.rb
+++ b/lib/controller_patches.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Add a callback - to be executed before each request in development,
# and at startup in production - to patch existing app classes.
# Doing so in init/environment.rb wouldn't work in development, since
diff --git a/lib/customstates.rb b/lib/customstates.rb
index d801c92..323a105 100644
--- a/lib/customstates.rb
+++ b/lib/customstates.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# See `http://alaveteli.org/docs/customising/themes/#customising-the-request-states`
# for more explanation of this file
diff --git a/lib/model_patches.rb b/lib/model_patches.rb
index b0c906f..d223e36 100644
--- a/lib/model_patches.rb
+++ b/lib/model_patches.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Add a callback - to be executed before each request in development,
# and at startup in production - to patch existing app classes.
# Doing so in init/environment.rb wouldn't work in development, since
diff --git a/lib/patch_mailer_paths.rb b/lib/patch_mailer_paths.rb
index 99da10a..4533be0 100644
--- a/lib/patch_mailer_paths.rb
+++ b/lib/patch_mailer_paths.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Add a callback - to be executed before each request in development,
# and at startup in production - to patch existing app classes.
# See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode
diff --git a/lib/tasks/alavetelitheme_tasks.rake b/lib/tasks/alavetelitheme_tasks.rake
index 1f1925b..3744d04 100644
--- a/lib/tasks/alavetelitheme_tasks.rake
+++ b/lib/tasks/alavetelitheme_tasks.rake
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# desc "Explaining what the task does"
# task :alavetelitheme do
# # Task goes here
diff --git a/post_install.rb b/post_install.rb
index 2dfabfd..5aae9ca 100644
--- a/post_install.rb
+++ b/post_install.rb
@@ -1 +1,2 @@
+# -*- encoding : utf-8 -*-
# This file is executed in the Rails evironment by the `rails-post-install` script
diff --git a/spec/alavetelitheme_spec.rb b/spec/alavetelitheme_spec.rb
index 0bb0fab..b21c954 100644
--- a/spec/alavetelitheme_spec.rb
+++ b/spec/alavetelitheme_spec.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# If defined, ALAVETELI_TEST_THEME will be loaded in config/initializers/theme_loader
ALAVETELI_TEST_THEME = 'alavetelitheme'
require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','spec','spec_helper'))
diff --git a/uninstall.rb b/uninstall.rb
index 9738333..f6e78fd 100644
--- a/uninstall.rb
+++ b/uninstall.rb
@@ -1 +1,2 @@
+# -*- encoding : utf-8 -*-
# Uninstall hook code here