Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jan 11, 2013
1 parent 9decd23 commit 5b332f5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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, '[email protected]:your_username/your_username.github.com)"
repo_url = get_stdin("Repository url: ")
end
Expand Down
6 changes: 3 additions & 3 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
run SinatraStaticServer
2 changes: 1 addition & 1 deletion plugins/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def initialize(site, base, dir, name)
self.data['updated_formatted'] = format_date(self.data['updated'], date_format) if self.data.has_key?('updated')
end
end
end
end
2 changes: 1 addition & 1 deletion plugins/jsfiddle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def render(context)
end
end

Liquid::Template.register_tag('jsfiddle', Jekyll::JsFiddle)
Liquid::Template.register_tag('jsfiddle', Jekyll::JsFiddle)
2 changes: 1 addition & 1 deletion plugins/preview_unpublished.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def read_posts(dir)
self.posts = self.posts[-limit_posts, limit_posts] if limit_posts
end
end
end
end
6 changes: 3 additions & 3 deletions plugins/sitemap_generator.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 5b332f5

Please sign in to comment.