Whitespace
Parker Moore authored on 12/01/2013 at 00:07:26... | ... |
@@ -303,7 +303,7 @@ task :setup_github_pages, :repo do |t, args| |
303 | 303 |
if args.repo |
304 | 304 |
repo_url = args.repo |
305 | 305 |
else |
306 |
- puts "Enter the read/write url for your repository" |
|
306 |
+ puts "Enter the read/write url for your repository" |
|
307 | 307 |
puts "(For example, 'git@github.com:your_username/your_username.github.com)" |
308 | 308 |
repo_url = get_stdin("Repository url: ") |
309 | 309 |
end |
... | ... |
@@ -4,7 +4,7 @@ require 'sinatra/base' |
4 | 4 |
# The project root directory |
5 | 5 |
$root = ::File.dirname(__FILE__) |
6 | 6 |
|
7 |
-class SinatraStaticServer < Sinatra::Base |
|
7 |
+class SinatraStaticServer < Sinatra::Base |
|
8 | 8 |
|
9 | 9 |
get(/.+/) do |
10 | 10 |
send_sinatra_file(request.path) {404} |
... | ... |
@@ -16,10 +16,10 @@ class SinatraStaticServer < Sinatra::Base |
16 | 16 |
|
17 | 17 |
def send_sinatra_file(path, &missing_file_block) |
18 | 18 |
file_path = File.join(File.dirname(__FILE__), 'public', path) |
19 |
- file_path = File.join(file_path, 'index.html') unless file_path =~ /\.[a-z]+$/i |
|
19 |
+ file_path = File.join(file_path, 'index.html') unless file_path =~ /\.[a-z]+$/i |
|
20 | 20 |
File.exist?(file_path) ? send_file(file_path) : missing_file_block.call |
21 | 21 |
end |
22 | 22 |
|
23 | 23 |
end |
24 | 24 |
|
25 |
-run SinatraStaticServer |
|
26 | 25 |
\ No newline at end of file |
26 |
+run SinatraStaticServer |
... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
# Sitemap.xml Generator is a Jekyll plugin that generates a sitemap.xml file by |
2 | 2 |
# traversing all of the available posts and pages. |
3 |
-# |
|
3 |
+# |
|
4 | 4 |
# How To Use: |
5 | 5 |
# 1) Copy source file into your _plugins folder within your Jekyll project. |
6 | 6 |
# 2) Change modify the url variable in _config.yml to reflect your domain name. |
... | ... |
@@ -28,12 +28,12 @@ |
28 | 28 |
# system modified date of the page or post, system modified date of |
29 | 29 |
# included layout, system modified date of included layout within that |
30 | 30 |
# layout, ... |
31 |
-# |
|
31 |
+# |
|
32 | 32 |
# Author: Michael Levin |
33 | 33 |
# Site: http://www.kinnetica.com |
34 | 34 |
# Distributed Under A Creative Commons License |
35 | 35 |
# - http://creativecommons.org/licenses/by/3.0/ |
36 |
-# |
|
36 |
+# |
|
37 | 37 |
# Modified for Octopress by John W. Long |
38 | 38 |
# |
39 | 39 |
require 'rexml/document' |