aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorricho <richo@psych0tik.net>2013-01-11 23:10:08 +1100
committerricho <richo@psych0tik.net>2013-01-11 23:10:08 +1100
commit5b332f5c95f825221e2447ca4909136a162dbaae (patch)
tree4b8f5305e7b795bb923821b8b95a31b6eca0cd42
parent9decd23b5a7a2f26590a4995cafcba010695717d (diff)
downloadmy_new_personal_website-5b332f5c95f825221e2447ca4909136a162dbaae.tar.xz
my_new_personal_website-5b332f5c95f825221e2447ca4909136a162dbaae.zip
Whitespace
-rw-r--r--Rakefile2
-rw-r--r--config.ru6
-rw-r--r--plugins/date.rb2
-rw-r--r--plugins/jsfiddle.rb2
-rw-r--r--plugins/preview_unpublished.rb2
-rw-r--r--plugins/sitemap_generator.rb6
6 files changed, 10 insertions, 10 deletions
diff --git a/Rakefile b/Rakefile
index 6c699df3..2afc1a80 100644
--- a/Rakefile
+++ b/Rakefile
@@ -303,7 +303,7 @@ task :setup_github_pages, :repo do |t, args|
if args.repo
repo_url = args.repo
else
- puts "Enter the read/write url for your repository"
+ puts "Enter the read/write url for your repository"
puts "(For example, 'git@github.com:your_username/your_username.github.com)"
repo_url = get_stdin("Repository url: ")
end
diff --git a/config.ru b/config.ru
index b1b746b1..fddabac2 100644
--- a/config.ru
+++ b/config.ru
@@ -4,7 +4,7 @@ require 'sinatra/base'
# The project root directory
$root = ::File.dirname(__FILE__)
-class SinatraStaticServer < Sinatra::Base
+class SinatraStaticServer < Sinatra::Base
get(/.+/) do
send_sinatra_file(request.path) {404}
@@ -16,10 +16,10 @@ class SinatraStaticServer < Sinatra::Base
def send_sinatra_file(path, &missing_file_block)
file_path = File.join(File.dirname(__FILE__), 'public', path)
- file_path = File.join(file_path, 'index.html') unless file_path =~ /\.[a-z]+$/i
+ file_path = File.join(file_path, 'index.html') unless file_path =~ /\.[a-z]+$/i
File.exist?(file_path) ? send_file(file_path) : missing_file_block.call
end
end
-run SinatraStaticServer \ No newline at end of file
+run SinatraStaticServer
diff --git a/plugins/date.rb b/plugins/date.rb
index b864f3e9..49fb79a3 100644
--- a/plugins/date.rb
+++ b/plugins/date.rb
@@ -95,4 +95,4 @@ module Jekyll
self.data['updated_formatted'] = format_date(self.data['updated'], date_format) if self.data.has_key?('updated')
end
end
-end \ No newline at end of file
+end
diff --git a/plugins/jsfiddle.rb b/plugins/jsfiddle.rb
index 3ae173eb..a80becb3 100644
--- a/plugins/jsfiddle.rb
+++ b/plugins/jsfiddle.rb
@@ -37,4 +37,4 @@ module Jekyll
end
end
-Liquid::Template.register_tag('jsfiddle', Jekyll::JsFiddle) \ No newline at end of file
+Liquid::Template.register_tag('jsfiddle', Jekyll::JsFiddle)
diff --git a/plugins/preview_unpublished.rb b/plugins/preview_unpublished.rb
index 321ffd6f..28cbdfe7 100644
--- a/plugins/preview_unpublished.rb
+++ b/plugins/preview_unpublished.rb
@@ -45,4 +45,4 @@ module Jekyll
self.posts = self.posts[-limit_posts, limit_posts] if limit_posts
end
end
-end \ No newline at end of file
+end
diff --git a/plugins/sitemap_generator.rb b/plugins/sitemap_generator.rb
index b63e9423..a08590bf 100644
--- a/plugins/sitemap_generator.rb
+++ b/plugins/sitemap_generator.rb
@@ -1,6 +1,6 @@
# Sitemap.xml Generator is a Jekyll plugin that generates a sitemap.xml file by
# traversing all of the available posts and pages.
-#
+#
# How To Use:
# 1) Copy source file into your _plugins folder within your Jekyll project.
# 2) Change modify the url variable in _config.yml to reflect your domain name.
@@ -28,12 +28,12 @@
# system modified date of the page or post, system modified date of
# included layout, system modified date of included layout within that
# layout, ...
-#
+#
# Author: Michael Levin
# Site: http://www.kinnetica.com
# Distributed Under A Creative Commons License
# - http://creativecommons.org/licenses/by/3.0/
-#
+#
# Modified for Octopress by John W. Long
#
require 'rexml/document'